Commit d65daa1f authored by Kai Engert's avatar Kai Engert
Browse files

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
parent 474ef9a0
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -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")
+16 −0
Original line number Diff line number Diff line
@@ -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)