|
| 1 | +{ |
| 2 | + "version": 8, |
| 3 | + "configurePresets": [ |
| 4 | + { |
| 5 | + "name": "base_configure", |
| 6 | + "displayName": "Base Configure", |
| 7 | + "description": "Base configuration for all presets", |
| 8 | + "generator": "Ninja", |
| 9 | + "binaryDir": "${sourceDir}/out/build/${presetName}", |
| 10 | + "installDir": "${sourceDir}/out/install/${presetName}", |
| 11 | + "cacheVariables": { |
| 12 | + "CMAKE_EXPORT_COMPILE_COMMANDS": true |
| 13 | + } |
| 14 | + }, |
| 15 | + { |
| 16 | + "name": "gcc-linux_x64", |
| 17 | + "displayName": "GCC 13.2.1 x86_64-pc-linux-gnu", |
| 18 | + "description": "Using compilers: C = /usr/bin/gcc, CXX = /usr/bin/g++", |
| 19 | + "inherits": [ |
| 20 | + "base_configure" |
| 21 | + ], |
| 22 | + "cacheVariables": { |
| 23 | + "CMAKE_C_COMPILER": "/usr/bin/gcc", |
| 24 | + "CMAKE_CXX_COMPILER": "/usr/bin/g++", |
| 25 | + "CMAKE_C_FLAGS": "-march=native -Wp,-D_FORTIFY_SOURCE=2", |
| 26 | + "CMAKE_CXX_FLAGS": "-march=native -Wp,-D_FORTIFY_SOURCE=2", |
| 27 | + "CMAKE_BUILD_TYPE": "Release" |
| 28 | + } |
| 29 | + }, |
| 30 | + { |
| 31 | + "name": "clang-linux_x64", |
| 32 | + "displayName": "Clang 16.0.6 x86_64-pc-linux-gnu", |
| 33 | + "description": "Using compilers: C = /usr/bin/clang, CXX = /usr/bin/clang++", |
| 34 | + "inherits": [ |
| 35 | + "base_configure" |
| 36 | + ], |
| 37 | + "cacheVariables": { |
| 38 | + "CMAKE_C_COMPILER": "/usr/bin/clang", |
| 39 | + "CMAKE_CXX_COMPILER": "/usr/bin/clang++", |
| 40 | + "CMAKE_C_FLAGS": "-march=native -Wp,-D_FORTIFY_SOURCE=2", |
| 41 | + "CMAKE_CXX_FLAGS": "-march=native -Wp,-D_FORTIFY_SOURCE=2", |
| 42 | + "CMAKE_BUILD_TYPE": "Release" |
| 43 | + } |
| 44 | + } |
| 45 | + ], |
| 46 | + "buildPresets": [ |
| 47 | + { |
| 48 | + "name": "base_build", |
| 49 | + "displayName": "Base Build", |
| 50 | + "configurePreset": "base_configure", |
| 51 | + "targets": "all", |
| 52 | + "jobs": 0 |
| 53 | + }, |
| 54 | + { |
| 55 | + "name": "gcc-linux_x64", |
| 56 | + "displayName": "GCC 13.2.1 x86_64-pc-linux-gnu", |
| 57 | + "configurePreset": "gcc-linux_x64", |
| 58 | + "inheritConfigureEnvironment": true, |
| 59 | + "inherits": [ |
| 60 | + "base_build" |
| 61 | + ] |
| 62 | + }, |
| 63 | + { |
| 64 | + "name": "clang-linux_x64", |
| 65 | + "displayName": "Clang 16.0.6 x86_64-pc-linux-gnu", |
| 66 | + "configurePreset": "clang-linux_x64", |
| 67 | + "inheritConfigureEnvironment": true, |
| 68 | + "inherits": [ |
| 69 | + "base_build" |
| 70 | + ] |
| 71 | + } |
| 72 | + ], |
| 73 | + "testPresets": [ |
| 74 | + { |
| 75 | + "name": "base_test", |
| 76 | + "displayName": "Base Test", |
| 77 | + "configurePreset": "base_configure", |
| 78 | + "output": { |
| 79 | + "outputOnFailure": true |
| 80 | + }, |
| 81 | + "execution": { |
| 82 | + "jobs": 0 |
| 83 | + } |
| 84 | + }, |
| 85 | + { |
| 86 | + "name": "gcc-linux_x64", |
| 87 | + "displayName": "GCC 13.2.1 x86_64-pc-linux-gnu", |
| 88 | + "configurePreset": "gcc-linux_x64", |
| 89 | + "inheritConfigureEnvironment": true, |
| 90 | + "inherits": [ |
| 91 | + "base_test" |
| 92 | + ] |
| 93 | + }, |
| 94 | + { |
| 95 | + "name": "clang-linux_x64", |
| 96 | + "displayName": "Clang 16.0.6 x86_64-pc-linux-gnu", |
| 97 | + "configurePreset": "clang-linux_x64", |
| 98 | + "inheritConfigureEnvironment": true, |
| 99 | + "inherits": [ |
| 100 | + "base_test" |
| 101 | + ] |
| 102 | + } |
| 103 | + ] |
| 104 | +} |
0 commit comments