2016-02-21 05:13:52 -08:00
|
|
|
set(SRCS
|
|
|
|
audio_core.cpp
|
2016-03-23 17:12:54 -07:00
|
|
|
codec.cpp
|
2016-02-21 05:13:52 -08:00
|
|
|
hle/dsp.cpp
|
2016-03-25 19:20:34 -07:00
|
|
|
hle/filter.cpp
|
2016-04-26 23:22:39 -07:00
|
|
|
hle/mixers.cpp
|
2016-02-21 05:13:52 -08:00
|
|
|
hle/pipe.cpp
|
2016-04-25 00:54:57 -07:00
|
|
|
hle/source.cpp
|
2016-04-24 13:11:47 -07:00
|
|
|
interpolate.cpp
|
2016-04-28 06:28:59 -07:00
|
|
|
sink_details.cpp
|
2016-05-14 19:04:03 -07:00
|
|
|
time_stretch.cpp
|
2016-02-21 05:13:52 -08:00
|
|
|
)
|
|
|
|
|
|
|
|
set(HEADERS
|
|
|
|
audio_core.h
|
2016-03-23 17:12:54 -07:00
|
|
|
codec.h
|
2016-03-25 19:20:34 -07:00
|
|
|
hle/common.h
|
2016-02-21 05:13:52 -08:00
|
|
|
hle/dsp.h
|
2016-03-25 19:20:34 -07:00
|
|
|
hle/filter.h
|
2016-04-26 23:22:39 -07:00
|
|
|
hle/mixers.h
|
2016-02-21 05:13:52 -08:00
|
|
|
hle/pipe.h
|
2016-04-25 00:54:57 -07:00
|
|
|
hle/source.h
|
2016-04-24 13:11:47 -07:00
|
|
|
interpolate.h
|
2016-04-27 04:04:15 -07:00
|
|
|
null_sink.h
|
2016-02-21 05:13:52 -08:00
|
|
|
sink.h
|
2016-04-28 06:28:59 -07:00
|
|
|
sink_details.h
|
2016-05-14 19:04:03 -07:00
|
|
|
time_stretch.h
|
2016-02-21 05:13:52 -08:00
|
|
|
)
|
|
|
|
|
2016-04-24 06:18:30 -07:00
|
|
|
include_directories(../../externals/soundtouch/include)
|
|
|
|
|
2016-04-27 02:57:29 -07:00
|
|
|
if(SDL2_FOUND)
|
|
|
|
set(SRCS ${SRCS} sdl2_sink.cpp)
|
|
|
|
set(HEADERS ${HEADERS} sdl2_sink.h)
|
|
|
|
include_directories(${SDL2_INCLUDE_DIR})
|
|
|
|
endif()
|
|
|
|
|
2016-02-21 05:13:52 -08:00
|
|
|
create_directory_groups(${SRCS} ${HEADERS})
|
|
|
|
|
2016-04-24 06:18:30 -07:00
|
|
|
add_library(audio_core STATIC ${SRCS} ${HEADERS})
|
|
|
|
target_link_libraries(audio_core SoundTouch)
|
2016-04-27 02:57:29 -07:00
|
|
|
|
|
|
|
if(SDL2_FOUND)
|
|
|
|
target_link_libraries(audio_core ${SDL2_LIBRARY})
|
|
|
|
set_property(TARGET audio_core APPEND PROPERTY COMPILE_DEFINITIONS HAVE_SDL2)
|
|
|
|
endif()
|