2019-11-23 20:27:39 +08:00
|
|
|
|
2020-08-12 17:00:07 +08:00
|
|
|
# common headers and sources
|
2019-11-23 20:27:39 +08:00
|
|
|
set(COCOS_AUDIO_HEADER
|
2020-08-15 17:47:40 +08:00
|
|
|
audio/include/alconfig.h
|
2019-11-23 20:27:39 +08:00
|
|
|
audio/include/AudioEngine.h
|
2019-11-24 14:54:45 +08:00
|
|
|
audio/include/AudioMacros.h
|
2020-08-12 17:00:07 +08:00
|
|
|
audio/include/AudioDecoderManager.h
|
|
|
|
audio/include/AudioDecoder.h
|
|
|
|
audio/include/AudioDecoderOgg.h
|
|
|
|
audio/include/AudioPlayer.h
|
|
|
|
audio/include/AudioCache.h
|
|
|
|
audio/include/AudioEngineImpl.h
|
|
|
|
)
|
|
|
|
|
|
|
|
set(COCOS_AUDIO_SRC
|
|
|
|
audio/src/AudioEngine.cpp
|
|
|
|
audio/src/AudioDecoderManager.cpp
|
|
|
|
audio/src/AudioDecoder.cpp
|
|
|
|
audio/src/AudioDecoderOgg.cpp
|
|
|
|
audio/src/AudioPlayer.cpp
|
|
|
|
audio/src/AudioCache.cpp
|
|
|
|
)
|
2020-08-12 18:53:33 +08:00
|
|
|
|
|
|
|
# stupid, clang always compie .mm as objc/cpp mix obj
|
2020-09-25 11:07:56 +08:00
|
|
|
if(ANDROID OR LINUX)
|
2020-08-12 18:53:33 +08:00
|
|
|
set(COCOS_AUDIO_SRC ${COCOS_AUDIO_SRC}
|
2020-09-25 11:07:56 +08:00
|
|
|
audio/src/linux-link.cpp
|
2020-08-12 18:53:33 +08:00
|
|
|
)
|
|
|
|
else()
|
|
|
|
set(COCOS_AUDIO_SRC ${COCOS_AUDIO_SRC}
|
|
|
|
audio/src/AudioEngineImpl.mm
|
|
|
|
)
|
|
|
|
endif()
|
2020-08-12 17:00:07 +08:00
|
|
|
|
|
|
|
# Apple, we use system audio decoder
|
|
|
|
if(APPLE)
|
|
|
|
set(COCOS_AUDIO_HEADER ${COCOS_AUDIO_HEADER}
|
|
|
|
audio/include/AudioDecoderEXT.h)
|
|
|
|
set(COCOS_AUDIO_SRC ${COCOS_AUDIO_SRC}
|
|
|
|
audio/src/AudioDecoderEXT.mm)
|
|
|
|
else()
|
|
|
|
set(COCOS_AUDIO_HEADER ${COCOS_AUDIO_HEADER}
|
|
|
|
audio/include/AudioDecoderMp3.h
|
|
|
|
audio/include/AudioDecoderWav.h
|
2019-11-23 20:27:39 +08:00
|
|
|
)
|
2020-08-12 17:00:07 +08:00
|
|
|
set(COCOS_AUDIO_SRC ${COCOS_AUDIO_SRC}
|
|
|
|
audio/src/AudioDecoderMp3.cpp
|
|
|
|
audio/src/AudioDecoderWav.cpp
|
|
|
|
)
|
|
|
|
endif()
|