3939 "value" : true
4040 }
4141 }
42+ },
43+ {
44+ "name" : " wasi" ,
45+ "displayName" : " Ninja Clang WASM32/WASI" ,
46+ "description" : " Configure and generate Ninja project files for all configurations, using clang and targetting wasm32 and wasi" ,
47+ "binaryDir" : " ${sourceDir}/builds/${presetName}" ,
48+ "generator" : " Ninja Multi-Config" ,
49+ "cacheVariables" : {
50+ "CMAKE_EXPORT_COMPILE_COMMANDS" : {
51+ "type" : " boolean" ,
52+ "value" : true
53+ },
54+ "CLAP_BUILD_TESTS" : {
55+ "type" : " boolean" ,
56+ "value" : true
57+ },
58+ "CMAKE_TOOLCHAIN_FILE" : " ${sourceDir}/cmake/toolchains/clang-wasm32-wasi.cmake"
59+ }
60+ },
61+ {
62+ "name" : " emscripten" ,
63+ "displayName" : " emscripten" ,
64+ "description" : " Configure and generate Ninja project files for all configurations, using emscripten" ,
65+ "binaryDir" : " ${sourceDir}/builds/${presetName}" ,
66+ "generator" : " Ninja Multi-Config" ,
67+ "cacheVariables" : {
68+ "CMAKE_EXPORT_COMPILE_COMMANDS" : {
69+ "type" : " boolean" ,
70+ "value" : true
71+ },
72+ "CLAP_BUILD_TESTS" : {
73+ "type" : " boolean" ,
74+ "value" : true
75+ },
76+ "CMAKE_TOOLCHAIN_FILE" : " ${sourceDir}/cmake/toolchains/emscripten.cmake"
77+ }
4278 }
4379 ],
4480 "buildPresets" : [
4884 "displayName" : " Build ninja-release" ,
4985 "description" : " Build ninja Release configuration" ,
5086 "configuration" : " RelWithDebInfo" ,
51- "targets" : [" clap-tests" ]
87+ "targets" : [" clap-tests" , " clap-plugin-template " ]
5288 },
5389 {
5490 "name" : " msvc-release" ,
5591 "configurePreset" : " msvc" ,
5692 "displayName" : " Build msvc-release" ,
5793 "description" : " Build msvc Release configuration" ,
5894 "configuration" : " RelWithDebInfo" ,
59- "targets" : [" clap-tests" ]
95+ "targets" : [" clap-tests" , " clap-plugin-template" ]
96+ },
97+ {
98+ "name" : " wasi-release" ,
99+ "configurePreset" : " wasi" ,
100+ "displayName" : " Build wasi-release" ,
101+ "description" : " Build wasi Release configuration" ,
102+ "configuration" : " RelWithDebInfo" ,
103+ "targets" : [" clap-tests" , " clap-plugin-template" ]
104+ },
105+ {
106+ "name" : " emscripten-release" ,
107+ "configurePreset" : " emscripten" ,
108+ "displayName" : " Build emscripten-release" ,
109+ "description" : " Build emscripten Release configuration" ,
110+ "configuration" : " RelWithDebInfo" ,
111+ "targets" : [" clap-tests" , " clap-plugin-template" ]
60112 }
61113 ],
62114 "testPresets" : [
71123 "configuration" : " RelWithDebInfo"
72124 }
73125 ]
74- }
126+ }
0 commit comments