1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35
|
Description: Use system stb library
Author: Michael Gilbert <mgilbert@debian.org>
Forwarded: not-needed
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -92,7 +92,6 @@
# Internal Headers
src/FACT_internal.h
src/FAudio_internal.h
- src/stb.h
src/stb_vorbis.h
src/qoa_decoder.h
# Source Files
@@ -141,6 +140,9 @@
endif()
endif()
+add_definitions(-DSTB_VORBIS_HEADER_ONLY -D_DEFAULT_SOURCE)
+target_link_libraries(${target} PRIVATE stb)
+
# Only disable DebugConfiguration in release builds
if(NOT FORCE_ENABLE_DEBUGCONFIGURATION)
target_compile_definitions(${target} PRIVATE $<$<CONFIG:Release>:FAUDIO_DISABLE_DEBUGCONFIGURATION>)
--- a/src/FACT_internal.c
+++ b/src/FACT_internal.c
@@ -31,7 +31,7 @@
#define STB_EXTERN
#define STB_DEFINE
-#include "stb.h"
+#include <stb/stb.h>
#define FACT_INTERNAL_rng() ((float) stb_frand())
/* XACT Versions */
|