| OLD | NEW |
| 1 # Copyright 2014 The Chromium Authors. All rights reserved. | 1 # Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
| 3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
| 4 | 4 |
| 5 import("//third_party/WebKit/Source/config.gni") | 5 import("//third_party/WebKit/Source/config.gni") |
| 6 | 6 |
| 7 # All paths in this file should be absolute so targets in any directory can use | 7 # All paths in this file should be absolute so targets in any directory can use |
| 8 # them without worrying about the current directory. | 8 # them without worrying about the current directory. |
| 9 _scripts_dir = "//third_party/WebKit/Source/build/scripts" | 9 _scripts_dir = "//third_party/WebKit/Source/build/scripts" |
| 10 | 10 |
| (...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 66 bison_exe = rebase_path("//third_party/bison/bin/bison.exe", root_build_dir) | 66 bison_exe = rebase_path("//third_party/bison/bin/bison.exe", root_build_dir) |
| 67 } else { | 67 } else { |
| 68 gperf_exe = "gperf" | 68 gperf_exe = "gperf" |
| 69 bison_exe = "bison" | 69 bison_exe = "bison" |
| 70 } | 70 } |
| 71 | 71 |
| 72 # Templates -------------------------------------------------------------------- | 72 # Templates -------------------------------------------------------------------- |
| 73 | 73 |
| 74 _blink_gen_dir = "$root_gen_dir/blink" | 74 _blink_gen_dir = "$root_gen_dir/blink" |
| 75 | 75 |
| 76 # The GYP target make_core_generated has some deps and a bunch of actions on | |
| 77 # it, which means that the deps will be resolved before the actions run. Here | |
| 78 # we have separate targets for each action. Its not clear which actions depend | |
| 79 # on these deps, so for GYP compatibility, all of the below actions should | |
| 80 # depend on the following deps. | |
| 81 make_core_generated_deps = [ | 76 make_core_generated_deps = [ |
| 82 "//third_party/WebKit/Source/core:generated_testing_idls", | 77 "//third_party/WebKit/Source/core:generated_testing_idls", |
| 83 "//third_party/WebKit/Source/core:core_event_interfaces", | 78 "//third_party/WebKit/Source/core:core_event_interfaces", |
| 84 ] | 79 ] |
| 85 | 80 |
| 86 # Template to run most of scripts that process "*.in" files. | 81 # Template to run most of scripts that process "*.in" files. |
| 87 # script: script to run. | 82 # script: script to run. |
| 88 # in_files: ".in" files to pass to the script | 83 # in_files: ".in" files to pass to the script |
| 89 # other_inputs: (optional) other input files the script depends on | 84 # other_inputs: (optional) other input files the script depends on |
| 90 # defaults to "scripts_for_in_files" (if specified, we assume | 85 # defaults to "scripts_for_in_files" (if specified, we assume |
| 91 # that the contents of "scripts_for_in_files" are included in | 86 # that the contents of "scripts_for_in_files" are included in |
| 92 # this list specified since this is how these lists are filled | 87 # this list). |
| 93 # from the GYP build. | |
| 94 # outputs: expected results. Note that the directory of the 0th item in this | 88 # outputs: expected results. Note that the directory of the 0th item in this |
| 95 # list will be taken to be the output path. | 89 # list will be taken to be the output path. |
| 96 # other_args: (optional) other arguments to pass to the script. | 90 # other_args: (optional) other arguments to pass to the script. |
| 97 # deps [optional]: | 91 # deps [optional]: |
| 98 # Depenendencies. If unspecified defaults to make_core_generated_deps. | 92 # Depenendencies. If unspecified defaults to make_core_generated_deps. |
| 99 template("process_in_files") { | 93 template("process_in_files") { |
| 100 action(target_name) { | 94 action(target_name) { |
| 101 script = invoker.script | 95 script = invoker.script |
| 102 | 96 |
| 103 inputs = invoker.in_files | 97 inputs = invoker.in_files |
| (...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 193 other_inputs = make_event_factory_files | 187 other_inputs = make_event_factory_files |
| 194 forward_variables_from(invoker, | 188 forward_variables_from(invoker, |
| 195 [ | 189 [ |
| 196 "deps", | 190 "deps", |
| 197 "in_files", | 191 "in_files", |
| 198 "outputs", | 192 "outputs", |
| 199 "visibility", | 193 "visibility", |
| 200 ]) | 194 ]) |
| 201 } | 195 } |
| 202 } | 196 } |
| OLD | NEW |