-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathPackage.swift
More file actions
80 lines (78 loc) · 1.91 KB
/
Package.swift
File metadata and controls
80 lines (78 loc) · 1.91 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
// swift-tools-version:5.10
import PackageDescription
let package = Package(
name: "SSH2",
platforms: [
.macOS(.v13),
.iOS(.v16),
],
products: [
.library(
name: "SSH2",
targets: ["SSH"]
),
.library(
name: "Crypto",
targets: ["Crypto"]
),
.library(
name: "DNS",
targets: ["DNS"]
),
.library(
name: "Proxy",
targets: ["Proxy"]
),
.library(
name: "GeoLite2",
targets: ["GeoLite2"]
),
],
dependencies: [
// .package(name: "CSSH", path: "~/project/github/cssh"),
.package(url: "https://github.com/sshterm/cssh.git", branch: "main"),
],
targets: [
.target(
name: "SSH",
dependencies: [.product(name: "CSSH", package: "CSSH"), "Crypto"]
),
.target(
name: "Crypto",
dependencies: [
.product(name: "CSSH", package: "CSSH"),
.product(name: "SSHKey", package: "CSSH"),
"Extension",
"Proxy",
"Socket",
],
swiftSettings: [.define("HAVE_OPENSSL")]
),
.target(
name: "Extension"
),
.target(
name: "Proxy",
dependencies: ["Socket", "Extension"]
),
.target(
name: "Socket",
dependencies: ["Extension"]
),
.target(
name: "DNS",
dependencies: ["Extension"]
),
.target(
name: "GeoLite2",
dependencies: [
.product(name: "MaxMindDB", package: "CSSH"),
"Extension",
],
resources: [
.process("Resources"),
]
),
],
swiftLanguageVersions: [.v5]
)