mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-23 21:01:08 +00:00
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:
parent
474ef9a0f2
commit
d65daa1f26
@ -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")
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user