-
-
Notifications
You must be signed in to change notification settings - Fork 8
/
Package.swift
54 lines (52 loc) · 1.66 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
// swift-tools-version: 5.9
// (be sure to update the .swift-version file when this Swift version changes)
import PackageDescription
let package = Package(
name: "OSCKit",
platforms: [.macOS(.v10_15), .iOS(.v13), .tvOS(.v13), .watchOS(.v6)],
products: [
.library(
name: "OSCKit",
targets: ["OSCKit"]
),
.library(
name: "OSCKitCore",
targets: ["OSCKitCore"]
)
],
dependencies: [
.package(url: "https://github.com/robbiehanson/CocoaAsyncSocket", from: "7.0.0"),
.package(url: "https://github.com/orchetect/SwiftASCII", from: "1.1.5"),
.package(url: "https://github.com/apple/swift-numerics", from: "1.0.2")
],
targets: [
.target(
name: "OSCKit",
dependencies: [
"OSCKitCore",
.product(
name: "CocoaAsyncSocket",
package: "CocoaAsyncSocket",
condition: .when(platforms: [.macOS, .macCatalyst, .iOS, .tvOS, .visionOS, .driverKit])
)
],
swiftSettings: [.define("DEBUG", .when(configuration: .debug))]
),
.target(
name: "OSCKitCore",
dependencies: ["SwiftASCII"],
swiftSettings: [.define("DEBUG", .when(configuration: .debug))]
),
.testTarget(
name: "OSCKitTests",
dependencies: ["OSCKit"]
),
.testTarget(
name: "OSCKitCoreTests",
dependencies: [
"OSCKitCore",
.product(name: "Numerics", package: "swift-numerics")
]
)
]
)