2016-02-21 13:13:52 +00:00
|
|
|
set(SRCS
|
|
|
|
audio_core.cpp
|
2016-03-24 00:12:54 +00:00
|
|
|
codec.cpp
|
2016-02-21 13:13:52 +00:00
|
|
|
hle/dsp.cpp
|
2016-03-26 02:20:34 +00:00
|
|
|
hle/filter.cpp
|
2016-04-27 06:22:39 +00:00
|
|
|
hle/mixers.cpp
|
2016-02-21 13:13:52 +00:00
|
|
|
hle/pipe.cpp
|
2016-04-25 07:54:57 +00:00
|
|
|
hle/source.cpp
|
2016-04-24 20:11:47 +00:00
|
|
|
interpolate.cpp
|
2016-04-28 13:28:59 +00:00
|
|
|
sink_details.cpp
|
2016-05-15 02:04:03 +00:00
|
|
|
time_stretch.cpp
|
2016-02-21 13:13:52 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
set(HEADERS
|
|
|
|
audio_core.h
|
2016-03-24 00:12:54 +00:00
|
|
|
codec.h
|
2016-03-26 02:20:34 +00:00
|
|
|
hle/common.h
|
2016-02-21 13:13:52 +00:00
|
|
|
hle/dsp.h
|
2016-03-26 02:20:34 +00:00
|
|
|
hle/filter.h
|
2016-04-27 06:22:39 +00:00
|
|
|
hle/mixers.h
|
2016-02-21 13:13:52 +00:00
|
|
|
hle/pipe.h
|
2016-04-25 07:54:57 +00:00
|
|
|
hle/source.h
|
2016-04-24 20:11:47 +00:00
|
|
|
interpolate.h
|
2016-04-27 11:04:15 +00:00
|
|
|
null_sink.h
|
2016-02-21 13:13:52 +00:00
|
|
|
sink.h
|
2016-04-28 13:28:59 +00:00
|
|
|
sink_details.h
|
2016-05-15 02:04:03 +00:00
|
|
|
time_stretch.h
|
2016-02-21 13:13:52 +00:00
|
|
|
)
|
|
|
|
|
2016-04-27 09:57:29 +00:00
|
|
|
if(SDL2_FOUND)
|
|
|
|
set(SRCS ${SRCS} sdl2_sink.cpp)
|
|
|
|
set(HEADERS ${HEADERS} sdl2_sink.h)
|
|
|
|
endif()
|
|
|
|
|
2016-02-21 13:13:52 +00:00
|
|
|
create_directory_groups(${SRCS} ${HEADERS})
|
|
|
|
|
2016-04-24 13:18:30 +00:00
|
|
|
add_library(audio_core STATIC ${SRCS} ${HEADERS})
|
2017-05-28 01:26:55 +00:00
|
|
|
target_link_libraries(audio_core PUBLIC common core)
|
|
|
|
target_link_libraries(audio_core PRIVATE SoundTouch)
|
2016-04-27 09:57:29 +00:00
|
|
|
|
|
|
|
if(SDL2_FOUND)
|
2017-05-28 04:38:49 +00:00
|
|
|
target_link_libraries(audio_core PRIVATE 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()
|