-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathPackage.swift
More file actions
60 lines (58 loc) · 2.01 KB
/
Copy pathPackage.swift
File metadata and controls
60 lines (58 loc) · 2.01 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
// swift-tools-version: 5.9
// SPM alongside the Xcode project for unit-test the pure-Swift logic.
// The Xcode TestFSExtension target still auto-compiles the same files
// via its synced group; this package just gives us a fast `swift test`
// loop without hand-editing project.pbxproj to add a test target.
//
// Only pure-Swift (no FSKit import) files belong in TestFSCore. FSKit
// glue code stays out and is only compiled by the Xcode target.
import PackageDescription
let package = Package(
name: "testfs",
platforms: [
.macOS(.v13) // Pure-Swift logic targets broad macOS; FSKit glue is 15.4+ elsewhere
],
products: [
.library(name: "TestFSCore", targets: ["TestFSCore"])
],
targets: [
.target(
name: "TestFSCore",
path: ".",
exclude: [
"LICENSE",
"README.md",
"appcast.xml",
".swiftlint.yml",
"TestFS",
"TestFS.xcodeproj",
"Tests",
"research",
"scripts",
"build",
"TestFSExtension/Info.plist",
"TestFSExtension/TestFSExtension.entitlements",
"TestFSExtension/TestFSExtension.swift",
"TestFSExtension/TestFileSystem.swift"
],
sources: [
"TestFSExtension/BlockCache.swift",
"TestFSExtension/BundledExamples.swift",
"TestFSExtension/JSONTree.swift",
"TestFSExtension/LoadFailureMarker.swift",
"TestFSExtension/MountOptions.swift",
"TestFSExtension/Throttle.swift",
"TestFSExtension/TreeBuilder.swift",
"TestFSExtension/TreeIndex.swift"
]
),
.testTarget(
name: "TestFSCoreTests",
dependencies: ["TestFSCore"],
path: "Tests/TestFSCoreTests",
resources: [
.copy("Fixtures")
]
)
]
)