-
-
Notifications
You must be signed in to change notification settings - Fork 103
Expand file tree
/
Copy pathPackage.swift
More file actions
76 lines (73 loc) · 2.46 KB
/
Copy pathPackage.swift
File metadata and controls
76 lines (73 loc) · 2.46 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
// swift-tools-version: 5.9
import PackageDescription
let strictConcurrency: [SwiftSetting] = [
.enableExperimentalFeature("StrictConcurrency")
]
let package = Package(
name: "RamaAppleNetworkExtension",
platforms: [
.macOS(.v12)
],
products: [
.library(
name: "RamaAppleNetworkExtension",
targets: ["RamaAppleNetworkExtension"]
),
.library(
name: "RamaAppleSecureEnclave",
targets: ["RamaAppleSecureEnclave"]
),
.library(
name: "RamaAppleXpcClient",
targets: ["RamaAppleXpcClient"]
),
],
targets: [
.target(
name: "RamaAppleNEFFI",
path: "ffi/apple/RamaAppleNetworkExtension/Sources/RamaAppleNEFFI",
linkerSettings: [
.linkedLibrary("bsm"),
.linkedLibrary("proc"),
]
),
.target(
name: "RamaAppleNetworkExtension",
dependencies: ["RamaAppleNEFFI"],
path: "ffi/apple/RamaAppleNetworkExtension/Sources/RamaAppleNetworkExtension",
swiftSettings: strictConcurrency
),
.target(
name: "RamaAppleSEFFI",
path: "ffi/apple/RamaAppleSecureEnclave/Sources/RamaAppleSEFFI"
),
.target(
name: "RamaAppleSecureEnclave",
dependencies: ["RamaAppleSEFFI"],
path: "ffi/apple/RamaAppleSecureEnclave/Sources/RamaAppleSecureEnclave",
swiftSettings: strictConcurrency
),
.target(
name: "RamaAppleXpcClient",
path: "ffi/apple/RamaAppleXpcClient/Sources/RamaAppleXpcClient",
swiftSettings: strictConcurrency
),
// Swift FFI integration tests. Drive them via `just ttest-e2e-ffi-swift`
// so the rama staticlib path stays in one place. CI uses the same recipes.
.testTarget(
name: "RamaAppleNetworkExtensionTests",
dependencies: [
"RamaAppleNetworkExtension",
"RamaAppleSecureEnclave",
"RamaAppleNEFFI",
"RamaAppleSEFFI",
],
path: "ffi/apple/RamaAppleNetworkExtension/Tests/RamaAppleNetworkExtensionTests"
),
.testTarget(
name: "RamaAppleXpcClientTests",
dependencies: ["RamaAppleXpcClient"],
path: "ffi/apple/RamaAppleXpcClient/Tests/RamaAppleXpcClientTests"
),
]
)