Bug 1452509 - Require Jack package for --enable-jack build. r=froydnj

MozReview-Commit-ID: HT3ZCrEAN8Y

--HG--
extra : rebase_source : 0fc577c097fcc390c79514019099680b3129c748
This commit is contained in:
Jan Beich 2018-03-18 23:42:22 +00:00
parent 7b147808f6
commit 60f9bc442d
2 changed files with 4 additions and 6 deletions

View File

@ -88,6 +88,7 @@ if CONFIG['OS_TARGET'] == 'Android':
FINAL_LIBRARY = 'gkmedias'
CFLAGS += CONFIG['MOZ_ALSA_CFLAGS']
CFLAGS += CONFIG['MOZ_JACK_CFLAGS']
CFLAGS += CONFIG['MOZ_PULSEAUDIO_CFLAGS']
# We allow warnings for third-party code that can be updated from upstream.

View File

@ -60,13 +60,10 @@ imply_option('--enable-replace-malloc', dmd)
option('--enable-jack', env='MOZ_JACK',
help='Enable JACK audio backend.')
@depends('--enable-jack')
def jack(value):
if value:
return True
jack = pkg_check_modules('MOZ_JACK', 'jack', when='--enable-jack')
set_config('MOZ_JACK', jack)
set_define('MOZ_JACK', jack)
set_config('MOZ_JACK', depends_if(jack)(lambda _: True))
set_define('MOZ_JACK', depends_if(jack)(lambda _: True))
# Javascript engine
# ==============================================================