-
-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathPackage.swift
43 lines (42 loc) · 1.51 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
// swift-tools-version:5.8
import PackageDescription
let package = Package(
name: "FirebladeECSDemo",
platforms: [
.macOS(.v11),
.iOS(.v13),
.tvOS(.v13)
],
dependencies: [
.package(url: "https://github.com/ctreffs/SwiftSDL2.git", from: "1.4.1"),
.package(url: "https://github.com/fireblade-engine/ecs.git", from: "0.17.6"),
.package(url: "https://github.com/fireblade-engine/math.git", from: "0.13.0")
],
targets: [
.target(
name: "SDLKit",
dependencies: [
.product(name: "SDL", package: "SwiftSDL2")
]),
.executableTarget(
name: "Particles",
dependencies: [
.product(name: "FirebladeECS", package: "ecs"),
.product(name: "SDL", package: "SwiftSDL2"),
"SDLKit"
]),
.executableTarget(
name: "Asteroids",
dependencies: [
.product(name: "FirebladeECS", package: "ecs"),
.product(name: "SDL", package: "SwiftSDL2"),
"SDLKit",
.product(name: "FirebladeMath", package: "math"),
"AsteroidsGameLibrary"
],
exclude: ["Resources/source.txt"],
resources: [.copy("Resources/asteroid.wav"), .copy("Resources/ship.wav"), .copy("Resources/shoot.wav")]),
.target(name: "AsteroidsGameLibrary",
dependencies: [.product(name: "FirebladeMath", package: "math")])
]
)