2014-09-17 11:23:59 +08:00
|
|
|
|
2014-11-10 21:33:43 +08:00
|
|
|
set(COCOS_AUDIO_SRC
|
|
|
|
audio/AudioEngine.cpp
|
2018-05-02 15:33:01 +08:00
|
|
|
)
|
2014-09-17 11:23:59 +08:00
|
|
|
|
|
|
|
if(WINDOWS)
|
2018-03-14 13:51:29 +08:00
|
|
|
|
|
|
|
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
|
2018-05-02 15:33:01 +08:00
|
|
|
)
|
2018-03-14 13:51:29 +08:00
|
|
|
|
2014-11-10 21:33:43 +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
|
2018-05-02 15:33:01 +08:00
|
|
|
)
|
2014-09-17 11:23:59 +08:00
|
|
|
|
2018-02-08 09:24:33 +08:00
|
|
|
elseif(ANDROID)
|
2018-03-14 13:51:29 +08:00
|
|
|
|
|
|
|
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
|
2018-05-02 15:33:01 +08:00
|
|
|
)
|
2018-03-14 13:51:29 +08:00
|
|
|
|
2016-03-03 08:51:54 +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
|
2018-05-02 15:33:01 +08:00
|
|
|
)
|
2016-03-03 08:51:54 +08:00
|
|
|
|
2014-09-17 11:23:59 +08:00
|
|
|
elseif(LINUX)
|
2018-03-14 13:51:29 +08:00
|
|
|
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
|
2018-05-02 15:33:01 +08:00
|
|
|
)
|
2018-03-14 13:51:29 +08:00
|
|
|
|
2014-11-10 21:33:43 +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
|
2018-05-02 15:33:01 +08:00
|
|
|
)
|
2014-09-17 11:23:59 +08:00
|
|
|
|
2018-02-08 09:24:33 +08:00
|
|
|
elseif(APPLE)
|
|
|
|
# common
|
2020-07-31 00:06:59 +08:00
|
|
|
message(STATUS "[AudioEngine] CC_USE_ALSOFT_ON_APPLE=${CC_USE_ALSOFT_ON_APPLE}")
|
|
|
|
|
2018-03-14 13:51:29 +08:00
|
|
|
set(COCOS_AUDIO_PLATFORM_HEADER
|
2019-11-30 06:11:17 +08:00
|
|
|
audio/include/AudioDecoderManager.h
|
|
|
|
audio/include/AudioDecoder.h
|
|
|
|
audio/include/AudioDecoderOgg.h
|
|
|
|
audio/include/AudioDecoderWav.h
|
2019-11-26 02:33:54 +08:00
|
|
|
audio/include/AudioCache.h
|
2019-11-30 06:17:33 +08:00
|
|
|
audio/apple/AudioDecoderEXT.h
|
2018-05-02 15:33:01 +08:00
|
|
|
)
|
2020-07-31 00:06:59 +08:00
|
|
|
|
2014-11-10 21:33:43 +08:00
|
|
|
set(COCOS_AUDIO_PLATFORM_SRC
|
2019-11-30 06:11:17 +08:00
|
|
|
audio/AudioDecoderManager.cpp
|
|
|
|
audio/AudioDecoder.cpp
|
|
|
|
audio/AudioDecoderOgg.cpp
|
|
|
|
audio/AudioDecoderWav.cpp
|
2019-11-30 14:21:36 +08:00
|
|
|
audio/apple/AudioDecoderEXT.mm
|
2018-05-02 15:33:01 +08:00
|
|
|
)
|
2020-07-31 00:06:59 +08:00
|
|
|
|
|
|
|
if(CC_USE_ALSOFT_ON_APPLE)
|
|
|
|
set(COCOS_AUDIO_PLATFORM_HEADER ${COCOS_AUDIO_PLATFORM_HEADER}
|
|
|
|
audio/include/AudioPlayer.h
|
|
|
|
audio/include/AudioEngineImpl.h
|
|
|
|
)
|
|
|
|
set(COCOS_AUDIO_PLATFORM_SRC ${COCOS_AUDIO_PLATFORM_SRC}
|
|
|
|
audio/AudioCache.cpp
|
|
|
|
audio/AudioPlayer.cpp
|
|
|
|
audio/AudioEngineImpl.cpp
|
|
|
|
)
|
|
|
|
else()
|
|
|
|
set(COCOS_AUDIO_PLATFORM_HEADER ${COCOS_AUDIO_PLATFORM_HEADER}
|
|
|
|
audio/apple/AudioPlayer.h
|
|
|
|
audio/apple/AudioEngineImpl.h
|
|
|
|
)
|
|
|
|
set(COCOS_AUDIO_PLATFORM_SRC ${COCOS_AUDIO_PLATFORM_SRC}
|
|
|
|
audio/apple/AudioCache.mm
|
|
|
|
audio/apple/AudioPlayer.mm
|
|
|
|
audio/apple/AudioEngineImpl.mm
|
|
|
|
)
|
|
|
|
endif()
|
2014-09-17 11:23:59 +08:00
|
|
|
endif()
|
|
|
|
|
2018-05-25 09:56:19 +08:00
|
|
|
set(COCOS_AUDIO_HEADER
|
|
|
|
audio/include/AudioEngine.h
|
|
|
|
audio/include/Export.h
|
2019-11-24 14:54:45 +08:00
|
|
|
audio/include/AudioMacros.h
|
2018-05-25 09:56:19 +08:00
|
|
|
${COCOS_AUDIO_PLATFORM_HEADER}
|
|
|
|
)
|
2014-11-10 21:33:43 +08:00
|
|
|
list(APPEND COCOS_AUDIO_SRC ${COCOS_AUDIO_PLATFORM_SRC})
|