forked from cameroncooke/AXe
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathPackage.swift
More file actions
77 lines (76 loc) · 2.46 KB
/
Package.swift
File metadata and controls
77 lines (76 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
77
// swift-tools-version:5.10
import PackageDescription
let package = Package(
name: "AXe",
platforms: [
.macOS(.v14)
],
products: [
.executable(
name: "axe",
targets: ["AXe"]
)
],
dependencies: [
.package(url: "https://github.com/apple/swift-argument-parser", from: "1.5.0"),
],
targets: [
.executableTarget(
name: "AXe",
dependencies: [
.product(name: "ArgumentParser", package: "swift-argument-parser"),
"FBSimulatorControl",
"FBDeviceControl",
"FBControlCore",
"XCTestBootstrap"
],
path: "Sources/AXe",
resources: [
.copy("Resources/skills")
],
swiftSettings: [
.unsafeFlags(["-parse-as-library"])
],
linkerSettings: [
// For XCFrameworks, rpath can often be just @executable_path
// if SPM handles embedding correctly, or you might need to adjust
// if you manually copy them later for distribution.
.unsafeFlags([
"-Xlinker", "-dead_strip",
"-Xlinker", "-headerpad_max_install_names",
"-Xlinker", "-rpath", "-Xlinker", "@executable_path" // Simpler rpath for SPM-handled XCFrameworks
])
],
plugins: ["VersionPlugin"]
),
.testTarget(
name: "AXeTests",
dependencies: ["AXe"],
path: "Tests",
resources: [
.copy("README.md")
]
),
.plugin(
name: "VersionPlugin",
capability: .buildTool(),
path: "Plugins/VersionPlugin"
),
.binaryTarget(
name: "FBControlCore",
path: "build_products/XCFrameworks/FBControlCore.xcframework" // Updated path
),
.binaryTarget(
name: "FBDeviceControl",
path: "build_products/XCFrameworks/FBDeviceControl.xcframework" // Updated path
),
.binaryTarget(
name: "FBSimulatorControl",
path: "build_products/XCFrameworks/FBSimulatorControl.xcframework" // Updated path
),
.binaryTarget(
name: "XCTestBootstrap",
path: "build_products/XCFrameworks/XCTestBootstrap.xcframework" // Updated path
),
]
)