| 1 | { |
| 2 | "version": 3, |
| 3 | "configurePresets": [ |
| 4 | { |
| 5 | "name": "core", |
| 6 | "displayName": "Core", |
| 7 | "description": "Core build for embedded systems", |
| 8 | "binaryDir": "${sourceDir}/build-core", |
| 9 | "cacheVariables": { |
| 10 | "CMAKE_BUILD_TYPE": "MinSizeRel", |
| 11 | "CMAKE_INSTALL_PREFIX": "${sourceDir}/build/dist", |
| 12 | "LibBGCode_BUILD_COMPONENT_Binarize": false, |
| 13 | "LibBGCode_BUILD_COMPONENT_Binarize_Convert": false |
| 14 | } |
| 15 | }, |
| 16 | { |
| 17 | "name": "default", |
| 18 | "displayName": "Default", |
| 19 | "description": "Default build for any desktop OS", |
| 20 | "binaryDir": "${sourceDir}/build-default", |
| 21 | "cacheVariables": { |
| 22 | "CMAKE_BUILD_TYPE": "Release", |
| 23 | "CMAKE_INSTALL_PREFIX": "${sourceDir}/build/dist", |
| 24 | "LibBGCode_DEPS_PRESET": "default", |
| 25 | "CMAKE_PREFIX_PATH": { |
| 26 | "type": "PATH", |
| 27 | "value": "${sourceDir}/deps/build-default/destdir/usr/local" |
| 28 | } |
| 29 | } |
| 30 | }, |
| 31 | { |
| 32 | "name": "wasm", |
| 33 | "displayName": "WebAssembly module", |
| 34 | "description": "WebAssembly build which only works with emscripten compiler", |
| 35 | "binaryDir": "${sourceDir}/build-wasm", |
| 36 | "cacheVariables": { |
| 37 | "CMAKE_BUILD_TYPE": "MinSizeRel", |
| 38 | "CMAKE_INSTALL_PREFIX": "${sourceDir}/build/dist", |
| 39 | "LibBGCode_BUILD_CMD_TOOL": false, |
| 40 | "LibBGCode_DEPS_PRESET": "wasm", |
| 41 | "CMAKE_FIND_ROOT_PATH": { |
| 42 | "type": "PATH", |
| 43 | "value": "${sourceDir}/deps/build-wasm/destdir/usr/local" |
| 44 | } |
| 45 | } |
| 46 | } |
| 47 | ], |
| 48 | "buildPresets": [ |
| 49 | { |
| 50 | "name": "core", |
| 51 | "configurePreset": "core", |
| 52 | "configuration": "MinSizeRel" |
| 53 | }, |
| 54 | { |
| 55 | "name": "default", |
| 56 | "configurePreset": "default", |
| 57 | "configuration": "Release" |
| 58 | }, |
| 59 | { |
| 60 | "name": "wasm", |
| 61 | "configurePreset": "wasm", |
| 62 | "configuration": "MinSizeRel" |
| 63 | } |
| 64 | ] |
| 65 | } |