citra/src/audio_core/CMakeLists.txt

59 lines
1.4 KiB
Text
Raw Normal View History

add_library(audio_core STATIC
2017-12-20 19:44:32 +01:00
audio_types.h
codec.cpp
codec.h
2017-12-20 19:44:32 +01:00
dsp_interface.cpp
dsp_interface.h
hle/common.h
2018-12-09 22:25:45 +01:00
hle/decoder.cpp
hle/decoder.h
hle/filter.cpp
hle/filter.h
2017-12-20 19:44:32 +01:00
hle/hle.cpp
hle/hle.h
hle/mixers.cpp
hle/mixers.h
2017-12-20 19:44:32 +01:00
hle/shared_memory.h
hle/source.cpp
hle/source.h
lle/lle.cpp
lle/lle.h
interpolate.cpp
interpolate.h
null_sink.h
sink.h
sink_details.cpp
sink_details.h
time_stretch.cpp
time_stretch.h
$<$<BOOL:${SDL2_FOUND}>:sdl2_sink.cpp sdl2_sink.h>
$<$<BOOL:${ENABLE_CUBEB}>:cubeb_sink.cpp cubeb_sink.h>
2018-12-09 22:25:45 +01:00
$<$<BOOL:${FFMPEG_FOUND}>:hle/aac_decoder.cpp hle/aac_decoder.h hle/ffmpeg_dl.h>
)
create_target_directory_groups(audio_core)
target_link_libraries(audio_core PUBLIC common core)
target_link_libraries(audio_core PRIVATE SoundTouch teakra)
2016-04-27 11:57:29 +02:00
if(SDL2_FOUND)
target_link_libraries(audio_core PRIVATE SDL2)
target_compile_definitions(audio_core PRIVATE HAVE_SDL2)
2016-04-27 11:57:29 +02:00
endif()
if(ENABLE_CUBEB)
target_link_libraries(audio_core PRIVATE cubeb)
add_definitions(-DHAVE_CUBEB=1)
endif()
2018-12-09 22:25:45 +01:00
if(FFMPEG_FOUND)
if(UNIX)
target_link_libraries(audio_core PRIVATE FFmpeg::avcodec)
else()
target_include_directories(audio_core PRIVATE ${FFMPEG_DIR}/include)
endif()
target_compile_definitions(audio_core PRIVATE HAVE_FFMPEG)
endif()