Add Dreamcast to CMake script and readme.

This commit is contained in:
David Reid
2026-02-17 06:52:47 +10:00
parent 282ed02f46
commit 60a96123db
2 changed files with 11 additions and 0 deletions
+9
View File
@@ -36,6 +36,7 @@ option(MINIAUDIO_NO_OSS "Disable the OSS backend"
option(MINIAUDIO_NO_AAUDIO "Disable the AAudio backend" OFF)
option(MINIAUDIO_NO_OPENSL "Disable the OpenSL|ES backend" OFF)
option(MINIAUDIO_NO_WEBAUDIO "Disable the Web Audio backend" OFF)
option(MINIAUDIO_NO_DREAMCAST "Disable the Dreamcast backend" OFF)
option(MINIAUDIO_NO_NULL "Disable the null backend" OFF)
option(MINIAUDIO_NO_SDL2 "Disable the SDL2 backend" OFF)
option(MINIAUDIO_ENABLE_ONLY_SPECIFIC_BACKENDS "Only enable specific backends. Backends can be enabled with MINIAUDIO_ENABLE_[BACKEND]." OFF)
@@ -55,6 +56,7 @@ option(MINIAUDIO_ENABLE_OPENSL "Enable the OpenSL|ES backend"
option(MINIAUDIO_ENABLE_WEBAUDIO "Enable the Web Audio backend" OFF)
option(MINIAUDIO_ENABLE_NULL "Enable the null backend" OFF)
option(MINIAUDIO_ENABLE_SDL2 "Enable the SDL2 backend" OFF)
option(MINIAUDIO_ENABLE_DREAMCAST "Enable the Dreamcast backend" OFF)
option(MINIAUDIO_NO_DECODING "Disable decoding APIs" OFF)
option(MINIAUDIO_NO_ENCODING "Disable encoding APIs" OFF)
option(MINIAUDIO_NO_WAV "Disable the built-in WAV decoder" OFF)
@@ -111,6 +113,7 @@ normalize_backend_enabled_option(OSS)
normalize_backend_enabled_option(AAUDIO)
normalize_backend_enabled_option(OPENSL)
normalize_backend_enabled_option(WEBAUDIO)
normalize_backend_enabled_option(DREAMCAST)
normalize_backend_enabled_option(NULL)
normalize_backend_enabled_option(SDL2)
@@ -288,6 +291,9 @@ endif()
if(MINIAUDIO_NO_WEBAUDIO)
list(APPEND COMPILE_DEFINES MA_NO_WEBAUDIO)
endif()
if(MINIAUDIO_NO_DREAMCAST)
list(APPEND COMPILE_DEFINES MA_NO_DREAMCAST)
endif()
if(MINIAUDIO_NO_NULL)
list(APPEND COMPILE_DEFINES MA_NO_NULL)
endif()
@@ -339,6 +345,9 @@ if(MINIAUDIO_ENABLE_ONLY_SPECIFIC_BACKENDS)
if(MINIAUDIO_ENABLE_WEBAUDIO)
list(APPEND COMPILE_DEFINES MA_ENABLE_WEBAUDIO)
endif()
if(MINIAUDIO_ENABLE_DREAMCAST)
list(APPEND COMPILE_DEFINES MA_ENABLE_DREAMCAST)
endif()
if(MINIAUDIO_ENABLE_NULL)
list(APPEND COMPILE_DEFINES MA_ENABLE_NULL)
endif()