diff options
author | Matt A. Tobin <email@mattatobin.com> | 2020-11-03 16:57:05 -0500 |
---|---|---|
committer | Matt A. Tobin <email@mattatobin.com> | 2020-11-03 16:57:05 -0500 |
commit | 24a5a7f7c98d2ea6396a79cbbfd3c4fb07376374 (patch) | |
tree | 7e1b43c4deeb353950e9a83f46bfa0e028304218 /js/src/builtin | |
parent | ec13658ab9384260fe4e05ab14c4a73ef9a2f5a5 (diff) | |
download | UXP-24a5a7f7c98d2ea6396a79cbbfd3c4fb07376374.tar UXP-24a5a7f7c98d2ea6396a79cbbfd3c4fb07376374.tar.gz UXP-24a5a7f7c98d2ea6396a79cbbfd3c4fb07376374.tar.lz UXP-24a5a7f7c98d2ea6396a79cbbfd3c4fb07376374.tar.xz UXP-24a5a7f7c98d2ea6396a79cbbfd3c4fb07376374.zip |
Issue #1676 - Part 4: Split builtin sources out of js/src/moz.build
Diffstat (limited to 'js/src/builtin')
-rw-r--r-- | js/src/builtin/moz.build | 73 |
1 files changed, 73 insertions, 0 deletions
diff --git a/js/src/builtin/moz.build b/js/src/builtin/moz.build new file mode 100644 index 000000000..ebf9318db --- /dev/null +++ b/js/src/builtin/moz.build @@ -0,0 +1,73 @@ +# -*- 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/. + +include('../js-config.mozbuild') +include('../js-cxxflags.mozbuild') + +FINAL_LIBRARY = "js" + +# Includes should be relative to parent path +LOCAL_INCLUDES += ["!..", ".."] + +SOURCES += [ + 'AtomicsObject.cpp', + 'Eval.cpp', + 'Intl.cpp', + 'MapObject.cpp', + 'ModuleObject.cpp', + 'Object.cpp', + 'Profilers.cpp', + 'Promise.cpp', + 'Reflect.cpp', + 'ReflectParse.cpp', + 'RegExp.cpp', + 'SIMD.cpp', + 'SymbolObject.cpp', + 'TestingFunctions.cpp', + 'TypedObject.cpp', + 'WeakMapObject.cpp', + 'WeakSetObject.cpp', +] + +if CONFIG['_MSC_VER']: + if CONFIG['CPU_ARCH'] == 'x86': + SOURCES['RegExp.cpp'].no_pgo = True # Bug 772303 + +# Prepare self-hosted JS code for embedding +GENERATED_FILES += [('selfhosted.out.h', 'selfhosted.js')] +selfhosted = GENERATED_FILES[('selfhosted.out.h', 'selfhosted.js')] +selfhosted.script = 'embedjs.py:generate_selfhosted' +selfhosted.inputs = [ + '../js.msg', + 'TypedObjectConstants.h', + 'SelfHostingDefines.h', + 'Utilities.js', + 'Array.js', + 'AsyncIteration.js', + 'Classes.js', + 'Date.js', + 'Error.js', + 'Function.js', + 'Generator.js', + 'Intl.js', + 'IntlData.js', + 'Iterator.js', + 'Map.js', + 'Module.js', + 'Number.js', + 'Object.js', + 'Promise.js', + 'Reflect.js', + 'RegExp.js', + 'RegExpGlobalReplaceOpt.h.js', + 'RegExpLocalReplaceOpt.h.js', + 'String.js', + 'Set.js', + 'Sorting.js', + 'TypedArray.js', + 'TypedObject.js', + 'WeakMap.js', + 'WeakSet.js', +] |