2017-12-10 23:55:03 +00:00
|
|
|
add_library(audio_core STATIC
|
2017-12-20 18:44:32 +00:00
|
|
|
audio_types.h
|
2017-12-10 23:55:03 +00:00
|
|
|
codec.cpp
|
|
|
|
codec.h
|
2017-12-20 18:44:32 +00:00
|
|
|
dsp_interface.cpp
|
|
|
|
dsp_interface.h
|
2024-01-04 19:00:03 +00:00
|
|
|
hle/aac_decoder.cpp
|
|
|
|
hle/aac_decoder.h
|
2017-12-10 23:55:03 +00:00
|
|
|
hle/common.h
|
2018-12-09 21:25:45 +00:00
|
|
|
hle/decoder.cpp
|
|
|
|
hle/decoder.h
|
2017-12-10 23:55:03 +00:00
|
|
|
hle/filter.cpp
|
|
|
|
hle/filter.h
|
2017-12-20 18:44:32 +00:00
|
|
|
hle/hle.cpp
|
|
|
|
hle/hle.h
|
2017-12-10 23:55:03 +00:00
|
|
|
hle/mixers.cpp
|
|
|
|
hle/mixers.h
|
2017-12-20 18:44:32 +00:00
|
|
|
hle/shared_memory.h
|
2017-12-10 23:55:03 +00:00
|
|
|
hle/source.cpp
|
|
|
|
hle/source.h
|
2018-12-06 12:14:54 +00:00
|
|
|
lle/lle.cpp
|
|
|
|
lle/lle.h
|
2023-05-01 19:17:45 +00:00
|
|
|
input.h
|
|
|
|
input_details.cpp
|
|
|
|
input_details.h
|
2017-12-10 23:55:03 +00:00
|
|
|
interpolate.cpp
|
|
|
|
interpolate.h
|
2023-05-01 19:17:45 +00:00
|
|
|
null_input.h
|
2017-12-10 23:55:03 +00:00
|
|
|
null_sink.h
|
2022-12-17 15:06:38 +00:00
|
|
|
precompiled_headers.h
|
2017-12-10 23:55:03 +00:00
|
|
|
sink.h
|
|
|
|
sink_details.cpp
|
|
|
|
sink_details.h
|
2023-05-01 19:17:45 +00:00
|
|
|
static_input.cpp
|
|
|
|
static_input.h
|
2017-12-10 23:55:03 +00:00
|
|
|
time_stretch.cpp
|
|
|
|
time_stretch.h
|
2016-02-21 13:13:52 +00:00
|
|
|
|
2022-09-21 16:36:12 +00:00
|
|
|
$<$<BOOL:${ENABLE_SDL2}>:sdl2_sink.cpp sdl2_sink.h>
|
2019-03-07 03:03:22 +00:00
|
|
|
$<$<BOOL:${ENABLE_CUBEB}>:cubeb_sink.cpp cubeb_sink.h cubeb_input.cpp cubeb_input.h>
|
2023-05-01 19:17:45 +00:00
|
|
|
$<$<BOOL:${ENABLE_OPENAL}>:openal_input.cpp openal_input.h openal_sink.cpp openal_sink.h>
|
2017-12-10 23:55:03 +00:00
|
|
|
)
|
2016-02-21 13:13:52 +00:00
|
|
|
|
2017-12-10 23:55:03 +00:00
|
|
|
create_target_directory_groups(audio_core)
|
2016-02-21 13:13:52 +00:00
|
|
|
|
2023-08-14 16:47:17 +00:00
|
|
|
target_link_libraries(audio_core PUBLIC citra_common citra_core)
|
2023-11-04 21:56:13 +00:00
|
|
|
target_link_libraries(audio_core PRIVATE faad2 SoundTouch teakra)
|
2020-03-17 02:07:22 +00:00
|
|
|
|
2022-09-21 16:36:12 +00:00
|
|
|
if(ENABLE_SDL2)
|
|
|
|
target_link_libraries(audio_core PRIVATE SDL2::SDL2)
|
2017-05-28 01:26:55 +00:00
|
|
|
target_compile_definitions(audio_core PRIVATE HAVE_SDL2)
|
2016-04-27 09:57:29 +00:00
|
|
|
endif()
|
2018-05-25 05:50:37 +00:00
|
|
|
|
|
|
|
if(ENABLE_CUBEB)
|
|
|
|
target_link_libraries(audio_core PRIVATE cubeb)
|
2019-03-07 03:03:22 +00:00
|
|
|
target_compile_definitions(audio_core PUBLIC HAVE_CUBEB)
|
2018-05-25 07:05:38 +00:00
|
|
|
endif()
|
2022-12-17 15:06:38 +00:00
|
|
|
|
2023-05-01 19:17:45 +00:00
|
|
|
if(ENABLE_OPENAL)
|
|
|
|
target_link_libraries(audio_core PRIVATE OpenAL)
|
|
|
|
target_compile_definitions(audio_core PUBLIC HAVE_OPENAL)
|
|
|
|
add_definitions(-DAL_LIBTYPE_STATIC)
|
|
|
|
endif()
|
|
|
|
|
2022-12-17 15:06:38 +00:00
|
|
|
if (CITRA_USE_PRECOMPILED_HEADERS)
|
|
|
|
target_precompile_headers(audio_core PRIVATE precompiled_headers.h)
|
|
|
|
endif()
|