diff options
| author | Ahmad Fatoum <[email protected]> | 2018-07-27 18:17:18 +0200 |
|---|---|---|
| committer | Ahmad Fatoum <[email protected]> | 2018-07-29 12:13:00 +0200 |
| commit | 69e147417b68c4d650e0a87be07bc7d96824229b (patch) | |
| tree | 88b38cf827a06c5715df3059190f94d5ae4b8b21 /src/CMakeLists.txt | |
| parent | cf021e38117723b655a2399e62f8d5f87ce3d413 (diff) | |
| download | raylib-69e147417b68c4d650e0a87be07bc7d96824229b.tar.gz raylib-69e147417b68c4d650e0a87be07bc7d96824229b.zip | |
Travis CI: Add OpenAL-Configuration
Diffstat (limited to 'src/CMakeLists.txt')
| -rw-r--r-- | src/CMakeLists.txt | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 05e3c0d2..e6cfe8b1 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -40,10 +40,16 @@ endif() include(utils) if(USE_AUDIO) + if (NOT USE_OPENAL_BACKEND) + file(GLOB mini_al external/mini_al.c) + MESSAGE(STATUS "Audio Backend: mini_al") + else() + MESSAGE(STATUS "Audio Backend: OpenAL") + endif() file(GLOB stb_vorbis external/stb_vorbis.c) - file(GLOB mini_al external/mini_al.c ${stb_vorbis}) - set(sources ${raylib_sources} ${mini_al}) + set(sources ${raylib_sources} ${mini_al} ${stb_vorbis}) else() + MESSAGE(STATUS "Audio Backend: None (-DUSE_AUDIO=OFF)") set(INCLUDE_AUDIO_MODULE 0) list(REMOVE_ITEM raylib_sources ${CMAKE_CURRENT_SOURCE_DIR}/audio.c) set(sources ${raylib_sources}) |
