Add a conditional to not build the platform so the build system can be exploited for non-binary projects

This commit is contained in:
NTD 2018-09-27 02:08:07 -04:00 • committed by Roy Tam
commit 3715e576d2

View file

@ -24,7 +24,8 @@ DIRS += [
'taskcluster', 'taskcluster',
] ]
if not CONFIG['JS_STANDALONE']: if not CONFIG['MOZ_DISABLE_PLATFORM']:
if not CONFIG['JS_STANDALONE']:
CONFIGURE_SUBST_FILES += [ CONFIGURE_SUBST_FILES += [
'tools/update-packaging/Makefile', 'tools/update-packaging/Makefile',
] ]
@ -50,22 +51,22 @@ if not CONFIG['JS_STANDALONE']:
'probes', 'probes',
] ]
DIRS += [ DIRS += [
'config/external/fdlibm', 'config/external/fdlibm',
'config/external/nspr', 'config/external/nspr',
'config/external/zlib', 'config/external/zlib',
'memory', 'memory',
'mfbt', 'mfbt',
'mozglue', 'mozglue',
] ]
if not CONFIG['JS_STANDALONE']: if not CONFIG['JS_STANDALONE']:
DIRS += ['xpcom/xpidl'] DIRS += ['xpcom/xpidl']
if CONFIG['USE_ICU']: if CONFIG['USE_ICU']:
DIRS += ['config/external/icu'] DIRS += ['config/external/icu']
if CONFIG['COMPILE_ENVIRONMENT']: if CONFIG['COMPILE_ENVIRONMENT']:
if not CONFIG['JS_STANDALONE']: if not CONFIG['JS_STANDALONE']:
DIRS += [ DIRS += [
@ -77,7 +78,7 @@ if CONFIG['COMPILE_ENVIRONMENT']:
DIRS += ['config/external/ffi'] DIRS += ['config/external/ffi']
DIRS += ['js/src'] DIRS += ['js/src']
else: else:
TEST_DIRS += ['js/src/tests'] TEST_DIRS += ['js/src/tests']
if not CONFIG['JS_STANDALONE'] and CONFIG['MOZ_BUILD_APP']: if not CONFIG['JS_STANDALONE'] and CONFIG['MOZ_BUILD_APP']: