Browse Source

rewrite linux static analyzer build scripts to use cmake presets

Andre Weissflog 2 years ago
parent
commit
48fb60f8f7
2 changed files with 40 additions and 3 deletions
  1. 38 0
      tests/CMakePresets.json
  2. 2 3
      tests/analyze_linux.sh

+ 38 - 0
tests/CMakePresets.json

@@ -296,6 +296,21 @@
                 "CMAKE_BUILD_TYPE": "Release"
             }
         },
+        {
+            "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",
@@ -314,6 +329,21 @@
                 "CMAKE_BUILD_TYPE": "Release"
             }
         },
+        {
+            "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",
@@ -549,6 +579,10 @@
             "name": "linux_gl_release",
             "configurePreset": "linux_gl_release"
         },
+        {
+            "name": "linux_gl_analyze",
+            "configurePreset": "linux_gl_analyze"
+        },
         {
             "name": "linux_gles3_debug",
             "configurePreset": "linux_gles3_debug"
@@ -557,6 +591,10 @@
             "name": "linux_gles3_release",
             "configurePreset": "linux_gles3_release"
         },
+        {
+            "name": "linux_gles3_analyze",
+            "configurePreset": "linux_gles3_analyze"
+        },
         {
             "name": "linux_gl_egl_debug",
             "configurePreset": "linux_gl_egl_debug"

+ 2 - 3
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
+build linux_gl_analyze linux_gl_analyze
+build linux_gles3_analyze linux_gles3_analyze