axmol/core/audio/CMakeLists.txt

51 lines
1.3 KiB
CMake
Raw Normal View History

2019-11-23 20:27:39 +08:00
# common headers and sources
2019-11-23 20:27:39 +08:00
set(COCOS_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
)
set(COCOS_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
)
2020-08-12 18:53:33 +08:00
# stupid, clang always compie .mm as objc/cpp mix obj
if(ANDROID OR LINUX)
2020-08-12 18:53:33 +08:00
set(COCOS_AUDIO_SRC ${COCOS_AUDIO_SRC}
2022-01-03 11:34:58 +08:00
audio/linux-link.cpp
2020-08-12 18:53:33 +08:00
)
else()
set(COCOS_AUDIO_SRC ${COCOS_AUDIO_SRC}
2022-01-03 11:34:58 +08:00
audio/AudioEngineImpl.mm
2020-08-12 18:53:33 +08:00
)
endif()
# Apple, we use system audio decoder
if(APPLE)
set(COCOS_AUDIO_HEADER ${COCOS_AUDIO_HEADER}
2022-01-03 11:34:58 +08:00
audio/AudioDecoderEXT.h)
set(COCOS_AUDIO_SRC ${COCOS_AUDIO_SRC}
2022-01-03 11:34:58 +08:00
audio/AudioDecoderEXT.mm)
else()
set(COCOS_AUDIO_HEADER ${COCOS_AUDIO_HEADER}
2022-01-03 11:34:58 +08:00
audio/AudioDecoderMp3.h
audio/AudioDecoderWav.h
2019-11-23 20:27:39 +08:00
)
set(COCOS_AUDIO_SRC ${COCOS_AUDIO_SRC}
2022-01-03 11:34:58 +08:00
audio/AudioDecoderMp3.cpp
audio/AudioDecoderWav.cpp
)
endif()