Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(218)

Side by Side Diff: chrome/browser/resources/vulcanize.gni

Issue 2698143003: [MD WebUI] Polymer-CSS-Build across all bundles. (Closed)
Patch Set: Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 # Copyright 2017 The Chromium Authors. All rights reserved. 1 # Copyright 2017 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 template("vulcanize") { 5 template("node") {
6 action(target_name) { 6 action(target_name) {
7 script = "//chrome/browser/resources/vulcanize_gn.py" 7 forward_variables_from(invoker, "*")
8 8
9 # Declare dependencies to all involved tools. 9 # Declare dependencies to all involved tools.
10 inputs = [ 10 inputs += [
11 "//chrome/browser/resources/unpack_pak.py",
12 "//third_party/node/node.py", 11 "//third_party/node/node.py",
13 "//third_party/node/node_modules.py", 12 "//third_party/node/node_modules.py",
14 "//third_party/node/node_modules.tar.gz.sha1", 13 "//third_party/node/node_modules.tar.gz.sha1",
15 ] 14 ]
16 15
17 if (is_linux) { 16 if (is_linux) {
18 inputs += [ "//third_party/node/linux/node-linux-x64.tar.gz.sha1" ] 17 inputs += [ "//third_party/node/linux/node-linux-x64.tar.gz.sha1" ]
19 } 18 }
20 if (is_win) { 19 if (is_win) {
21 inputs += [ "//third_party/node/win/node.exe.sha1" ] 20 inputs += [ "//third_party/node/win/node.exe.sha1" ]
22 } 21 }
23 if (is_mac) { 22 if (is_mac) {
24 inputs += [ "//third_party/node/mac/node-darwin-x64.tar.gz.sha1" ] 23 inputs += [ "//third_party/node/mac/node-darwin-x64.tar.gz.sha1" ]
25 } 24 }
25 }
26 }
26 27
28 template("vulcanize") {
29 node(target_name) {
30 script = "//chrome/browser/resources/vulcanize_gn.py"
31
32 inputs = [
33 "//chrome/browser/resources/unpack_pak.py",
34 ]
35
36 # This depfile is generated by vulcanize_gn.py
27 depfile = "${target_gen_dir}/${target_name}.d" 37 depfile = "${target_gen_dir}/${target_name}.d"
28 38
29 outputs = [ 39 outputs = [
30 "$target_gen_dir/${invoker.html_out_file}", 40 "$target_gen_dir/${invoker.html_out_file}",
31 "$target_gen_dir/${invoker.js_out_file}", 41 "$target_gen_dir/${invoker.js_out_file}",
32 ] 42 ]
33 deps = invoker.deps 43 deps = invoker.deps
34 44
35 # Note that we have to manually pass the sources to our script if the 45 # Note that we have to manually pass the sources to our script if the
36 # script needs them as inputs. 46 # script needs them as inputs.
(...skipping 19 matching lines...) Expand all
56 } 66 }
57 67
58 if (defined(invoker.insert_in_head)) { 68 if (defined(invoker.insert_in_head)) {
59 args += [ 69 args += [
60 "--insert_in_head", 70 "--insert_in_head",
61 invoker.insert_in_head, 71 invoker.insert_in_head,
62 ] 72 ]
63 } 73 }
64 } 74 }
65 } 75 }
76
77 template("css_build") {
78 node(target_name) {
79 script = "//chrome/browser/resources/css_build_gn.py"
80
81 inputs = []
82
83 foreach(_input, invoker.input_files) {
84 inputs += [ "$target_gen_dir/$_input" ]
85 }
86
87 outputs = []
88 foreach(_output, invoker.output_files) {
89 outputs += [ "$target_gen_dir/$_output" ]
90 }
91
92 deps = invoker.deps
93
94 args = [
95 "--out_folder",
96 rebase_path(target_gen_dir, root_build_dir),
97 "--input_files",
98 ] + invoker.input_files + [ "--output_files" ] + invoker.output_files
99 }
100 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698