diff options
author | Matt A. Tobin <email@mattatobin.com> | 2020-11-03 15:20:38 -0500 |
---|---|---|
committer | Matt A. Tobin <email@mattatobin.com> | 2020-11-03 15:20:38 -0500 |
commit | 71c28a9bf42311dc683bbf75e8ece8e2adb32939 (patch) | |
tree | 369ee274a5320c8900008aef8b9f88432b8e8faf /js/src/js-config.mozbuild | |
parent | 2e8d80eaefb73d28d9c9b371bc99d52a07a4e4bb (diff) | |
download | uxp-71c28a9bf42311dc683bbf75e8ece8e2adb32939.tar.gz |
Issue mcp-graveyard/UXP#1676 - Part 3: Split DEFINES out of js/src/moz.build
Diffstat (limited to 'js/src/js-config.mozbuild')
-rw-r--r-- | js/src/js-config.mozbuild | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/js/src/js-config.mozbuild b/js/src/js-config.mozbuild new file mode 100644 index 0000000000..82fb4e53e3 --- /dev/null +++ b/js/src/js-config.mozbuild @@ -0,0 +1,32 @@ +# -*- Mode: python; indent-tabs-mode: nil; tab-width: 40 -*- +# This Source Code Form is subject to the terms of the Mozilla Public +# License, v. 2.0. If a copy of the MPL was not distributed with this +# file, You can obtain one at http://mozilla.org/MPL/2.0/. + +# Also set in shell/moz.build +DEFINES['ENABLE_SHARED_ARRAY_BUFFER'] = True + +DEFINES['EXPORT_JS_API'] = True + +if CONFIG['NIGHTLY_BUILD']: + DEFINES['ENABLE_BINARYDATA'] = True + +if CONFIG['NIGHTLY_BUILD']: + DEFINES['ENABLE_SIMD'] = True + +if CONFIG['JS_HAS_CTYPES']: + DEFINES['JS_HAS_CTYPES'] = True + for var in ('DLL_PREFIX', 'DLL_SUFFIX'): + DEFINES[var] = '"%s"' % CONFIG[var] + +if CONFIG['MOZ_LINKER']: + DEFINES['MOZ_LINKER'] = True + +if CONFIG['JS_HAS_CTYPES']: + if not CONFIG['MOZ_SYSTEM_FFI']: + # Windows needs this to be linked with a static library. + DEFINES['FFI_BUILDING'] = True + +if CONFIG['OS_ARCH'] == 'WINNT': + DEFINES['_CRT_RAND_S'] = True + DEFINES['NOMINMAX'] = True
\ No newline at end of file |