-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathPackage.swift
110 lines (99 loc) · 3.19 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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
// swift-tools-version:5.9
// The swift-tools-version declares the minimum version of Swift required to build this package.
import PackageDescription
let package = Package(
name: "science",
platforms: [
.iOS(.v13),
.macOS(.v13)
],
products: [
// Products define the executables and libraries a package produces, and make them visible to other packages.
.library(
name: "Circuitry",
targets: ["Circuitry"]
),
.library(
name: "Physics",
targets: ["Physics"]
),
.library(
name: "ScienceUtilities",
targets: ["ScienceUtilities"]
),
.library(
name: "Science",
targets: ["Science"]
)
],
dependencies: [
.package(url: "https://github.com/apple/swift-collections.git", from: "1.0.5"),
.package(url: "https://github.com/RandomHashTags/swift_huge-numbers.git", from: "1.1.1"),
.package(url: "https://github.com/RandomHashTags/swift-units.git", from: "1.2.0"),
.package(url: "https://github.com/tid-kijyun/Kanna.git", from: "5.2.7")
],
targets: [
.target(
name: "ScienceUtilities",
dependencies: [
.product(name: "HugeNumbers", package: "swift_huge-numbers"),
.product(name: "SwiftUnits", package: "swift-units"),
.product(name: "OrderedCollections", package: "swift-collections"),
],
path: "./Sources/Utilities"
),
.target(
name: "Circuitry",
dependencies: ["ScienceUtilities"],
path: "./Sources/Circuitry"
),
.target(
name: "Physics",
dependencies: ["ScienceUtilities"],
path: "./Sources/Physics"
),
.target(
name: "Science",
dependencies: ["Physics"],
path: "./Sources/science"
),
.executableTarget(
name: "Run",
dependencies: [
"Science",
.target(name: "MacOSUserInterface", condition: .when(platforms: [.macOS]))
]
),
.target(
name: "RendererSceneKit",
dependencies: [
"Science"
],
path: "./Sources/ui/macOS/renderer/scene_kit"
),
.target(
name: "MacOSUserInterface",
dependencies: [
"RendererSceneKit"
],
path: "./Sources/ui/macOS/views"
),
.executableTarget(
name: "UserInterfaceMacOS",
dependencies: [
"MacOSUserInterface"
],
path: "./Sources/ui/macOS/run"
),
.testTarget(name: "CircuitryTests", dependencies: ["Circuitry"]),
.testTarget(name: "PhysicsTests", dependencies: ["Physics"]),
.testTarget(
name: "scienceTests",
dependencies: [
"Science",
"Kanna",
.product(name: "HugeNumbers", package: "swift_huge-numbers")
]
),
]
)