-
Notifications
You must be signed in to change notification settings - Fork 2
/
Package.swift
67 lines (63 loc) · 1.37 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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
// swift-tools-version: 5.8
import PackageDescription
#if os(Linux)
let packageDependencies: [Package.Dependency] = [
.package(
url: "https://github.com/ibireme/yyjson.git",
from: "0.10.0"
),
]
#else
let packageDependencies: [Package.Dependency] = [
.package(
url: "https://github.com/ibireme/yyjson.git",
from: "0.10.0"
),
.package(
url: "https://github.com/michaeleisel/JJLISO8601DateFormatter.git",
from: "0.1.8"
),
]
#endif
#if os(Linux)
let targetDependencies: [Target.Dependency] = [
.product(
name: "yyjson",
package: "yyjson"
),
]
#else
let targetDependencies: [Target.Dependency] = [
.product(
name: "yyjson",
package: "yyjson"
),
.product(
name: "JJLISO8601DateFormatter",
package: "JJLISO8601DateFormatter"
),
]
#endif
let package = Package(
name: "Ananda",
products: [
.library(
name: "Ananda",
targets: ["Ananda"]
),
],
dependencies: packageDependencies,
targets: [
.target(
name: "Ananda",
dependencies: targetDependencies,
swiftSettings: [
.enableExperimentalFeature("StrictConcurrency"),
]
),
.testTarget(
name: "AnandaTests",
dependencies: ["Ananda"]
),
]
)