Repository navigation
Expand file tree
/
Copy pathCMakePresets.json
More file actions
192 lines (192 loc) · 6.63 KB
/
Copy pathCMakePresets.json
File metadata and controls
192 lines (192 loc) · 6.63 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
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
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
{
"version": 6,
"cmakeMinimumRequired": {
"major": 3,
"minor": 21,
"patch": 0
},
"configurePresets": [
{
"name": "_vcpkg",
"hidden": true,
"toolchainFile": "${sourceDir}/lib/vcpkg/scripts/buildsystems/vcpkg.cmake",
"cacheVariables": {
"VCPKG_OVERLAY_TRIPLETS": "${sourceDir}/cmake/triplets",
"VCPKG_OVERLAY_PORTS": "${sourceDir}/cmake/ports",
"VCPKG_MANIFEST_MODE": "ON",
"VCPKG_INSTALL_OPTIONS": "--allow-unsupported",
"CMAKE_EXPORT_COMPILE_COMMANDS": "ON"
}
},
{
"name": "_ninja",
"hidden": true,
"generator": "Ninja",
"cacheVariables": {
"CMAKE_MAKE_PROGRAM": "ninja"
}
},
{
"name": "_clang-cl-linux",
"hidden": true,
"cacheVariables": {
"VCPKG_TARGET_TRIPLET": "x64-llvm-mingw-static",
"VCPKG_CHAINLOAD_TOOLCHAIN_FILE": "${sourceDir}/cmake/toolchains/clang-cl-cross.cmake",
"VCPKG_APPLOCAL_DEPS": "OFF"
}
},
{
"name": "_msvc",
"hidden": true,
"cacheVariables": {
"VCPKG_TARGET_TRIPLET": "x64-windows-static-md",
"VCPKG_HOST_TRIPLET": "x64-windows-static-md"
}
},
{
"name": "release-linux",
"displayName": "Release (Linux, clang-cl + xwin)",
"description": "Cross-compile for Skyrim SE/AE from Linux using clang-cl, lld-link and xwin headers",
"inherits": ["_vcpkg", "_ninja", "_clang-cl-linux"],
"binaryDir": "${sourceDir}/build/release-linux",
"cacheVariables": {
"CMAKE_BUILD_TYPE": "Release",
"I5_FRAME_PROBE": "OFF"
}
},
{
"name": "release-windows",
"displayName": "Release (Windows, MSVC + Ninja)",
"description": "Build for Skyrim SE/AE on Windows using MSVC with the Ninja generator",
"inherits": ["_vcpkg", "_ninja", "_msvc"],
"binaryDir": "${sourceDir}/build/msvc",
"cacheVariables": {
"CMAKE_BUILD_TYPE": "Release",
"I5_FRAME_PROBE": "OFF"
}
},
{
"name": "probe-linux",
"displayName": "Probe (Linux, clang-cl cross)",
"description": "Cross-compile for Skyrim SE/AE from Linux using clang-cl, lld-link and xwin headers, with the per-frame spike probe built in",
"inherits": ["_vcpkg", "_ninja", "_clang-cl-linux"],
"binaryDir": "${sourceDir}/build/probe-linux",
"cacheVariables": {
"CMAKE_BUILD_TYPE": "Release",
"I5_FRAME_PROBE": "ON"
}
},
{
"name": "tidy-windows",
"displayName": "Tidy (Windows, MSVC + Ninja)",
"description": "Configure-only preset for running clang-tidy on Windows with MSVC headers",
"inherits": ["_vcpkg", "_ninja", "_msvc"],
"binaryDir": "${sourceDir}/build/tidy",
"cacheVariables": {
"CMAKE_BUILD_TYPE": "Release",
"CMAKE_DISABLE_PRECOMPILE_HEADERS": "ON",
"I5_FRAME_PROBE": "ON"
}
},
{
"name": "test-windows",
"displayName": "Test (Windows, MSVC + Ninja)",
"description": "Build and run unit tests on Windows with MSVC",
"inherits": ["_vcpkg", "_ninja", "_msvc"],
"binaryDir": "${sourceDir}/build/test-windows",
"cacheVariables": {
"CMAKE_BUILD_TYPE": "Release",
"PLUGIN_TESTS_ONLY": "ON",
"VCPKG_MANIFEST_FEATURES": "tests"
}
},
{
"name": "test-linux",
"displayName": "Test (Linux, native Catch2)",
"description": "Build and run unit tests natively on Linux using the system Catch2 (no vcpkg/cross-compile; pure logic only)",
"inherits": ["_ninja"],
"binaryDir": "${sourceDir}/build/test-linux",
"cacheVariables": {
"CMAKE_BUILD_TYPE": "Debug",
"PLUGIN_TESTS_ONLY": "ON",
"CMAKE_EXPORT_COMPILE_COMMANDS": "ON"
}
}
],
"buildPresets": [
{
"name": "release-linux",
"displayName": "Release (Linux)",
"configurePreset": "release-linux"
},
{
"name": "release-windows",
"displayName": "Release (Windows)",
"configurePreset": "release-windows"
},
{
"name": "probe-linux",
"displayName": "Probe (Linux)",
"configurePreset": "probe-linux"
},
{
"name": "deploy",
"displayName": "Deploy to mod manager",
"configurePreset": "release-linux",
"targets": ["deploy"]
},
{
"name": "deploy-probe",
"displayName": "Deploy probe build to mod manager",
"configurePreset": "probe-linux",
"targets": ["deploy"]
},
{
"name": "test-windows",
"displayName": "Test (Windows)",
"configurePreset": "test-windows"
},
{
"name": "test-linux",
"displayName": "Test (Linux)",
"configurePreset": "test-linux"
}
],
"testPresets": [
{
"name": "test-windows",
"displayName": "Test (Windows)",
"configurePreset": "test-windows",
"output": {
"outputOnFailure": true
}
},
{
"name": "test-linux",
"displayName": "Test (Linux)",
"configurePreset": "test-linux",
"output": {
"outputOnFailure": true
}
}
],
"packagePresets": [],
"workflowPresets": [
{
"name": "deploy",
"displayName": "Build & Deploy to mod manager",
"steps": [
{ "type": "configure", "name": "release-linux" },
{ "type": "build", "name": "deploy" }
]
},
{
"name": "deploy-probe",
"displayName": "Build & Deploy probe build to mod manager",
"steps": [
{ "type": "configure", "name": "probe-linux" },
{ "type": "build", "name": "deploy-probe" }
]
}
]
}