2014-09-17 11:23:59 +08:00
|
|
|
|
2014-11-10 21:33:43 +08:00
|
|
|
set(COCOS_AUDIO_SRC
|
|
|
|
audio/AudioEngine.cpp
|
|
|
|
)
|
2014-09-17 11:23:59 +08:00
|
|
|
|
|
|
|
if(WINDOWS)
|
2014-11-10 21:33:43 +08:00
|
|
|
set(COCOS_AUDIO_PLATFORM_SRC
|
|
|
|
audio/win32/SimpleAudioEngine.cpp
|
|
|
|
audio/win32/MciPlayer.cpp
|
2014-11-17 06:42:04 +08:00
|
|
|
audio/win32/MciPlayer.h
|
|
|
|
audio/win32/AudioEngine-win32.cpp
|
|
|
|
audio/win32/AudioCache.cpp
|
|
|
|
audio/win32/AudioPlayer.cpp
|
2014-11-10 21:33:43 +08:00
|
|
|
)
|
2014-09-17 11:23:59 +08:00
|
|
|
|
2016-03-03 08:51:54 +08:00
|
|
|
ELSEIF(ANDROID)
|
|
|
|
set(COCOS_AUDIO_PLATFORM_SRC
|
|
|
|
audio/android/AudioEngine-inl.cpp
|
|
|
|
audio/android/ccdandroidUtils.cpp
|
|
|
|
audio/android/cddSimpleAudioEngine.cpp
|
|
|
|
audio/android/jni/cddandroidAndroidJavaEngine.cpp
|
|
|
|
)
|
|
|
|
|
2014-09-17 11:23:59 +08:00
|
|
|
elseif(LINUX)
|
2014-11-10 21:33:43 +08:00
|
|
|
set(COCOS_AUDIO_PLATFORM_SRC
|
2015-11-25 09:54:12 +08:00
|
|
|
audio/linux/SimpleAudioEngine.cpp
|
|
|
|
audio/linux/AudioEngine-linux.h
|
|
|
|
audio/linux/AudioEngine-linux.cpp
|
2014-11-10 21:33:43 +08:00
|
|
|
)
|
2014-09-17 11:23:59 +08:00
|
|
|
|
|
|
|
elseif(MACOSX)
|
|
|
|
# split it in _C and non C
|
|
|
|
# because C files needs to be compiled with C compiler and not C++
|
|
|
|
# compiler
|
2014-11-10 21:33:43 +08:00
|
|
|
set(COCOS_AUDIO_PLATFORM_SRC_C
|
2014-09-18 10:22:24 +08:00
|
|
|
audio/mac/CDAudioManager.m
|
|
|
|
audio/mac/CDOpenALSupport.m
|
|
|
|
audio/mac/CocosDenshion.m
|
|
|
|
audio/mac/SimpleAudioEngine_objc.m
|
2014-11-10 21:33:43 +08:00
|
|
|
)
|
|
|
|
set(COCOS_AUDIO_PLATFORM_SRC
|
|
|
|
${COCOS_AUDIO_PLATFORM_SRC_C}
|
|
|
|
audio/apple/AudioCache.mm
|
2017-02-04 09:46:32 +08:00
|
|
|
audio/apple/AudioDecoder.mm
|
2014-11-10 21:33:43 +08:00
|
|
|
audio/apple/AudioEngine-inl.mm
|
|
|
|
audio/apple/AudioPlayer.mm
|
2014-09-18 10:22:24 +08:00
|
|
|
audio/mac/SimpleAudioEngine.mm
|
|
|
|
audio/mac/CDXMacOSXSupport.mm
|
2014-11-10 21:33:43 +08:00
|
|
|
)
|
|
|
|
set_source_files_properties(
|
|
|
|
${COCOS_AUDIO_PLATFORM_SRC_C}
|
2014-09-17 11:23:59 +08:00
|
|
|
PROPERTIES LANGUAGE C
|
|
|
|
)
|
|
|
|
endif()
|
|
|
|
|
2014-11-10 21:33:43 +08:00
|
|
|
list(APPEND COCOS_AUDIO_SRC ${COCOS_AUDIO_PLATFORM_SRC})
|