2019-11-23 20:27:39 +08:00
|
|
|
|
|
|
|
set(COCOS_AUDIO_SRC
|
|
|
|
audio/AudioEngine.cpp
|
|
|
|
)
|
|
|
|
|
|
|
|
if(WINDOWS)
|
|
|
|
|
|
|
|
set(COCOS_AUDIO_PLATFORM_HEADER
|
2019-11-24 14:54:45 +08:00
|
|
|
audio/include/AudioDecoderManager.h
|
|
|
|
audio/include/AudioDecoder.h
|
|
|
|
audio/include/AudioPlayer.h
|
|
|
|
audio/include/AudioDecoderOgg.h
|
|
|
|
audio/include/AudioEngineImpl.h
|
|
|
|
audio/include/AudioDecoderMp3.h
|
|
|
|
audio/include/AudioDecoderWav.h
|
|
|
|
audio/include/AudioCache.h
|
2019-11-23 20:27:39 +08:00
|
|
|
)
|
|
|
|
|
|
|
|
set(COCOS_AUDIO_PLATFORM_SRC
|
2019-11-24 14:54:45 +08:00
|
|
|
audio/AudioEngineImpl.cpp
|
|
|
|
audio/AudioCache.cpp
|
|
|
|
audio/AudioPlayer.cpp
|
|
|
|
audio/AudioDecoder.cpp
|
|
|
|
audio/AudioDecoderManager.cpp
|
|
|
|
audio/AudioDecoderMp3.cpp
|
|
|
|
audio/AudioDecoderOgg.cpp
|
|
|
|
audio/AudioDecoderWav.cpp
|
2019-11-23 20:27:39 +08:00
|
|
|
)
|
|
|
|
|
|
|
|
elseif(ANDROID)
|
|
|
|
|
|
|
|
set(COCOS_AUDIO_PLATFORM_HEADER
|
2019-11-24 14:54:45 +08:00
|
|
|
audio/include/AudioEngineImpl.h
|
|
|
|
audio/include/AudioCache.h
|
|
|
|
audio/include/AudioPlayer.h
|
|
|
|
audio/include/AudioDecoder.h
|
|
|
|
audio/include/AudioDecoderManager.h
|
|
|
|
audio/include/AudioDecoderMp3.h
|
|
|
|
audio/include/AudioDecoderOgg.h
|
|
|
|
audio/include/AudioDecoderWav.h
|
2019-11-23 20:27:39 +08:00
|
|
|
)
|
|
|
|
|
|
|
|
set(COCOS_AUDIO_PLATFORM_SRC
|
2019-11-24 14:54:45 +08:00
|
|
|
audio/AudioEngineImpl.cpp
|
|
|
|
audio/AudioCache.cpp
|
|
|
|
audio/AudioPlayer.cpp
|
|
|
|
audio/AudioDecoder.cpp
|
|
|
|
audio/AudioDecoderManager.cpp
|
|
|
|
audio/AudioDecoderMp3.cpp
|
|
|
|
audio/AudioDecoderOgg.cpp
|
|
|
|
audio/AudioDecoderWav.cpp
|
2019-11-23 20:27:39 +08:00
|
|
|
)
|
|
|
|
|
|
|
|
elseif(LINUX)
|
|
|
|
set(COCOS_AUDIO_PLATFORM_HEADER
|
2019-11-24 14:54:45 +08:00
|
|
|
audio/include/AudioDecoderManager.h
|
|
|
|
audio/include/AudioDecoder.h
|
|
|
|
audio/include/AudioPlayer.h
|
|
|
|
audio/include/AudioDecoderOgg.h
|
|
|
|
audio/include/AudioEngineImpl.h
|
|
|
|
audio/include/AudioDecoderMp3.h
|
|
|
|
audio/include/AudioDecoderWav.h
|
|
|
|
audio/include/AudioCache.h
|
2019-11-23 20:27:39 +08:00
|
|
|
)
|
|
|
|
|
|
|
|
set(COCOS_AUDIO_PLATFORM_SRC
|
2019-11-24 14:54:45 +08:00
|
|
|
audio/AudioEngineImpl.cpp
|
|
|
|
audio/AudioCache.cpp
|
|
|
|
audio/AudioPlayer.cpp
|
|
|
|
audio/AudioDecoder.cpp
|
|
|
|
audio/AudioDecoderManager.cpp
|
|
|
|
audio/AudioDecoderMp3.cpp
|
|
|
|
audio/AudioDecoderOgg.cpp
|
|
|
|
audio/AudioDecoderWav.cpp
|
2019-11-23 20:27:39 +08:00
|
|
|
)
|
|
|
|
|
|
|
|
elseif(APPLE)
|
|
|
|
# common
|
|
|
|
set(COCOS_AUDIO_PLATFORM_HEADER
|
|
|
|
audio/apple/AudioDecoder.h
|
|
|
|
audio/apple/AudioPlayer.h
|
|
|
|
audio/apple/AudioMacros.h
|
|
|
|
audio/apple/AudioCache.h
|
2019-11-24 14:54:45 +08:00
|
|
|
audio/apple/AudioEngineImpl.h
|
2019-11-23 20:27:39 +08:00
|
|
|
)
|
|
|
|
set(COCOS_AUDIO_PLATFORM_SRC
|
|
|
|
audio/apple/AudioCache.mm
|
|
|
|
audio/apple/AudioDecoder.mm
|
2019-11-24 14:54:45 +08:00
|
|
|
audio/apple/AudioEngineImpl.mm
|
2019-11-23 20:27:39 +08:00
|
|
|
audio/apple/AudioPlayer.mm
|
|
|
|
)
|
|
|
|
endif()
|
|
|
|
|
|
|
|
set(COCOS_AUDIO_HEADER
|
|
|
|
audio/include/AudioEngine.h
|
|
|
|
audio/include/Export.h
|
2019-11-24 14:54:45 +08:00
|
|
|
audio/include/AudioMacros.h
|
2019-11-23 20:27:39 +08:00
|
|
|
${COCOS_AUDIO_PLATFORM_HEADER}
|
|
|
|
)
|
|
|
|
list(APPEND COCOS_AUDIO_SRC ${COCOS_AUDIO_PLATFORM_SRC})
|