-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathPackage.swift
More file actions
86 lines (82 loc) · 2.11 KB
/
Package.swift
File metadata and controls
86 lines (82 loc) · 2.11 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
81
82
83
84
85
86
// swift-tools-version: 5.10
// The swift-tools-version declares the minimum version of Swift required to build this package.
import PackageDescription
#if os(Linux)
let packageDependencies: [Package.Dependency] = [
.package(
url: "https://github.com/ibireme/yyjson.git",
from: "0.12.0"
),
]
#else
let packageDependencies: [Package.Dependency] = [
.package(
url: "https://github.com/ibireme/yyjson.git",
from: "0.12.0"
),
.package(
url: "https://github.com/michaeleisel/JJLISO8601DateFormatter.git",
from: "0.2.0"
),
]
#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: "ReerJSON",
platforms: [
.macOS(.v10_13),
.iOS(.v12),
.tvOS(.v12),
.watchOS(.v6),
.macCatalyst(.v13),
.visionOS(.v1)
],
products: [
.library(
name: "ReerJSON",
targets: ["ReerJSON"]),
],
dependencies: packageDependencies,
targets: [
.target(
name: "ReerJSON",
dependencies: targetDependencies
),
.testTarget(
name: "ReerJSONTests",
dependencies: ["ReerJSON"],
resources: [
.copy("Models/apache_builds.json"),
.copy("Models/canada.json"),
.copy("Models/entities.json"),
.copy("Models/github_events.json"),
.copy("Models/marine_ik.json"),
.copy("Models/mesh.json"),
.copy("Models/numbers.json"),
.copy("Models/random.json"),
.copy("Models/twitter.json"),
.copy("Models/twitter2.json"),
.copy("Models/twitterescaped.json"),
.copy("Resources")
]
)
]
)