forked from chesskit-app/chesskit-engine
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Package.swift
90 lines (85 loc) · 2.84 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
// swift-tools-version: 5.7
import PackageDescription
// MARK: - Package Configuration
let package = Package(
name: "ChessKitEngine",
platforms: [
.iOS(.v16), .watchOS(.v9), .macOS(.v13), .tvOS(.v16)
],
products: [
.library(
name: "ChessKitEngine",
targets: ["ChessKitEngine"]
)
],
targets: [
.target(
name: "ChessKitEngine",
dependencies: ["ChessKitEngineCore"],
resources: [
.copy("Resources/192x15_network"),
.copy("Resources/nn-1337b1adec5b.nnue")
]
),
.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"]
)
],
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/main.cc",
"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/onednn/",
"Engines/lc0/src/neural/onnx/",
"Engines/lc0/src/neural/opencl/",
"Engines/lc0/src/neural/metal/",
"Engines/lc0/src/neural/network_tf_cc.cc"
]