| Index: chrome/browser/resources/vulcanize.gni
|
| diff --git a/chrome/browser/resources/vulcanize.gni b/chrome/browser/resources/vulcanize.gni
|
| index bbb64101e912380e2bf59e7f9e8097cdb5741f9c..2765e85e47ee62c4cb7047ab3da3c5ef98f14dde 100644
|
| --- a/chrome/browser/resources/vulcanize.gni
|
| +++ b/chrome/browser/resources/vulcanize.gni
|
| @@ -2,13 +2,12 @@
|
| # Use of this source code is governed by a BSD-style license that can be
|
| # found in the LICENSE file.
|
|
|
| -template("vulcanize") {
|
| +template("node") {
|
| action(target_name) {
|
| - script = "//chrome/browser/resources/vulcanize_gn.py"
|
| + forward_variables_from(invoker, "*")
|
|
|
| # Declare dependencies to all involved tools.
|
| - inputs = [
|
| - "//chrome/browser/resources/unpack_pak.py",
|
| + inputs += [
|
| "//third_party/node/node.py",
|
| "//third_party/node/node_modules.py",
|
| "//third_party/node/node_modules.tar.gz.sha1",
|
| @@ -23,7 +22,18 @@ template("vulcanize") {
|
| if (is_mac) {
|
| inputs += [ "//third_party/node/mac/node-darwin-x64.tar.gz.sha1" ]
|
| }
|
| + }
|
| +}
|
| +
|
| +template("vulcanize") {
|
| + node(target_name) {
|
| + script = "//chrome/browser/resources/vulcanize_gn.py"
|
| +
|
| + inputs = [
|
| + "//chrome/browser/resources/unpack_pak.py",
|
| + ]
|
|
|
| + # This depfile is generated by vulcanize_gn.py
|
| depfile = "${target_gen_dir}/${target_name}.d"
|
|
|
| outputs = [
|
| @@ -63,3 +73,28 @@ template("vulcanize") {
|
| }
|
| }
|
| }
|
| +
|
| +template("css_build") {
|
| + node(target_name) {
|
| + script = "//chrome/browser/resources/css_build_gn.py"
|
| +
|
| + inputs = []
|
| +
|
| + foreach(_input, invoker.input_files) {
|
| + inputs += [ "$target_gen_dir/$_input" ]
|
| + }
|
| +
|
| + outputs = []
|
| + foreach(_output, invoker.output_files) {
|
| + outputs += [ "$target_gen_dir/$_output" ]
|
| + }
|
| +
|
| + deps = invoker.deps
|
| +
|
| + args = [
|
| + "--out_folder",
|
| + rebase_path(target_gen_dir, root_build_dir),
|
| + "--input_files",
|
| + ] + invoker.input_files + [ "--output_files" ] + invoker.output_files
|
| + }
|
| +}
|
|
|