-
Notifications
You must be signed in to change notification settings - Fork 44
Expand file tree
/
Copy pathPackage.swift
More file actions
38 lines (36 loc) · 1.25 KB
/
Package.swift
File metadata and controls
38 lines (36 loc) · 1.25 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
// swift-tools-version:5.9
import PackageDescription
var package = Package(
name: "SWCompression",
platforms: [
.macOS(.v14),
.iOS(.v17),
.tvOS(.v17),
.watchOS(.v10),
.visionOS(.v1)
],
products: [
.library(
name: "SWCompression",
targets: ["SWCompression"]),
],
dependencies: [
.package(url: "https://github.com/tsolomko/BitByteData", from: "2.0.0"),
],
targets: [
.target(
name: "SWCompression",
dependencies: ["BitByteData"],
path: "Sources",
exclude: ["swcomp"],
sources: ["Common", "7-Zip", "BZip2", "Deflate", "GZip", "LZ4", "LZMA", "LZMA2", "TAR", "XZ", "ZIP", "Zlib"],
resources: [.copy("PrivacyInfo.xcprivacy")]),
],
swiftLanguageVersions: [.v5]
)
#if os(macOS)
package.dependencies.append(.package(url: "https://github.com/jakeheis/SwiftCLI", from: "6.0.0"))
package.targets.append(.executableTarget(name: "swcomp", dependencies: ["SWCompression", "SwiftCLI"], path: "Sources",
exclude: ["Common", "7-Zip", "BZip2", "Deflate", "GZip", "LZ4", "LZMA", "LZMA2", "TAR", "XZ", "ZIP", "Zlib", "PrivacyInfo.xcprivacy"],
sources: ["swcomp"]))
#endif