forked from Kitware/VTK
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCMakePresets.json
More file actions
148 lines (148 loc) · 5.58 KB
/
Copy pathCMakePresets.json
File metadata and controls
148 lines (148 loc) · 5.58 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
{
"version": 6,
"configurePresets": [
{
"name": "default",
"displayName": "Default config",
"description": "Default release build of VTK with no other variables set",
"cacheVariables": {
"CMAKE_BUILD_TYPE": { "type": "STRING", "value": "Release" }
}
},
{
"name": "dev",
"displayName": "Developer config",
"description": "Full feature developer build in debug mode and with testing activated",
"cacheVariables": {
"CMAKE_BUILD_TYPE": { "type": "STRING", "value": "Debug" },
"VTK_WRAP_PYTHON": { "type": "BOOL", "value": "ON" },
"VTK_DEBUG_LEAKS": { "type": "BOOL", "value": "ON" },
"VTK_BUILD_TESTING": { "type": "STRING", "value": "WANT" },
"VTK_USE_MPI": { "type": "BOOL", "value": "ON" },
"VTK_EXTRA_COMPILER_WARNINGS": { "type": "BOOL", "value": "ON" },
"VTK_BUILD_EXAMPLES": { "type": "BOOL", "value": "ON" },
"VTK_ENABLE_EXTRA_BUILD_WARNINGS": { "type": "BOOL", "value": "ON" },
"VTK_GENERATE_SPDX": { "type": "BOOL", "value": "ON" },
"VTK_LINKER_FATAL_WARNINGS": { "type": "BOOL", "value": "ON" }
}
},
{
"name": "mini",
"displayName": "Minimalist",
"description": "Minimalist release build for a fast build of VTK",
"cacheVariables": {
"CMAKE_BUILD_TYPE": { "type": "STRING", "value": "Release" },
"VTK_GROUP_ENABLE_Imaging": { "type": "STRING", "value": "DONT_WANT" },
"VTK_GROUP_ENABLE_Parallel": { "type": "STRING", "value": "DONT_WANT" },
"VTK_GROUP_ENABLE_Qt": { "type": "STRING", "value": "DONT_WANT" },
"VTK_GROUP_ENABLE_StandAlone": { "type": "STRING", "value": "DONT_WANT" },
"VTK_GROUP_ENABLE_Views": { "type": "STRING", "value": "DONT_WANT" },
"VTK_GROUP_ENABLE_Web": { "type": "STRING", "value": "DONT_WANT" },
"VTK_SMP_ENABLE_STDTHREAD": { "type": "BOOL", "value": "OFF" }
}
},
{
"name": "wasm",
"hidden": true,
"description": "Common settings for the Emscripten cross builds",
"generator": "Ninja",
"binaryDir": "${sourceDir}/out/build/${presetName}",
"installDir": "${sourceDir}/out/install/${presetName}",
"toolchainFile": "${sourceDir}/CMake/wasm/vtkEmscriptenToolchain.cmake",
"cacheVariables": {
"CMAKE_BUILD_TYPE": { "type": "STRING", "value": "Release" },
"CMAKE_EXPORT_COMPILE_COMMANDS": { "type": "BOOL", "value": "ON" },
"BUILD_SHARED_LIBS": { "type": "BOOL", "value": "OFF" },
"VTK_EMSCRIPTEN_PRELOAD_CACHE": { "type": "BOOL", "value": "ON" },
"VTK_BUILD_TYPES_JSON": { "type": "BOOL", "value": "ON" },
"VTK_ENABLE_WEBGPU": { "type": "BOOL", "value": "ON" },
"VTK_WRAP_SERIALIZATION": { "type": "BOOL", "value": "ON" }
}
},
{
"name": "wasm32",
"inherits": "wasm",
"displayName": "WebAssembly 32-bit",
"description": "Release build for wasm32-emscripten. Installs an Emscripten SDK under .gitlab/emsdk if none is found."
},
{
"name": "wasm64",
"inherits": "wasm",
"displayName": "WebAssembly 64-bit",
"description": "Release build for wasm64-emscripten, which raises the addressable memory limit from 4GB to 16GB",
"cacheVariables": {
"VTK_WEBASSEMBLY_64_BIT": { "type": "BOOL", "value": "ON" }
}
},
{
"name": "wasm32-testing",
"inherits": "wasm32",
"displayName": "WebAssembly 32-bit with testing",
"description": "wasm32 build with the unit tests enabled. Set VTK_TESTING_WASM_ENGINE to the browser that should run them.",
"cacheVariables": {
"VTK_BUILD_TESTING": { "type": "STRING", "value": "WANT" },
"VTK_TESTING_WASM_ENGINE": { "type": "FILEPATH", "value": "$env{VTK_TESTING_WASM_ENGINE}" }
}
},
{
"name": "wasm64-testing",
"inherits": "wasm64",
"displayName": "WebAssembly 64-bit with testing",
"description": "wasm64 build with the unit tests enabled. Set VTK_TESTING_WASM_ENGINE to the browser that should run them.",
"cacheVariables": {
"VTK_BUILD_TESTING": { "type": "STRING", "value": "WANT" },
"VTK_TESTING_WASM_ENGINE": { "type": "FILEPATH", "value": "$env{VTK_TESTING_WASM_ENGINE}" }
}
}
],
"buildPresets": [
{ "name": "wasm32", "configurePreset": "wasm32" },
{ "name": "wasm64", "configurePreset": "wasm64" },
{ "name": "wasm32-testing", "configurePreset": "wasm32-testing" },
{ "name": "wasm64-testing", "configurePreset": "wasm64-testing" }
],
"testPresets": [
{
"name": "wasm32-testing",
"configurePreset": "wasm32-testing",
"output": { "outputOnFailure": true }
},
{
"name": "wasm64-testing",
"configurePreset": "wasm64-testing",
"output": { "outputOnFailure": true }
}
],
"workflowPresets": [
{
"name": "wasm32",
"steps": [
{ "type": "configure", "name": "wasm32" },
{ "type": "build", "name": "wasm32" }
]
},
{
"name": "wasm64",
"steps": [
{ "type": "configure", "name": "wasm64" },
{ "type": "build", "name": "wasm64" }
]
},
{
"name": "wasm32-testing",
"steps": [
{ "type": "configure", "name": "wasm32-testing" },
{ "type": "build", "name": "wasm32-testing" },
{ "type": "test", "name": "wasm32-testing" }
]
},
{
"name": "wasm64-testing",
"steps": [
{ "type": "configure", "name": "wasm64-testing" },
{ "type": "build", "name": "wasm64-testing" },
{ "type": "test", "name": "wasm64-testing" }
]
}
]
}