mirror of
https://github.com/mackron/miniaudio.git
synced 2026-04-24 09:14:04 +02:00
Rename the SDL backend to SDL2.
This distinction is needed because we'll be doing an SDL3 backend in the future.
This commit is contained in:
+7
-1
@@ -291,6 +291,9 @@ endif()
|
||||
if(MINIAUDIO_NO_NULL)
|
||||
list(APPEND COMPILE_DEFINES MA_NO_NULL)
|
||||
endif()
|
||||
if(MINIAUDIO_NO_SDL2)
|
||||
list(APPEND COMPILE_DEFINES MA_NO_SDL2)
|
||||
endif()
|
||||
if(MINIAUDIO_ENABLE_ONLY_SPECIFIC_BACKENDS)
|
||||
list(APPEND COMPILE_DEFINES MA_ENABLE_ONLY_SPECIFIC_BACKENDS)
|
||||
|
||||
@@ -339,6 +342,9 @@ if(MINIAUDIO_ENABLE_ONLY_SPECIFIC_BACKENDS)
|
||||
if(MINIAUDIO_ENABLE_NULL)
|
||||
list(APPEND COMPILE_DEFINES MA_ENABLE_NULL)
|
||||
endif()
|
||||
if(MINIAUDIO_ENABLE_SDL2)
|
||||
list(APPEND COMPILE_DEFINES MA_ENABLE_SDL2)
|
||||
endif()
|
||||
endif()
|
||||
if(MINIAUDIO_NO_DECODING)
|
||||
list(APPEND COMPILE_DEFINES MA_NO_DECODING)
|
||||
@@ -775,7 +781,7 @@ if(MINIAUDIO_NO_RUNTIME_LINKING)
|
||||
|
||||
if(NOT TARGET PkgConfig::SDL2)
|
||||
message(STATUS "Disabling SDL2 backend for tests because SDL2 development files were not found.")
|
||||
target_compile_definitions(miniaudio_test INTERFACE MA_NO_SDL2 MA_NO_SDL) # TODO: Remove MA_NO_SDL once this has been renamed to MA_NO_SDL2 in miniaudio_sdl2.c.
|
||||
target_compile_definitions(miniaudio_test INTERFACE MA_NO_SDL2)
|
||||
endif()
|
||||
endif()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user