2017-12-10 15:55:03 -08:00
|
|
|
add_library(audio_core STATIC
|
2017-12-20 10:44:32 -08:00
|
|
|
audio_types.h
|
2017-12-10 15:55:03 -08:00
|
|
|
codec.cpp
|
|
|
|
codec.h
|
2017-12-20 10:44:32 -08:00
|
|
|
dsp_interface.cpp
|
|
|
|
dsp_interface.h
|
2017-12-10 15:55:03 -08:00
|
|
|
hle/common.h
|
2018-12-09 13:25:45 -08:00
|
|
|
hle/decoder.cpp
|
|
|
|
hle/decoder.h
|
2017-12-10 15:55:03 -08:00
|
|
|
hle/filter.cpp
|
|
|
|
hle/filter.h
|
2017-12-20 10:44:32 -08:00
|
|
|
hle/hle.cpp
|
|
|
|
hle/hle.h
|
2017-12-10 15:55:03 -08:00
|
|
|
hle/mixers.cpp
|
|
|
|
hle/mixers.h
|
2017-12-20 10:44:32 -08:00
|
|
|
hle/shared_memory.h
|
2017-12-10 15:55:03 -08:00
|
|
|
hle/source.cpp
|
|
|
|
hle/source.h
|
2018-12-06 04:14:54 -08:00
|
|
|
lle/lle.cpp
|
|
|
|
lle/lle.h
|
2017-12-10 15:55:03 -08:00
|
|
|
interpolate.cpp
|
|
|
|
interpolate.h
|
|
|
|
null_sink.h
|
|
|
|
sink.h
|
|
|
|
sink_details.cpp
|
|
|
|
sink_details.h
|
|
|
|
time_stretch.cpp
|
|
|
|
time_stretch.h
|
2016-02-21 05:13:52 -08:00
|
|
|
|
2017-12-22 17:00:15 -08:00
|
|
|
$<$<BOOL:${SDL2_FOUND}>:sdl2_sink.cpp sdl2_sink.h>
|
2018-05-24 22:50:37 -07:00
|
|
|
$<$<BOOL:${ENABLE_CUBEB}>:cubeb_sink.cpp cubeb_sink.h>
|
2019-01-04 16:06:12 -08:00
|
|
|
$<$<BOOL:${FFMPEG_FOUND}>:hle/ffmpeg_decoder.cpp hle/ffmpeg_decoder.h hle/ffmpeg_dl.cpp hle/ffmpeg_dl.h>
|
2019-01-05 20:53:24 -08:00
|
|
|
$<$<BOOL:${ENABLE_MF}>:hle/wmf_decoder.cpp hle/wmf_decoder.h hle/wmf_decoder_utils.cpp hle/wmf_decoder_utils.h hle/adts_reader.cpp>
|
2017-12-10 15:55:03 -08:00
|
|
|
)
|
2016-02-21 05:13:52 -08:00
|
|
|
|
2017-12-10 15:55:03 -08:00
|
|
|
create_target_directory_groups(audio_core)
|
2016-02-21 05:13:52 -08:00
|
|
|
|
2017-05-27 18:26:55 -07:00
|
|
|
target_link_libraries(audio_core PUBLIC common core)
|
2018-12-06 04:14:54 -08:00
|
|
|
target_link_libraries(audio_core PRIVATE SoundTouch teakra)
|
2016-04-27 02:57:29 -07:00
|
|
|
|
2019-01-04 16:06:12 -08: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 PUBLIC HAVE_FFMPEG)
|
|
|
|
endif()
|
|
|
|
|
2018-12-19 08:12:57 -08:00
|
|
|
if(ENABLE_MF)
|
|
|
|
target_link_libraries(audio_core PRIVATE mf.lib mfplat.lib mfuuid.lib)
|
|
|
|
target_compile_definitions(audio_core PUBLIC HAVE_MF)
|
2018-12-15 06:06:54 -08:00
|
|
|
endif()
|
|
|
|
|
2016-04-27 02:57:29 -07:00
|
|
|
if(SDL2_FOUND)
|
2017-05-27 21:38:49 -07:00
|
|
|
target_link_libraries(audio_core PRIVATE SDL2)
|
2017-05-27 18:26:55 -07:00
|
|
|
target_compile_definitions(audio_core PRIVATE HAVE_SDL2)
|
2016-04-27 02:57:29 -07:00
|
|
|
endif()
|
2018-05-24 22:50:37 -07:00
|
|
|
|
|
|
|
if(ENABLE_CUBEB)
|
|
|
|
target_link_libraries(audio_core PRIVATE cubeb)
|
2018-05-24 22:58:53 -07:00
|
|
|
add_definitions(-DHAVE_CUBEB=1)
|
2018-05-25 00:05:38 -07:00
|
|
|
endif()
|
2018-12-09 13:25:45 -08:00
|
|
|
|