Bug 1341234 - part 2 - add an intermediate step for determining bindgen's CFLAGS; r=gps

Add an intermediate step in old-configure.in for setting up
BINDGEN_CFLAGS (renamed to BINDGEN_SYSTEM_FLAGS), so we can add whatever
flags we like (e.g. for system libaries with their includes in
non-standard places) at a later point.
This commit is contained in:
Nathan Froyd 2017-11-10 10:05:36 -05:00
Родитель 380dc56df2
Коммит 17b6101551
3 изменённых файлов: 7 добавлений и 7 удалений

Просмотреть файл

@ -1072,16 +1072,13 @@ option(env='BINDGEN_CFLAGS',
@depends('BINDGEN_CFLAGS')
@checking('bindgen cflags', lambda s: s if s and s.strip() else 'no')
@checking('bindgen cflags', lambda s: s if s else 'no')
def bindgen_cflags(value):
if value and len(value):
# Reformat the env value for substitution into a toml list.
flags = value[0].split()
return ', '.join('"' + flag + '"' for flag in flags)
return ''
return value[0].split()
set_config('BINDGEN_CFLAGS', bindgen_cflags)
add_old_configure_assignment('_BINDGEN_CFLAGS', bindgen_cflags)
@depends(c_compiler)

Просмотреть файл

@ -1,4 +1,4 @@
[build]
args = [
@BINDGEN_CFLAGS@
@BINDGEN_SYSTEM_FLAGS@
]

Просмотреть файл

@ -4395,6 +4395,9 @@ AC_SUBST_LIST(MOZ_CAIRO_LIBS)
AC_SUBST_LIST(MOZ_CAIRO_OSLIBS)
AC_SUBST(MOZ_TREE_PIXMAN)
BINDGEN_SYSTEM_FLAGS="$_BINDGEN_CFLAGS"
AC_SUBST_TOML_LIST(BINDGEN_SYSTEM_FLAGS)
dnl ========================================================
dnl disable xul
dnl ========================================================