diff options
| author | Andre Weissflog <floooh@gmail.com> | 2022-11-20 16:26:42 +0100 |
|---|---|---|
| committer | Andre Weissflog <floooh@gmail.com> | 2022-11-20 16:26:42 +0100 |
| commit | 48fb60f8f76372c733a58a9e6f843d4a82902da2 (patch) | |
| tree | 9cecb8e9eed98d758951118c92f381f5d91f6f93 /tests | |
| parent | 85001dde61cf5ab5cd5b26096600f985496c86ff (diff) | |
rewrite linux static analyzer build scripts to use cmake presets
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/CMakePresets.json | 38 | ||||
| -rwxr-xr-x | tests/analyze_linux.sh | 5 |
2 files changed, 40 insertions, 3 deletions
diff --git a/tests/CMakePresets.json b/tests/CMakePresets.json index 974bc80b..6ae9e88f 100644 --- a/tests/CMakePresets.json +++ b/tests/CMakePresets.json @@ -297,6 +297,21 @@ } }, { + "name": "linux_gl_analyze", + "generator": "Ninja", + "binaryDir": "build/linux_gl_analyze", + "cacheVariables": { + "SOKOL_BACKEND": "SOKOL_GLCORE33", + "CMAKE_BUILD_TYPE": "Debug", + "USE_ANALYZER": { + "type": "BOOL", + "value": "ON" + }, + "CMAKE_C_COMPILER": "clang", + "CMAKE_CXX_COMPILER": "clang++" + } + }, + { "name": "linux_gles3_debug", "generator": "Ninja", "binaryDir": "build/linux_gles3_debug", @@ -315,6 +330,21 @@ } }, { + "name": "linux_gles3_analyze", + "generator": "Ninja", + "binaryDir": "build/linux_gles3_analyze", + "cacheVariables": { + "SOKOL_BACKEND": "SOKOL_GLES3", + "CMAKE_BUILD_TYPE": "Debug", + "USE_ANALYZER": { + "type": "BOOL", + "value": "ON" + }, + "CMAKE_C_COMPILER": "clang", + "CMAKE_CXX_COMPILER": "clang++" + } + }, + { "name": "linux_gl_egl_debug", "generator": "Ninja", "binaryDir": "build/linux_gl_egl_debug", @@ -550,6 +580,10 @@ "configurePreset": "linux_gl_release" }, { + "name": "linux_gl_analyze", + "configurePreset": "linux_gl_analyze" + }, + { "name": "linux_gles3_debug", "configurePreset": "linux_gles3_debug" }, @@ -558,6 +592,10 @@ "configurePreset": "linux_gles3_release" }, { + "name": "linux_gles3_analyze", + "configurePreset": "linux_gles3_analyze" + }, + { "name": "linux_gl_egl_debug", "configurePreset": "linux_gl_egl_debug" }, diff --git a/tests/analyze_linux.sh b/tests/analyze_linux.sh index 229e272a..87099b9e 100755 --- a/tests/analyze_linux.sh +++ b/tests/analyze_linux.sh @@ -1,7 +1,6 @@ #!/usr/bin/env bash set -e source test_common.sh -prepare -analyze linux_gl_analyze SOKOL_GLCORE33 Debug -analyze linux_gles3_analyze SOKOL_GLES3 Debug
\ No newline at end of file +build linux_gl_analyze linux_gl_analyze +build linux_gles3_analyze linux_gles3_analyze |