-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathCMakePresets.json
More file actions
165 lines (165 loc) · 5.29 KB
/
Copy pathCMakePresets.json
File metadata and controls
165 lines (165 loc) · 5.29 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
{
"version": 3,
"cmakeMinimumRequired": {
"major": 3,
"minor": 21,
"patch": 0
},
"configurePresets": [
{
"name": "host-base",
"displayName": "Host Build (Base)",
"description": "Common settings for native cortext builds",
"hidden": true,
"generator": "Unix Makefiles",
"cacheVariables": {
"BUILD_WASM": "OFF",
"BUILD_TESTING": "ON"
}
},
{
"name": "host-debug",
"displayName": "Host Debug",
"description": "Debug build of the cortext C++ library",
"inherits": "host-base",
"binaryDir": "${sourceDir}/build/debug",
"cacheVariables": {
"CMAKE_BUILD_TYPE": "Debug",
"CORTEXT_WARNINGS_AS_ERRORS": "ON"
}
},
{
"name": "host-debug-examples",
"displayName": "Host Debug (Examples)",
"description": "Debug build including examples",
"inherits": "host-base",
"binaryDir": "${sourceDir}/build/debug-examples",
"cacheVariables": {
"CMAKE_BUILD_TYPE": "Debug",
"CORTEXT_WARNINGS_AS_ERRORS": "ON",
"CORTEXT_BUILD_EXAMPLES": "ON"
}
},
{
"name": "host-debug-tools",
"displayName": "Host Debug (Tools)",
"description": "Debug build including command-line tools",
"inherits": "host-base",
"binaryDir": "${sourceDir}/build/debug-tools",
"cacheVariables": {
"CMAKE_BUILD_TYPE": "Debug",
"CORTEXT_WARNINGS_AS_ERRORS": "ON",
"CORTEXT_BUILD_TOOLS": "ON"
}
},
{
"name": "host-release",
"displayName": "Host Release",
"description": "Optimized release build for native targets",
"inherits": "host-base",
"binaryDir": "${sourceDir}/build/release",
"cacheVariables": {
"CMAKE_BUILD_TYPE": "Release"
}
},
{
"name": "ffi-release",
"displayName": "FFI Release",
"description": "Release shared-library build for Python, Go, and JS/TS bindings",
"inherits": "host-base",
"binaryDir": "${sourceDir}/build/ffi-release",
"cacheVariables": {
"CMAKE_BUILD_TYPE": "Release",
"BUILD_TESTING": "OFF",
"BUILD_SHARED_LIBS": "ON"
}
},
{
"name": "ffi-release-node",
"displayName": "FFI Release (Node.js)",
"description": "Release shared-library build including the Node.js addon",
"inherits": "ffi-release",
"cacheVariables": {
"CORTEXT_BUILD_NODE_BINDINGS": "ON"
}
},
{
"name": "host-relwithdebinfo",
"displayName": "Host RelWithDebInfo",
"description": "Release build with debug symbols for profiling",
"inherits": "host-base",
"binaryDir": "${sourceDir}/build/relwithdebinfo",
"cacheVariables": {
"CMAKE_BUILD_TYPE": "RelWithDebInfo"
}
},
{
"name": "wasm",
"displayName": "WebAssembly Build",
"description": "Build cortext library for WebAssembly using Emscripten",
"binaryDir": "${sourceDir}/build-wasm",
"generator": "Unix Makefiles",
"toolchainFile": "${sourceDir}/cmake/EmscriptenToolchain.cmake",
"cacheVariables": {
"BUILD_WASM": "ON",
"CMAKE_BUILD_TYPE": "Release",
"BUILD_TESTING": "OFF",
"CORTEXT_ENABLE_AUDIO": "OFF",
"CORTEXT_ALLOW_UNSUPPORTED_TEXT_ONLY_BUILD": "ON"
}
}
],
"buildPresets": [
{
"name": "host-debug",
"configurePreset": "host-debug"
},
{
"name": "host-debug-examples",
"configurePreset": "host-debug-examples"
},
{
"name": "host-debug-tools",
"configurePreset": "host-debug-tools"
},
{
"name": "host-release",
"configurePreset": "host-release"
},
{
"name": "ffi-release",
"configurePreset": "ffi-release"
},
{
"name": "ffi-release-node",
"configurePreset": "ffi-release-node"
},
{
"name": "host-relwithdebinfo",
"configurePreset": "host-relwithdebinfo"
},
{
"name": "wasm",
"configurePreset": "wasm",
"configuration": "Release"
}
],
"testPresets": [
{
"name": "host-debug",
"displayName": "Host Debug Tests",
"configurePreset": "host-debug",
"output": {
"outputOnFailure": true
}
},
{
"name": "host-release",
"displayName": "Host Release Tests",
"configurePreset": "host-release",
"output": {
"outputOnFailure": true
}
}
]
}