axmol/core/audio/CMakeLists.txt

42 lines
1.1 KiB
CMake
Raw Normal View History

# common headers and sources
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
2022-05-15 09:55:57 +08:00
audio/AudioEngineImpl.cpp
)
if(APPLE)
2022-05-15 09:55:57 +08:00
set_source_files_properties(audio/AudioEngineImpl.cpp PROPERTIES LANGUAGE OBJCXX)
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
)
set(COCOS_AUDIO_SRC ${COCOS_AUDIO_SRC}
2022-01-03 11:34:58 +08:00
audio/AudioDecoderMp3.cpp
audio/AudioDecoderWav.cpp
)
endif()