Android: add openslES and AAudio compilation to CMakeLists
parent
146656cfe6
commit
02b1ebc9e0
|
@ -994,6 +994,15 @@ if(ANDROID)
|
||||||
set(SDL_AUDIO_DRIVER_ANDROID 1)
|
set(SDL_AUDIO_DRIVER_ANDROID 1)
|
||||||
file(GLOB ANDROID_AUDIO_SOURCES ${SDL2_SOURCE_DIR}/src/audio/android/*.c)
|
file(GLOB ANDROID_AUDIO_SOURCES ${SDL2_SOURCE_DIR}/src/audio/android/*.c)
|
||||||
set(SOURCE_FILES ${SOURCE_FILES} ${ANDROID_AUDIO_SOURCES})
|
set(SOURCE_FILES ${SOURCE_FILES} ${ANDROID_AUDIO_SOURCES})
|
||||||
|
|
||||||
|
set(SDL_AUDIO_DRIVER_OPENSLES 1)
|
||||||
|
file(GLOB OPENSLES_AUDIO_SOURCES ${SDL2_SOURCE_DIR}/src/audio/openslES/*.c)
|
||||||
|
set(SOURCE_FILES ${SOURCE_FILES} ${OPENSLES_AUDIO_SOURCES})
|
||||||
|
|
||||||
|
set(SDL_AUDIO_DRIVER_AAUDIO 0)
|
||||||
|
file(GLOB AAUDIO_AUDIO_SOURCES ${SDL2_SOURCE_DIR}/src/audio/aaudio/*.c)
|
||||||
|
set(SOURCE_FILES ${SOURCE_FILES} ${AAUDIO_AUDIO_SOURCES})
|
||||||
|
|
||||||
set(HAVE_SDL_AUDIO TRUE)
|
set(HAVE_SDL_AUDIO TRUE)
|
||||||
endif()
|
endif()
|
||||||
if(SDL_FILESYSTEM)
|
if(SDL_FILESYSTEM)
|
||||||
|
|
Loading…
Reference in New Issue