Skip to content

Commit 1d7e2a9

Browse files
Create cmake-variants.json [ci skip] (CppMicroServices#1033) (CppMicroServices#1155)
[ci skip] Support VS code's CMake Tools extension, making it easier to configure, build, and test the CppMicroServices project for various build configurations. Documentation for how to customize this file is found at https://github.com/microsoft/vscode-cmake-tools Signed-off-by: The MathWorks, Inc. <jdicleme@mathworks.com> Co-authored-by: Jeff DiClemente <jeffdiclemente@users.noreply.github.com>
1 parent bba7438 commit 1d7e2a9

1 file changed

Lines changed: 186 additions & 0 deletions

File tree

cmake-variants.json

Lines changed: 186 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,186 @@
1+
{
2+
"buildType": {
3+
"default": "debug",
4+
"choices": {
5+
"debug": {
6+
"short": "Debug",
7+
"long": "Include debug information",
8+
"buildType": "Debug"
9+
},
10+
"release": {
11+
"short": "Release",
12+
"long": "Optimize for release",
13+
"buildType": "Release"
14+
}
15+
}
16+
},
17+
"linkage": {
18+
"default" : "shared",
19+
"choices": {
20+
"shared" : {
21+
"short": "Shared Libraries",
22+
"long": "Build Shared Libraries",
23+
"linkage": "shared"
24+
},
25+
"static" : {
26+
"short": "Static Libraries",
27+
"long": "Build Static Libraries",
28+
"linkage": "static"
29+
}
30+
}
31+
},
32+
"threading": {
33+
"default" : "with_threading",
34+
"choices": {
35+
"with_threading" : {
36+
"short": "Multi-Threaded",
37+
"long": "Build with multi-threading support",
38+
"settings": {
39+
"US_ENABLE_THREADING_SUPPORT": "ON"
40+
}
41+
},
42+
"no_threading": {
43+
"short": "Single Threaded",
44+
"long": "Build Single Threaded",
45+
"settings": {
46+
"US_ENABLE_THREADING_SUPPORT": "OFF"
47+
}
48+
}
49+
}
50+
},
51+
"testing": {
52+
"default": "with_testing",
53+
"choices": {
54+
"with_testing": {
55+
"short": "Testing",
56+
"long": "Enable Testing",
57+
"settings": {
58+
"US_BUILD_TESTING": "ON"
59+
}
60+
},
61+
"no_testing": {
62+
"short": "No Testing",
63+
"long": "Disable Testing",
64+
"settings": {
65+
"US_BUILD_TESTING": "OFF"
66+
}
67+
}
68+
}
69+
},
70+
"asan" : {
71+
"default" : "no_asan",
72+
"choices": {
73+
"no_asan": {
74+
"short": "No Address Sanitizer",
75+
"long": "Disable Address Sanitizer",
76+
"settings": {
77+
"US_ENABLE_ASAN" : "NO"
78+
}
79+
},
80+
"with_asan": {
81+
"short": "Address Sanitizer",
82+
"long": "Enable Address Sanitizer",
83+
"settings": {
84+
"US_ENABLE_ASAN" : "YES"
85+
}
86+
}
87+
}
88+
},
89+
"tsan" : {
90+
"default" : "no_tsan",
91+
"choices": {
92+
"no_tsan": {
93+
"short": "No Thread Sanitizer",
94+
"long": "Disable Thread Sanitizer",
95+
"settings": {
96+
"US_ENABLE_TSAN" : "NO"
97+
}
98+
},
99+
"with_tsan": {
100+
"short": "Thread Sanitizer",
101+
"long": "Enable Thread Sanitizer",
102+
"settings": {
103+
"US_ENABLE_TSAN" : "YES"
104+
}
105+
}
106+
}
107+
},
108+
"ubsan" : {
109+
"default" : "no_ubsan",
110+
"choices": {
111+
"no_ubsan": {
112+
"short": "No Undefined Behavior Sanitizer",
113+
"long": "Disable Undefined Behavior Sanitizer",
114+
"settings": {
115+
"US_ENABLE_UBSAN" : "NO"
116+
}
117+
},
118+
"with_ubsan": {
119+
"short": "Undefined Behavior Sanitizer",
120+
"long": "Enable Undefined Behavior Sanitizer",
121+
"settings": {
122+
"US_ENABLE_UBSAN" : "YES"
123+
}
124+
}
125+
}
126+
},
127+
"deterministic" : {
128+
"default" : "non_deterministic",
129+
"choices": {
130+
"non_deterministic": {
131+
"short": "No Deterministic Builds",
132+
"long": "Disable Deterministic Builds",
133+
"settings": {
134+
"US_USE_DETERMINISTIC_BUNDLE_BUILDS" : "NO"
135+
}
136+
},
137+
"deterministic": {
138+
"short": "Deterministic Builds",
139+
"long": "Enable Deterministic Builds",
140+
"settings": {
141+
"US_USE_DETERMINISTIC_BUNDLE_BUILDS" : "YES"
142+
}
143+
}
144+
}
145+
},
146+
"examples": {
147+
"default" : "no_examples",
148+
"choices": {
149+
"no_examples" : {
150+
"short": "No Examples",
151+
"long": "Disable Examples",
152+
"settings": {
153+
"US_BUILD_EXAMPLES": "OFF"
154+
}
155+
},
156+
"with_examples": {
157+
"short": "Examples",
158+
"long": "Build Examples",
159+
"settings": {
160+
"US_BUILD_EXAMPLES": "ON"
161+
}
162+
}
163+
}
164+
},
165+
"documentation": {
166+
"default" : "no_doc",
167+
"choices": {
168+
"no_doc" : {
169+
"short": "No Documentation",
170+
"long": "Do not build the documentation",
171+
"settings": {
172+
"US_BUILD_DOC_HTML": "OFF",
173+
"US_BUILD_DOC_MAN": "OFF"
174+
}
175+
},
176+
"with_doc": {
177+
"short": "Documentation",
178+
"long": "Build the documentation",
179+
"settings": {
180+
"US_BUILD_DOC_HTML": "ON",
181+
"US_BUILD_DOC_MAN": "ON"
182+
}
183+
}
184+
}
185+
}
186+
}

0 commit comments

Comments
 (0)