Bug 1570064 - Allow app (e.g. Thunderbird) to extend the system-headers variable. r=froydnj

Differential Revision: https://phabricator.services.mozilla.com/D45922

--HG--
extra : moz-landing-system : lando
This commit is contained in:
Kai Engert 2019-09-17 09:54:33 +00:00
parent 474ef9a0f2
commit d65daa1f26
2 changed files with 19 additions and 0 deletions

View File

@ -1346,3 +1346,6 @@ if CONFIG['OS_TARGET'] == 'Linux' and CONFIG['CPU_ARCH'].startswith('mips'):
system_headers += [
'sys/cachectl.h',
]
if CONFIG['MOZ_APP_SYSTEM_HEADERS']:
include("../" + CONFIG['MOZ_BUILD_APP'] + "/app-system-headers.mozbuild")

View File

@ -741,6 +741,22 @@ def rust_simd(value, target):
set_config('MOZ_RUST_SIMD', rust_simd)
set_define('MOZ_RUST_SIMD', rust_simd)
# Additional system headers defined at the application level
# ==============================================================
option('--enable-app-system-headers', env='MOZ_APP_SYSTEM_HEADERS',
help='Use additional system headers defined in $MOZ_BUILD_APP/app-system-headers.mozbuild')
@depends('--enable-app-system-headers')
def app_system_headers(value):
if value:
return True
set_config('MOZ_APP_SYSTEM_HEADERS', app_system_headers)
set_define('MOZ_APP_SYSTEM_HEADERS', app_system_headers)
# Printing
# ==============================================================
@depends(target)