|
| 1 | +{ |
| 2 | + "version": 3, |
| 3 | + "cmakeMinimumRequired": { |
| 4 | + "major": 3, |
| 5 | + "minor": 21, |
| 6 | + "patch": 0 |
| 7 | + }, |
| 8 | + "configurePresets": [ |
| 9 | + { |
| 10 | + "name": "default", |
| 11 | + "hidden": true, |
| 12 | + "cacheVariables": { |
| 13 | + "CMAKE_TOOLCHAIN_FILE": "${sourceDir}/../vcpkg/scripts/buildsystems/vcpkg.cmake", |
| 14 | + "CMAKE_CXX_COMPILER_LAUNCHER": "ccache", |
| 15 | + "USE_MM_SERVER_API_KEY": "FALSE" |
| 16 | + } |
| 17 | + }, |
| 18 | + { |
| 19 | + "name": "linux-debug", |
| 20 | + "displayName": "Linux Debug", |
| 21 | + "inherits": "default", |
| 22 | + "generator": "Ninja", |
| 23 | + "binaryDir": "${sourceDir}/../build-linux-debug", |
| 24 | + "cacheVariables": { |
| 25 | + "CMAKE_BUILD_TYPE": "Debug", |
| 26 | + "VCPKG_TARGET_TRIPLET": "x64-linux", |
| 27 | + "ENABLE_TESTS": "TRUE" |
| 28 | + } |
| 29 | + }, |
| 30 | + { |
| 31 | + "name": "linux-release", |
| 32 | + "displayName": "Linux Release", |
| 33 | + "inherits": "default", |
| 34 | + "generator": "Ninja", |
| 35 | + "binaryDir": "${sourceDir}/../build-linux-release", |
| 36 | + "cacheVariables": { |
| 37 | + "CMAKE_BUILD_TYPE": "Release", |
| 38 | + "VCPKG_TARGET_TRIPLET": "x64-linux" |
| 39 | + } |
| 40 | + }, |
| 41 | + { |
| 42 | + "name": "android-base", |
| 43 | + "hidden": true, |
| 44 | + "inherits": "default", |
| 45 | + "generator": "Ninja", |
| 46 | + "cacheVariables": { |
| 47 | + "CMAKE_BUILD_TYPE": "RelWithDebInfo", |
| 48 | + "ANDROID_ABI": "arm64-v8a", |
| 49 | + "QT_ANDROID_ABIS": "arm64-v8a", |
| 50 | + "VCPKG_TARGET_TRIPLET": "arm64-android", |
| 51 | + "VCPKG_INSTALL_OPTIONS": "--allow-unsupported", |
| 52 | + "QT_ANDROID_SIGN_APK": "Yes" |
| 53 | + }, |
| 54 | + "environment": { |
| 55 | + "ANDROID_NDK_HOME": "<add_the_path_to_NDK_home>", |
| 56 | + "ANDROID_SDK_ROOT": "<add_the_path_to_SDK_root>", |
| 57 | + "QT_ANDROID_KEYSTORE_PATH": "<add_the_path_to_the_ketstore", |
| 58 | + "QT_ANDROID_KEYSTORE_ALIAS": "<add_the_keystore_alias>", |
| 59 | + "QT_ANDROID_KEYSTORE_STORE_PASS": "<add_the_keystore_password", |
| 60 | + "QT_ANDROID_KEYSTORE_KEY_PASS": "<add_the_key_password>" |
| 61 | + } |
| 62 | + }, |
| 63 | + { |
| 64 | + "name": "android-linux", |
| 65 | + "displayName": "Android (Linux Host)", |
| 66 | + "inherits": "android-base", |
| 67 | + "binaryDir": "${sourceDir}/../build-android", |
| 68 | + "cacheVariables": { |
| 69 | + "VCPKG_HOST_TRIPLET": "x64-linux" |
| 70 | + } |
| 71 | + }, |
| 72 | + { |
| 73 | + "name": "android-macos", |
| 74 | + "displayName": "Android (macOS Host - ARM)", |
| 75 | + "inherits": "android-base", |
| 76 | + "binaryDir": "${sourceDir}/../build-android", |
| 77 | + "cacheVariables": { |
| 78 | + "VCPKG_HOST_TRIPLET": "arm64-osx" |
| 79 | + }, |
| 80 | + "environment": { |
| 81 | + "PATH": "$penv{PATH}:$env{HOMEBREW_PREFIX}/opt/flex/bin:$env{HOMEBREW_PREFIX}/opt/bison/bin:$env{HOMEBREW_PREFIX}/opt/gettext/bin:/Applications/CMake.app/Contents/bin" |
| 82 | + } |
| 83 | + }, |
| 84 | + { |
| 85 | + "name": "android-macos-intel", |
| 86 | + "displayName": "Android (macOS Host - Intel)", |
| 87 | + "inherits": "android-base", |
| 88 | + "binaryDir": "${sourceDir}/../build-android", |
| 89 | + "cacheVariables": { |
| 90 | + "VCPKG_HOST_TRIPLET": "x64-osx" |
| 91 | + }, |
| 92 | + "environment": { |
| 93 | + "PATH": "$penv{PATH}:$env{HOMEBREW_PREFIX}/opt/flex/bin:$env{HOMEBREW_PREFIX}/opt/bison/bin:$env{HOMEBREW_PREFIX}/opt/gettext/bin:/Applications/CMake.app/Contents/bin" |
| 94 | + } |
| 95 | + }, |
| 96 | + { |
| 97 | + "name": "ios-release", |
| 98 | + "displayName": "iOS Release", |
| 99 | + "inherits": "default", |
| 100 | + "generator": "Xcode", |
| 101 | + "binaryDir": "${sourceDir}/../build-ios", |
| 102 | + "cacheVariables": { |
| 103 | + "CMAKE_BUILD_TYPE": "Release", |
| 104 | + "VCPKG_HOST_TRIPLET": "arm64-osx", |
| 105 | + "CMAKE_SYSTEM_PROCESSOR": "aarch64", |
| 106 | + "VCPKG_TARGET_TRIPLET": "arm64-ios", |
| 107 | + "ENABLE_BITCODE": "OFF", |
| 108 | + "ENABLE_ARC": "ON", |
| 109 | + "CMAKE_CXX_VISIBILITY_PRESET": "hidden", |
| 110 | + "CMAKE_SYSTEM_NAME": "iOS", |
| 111 | + "IOS": "TRUE" |
| 112 | + }, |
| 113 | + "environment": { |
| 114 | + "PATH": "$penv{PATH}:$env{HOMEBREW_PREFIX}/opt/flex/bin:$env{HOMEBREW_PREFIX}/opt/bison/bin:$env{HOMEBREW_PREFIX}/opt/gettext/bin:/Applications/CMake.app/Contents/bin" |
| 115 | + } |
| 116 | + }, |
| 117 | + { |
| 118 | + "name": "macos-debug-arm", |
| 119 | + "displayName": "macOS Debug (Apple Silicon)", |
| 120 | + "inherits": "default", |
| 121 | + "generator": "Ninja", |
| 122 | + "binaryDir": "${sourceDir}/../build-macos", |
| 123 | + "cacheVariables": { |
| 124 | + "CMAKE_BUILD_TYPE": "Debug", |
| 125 | + "VCPKG_TARGET_TRIPLET": "arm64-osx", |
| 126 | + "ENABLE_TESTS": "TRUE" |
| 127 | + }, |
| 128 | + "environment": { |
| 129 | + "PATH": "$penv{PATH}:$env{HOMEBREW_PREFIX}/opt/flex/bin:$env{HOMEBREW_PREFIX}/opt/bison/bin:$env{HOMEBREW_PREFIX}/opt/gettext/bin:/Applications/CMake.app/Contents/bin" |
| 130 | + } |
| 131 | + }, |
| 132 | + { |
| 133 | + "name": "macos-release-arm", |
| 134 | + "displayName": "macOS Release (Apple Silicon)", |
| 135 | + "inherits": "default", |
| 136 | + "generator": "Ninja", |
| 137 | + "binaryDir": "${sourceDir}/../build-macos-release", |
| 138 | + "cacheVariables": { |
| 139 | + "CMAKE_BUILD_TYPE": "Release", |
| 140 | + "VCPKG_TARGET_TRIPLET": "arm64-osx" |
| 141 | + }, |
| 142 | + "environment": { |
| 143 | + "PATH": "$penv{PATH}:$env{HOMEBREW_PREFIX}/opt/flex/bin:$env{HOMEBREW_PREFIX}/opt/bison/bin:$env{HOMEBREW_PREFIX}/opt/gettext/bin:/Applications/CMake.app/Contents/bin" |
| 144 | + } |
| 145 | + }, |
| 146 | + { |
| 147 | + "name": "macos-debug-intel", |
| 148 | + "displayName": "macOS Debug (Intel)", |
| 149 | + "inherits": "default", |
| 150 | + "generator": "Ninja", |
| 151 | + "binaryDir": "${sourceDir}/../build-macos-debug", |
| 152 | + "cacheVariables": { |
| 153 | + "CMAKE_BUILD_TYPE": "Debug", |
| 154 | + "VCPKG_TARGET_TRIPLET": "x64-osx", |
| 155 | + "ENABLE_TESTS": "TRUE" |
| 156 | + }, |
| 157 | + "environment": { |
| 158 | + "PATH": "$penv{PATH}:$env{HOMEBREW_PREFIX}/opt/flex/bin:$env{HOMEBREW_PREFIX}/opt/bison/bin:$env{HOMEBREW_PREFIX}/opt/gettext/bin:/Applications/CMake.app/Contents/bin" |
| 159 | + } |
| 160 | + }, |
| 161 | + { |
| 162 | + "name": "macos-release-intel", |
| 163 | + "displayName": "macOS Release (Intel)", |
| 164 | + "inherits": "default", |
| 165 | + "generator": "Ninja", |
| 166 | + "binaryDir": "${sourceDir}/../build-macos-release", |
| 167 | + "cacheVariables": { |
| 168 | + "CMAKE_BUILD_TYPE": "Release", |
| 169 | + "VCPKG_TARGET_TRIPLET": "x64-osx" |
| 170 | + }, |
| 171 | + "environment": { |
| 172 | + "PATH": "$penv{PATH}:$env{HOMEBREW_PREFIX}/opt/flex/bin:$env{HOMEBREW_PREFIX}/opt/bison/bin:$env{HOMEBREW_PREFIX}/opt/gettext/bin:/Applications/CMake.app/Contents/bin" |
| 173 | + } |
| 174 | + }, |
| 175 | + { |
| 176 | + "name": "windows-debug", |
| 177 | + "displayName": "Windows Debug", |
| 178 | + "inherits": "default", |
| 179 | + "generator": "Visual Studio 17 2022", |
| 180 | + "architecture": "x64", |
| 181 | + "binaryDir": "${sourceDir}/../build-windows-debug", |
| 182 | + "cacheVariables": { |
| 183 | + "CMAKE_BUILD_TYPE": "Debug", |
| 184 | + "VCPKG_TARGET_TRIPLET": "x64-windows", |
| 185 | + "ENABLE_TESTS": "TRUE" |
| 186 | + } |
| 187 | + }, |
| 188 | + { |
| 189 | + "name": "windows-release", |
| 190 | + "displayName": "Windows Release", |
| 191 | + "inherits": "default", |
| 192 | + "generator": "Visual Studio 17 2022", |
| 193 | + "architecture": "x64", |
| 194 | + "binaryDir": "${sourceDir}/../build-windows-release", |
| 195 | + "cacheVariables": { |
| 196 | + "CMAKE_BUILD_TYPE": "Release", |
| 197 | + "VCPKG_TARGET_TRIPLET": "x64-windows" |
| 198 | + } |
| 199 | + } |
| 200 | + ], |
| 201 | + "buildPresets": [ |
| 202 | + { |
| 203 | + "name": "linux-debug", |
| 204 | + "configurePreset": "linux-debug" |
| 205 | + }, |
| 206 | + { |
| 207 | + "name": "linux-release", |
| 208 | + "configurePreset": "linux-release" |
| 209 | + }, |
| 210 | + { |
| 211 | + "name": "android-linux", |
| 212 | + "configurePreset": "android-linux" |
| 213 | + }, |
| 214 | + { |
| 215 | + "name": "android-macos", |
| 216 | + "configurePreset": "android-macos" |
| 217 | + }, |
| 218 | + { |
| 219 | + "name": "ios-release", |
| 220 | + "configurePreset": "ios-release" |
| 221 | + }, |
| 222 | + { |
| 223 | + "name": "macos-debug-arm", |
| 224 | + "configurePreset": "macos-debug-arm" |
| 225 | + }, |
| 226 | + { |
| 227 | + "name": "macos-release-arm", |
| 228 | + "configurePreset": "macos-release-arm" |
| 229 | + }, |
| 230 | + { |
| 231 | + "name": "windows-debug", |
| 232 | + "configurePreset": "windows-debug", |
| 233 | + "configuration": "Debug" |
| 234 | + }, |
| 235 | + { |
| 236 | + "name": "windows-release", |
| 237 | + "configurePreset": "windows-release", |
| 238 | + "configuration": "Release" |
| 239 | + } |
| 240 | + ] |
| 241 | +} |
0 commit comments