-
Notifications
You must be signed in to change notification settings - Fork 125
Expand file tree
/
Copy pathCMakePresets.json
More file actions
234 lines (234 loc) · 8.84 KB
/
CMakePresets.json
File metadata and controls
234 lines (234 loc) · 8.84 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
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
{
"version": 3,
"configurePresets": [
{
"name": "base",
"description": "For more information: http://aka.ms/cmakepresetsvs",
"hidden": true,
"generator": "Ninja",
"binaryDir": "${sourceDir}/out/${presetName}/build/",
"installDir": "${sourceDir}/out/${presetName}/install/",
"environment": {
"VCPKG_FEATURE_FLAGS": "manifests,versions,binarycaching,registries"
},
"cacheVariables": {
"CMAKE_CONFIGURE_TYPE": "${presetName}",
"BBL_RELEASE_TO_PUBLIC": "1",
"CMAKE_INSTALL_PREFIX": "./OrcaSlicer",
"GENERATE_ORCA_HEADER": "OFF"
},
"condition": {
"type": "equals",
"lhs": "${hostSystemName}",
"rhs": "Windows"
}
},
{
"name": "x64-debug",
"displayName": "x64 Debug",
"description": "Sets debug build type and x64 arch",
"inherits": "base",
"cacheVariables": {
"CMAKE_BUILD_TYPE": "Debug"
}
},
{
"name": "x64-release",
"displayName": "x64 Release",
"description": "Sets release build type",
"inherits": "x64-debug",
"cacheVariables": {
"CMAKE_BUILD_TYPE": "Release"
}
},
{
"name": "weiyusuo-relwithdeb",
"displayName": "weiyusuo-debug",
"description": "Sets release build type",
"inherits": "x64-release",
"cacheVariables": {
"CMAKE_BUILD_TYPE": "RelWithDebInfo",
"CMAKE_PREFIX_PATH": "${sourceDir}/deps/build/OrcaSlicer_dep/usr/local/",
"CX_DEBUG": "1",
"CMAKE_EXPORT_COMPILE_COMMANDS":"1",
"BOOST_HAS_THREADS": "1",
"CMAKE_C_COMPILER_LAUNCHER":"ccache",
"CMAKE_CXX_COMPILER_LAUNCHER":"ccache"
}
},
{
"name": "weiyusuo-release",
"displayName": "weiyusuo-release",
"description": "Sets release build type",
"inherits": "x64-release",
"cacheVariables": {
"CMAKE_BUILD_TYPE": "Release",
"CMAKE_PREFIX_PATH": "${sourceDir}/deps/build/OrcaSlicer_dep/usr/local/",
"CX_DEBUG": "1",
"CMAKE_EXPORT_COMPILE_COMMANDS":"1",
"BOOST_HAS_THREADS": "1",
"CMAKE_C_COMPILER_LAUNCHER":"ccache",
"CMAKE_CXX_COMPILER_LAUNCHER":"ccache"
}
},
{
"name": "x86-debug",
"displayName": "x86 Debug ",
"description": "Sets debug build type and x86 arch",
"inherits": "base",
"architecture": {
"value": "x86",
"strategy": "external"
},
"cacheVariables": {
"CMAKE_BUILD_TYPE": "Debug"
}
},
{
"name": "x86-release",
"displayName": "x86 Release",
"description": "Sets release build type",
"inherits": "x86-debug",
"cacheVariables": {
"CMAKE_BUILD_TYPE": "Release"
}
},
{
"name": "linux-debug",
"displayName": "Linux Debug",
"description": "Sets GCC",
"inherits": "base",
"cacheVariables": {
"CMAKE_C_COMPILER": "gcc",
"CMAKE_CXX_COMPILER": "g++",
"CMAKE_BUILD_TYPE": "Debug"
},
"condition": {
"type": "equals",
"lhs": "${hostSystemName}",
"rhs": "Linux"
},
"vendor": {
"microsoft.com/VisualStudioRemoteSettings/CMake/1.0": {
"sourceDir": "$env{HOME}/.vs/$ms{projectDirName}",
"copyAdditionalIncludeDirectoriesList": [
"$env{HOME}/.vs/box2d-lite-actions/out/build/linux-debug/vcpkg_installed/x64-linux/include"
]
}
}
},
{
"name": "linux-release",
"displayName": "Linux Release",
"description": "Sets release build type",
"inherits": "linux-debug",
"cacheVariables": {
"CMAKE_BUILD_TYPE": "RelWithDebInfo",
"CMAKE_PREFIX_PATH": "${sourceDir}/deps/build/destdir/usr/local/",
"CMAKE_EXPORT_COMPILE_COMMANDS":"1",
"CMAKE_CXX_COMPILER": "clang++",
"CMAKE_C_COMPILER": "clang",
"CMAKE_C_COMPILER_LAUNCHER": "ccache",
"CMAKE_CXX_COMPILER_LAUNCHER": "ccache",
"SLIC3R_STATIC":"1",
"SLIC3R_GTK":"3",
"CMAKE_CXX_FLAGS": "-fno-omit-frame-pointer"
}
},
{
"name": "Clang_Mac",
"displayName": "mac_debug",
"description": "使用编译器: C = /usr/bin/clang, CXX = /usr/bin/clang++",
"binaryDir": "${sourceDir}/out/${presetName}/build",
"installDir": "${sourceDir}/out/${presetName}/install/",
"generator": "Ninja",
"cacheVariables": {
"CMAKE_C_COMPILER": "/usr/bin/clang",
"CMAKE_CXX_COMPILER": "/usr/bin/clang++",
"CMAKE_BUILD_TYPE": "Debug",
"CMAKE_CONFIGURE_TYPE": "${presetName}",
"BBL_RELEASE_TO_PUBLIC": "1",
"CMAKE_INSTALL_PREFIX": "./CrealityPrint",
"CMAKE_PREFIX_PATH": "${sourceDir}/deps/build_x86_64/dep_x86_64/usr/local/",
"GENERATE_ORCA_HEADER": "OFF",
"CMAKE_MACOSX_RPATH": "ON",
"CMAKE_OSX_DEPLOYMENT_TARGET": "11.3",
"CMAKE_MACOSX_BUNDLE": "ON"
}
},
{
"name": "Clang_Mac_arm64",
"displayName": "mac_debug_arm64",
"description": "使用编译器: C = /usr/bin/clang, CXX = /usr/bin/clang++",
"binaryDir": "${sourceDir}/out/${presetName}/build",
"installDir": "${sourceDir}/out/${presetName}/install/",
"generator": "Ninja",
"cacheVariables": {
"CMAKE_C_COMPILER": "/usr/bin/clang",
"LLVM_ENABLE_PROJECTS":"clang",
"LLVM_TARGETS_TO_BUILD":"arm64",
"CMAKE_CXX_COMPILER": "/usr/bin/clang++",
"CMAKE_C_COMPILER_LAUNCHER":"ccache",
"CMAKE_CXX_COMPILER_LAUNCHER":"ccache",
"CMAKE_BUILD_TYPE": "Release",
"CMAKE_CONFIGURE_TYPE": "${presetName}",
"BBL_RELEASE_TO_PUBLIC": "1",
"CMAKE_INSTALL_PREFIX": "./CrealityPrint",
"CMAKE_PREFIX_PATH": "/Users/qprj/work/DEPS_LIB_DIR/usr/local/",
"GENERATE_ORCA_HEADER": "OFF",
"CMAKE_MACOSX_RPATH": "ON",
"CMAKE_OSX_DEPLOYMENT_TARGET": "11.3",
"CMAKE_MACOSX_BUNDLE": "ON"
}
},
{
"name": "mac_clang",
"displayName": "自定义配置预设",
"description": "使用编译器: C = /usr/bin/clang, CXX = /usr/bin/clang++",
"binaryDir": "${sourceDir}/out/build/${presetName}",
"cacheVariables": {
"CMAKE_C_COMPILER": "/usr/bin/clang",
"CMAKE_CXX_COMPILER": "/usr/bin/clang++",
"CMAKE_BUILD_TYPE": "Debug",
"CMAKE_CONFIGURE_TYPE": "${presetName}",
"BBL_RELEASE_TO_PUBLIC": "1",
"CMAKE_INSTALL_PREFIX": "./CrealityPrint",
"CMAKE_PREFIX_PATH": "${sourceDir}/deps/build_x86_x64/build_x86_x64/usr/local/",
"GENERATE_ORCA_HEADER": "OFF",
"CMAKE_MACOSX_RPATH": "ON",
"CMAKE_OSX_DEPLOYMENT_TARGET": "11.3",
"CMAKE_MACOSX_BUNDLE": "ON"
}
}
],
"buildPresets": [
{
"name": "x64-debug",
"displayName": "x64 Debug",
"configurePreset": "x64-debug",
"description": "Windows Debug Build"
},
{
"name": "x64-release",
"displayName": "x64 Release",
"configurePreset": "x64-release",
"inherits": "x64-debug",
"description": "Windows Release Build"
}
],
"testPresets": [
{
"name": "core-test-linux",
"description": "Enable output on failure",
"configurePreset": "linux-debug",
"output": {
"outputOnFailure": true
}
},
{
"name": "core-test-windows",
"inherits": "core-test-linux",
"configurePreset": "x64-debug"
}
]
}