-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathPackage.swift
More file actions
41 lines (40 loc) · 1.93 KB
/
Package.swift
File metadata and controls
41 lines (40 loc) · 1.93 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
// swift-tools-version:5.10
import PackageDescription
let package = Package(
name: "Fair",
defaultLocalization: "en",
platforms: [
.macOS(.v14), .iOS(.v17), .tvOS(.v17), .watchOS(.v10)
],
products: [
.library(name: "FairCore", targets: ["FairCore"]),
.library(name: "FairExpo", targets: ["FairExpo"]),
.executable(name: "fairtool", targets: ["fairtool"]),
],
dependencies: [
.package(url: "https://github.com/apple/swift-argument-parser.git", from: "1.7.0"),
.package(url: "https://github.com/apple/swift-crypto.git", from: "4.2.0"),
.package(url: "https://github.com/marcprux/universal.git", from: "5.3.0"),
.package(url: "https://github.com/jpsim/Yams.git", from: "6.2.0"),
],
targets: [
.target(name: "CZLib", linkerSettings: [ .linkedLibrary("z") ]),
.target(name: "FairCore", dependencies: [
.product(name: "Universal", package: "universal"),
"CZLib",
], resources: [.process("Resources")], cSettings: [.define("_GNU_SOURCE", to: "1")]),
.target(name: "FairExpo", dependencies: [
"FairCore",
.product(name: "Yams", package: "Yams"),
.product(name: "Crypto", package: "swift-crypto", condition: .when(platforms: [.linux])),
], resources: [.process("Resources")]),
.executableTarget(name: "fairtool", dependencies: [
"FairExpo",
.product(name: "ArgumentParser", package: "swift-argument-parser"),
], resources: [.process("Resources")]),
.testTarget(name: "FairCoreTests", dependencies: ["FairCore"], resources: [.process("Resources")]),
.testTarget(name: "FairExpoTests", dependencies: [.target(name: "FairExpo")], resources: [.process("Resources")]),
.testTarget(name: "FairToolTests", dependencies: [.target(name: "fairtool")], resources: [.process("Resources")]),
]
//swiftLanguageModes: [.v5]
)