-
-
Notifications
You must be signed in to change notification settings - Fork 57
Expand file tree
/
Copy pathPackage.swift
More file actions
52 lines (49 loc) · 1.67 KB
/
Package.swift
File metadata and controls
52 lines (49 loc) · 1.67 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
// swift-tools-version: 6.1
// The swift-tools-version declares the minimum version of Swift required to build this package.
import PackageDescription
#if os(macOS)
let kanaKanjiConverterTraits: Set<Package.Dependency.Trait> = ["Zenzai"]
#else
// for testing in Ubuntu environment.
let kanaKanjiConverterTraits: Set<Package.Dependency.Trait> = []
#endif
let package = Package(
name: "Core",
platforms: [.macOS(.v13)],
products: [
// Products define the executables and libraries a package produces, making them visible to other packages.
.library(
name: "Core",
targets: ["Core"]
)
],
dependencies: [
.package(url: "https://github.com/azooKey/AzooKeyKanaKanjiConverter", revision: "c439533b39d5913dbca05633c7b8c2aa4414db35", traits: kanaKanjiConverterTraits)
],
targets: [
.executableTarget(
name: "git-info-generator"
),
.plugin(
name: "GitInfoPlugin",
capability: .buildTool(),
dependencies: [.target(name: "git-info-generator")]
),
.target(
name: "Core",
dependencies: [
.product(name: "SwiftUtils", package: "AzooKeyKanaKanjiConverter"),
.product(name: "KanaKanjiConverterModuleWithDefaultDictionary", package: "AzooKeyKanaKanjiConverter")
],
swiftSettings: [.interoperabilityMode(.Cxx)],
plugins: [
.plugin(name: "GitInfoPlugin")
]
),
.testTarget(
name: "CoreTests",
dependencies: ["Core"],
swiftSettings: [.interoperabilityMode(.Cxx)]
)
]
)