diff options
author | Sven Göthel <[email protected]> | 2024-05-10 17:39:57 +0200 |
---|---|---|
committer | Sven Göthel <[email protected]> | 2024-05-10 17:39:57 +0200 |
commit | 543eb0edd5933542089e73214b7ecafaa81cd012 (patch) | |
tree | d7ca0dc879ab03be63c6167fe38c7b17f44c5532 /CMakePresets.json | |
parent | 8d18290744af96abeea7dbb51e2e2cb9917b6dd4 (diff) |
Gamp v0.0.0 - Glue C++ w/ GLES/SDL and jaulib via emscripten to WebAssembly (or 'just' run it natively w/ full performance)
Diffstat (limited to 'CMakePresets.json')
-rw-r--r-- | CMakePresets.json | 152 |
1 files changed, 152 insertions, 0 deletions
diff --git a/CMakePresets.json b/CMakePresets.json new file mode 100644 index 0000000..0893d44 --- /dev/null +++ b/CMakePresets.json @@ -0,0 +1,152 @@ +{ + "version": 3, + "cmakeMinimumRequired": { + "major": 3, + "minor": 21, + "patch": 0 + }, + "configurePresets": [ + { + "name": "debug", + "displayName": "Debug (cc, C++20)", + "binaryDir": "${sourceDir}/build/preset-debug", + "cacheVariables": { + "CMAKE_BUILD_TYPE": "Debug", + "CMAKE_INSTALL_PREFIX": "dist/preset-debug", + "JAU_CMAKE_FIX_INSTALL_PREFIX": "ON", + "USE_LIBUNWIND": "ON", + "USE_LIBCURL": "OFF", + "BUILDJAVA": "OFF", + "BUILD_TESTING": "OFF" + } + }, + { + "name": "debug-clang", + "inherits": "debug", + "displayName": "Debug (clang, clang-tidy, C++20)", + "binaryDir": "${sourceDir}/build/preset-debug-clang", + "cacheVariables": { + "CMAKE_C_COMPILER": "clang", + "CMAKE_CXX_COMPILER": "clang++", + "CMAKE_CXX_CLANG_TIDY": "clang-tidy;-p;${sourceDir}/build/preset-debug-clang" + } + }, + { + "name": "debug-gcc", + "inherits": "debug", + "displayName": "Debug (gcc, C++20)", + "binaryDir": "${sourceDir}/build/preset-debug-gcc", + "cacheVariables": { + "CMAKE_C_COMPILER": "gcc", + "CMAKE_CXX_COMPILER": "g++" + } + }, + { + "name": "release", + "inherits": "debug", + "displayName": "Release (cc, C++20)", + "binaryDir": "${sourceDir}/build/preset-release", + "cacheVariables": { + "CMAKE_BUILD_TYPE": "Release", + "CMAKE_INSTALL_PREFIX": "dist/preset-release", + "JAU_CMAKE_FIX_INSTALL_PREFIX": "ON" + } + }, + { + "name": "release-clang", + "inherits": "release", + "displayName": "Release (clang, clang-tidy, C++20)", + "binaryDir": "${sourceDir}/build/preset-release-clang", + "cacheVariables": { + "CMAKE_C_COMPILER": "clang", + "CMAKE_CXX_COMPILER": "clang++", + "CMAKE_CXX_CLANG_TIDY": "clang-tidy;-p;${sourceDir}/build/preset-release-clang" + } + }, + { + "name": "release-gcc", + "inherits": "release", + "displayName": "Release (gcc, C++20)", + "binaryDir": "${sourceDir}/build/preset-release-gcc", + "cacheVariables": { + "CMAKE_C_COMPILER": "gcc", + "CMAKE_CXX_COMPILER": "g++" + } + }, + { + "name": "release-wasm", + "inherits": "release", + "displayName": "Release (emscripten, C++20)", + "binaryDir": "${sourceDir}/build/preset-release-wasm", + "cacheVariables": { + "CMAKE_INSTALL_PREFIX": "dist/preset-release-wasm", + "JAU_CMAKE_FIX_INSTALL_PREFIX": "ON", + "USE_LIBUNWIND": "OFF" + } + } + ], + "buildPresets": [ + { + "name": "debug", + "configurePreset": "debug" + }, + { + "name": "debug-gcc", + "configurePreset": "debug-gcc" + }, + { + "name": "debug-clang", + "configurePreset": "debug-clang" + }, + { + "name": "release", + "configurePreset": "release" + }, + { + "name": "release-gcc", + "configurePreset": "release-gcc" + }, + { + "name": "release-clang", + "configurePreset": "release-clang" + } + ], + "testPresets": [ + { + "name": "debug", + "configurePreset": "debug", + "output": {"outputOnFailure": true}, + "execution": {"noTestsAction": "error", "stopOnFailure": true} + }, + { + "name": "debug-gcc", + "configurePreset": "debug-gcc", + "output": {"outputOnFailure": true}, + "execution": {"noTestsAction": "error", "stopOnFailure": true} + }, + { + "name": "debug-clang", + "configurePreset": "debug-clang", + "output": {"outputOnFailure": true}, + "execution": {"noTestsAction": "error", "stopOnFailure": true} + }, + { + "name": "release", + "configurePreset": "release", + "output": {"outputOnFailure": true}, + "execution": {"noTestsAction": "error", "stopOnFailure": true} + }, + { + "name": "release-gcc", + "configurePreset": "release-gcc", + "output": {"outputOnFailure": true}, + "execution": {"noTestsAction": "error", "stopOnFailure": true} + }, + { + "name": "release-clang", + "configurePreset": "release-clang", + "output": {"outputOnFailure": true}, + "execution": {"noTestsAction": "error", "stopOnFailure": true} + } + ] +} |