-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathPackage.swift
93 lines (87 loc) · 2.79 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
// swift-tools-version: 5.7
import PackageDescription
let package = Package(
name: "swift-lark",
platforms: [.iOS(.v16), .macOS(.v13), .tvOS(.v16)],
products: [
.library(
name: "swift-lark",
targets: ["Lark"]
),
.executable(name: "LarkExample", targets: ["LarkExample"]),
.library(name: "SDL2Image", targets: ["SDL2Image"]),
],
dependencies: [
.package(url: "https://github.com/apple/swift-async-algorithms", from: Version(0, 0, 3)),
.package(url: "https://github.com/apple/swift-log", from: Version(1, 5, 2)),
.package(url: "https://github.com/pointfreeco/xctest-dynamic-overlay", from: Version(0, 6, 0)),
.package(url: "https://github.com/pointfreeco/swift-clocks", from: Version(0, 2, 0)),
.package(url: "https://github.com/junebash/swift-uuid", branch: "main"),
.package(url: "https://github.com/junebash/swift-lock", branch: "main"),
.package(url: "https://github.com/apple/swift-collections", branch: "main"),
.package(
url: "https://github.com/pointfreeco/swift-identified-collections.git",
.upToNextMajor(from: Version(0, 7, 1))
),
.package(url: "https://github.com/junebash/swift-gen", branch: "protocol"),
],
targets: [
.target(
name: "Lark",
dependencies: [
"SDL2",
"SDL2Image",
.product(name: "XCTestDynamicOverlay", package: "xctest-dynamic-overlay"),
.product(name: "AsyncAlgorithms", package: "swift-async-algorithms"),
.product(name: "Clocks", package: "swift-clocks"),
.product(name: "Logging", package: "swift-log"),
.product(name: "UUID", package: "swift-uuid"),
.product(name: "Lock", package: "swift-lock"),
.product(name: "Collections", package: "swift-collections"),
.product(name: "IdentifiedCollections", package: "swift-identified-collections"),
.product(name: "Gen", package: "swift-gen"),
],
swiftSettings: [.unsafeFlags(["-Xfrontend", "-warn-concurrency"])]
),
.executableTarget(
name: "LarkExample",
dependencies: ["Lark"],
resources: [.copy("assets")]
),
.target(
name: "SDL2",
dependencies: [
"CSDL2"
]
),
.systemLibrary(
name: "CSDL2",
pkgConfig: "sdl2",
providers: [
.brew(["sdl2"]),
.apt(["libsdl2-dev"]),
]
),
.target(
name: "SDL2Image",
dependencies: [
"CSDL2Image",
"SDL2",
]
),
.systemLibrary(
name: "CSDL2Image",
path: "Sources/CSDL2Image",
pkgConfig: "SDL2_image",
providers: [
.brew(["SDL2_image"]),
.apt(["libsdl2-image-dev"]),
]
),
.testTarget(
name: "LarkTests",
dependencies: ["Lark"],
swiftSettings: [.unsafeFlags(["-Xfrontend", "-warn-concurrency"])]
),
]
)