From fff922afee6e564dfe7849d88da9abe070974f43 Mon Sep 17 00:00:00 2001 From: Refael Ackermann Date: Sat, 23 Mar 2019 17:57:31 -0400 Subject: [PATCH] deps,build: compute torque_outputs in v8.gyp MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit PR-URL: https://github.com/nodejs/node/pull/26685 Reviewed-By: Anna Henningsen Reviewed-By: Michaƫl Zasso Reviewed-By: Refael Ackermann --- deps/v8/gypfiles/ForEachFormat.py | 5 +++ deps/v8/gypfiles/v8.gyp | 67 +------------------------------ tools/gyp/pylib/gyp/input.py | 2 + 3 files changed, 9 insertions(+), 65 deletions(-) create mode 100644 deps/v8/gypfiles/ForEachFormat.py diff --git a/deps/v8/gypfiles/ForEachFormat.py b/deps/v8/gypfiles/ForEachFormat.py new file mode 100644 index 00000000000000..3015cb8b82ff91 --- /dev/null +++ b/deps/v8/gypfiles/ForEachFormat.py @@ -0,0 +1,5 @@ +# Copyright (c) 2019 Refael Ackeramnn. All rights reserved. +# Use of this source code is governed by an MIT-style license. +def DoMain(args): + format_str = args.pop(0) + return ' '.join(format_str % a for a in args) diff --git a/deps/v8/gypfiles/v8.gyp b/deps/v8/gypfiles/v8.gyp index ba3ba8ddaed44f..48b1e2ac62f32e 100644 --- a/deps/v8/gypfiles/v8.gyp +++ b/deps/v8/gypfiles/v8.gyp @@ -92,71 +92,8 @@ # "$target_gen_dir/torque-generated/builtins-$namespace-from-dsl-gen.h", # ] # } - 'torque_output_root': '<(SHARED_INTERMEDIATE_DIR)/torque-output-root', - 'torque_outputs': [ - '<(torque_output_root)/torque-generated/builtins-arguments-from-dsl-gen.cc', - '<(torque_output_root)/torque-generated/builtins-arguments-from-dsl-gen.h', - '<(torque_output_root)/torque-generated/builtins-array-from-dsl-gen.cc', - '<(torque_output_root)/torque-generated/builtins-array-from-dsl-gen.h', - '<(torque_output_root)/torque-generated/builtins-array-copywithin-from-dsl-gen.cc', - '<(torque_output_root)/torque-generated/builtins-array-copywithin-from-dsl-gen.h', - '<(torque_output_root)/torque-generated/builtins-array-filter-from-dsl-gen.cc', - '<(torque_output_root)/torque-generated/builtins-array-filter-from-dsl-gen.h', - '<(torque_output_root)/torque-generated/builtins-array-find-from-dsl-gen.cc', - '<(torque_output_root)/torque-generated/builtins-array-find-from-dsl-gen.h', - '<(torque_output_root)/torque-generated/builtins-array-findindex-from-dsl-gen.cc', - '<(torque_output_root)/torque-generated/builtins-array-findindex-from-dsl-gen.h', - '<(torque_output_root)/torque-generated/builtins-array-foreach-from-dsl-gen.cc', - '<(torque_output_root)/torque-generated/builtins-array-foreach-from-dsl-gen.h', - '<(torque_output_root)/torque-generated/builtins-array-join-from-dsl-gen.cc', - '<(torque_output_root)/torque-generated/builtins-array-join-from-dsl-gen.h', - '<(torque_output_root)/torque-generated/builtins-array-map-from-dsl-gen.cc', - '<(torque_output_root)/torque-generated/builtins-array-map-from-dsl-gen.h', - '<(torque_output_root)/torque-generated/builtins-array-of-from-dsl-gen.cc', - '<(torque_output_root)/torque-generated/builtins-array-of-from-dsl-gen.h', - '<(torque_output_root)/torque-generated/builtins-array-reverse-from-dsl-gen.cc', - '<(torque_output_root)/torque-generated/builtins-array-reverse-from-dsl-gen.h', - '<(torque_output_root)/torque-generated/builtins-array-slice-from-dsl-gen.cc', - '<(torque_output_root)/torque-generated/builtins-array-slice-from-dsl-gen.h', - '<(torque_output_root)/torque-generated/builtins-array-splice-from-dsl-gen.cc', - '<(torque_output_root)/torque-generated/builtins-array-splice-from-dsl-gen.h', - '<(torque_output_root)/torque-generated/builtins-array-unshift-from-dsl-gen.cc', - '<(torque_output_root)/torque-generated/builtins-array-unshift-from-dsl-gen.h', - '<(torque_output_root)/torque-generated/builtins-array-lastindexof-from-dsl-gen.cc', - '<(torque_output_root)/torque-generated/builtins-array-lastindexof-from-dsl-gen.h', - '<(torque_output_root)/torque-generated/builtins-base-from-dsl-gen.cc', - '<(torque_output_root)/torque-generated/builtins-base-from-dsl-gen.h', - '<(torque_output_root)/torque-generated/builtins-collections-from-dsl-gen.cc', - '<(torque_output_root)/torque-generated/builtins-collections-from-dsl-gen.h', - '<(torque_output_root)/torque-generated/builtins-data-view-from-dsl-gen.cc', - '<(torque_output_root)/torque-generated/builtins-data-view-from-dsl-gen.h', - '<(torque_output_root)/torque-generated/builtins-extras-utils-from-dsl-gen.cc', - '<(torque_output_root)/torque-generated/builtins-extras-utils-from-dsl-gen.h', - '<(torque_output_root)/torque-generated/builtins-growable-fixed-array-from-dsl-gen.cc', - '<(torque_output_root)/torque-generated/builtins-growable-fixed-array-from-dsl-gen.h', - '<(torque_output_root)/torque-generated/builtins-iterator-from-dsl-gen.cc', - '<(torque_output_root)/torque-generated/builtins-iterator-from-dsl-gen.h', - '<(torque_output_root)/torque-generated/builtins-object-from-dsl-gen.cc', - '<(torque_output_root)/torque-generated/builtins-object-from-dsl-gen.h', - '<(torque_output_root)/torque-generated/builtins-string-from-dsl-gen.cc', - '<(torque_output_root)/torque-generated/builtins-string-from-dsl-gen.h', - '<(torque_output_root)/torque-generated/builtins-typed-array-from-dsl-gen.cc', - '<(torque_output_root)/torque-generated/builtins-typed-array-from-dsl-gen.h', - '<(torque_output_root)/torque-generated/builtins-typed-array-createtypedarray-from-dsl-gen.cc', - '<(torque_output_root)/torque-generated/builtins-typed-array-createtypedarray-from-dsl-gen.h', - '<(torque_output_root)/torque-generated/builtins-typed-array-filter-from-dsl-gen.cc', - '<(torque_output_root)/torque-generated/builtins-typed-array-filter-from-dsl-gen.h', - '<(torque_output_root)/torque-generated/builtins-typed-array-foreach-from-dsl-gen.cc', - '<(torque_output_root)/torque-generated/builtins-typed-array-foreach-from-dsl-gen.h', - '<(torque_output_root)/torque-generated/builtins-typed-array-reduce-from-dsl-gen.cc', - '<(torque_output_root)/torque-generated/builtins-typed-array-reduce-from-dsl-gen.h', - '<(torque_output_root)/torque-generated/builtins-typed-array-reduceright-from-dsl-gen.cc', - '<(torque_output_root)/torque-generated/builtins-typed-array-reduceright-from-dsl-gen.h', - '<(torque_output_root)/torque-generated/builtins-typed-array-slice-from-dsl-gen.cc', - '<(torque_output_root)/torque-generated/builtins-typed-array-slice-from-dsl-gen.h', - '<(torque_output_root)/torque-generated/builtins-typed-array-subarray-from-dsl-gen.cc', - '<(torque_output_root)/torque-generated/builtins-typed-array-subarray-from-dsl-gen.h', - ], + 'torque_outputs': [ '