Merge pull request #959 from KAMiKAZOW/cubeb-compilation

Make building cubeb optional
This commit is contained in:
bunnei 2018-08-07 14:25:17 -04:00 committed by GitHub
commit 07595987ac
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -4,8 +4,6 @@ add_library(audio_core STATIC
audio_renderer.cpp audio_renderer.cpp
audio_renderer.h audio_renderer.h
buffer.h buffer.h
cubeb_sink.cpp
cubeb_sink.h
codec.cpp codec.cpp
codec.h codec.h
null_sink.h null_sink.h
@ -15,6 +13,8 @@ add_library(audio_core STATIC
sink_details.cpp sink_details.cpp
sink_details.h sink_details.h
sink_stream.h sink_stream.h
$<$<BOOL:${ENABLE_CUBEB}>:cubeb_sink.cpp cubeb_sink.h>
) )
create_target_directory_groups(audio_core) create_target_directory_groups(audio_core)