|
| 1 | +{ |
| 2 | + "version": 3, |
| 3 | + "cmakeMinimumRequired": { |
| 4 | + "major": 3, |
| 5 | + "minor": |
| 6 | + }, |
| 7 | + "configurePresets": [ |
| 8 | + { |
| 9 | + "name": "base-release", |
| 10 | + "hidden": true, |
| 11 | + "description": "Base preset for release builds", |
| 12 | + "cacheVariables": { |
| 13 | + "CMAKE_BUILD_TYPE": "Release", |
| 14 | + "CMAKE_CXX_STANDARD": "17" |
| 15 | + } |
| 16 | + }, |
| 17 | + { |
| 18 | + "name": "base-debug", |
| 19 | + "hidden": true, |
| 20 | + "description": "Base preset for debug builds", |
| 21 | + "cacheVariables": { |
| 22 | + "CMAKE_BUILD_TYPE": "Debug", |
| 23 | + "CMAKE_CXX_STANDARD": "17" |
| 24 | + } |
| 25 | + }, |
| 26 | + { |
| 27 | + "name": "default", |
| 28 | + "inherits": "base-release", |
| 29 | + "displayName": "Default Configuration", |
| 30 | + "description": "Default build configuration", |
| 31 | + "binaryDir": "${sourceDir}/build/default" |
| 32 | + }, |
| 33 | + { |
| 34 | + "name": "cuda", |
| 35 | + "inherits": "base-release", |
| 36 | + "displayName": "CUDA Enabled", |
| 37 | + "description": "Build with CUDA support", |
| 38 | + "binaryDir": "${sourceDir}/build/cuda", |
| 39 | + "cacheVariables": { |
| 40 | + "IPC_TOOLKIT_WITH_CUDA": "ON" |
| 41 | + } |
| 42 | + }, |
| 43 | + { |
| 44 | + "name": "simd", |
| 45 | + "inherits": "base-release", |
| 46 | + "displayName": "SIMD Enabled", |
| 47 | + "description": "Build with SIMD optimizations", |
| 48 | + "binaryDir": "${sourceDir}/build/simd", |
| 49 | + "cacheVariables": { |
| 50 | + "IPC_TOOLKIT_WITH_SIMD": "ON" |
| 51 | + } |
| 52 | + }, |
| 53 | + { |
| 54 | + "name": "test", |
| 55 | + "inherits": "base-debug", |
| 56 | + "displayName": "Build for Testing", |
| 57 | + "description": "Build with unit tests enabled", |
| 58 | + "binaryDir": "${sourceDir}/build/test", |
| 59 | + "cacheVariables": { |
| 60 | + "IPC_TOOLKIT_WITH_CUDA": "ON", |
| 61 | + "IPC_TOOLKIT_BUILD_TESTS": "ON", |
| 62 | + "IPC_TOOLKIT_BUILD_PYTHON": "OFF" |
| 63 | + } |
| 64 | + }, |
| 65 | + { |
| 66 | + "name": "python", |
| 67 | + "inherits": "base-release", |
| 68 | + "displayName": "Python Bindings", |
| 69 | + "description": "Build with Python bindings enabled", |
| 70 | + "binaryDir": "${sourceDir}/build/python", |
| 71 | + "cacheVariables": { |
| 72 | + "IPC_TOOLKIT_BUILD_PYTHON": "ON", |
| 73 | + "IPC_TOOLKIT_BUILD_TESTS": "OFF", |
| 74 | + "IPC_TOOLKIT_WITH_SIMD": "OFF", |
| 75 | + "IPC_TOOLKIT_WITH_CUDA": "OFF" |
| 76 | + } |
| 77 | + }, |
| 78 | + { |
| 79 | + "name": "coverage", |
| 80 | + "inherits": "base-debug", |
| 81 | + "displayName": "Code Coverage", |
| 82 | + "description": "Build for code coverage", |
| 83 | + "binaryDir": "${sourceDir}/build/coverage", |
| 84 | + "cacheVariables": { |
| 85 | + "IPC_TOOLKIT_WITH_CODE_COVERAGE": "ON", |
| 86 | + "IPC_TOOLKIT_BUILD_TESTS": "ON", |
| 87 | + |
| 88 | + } |
| 89 | + }, |
| 90 | + { |
| 91 | + "name": "debug-cuda", |
| 92 | + "inherits": [ "base-debug", "cuda" ], |
| 93 | + "displayName": "CUDA Debug", |
| 94 | + "description": "Debug build with CUDA support", |
| 95 | + "binaryDir": "${sourceDir}/build/debug-cuda" |
| 96 | + }, |
| 97 | + ], |
| 98 | + "buildPresets": [ |
| 99 | + { |
| 100 | + "name": "default-build", |
| 101 | + "configurePreset": "default", |
| 102 | + "description": "Build using default configuration" |
| 103 | + }, |
| 104 | + { |
| 105 | + "name": "cuda-build", |
| 106 | + "configurePreset": "cuda", |
| 107 | + "description": "Build with CUDA support" |
| 108 | + }, |
| 109 | + { |
| 110 | + "name": "test-build", |
| 111 | + "configurePreset": "test", |
| 112 | + "description": "Build for running tests" |
| 113 | + }, |
| 114 | + { |
| 115 | + "name": "python-build", |
| 116 | + "configurePreset": "python", |
| 117 | + "description": "Build with Python bindings enabled" |
| 118 | + }, |
| 119 | + { |
| 120 | + "name": "debug-cuda-build", |
| 121 | + "configurePreset": "debug-cuda", |
| 122 | + "description": "Debug build with CUDA support" |
| 123 | + }, |
| 124 | + ], |
| 125 | + "testPresets": [ |
| 126 | + { |
| 127 | + "name": "default-tests", |
| 128 | + "description": "Run default tests", |
| 129 | + "configurePreset": "test", |
| 130 | + "execution": { |
| 131 | + "stopOnFailure": true |
| 132 | + } |
| 133 | + }, |
| 134 | + { |
| 135 | + "name": "cuda-tests", |
| 136 | + "description": "Run tests with CUDA enabled", |
| 137 | + "configurePreset": "cuda", |
| 138 | + "execution": { |
| 139 | + "stopOnFailure": true |
| 140 | + } |
| 141 | + }, |
| 142 | + { |
| 143 | + "name": "debug-cuda-tests", |
| 144 | + "description": "Run tests with CUDA Debug configuration", |
| 145 | + "configurePreset": "debug-cuda", |
| 146 | + "execution": { |
| 147 | + "stopOnFailure": true |
| 148 | + } |
| 149 | + } |
| 150 | + ] |
| 151 | +} |
0 commit comments