-
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.7 KB
/
Package.swift
File metadata and controls
63 lines (61 loc) · 1.7 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: 6.3
import PackageDescription
let package = Package(
name: "compression",
platforms: [
.macOS(.v26),
.iOS(.v26),
.tvOS(.v26),
.watchOS(.v26),
.visionOS(.v26),
],
products: [
.library(
name: "Compression",
targets: ["CompressionCore", "CompressionDeflate", "CompressionFoundation"]
)
],
targets: [
.target(
name: "CompressionCore",
swiftSettings: swiftSettings
),
.target(
name: "CompressionFoundation",
dependencies: [
.target(name: "CompressionCore")
]
),
.target(
name: "CompressionDeflate",
dependencies: ["CZlib", "CompressionCore"],
path: "Sources/Zlib",
swiftSettings: swiftSettings
),
.target(
name: "CZlib",
path: "Sources/CZlib",
sources: ["src"],
publicHeadersPath: "include",
cSettings: [
.headerSearchPath("src"),
.define("ENABLE_C_BOUNDS_SAFETY"),
],
swiftSettings: swiftSettings,
),
.testTarget(
name: "CompressionTests",
dependencies: [.target(name: "CompressionDeflate")],
),
]
)
var swiftSettings: [SwiftSetting] {
[
.strictMemorySafety(),
.interoperabilityMode(.C),
.enableExperimentalFeature("SafeInteropWrappers"),
.unsafeFlags(["-Xcc", "-fexperimental-bounds-safety-attributes"]),
.enableExperimentalFeature("Lifetimes"),
.enableExperimentalFeature("SuppressedAssociatedTypes"),
]
}