-
Notifications
You must be signed in to change notification settings - Fork 41
/
Package.swift
39 lines (37 loc) · 1.3 KB
/
Package.swift
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
// swift-tools-version:5.7
import PackageDescription
var package = Package(
name: "SWCompression",
platforms: [
.macOS(.v11),
.iOS(.v14),
.tvOS(.v14),
.watchOS(.v7),
// TODO: Enable after upgrading to Swift 5.9.
// .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