2017-12-10 18:55:03 -05:00
|
|
|
add_library(audio_core STATIC
|
2017-12-20 18:44:32 +00:00
|
|
|
audio_types.h
|
2017-12-10 18:55:03 -05:00
|
|
|
codec.cpp
|
|
|
|
codec.h
|
2017-12-20 18:44:32 +00:00
|
|
|
dsp_interface.cpp
|
|
|
|
dsp_interface.h
|
2019-01-05 22:28:56 -07:00
|
|
|
hle/adts.h
|
|
|
|
hle/adts_reader.cpp
|
2017-12-10 18:55:03 -05:00
|
|
|
hle/common.h
|
2018-12-09 22:25:45 +01:00
|
|
|
hle/decoder.cpp
|
|
|
|
hle/decoder.h
|
2017-12-10 18:55:03 -05:00
|
|
|
hle/filter.cpp
|
|
|
|
hle/filter.h
|
2017-12-20 18:44:32 +00:00
|
|
|
hle/hle.cpp
|
|
|
|
hle/hle.h
|
2017-12-10 18:55:03 -05:00
|
|
|
hle/mixers.cpp
|
|
|
|
hle/mixers.h
|
2017-12-20 18:44:32 +00:00
|
|
|
hle/shared_memory.h
|
2017-12-10 18:55:03 -05:00
|
|
|
hle/source.cpp
|
|
|
|
hle/source.h
|
2018-12-06 07:14:54 -05:00
|
|
|
lle/lle.cpp
|
|
|
|
lle/lle.h
|
2017-12-10 18:55:03 -05:00
|
|
|
interpolate.cpp
|
|
|
|
interpolate.h
|
|
|
|
null_sink.h
|
2022-12-17 16:06:38 +01:00
|
|
|
precompiled_headers.h
|
2017-12-10 18:55:03 -05:00
|
|
|
sink.h
|
|
|
|
sink_details.cpp
|
|
|
|
sink_details.h
|
|
|
|
time_stretch.cpp
|
|
|
|
time_stretch.h
|
2016-02-21 13:13:52 +00:00
|
|
|
|
2022-09-21 19:36:12 +03:00
|
|
|
$<$<BOOL:${ENABLE_SDL2}>:sdl2_sink.cpp sdl2_sink.h>
|
2019-03-06 20:03:22 -07:00
|
|
|
$<$<BOOL:${ENABLE_CUBEB}>:cubeb_sink.cpp cubeb_sink.h cubeb_input.cpp cubeb_input.h>
|
2017-12-10 18:55:03 -05:00
|
|
|
)
|
2016-02-21 13:13:52 +00:00
|
|
|
|
2017-12-10 18:55:03 -05:00
|
|
|
create_target_directory_groups(audio_core)
|
2016-02-21 13:13:52 +00:00
|
|
|
|
2020-03-28 21:40:18 +00:00
|
|
|
target_link_libraries(audio_core PUBLIC common)
|
2018-12-06 07:14:54 -05:00
|
|
|
target_link_libraries(audio_core PRIVATE SoundTouch teakra)
|
2022-09-21 19:36:12 +03:00
|
|
|
set_target_properties(audio_core PROPERTIES INTERPROCEDURAL_OPTIMIZATION ${ENABLE_LTO})
|
2016-04-27 10:57:29 +01:00
|
|
|
|
2019-01-26 22:38:50 +08:00
|
|
|
if(ENABLE_MF)
|
|
|
|
target_sources(audio_core PRIVATE
|
|
|
|
hle/wmf_decoder.cpp
|
|
|
|
hle/wmf_decoder.h
|
|
|
|
hle/wmf_decoder_utils.cpp
|
|
|
|
hle/wmf_decoder_utils.h
|
|
|
|
)
|
2019-12-08 13:54:27 -07:00
|
|
|
# We dynamically load the required symbols from mf.dll and mfplat.dll but mfuuid is not a dll
|
|
|
|
# just a static library of GUIDS so include that one directly.
|
|
|
|
target_link_libraries(audio_core PRIVATE mfuuid.lib)
|
2019-01-26 22:38:50 +08:00
|
|
|
target_compile_definitions(audio_core PUBLIC HAVE_MF)
|
2019-08-20 14:45:39 +08:00
|
|
|
elseif(ENABLE_FFMPEG_AUDIO_DECODER)
|
2019-01-26 22:38:50 +08:00
|
|
|
target_sources(audio_core PRIVATE
|
|
|
|
hle/ffmpeg_decoder.cpp
|
|
|
|
hle/ffmpeg_decoder.h
|
|
|
|
hle/ffmpeg_dl.cpp
|
|
|
|
hle/ffmpeg_dl.h
|
|
|
|
)
|
2019-01-04 17:06:12 -07:00
|
|
|
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)
|
2020-02-23 03:01:21 -07:00
|
|
|
elseif(ENABLE_FDK)
|
|
|
|
target_sources(audio_core PRIVATE
|
|
|
|
hle/fdk_decoder.cpp
|
|
|
|
hle/fdk_decoder.h
|
|
|
|
)
|
|
|
|
target_link_libraries(audio_core PRIVATE ${FDK_AAC})
|
|
|
|
target_compile_definitions(audio_core PUBLIC HAVE_FDK)
|
2019-01-04 17:06:12 -07:00
|
|
|
endif()
|
|
|
|
|
2020-03-17 10:07:22 +08:00
|
|
|
if(ANDROID)
|
|
|
|
target_sources(audio_core PRIVATE
|
|
|
|
hle/mediandk_decoder.cpp
|
|
|
|
hle/mediandk_decoder.h
|
|
|
|
)
|
|
|
|
target_link_libraries(audio_core PRIVATE mediandk)
|
|
|
|
endif()
|
|
|
|
|
2022-09-21 19:36:12 +03:00
|
|
|
if(ENABLE_SDL2)
|
|
|
|
target_link_libraries(audio_core PRIVATE SDL2::SDL2)
|
2017-05-27 18:26:55 -07:00
|
|
|
target_compile_definitions(audio_core PRIVATE HAVE_SDL2)
|
2016-04-27 10:57:29 +01:00
|
|
|
endif()
|
2018-05-25 00:50:37 -05:00
|
|
|
|
|
|
|
if(ENABLE_CUBEB)
|
|
|
|
target_link_libraries(audio_core PRIVATE cubeb)
|
2019-03-06 20:03:22 -07:00
|
|
|
target_compile_definitions(audio_core PUBLIC HAVE_CUBEB)
|
2018-05-25 02:05:38 -05:00
|
|
|
endif()
|
2022-12-17 16:06:38 +01:00
|
|
|
|
|
|
|
if (CITRA_USE_PRECOMPILED_HEADERS)
|
|
|
|
target_precompile_headers(audio_core PRIVATE precompiled_headers.h)
|
|
|
|
endif()
|