forked from chesskit-app/chesskit-engine
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Package.swift
101 lines (96 loc) · 3.16 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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
// swift-tools-version: 6.0
import PackageDescription
// MARK: - Package Configuration
let package = Package(
name: "ChessKitEngine",
platforms: [
.iOS(.v16),
.watchOS(.v9),
.macOS(.v13),
.tvOS(.v16),
.visionOS(.v1)
],
products: [
.library(
name: "ChessKitEngine",
targets: ["ChessKitEngine"]
)
],
dependencies: [
.package(url: "https://github.com/apple/swift-async-algorithms.git", .upToNextMajor(from: "1.0.3"))
],
targets: [
.target(
name: "ChessKitEngine",
dependencies: [
"ChessKitEngineCore",
.product(name: "AsyncAlgorithms", package: "swift-async-algorithms")
]
),
.target(
name: "ChessKitEngineCore",
cxxSettings: [
.headerSearchPath("Engines/lc0/"),
.headerSearchPath("Engines/lc0/src"),
.headerSearchPath("Engines/lc0/subprojects/eigen-3.4.0"),
.define("NNUE_EMBEDDING_OFF"),
.define("NO_PEXT")
],
linkerSettings: [
.linkedLibrary("z")
]
),
.testTarget(
name: "ChessKitEngineTests",
dependencies: ["ChessKitEngine"],
resources: [
.copy("EngineTests/Resources/192x15_network")
]
)
],
cxxLanguageStandard: .gnucxx17
)
// MARK: - ChessKitEngineCore excludes
package.targets.first { $0.name == "ChessKitEngineCore" }?.exclude = [
// lc0
"Engines/lc0/build",
"Engines/lc0/cross-files",
"Engines/lc0/dist",
"Engines/lc0/libs",
"Engines/lc0/scripts",
"Engines/lc0/subprojects/eigen-3.4.0/bench",
"Engines/lc0/subprojects/eigen-3.4.0/blas",
"Engines/lc0/subprojects/eigen-3.4.0/ci",
"Engines/lc0/subprojects/eigen-3.4.0/cmake",
"Engines/lc0/subprojects/eigen-3.4.0/debug",
"Engines/lc0/subprojects/eigen-3.4.0/demos",
"Engines/lc0/subprojects/eigen-3.4.0/doc",
"Engines/lc0/subprojects/eigen-3.4.0/failtest",
"Engines/lc0/subprojects/eigen-3.4.0/lapack",
"Engines/lc0/subprojects/eigen-3.4.0/scripts",
"Engines/lc0/subprojects/eigen-3.4.0/test",
"Engines/lc0/subprojects/eigen-3.4.0/unsupported",
"Engines/lc0/third_party",
"Engines/lc0/src/utils/filesystem.win32.cc",
"Engines/lc0/src/chess/board_test.cc",
"Engines/lc0/src/chess/position_test.cc",
"Engines/lc0/src/neural/encoder_test.cc",
"Engines/lc0/src/syzygy/syzygy_test.cc",
"Engines/lc0/src/utils/hashcat_test.cc",
"Engines/lc0/src/utils/optionsparser_test.cc",
"Engines/lc0/src/benchmark/",
"Engines/lc0/src/lc0ctl/",
"Engines/lc0/src/python/",
"Engines/lc0/src/selfplay/",
"Engines/lc0/src/trainingdata/",
"Engines/lc0/src/neural/cuda/",
"Engines/lc0/src/neural/dx/",
"Engines/lc0/src/neural/metal/",
"Engines/lc0/src/neural/network_tf_cc.cc",
"Engines/lc0/src/neural/onednn/",
"Engines/lc0/src/neural/onnx/",
"Engines/lc0/src/neural/opencl/",
"Engines/lc0/src/neural/xla/",
"Engines/lc0/src/rescorer/",
"Engines/lc0/src/rescorer_main.cc"
]