don't build bluez when sbc is missing

This commit is contained in:
Wim Taymans 2018-01-23 16:06:54 +01:00
parent cf036a15f0
commit afae27b4cc
2 changed files with 4 additions and 2 deletions

View file

@ -8,7 +8,7 @@ avcodec_dep = dependency('libavcodec', required : false)
avformat_dep = dependency('libavformat', required : false) avformat_dep = dependency('libavformat', required : false)
avfilter_dep = dependency('libavfilter', required : false) avfilter_dep = dependency('libavfilter', required : false)
libva_dep = dependency('libva', required : false) libva_dep = dependency('libva', required : false)
sbc_dep = dependency('sbc') sbc_dep = dependency('sbc', required : false)
libudev_dep = dependency('libudev') libudev_dep = dependency('libudev')
threads_dep = dependency('threads') threads_dep = dependency('threads')

View file

@ -1,7 +1,9 @@
subdir('alsa') subdir('alsa')
subdir('audiomixer') subdir('audiomixer')
subdir('audiotestsrc') subdir('audiotestsrc')
subdir('bluez5') if sbc_dep.found()
subdir('bluez5')
endif
if avcodec_dep.found() if avcodec_dep.found()
subdir('ffmpeg') subdir('ffmpeg')
endif endif