summaryrefslogtreecommitdiff
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorskal <pascal.massimino@gmail.com>2026-01-31 14:26:36 +0100
committerskal <pascal.massimino@gmail.com>2026-01-31 14:26:36 +0100
commit213c99a2bb5a0061a2fae0533616f9547bfe0832 (patch)
tree37bc76dc4cb7b99ab55e3d2be46131e37709f2d5 /CMakeLists.txt
parent757c8e3f8f66cb7bbd354df61477bac1a5bf4eac (diff)
fix: Resolve macOS build breakage and restore tools audio support
Updates gpu.cc to handle modern wgpu-native callback signatures (5 args) for macOS while maintaining Windows compatibility. Modifies audio.cc and CMakeLists.txt to ensure miniaudio encoding features are only stripped from the demo binary, not the tools (spectool/tests).
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt2
1 files changed, 2 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index d25065c..b793b05 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -220,6 +220,7 @@ if(DEMO_BUILD_TESTS)
${WGPU_INCLUDE_DIR}
third_party/glfw3webgpu
)
+ target_compile_definitions(test_spectool PRIVATE DEMO_BUILD_TOOLS)
target_link_libraries(test_spectool PRIVATE ${DEMO_LIBS})
add_test(NAME SpectoolEndToEndTest COMMAND test_spectool)
@@ -255,6 +256,7 @@ if(DEMO_BUILD_TOOLS OR DEMO_BUILD_TESTS)
${WGPU_INCLUDE_DIR}
third_party/glfw3webgpu
)
+ target_compile_definitions(spectool PRIVATE DEMO_BUILD_TOOLS)
target_link_libraries(spectool PRIVATE ${DEMO_LIBS})
add_executable(specview