axmol/core/audio/CMakeLists.txt

42 lines
1.1 KiB
CMake
Raw Normal View History

2019-11-23 20:27:39 +08:00
# common headers and sources
2022-08-11 15:41:10 +08:00
set(_AX_AUDIO_HEADER
2022-01-03 11:34:58 +08:00
audio/alconfig.h
audio/AudioEngine.h
audio/AudioMacros.h
audio/AudioDecoderManager.h
audio/AudioDecoder.h
audio/AudioDecoderOgg.h
audio/AudioPlayer.h
audio/AudioCache.h
audio/AudioEngineImpl.h
)
2022-08-11 15:41:10 +08:00
set(_AX_AUDIO_SRC
2022-01-03 11:34:58 +08:00
audio/AudioEngine.cpp
audio/AudioDecoderManager.cpp
audio/AudioDecoder.cpp
audio/AudioDecoderOgg.cpp
audio/AudioPlayer.cpp
audio/AudioCache.cpp
2022-05-15 09:55:57 +08:00
audio/AudioEngineImpl.cpp
)
if(APPLE)
2022-05-15 09:55:57 +08:00
set_source_files_properties(audio/AudioEngineImpl.cpp PROPERTIES LANGUAGE OBJCXX)
2022-08-11 15:41:10 +08:00
set(_AX_AUDIO_HEADER ${_AX_AUDIO_HEADER}
2022-01-03 11:34:58 +08:00
audio/AudioDecoderEXT.h)
2022-08-11 15:41:10 +08:00
set(_AX_AUDIO_SRC ${_AX_AUDIO_SRC}
2022-01-03 11:34:58 +08:00
audio/AudioDecoderEXT.mm)
else()
2022-08-11 15:41:10 +08:00
set(_AX_AUDIO_HEADER ${_AX_AUDIO_HEADER}
2022-01-03 11:34:58 +08:00
audio/AudioDecoderMp3.h
audio/AudioDecoderWav.h
2019-11-23 20:27:39 +08:00
)
2022-08-11 15:41:10 +08:00
set(_AX_AUDIO_SRC ${_AX_AUDIO_SRC}
2022-01-03 11:34:58 +08:00
audio/AudioDecoderMp3.cpp
audio/AudioDecoderWav.cpp
)
endif()