-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathPackage.swift
45 lines (44 loc) · 1.38 KB
/
Package.swift
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
// swift-tools-version:5.2
import PackageDescription
let package = Package(
name: "sss-nemid",
platforms: [
.macOS(.v10_15),
],
products: [
.library(
name: "NemID",
targets: ["NemID"]),
/* This target is used only for symbol mangling. It's added and removed automatically because it emits build warnings. MANGLE_START
.library(name: "CNemIDBoringSSL", type: .static, targets: ["CNemIDBoringSSL"]),
MANGLE_END */
],
dependencies: [
.package(url: "https://github.com/apple/swift-crypto.git", from: "1.1.3"),
.package(url: "https://github.com/swift-server/async-http-client.git", from: "1.0.0"),
],
targets: [
.target(
name: "NemID",
dependencies: [
"Clibxml2",
"CNemIDBoringSSL",
.product(name: "Crypto", package: "swift-crypto"),
.product(name: "AsyncHTTPClient", package: "async-http-client"),
]
),
.target(name: "CNemIDBoringSSL"),
.systemLibrary(
name: "Clibxml2",
pkgConfig: "libxml-2.0",
providers: [
.apt(["libxml2"]),
.brew(["libxml2"]),
]
),
.testTarget(
name: "NemIDTests",
dependencies: ["NemID"]),
],
cxxLanguageStandard: .cxx11
)