-
Notifications
You must be signed in to change notification settings - Fork 0
/
Package.swift
49 lines (47 loc) · 1.86 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
40
41
42
43
44
45
46
47
48
49
// swift-tools-version: 5.9
import PackageDescription
let package = Package(
name: "SFSymbolsGenerator",
platforms: [
.macOS(.v13),
],
products: [
.executable(name: "sfgenerate", targets: ["SFSymbolsGenerator"]),
],
dependencies: [
.package(url: "https://github.com/apple/swift-argument-parser.git", .upToNextMajor(from: "1.3.0")),
.package(url: "https://github.com/apple/swift-syntax.git", exact: "509.1.1"),
.package(url: "https://github.com/apple/swift-testing.git", exact: "0.4.2"),
.package(url: "https://github.com/theoriginalbit/GitVersionPlugin.git", exact: "1.0.0"),
.package(url: "https://github.com/JohnSundell/Files.git", exact: "4.2.0"),
],
targets: [
.executableTarget(
name: "SFSymbolsGenerator",
dependencies: [
.product(name: "ArgumentParser", package: "swift-argument-parser"),
.product(name: "SwiftSyntax", package: "swift-syntax"),
.product(name: "SwiftSyntaxBuilder", package: "swift-syntax"),
.product(name: "Files", package: "Files"),
],
swiftSettings: .packageSettings,
plugins: [
.plugin(name: "GitVersionPlugin", package: "GitVersionPlugin"),
]
),
.testTarget(name: "SFSymbolsGeneratorTests", dependencies: [
"SFSymbolsGenerator",
.product(name: "Testing", package: "swift-testing"),
]),
]
)
extension [PackageDescription.SwiftSetting] {
/// Settings intended to be applied to every Swift target in this package.
/// Analogous to project-level build settings in an Xcode project.
static var packageSettings: Self {
[
.enableUpcomingFeature("ExistentialAny"),
.define("SWT_TARGET_OS_APPLE", .when(platforms: [.macOS])),
]
}
}