-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathPackage.swift
More file actions
63 lines (61 loc) · 1.92 KB
/
Package.swift
File metadata and controls
63 lines (61 loc) · 1.92 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
// swift-tools-version: 5.10
import PackageDescription
let frameworksPath = "/Library/Developer/CommandLineTools/Library/Developer/Frameworks"
let swiftLibPath = "/Library/Developer/CommandLineTools/Library/Developer/usr/lib"
let package = Package(
name: "DevForge",
platforms: [
.macOS(.v14)
],
products: [
.executable(name: "DevForge", targets: ["DevForge"])
],
dependencies: [
.package(url: "https://github.com/groue/GRDB.swift", from: "6.0.0"),
.package(url: "https://github.com/evgenyneu/keychain-swift", from: "20.0.0"),
],
targets: [
.target(
name: "CSMC",
path: "DevForge/SMC",
publicHeadersPath: ".",
linkerSettings: [
.linkedFramework("IOKit"),
]
),
.executableTarget(
name: "DevForge",
dependencies: [
.product(name: "GRDB", package: "GRDB.swift"),
.product(name: "KeychainSwift", package: "keychain-swift"),
"CSMC",
],
path: "DevForge",
exclude: [
"Info.plist",
"DevForge.entitlements",
"DevForge-Bridging-Header.h",
"Tests",
"SMC",
]
),
.testTarget(
name: "DevForgeTests",
dependencies: [
"DevForge",
],
path: "DevForge/Tests/UnitTests",
swiftSettings: [
.unsafeFlags(["-F", frameworksPath]),
],
linkerSettings: [
.unsafeFlags([
"-F", frameworksPath,
"-Xlinker", "-rpath", "-Xlinker", frameworksPath,
"-Xlinker", "-rpath", "-Xlinker", swiftLibPath,
]),
.linkedFramework("Testing", .when(platforms: [.macOS])),
]
),
]
)