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

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

Issue 2936333002: WebUI: Replace vulcanize with polymer-bundler (Closed)
Patch Set: update polymer bundler Created 3 years, 5 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("node") { 5 template("node") {
6 action(target_name) { 6 action(target_name) {
7 forward_variables_from(invoker, "*") 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 += [
(...skipping 16 matching lines...) Expand all
27 27
28 template("vulcanize") { 28 template("vulcanize") {
29 node(target_name) { 29 node(target_name) {
30 script = "//chrome/browser/resources/vulcanize_gn.py" 30 script = "//chrome/browser/resources/vulcanize_gn.py"
31 31
32 inputs = [ 32 inputs = [
33 "//chrome/browser/resources/unpack_pak.py", 33 "//chrome/browser/resources/unpack_pak.py",
34 ] 34 ]
35 35
36 # This depfile is generated by vulcanize_gn.py 36 # This depfile is generated by vulcanize_gn.py
37 depfile = "${target_gen_dir}/${invoker.html_out_file}.d" 37 depfile = "${target_gen_dir}/${target_name}.d"
38 38
39 outputs = [ 39 outputs = []
40 "$target_gen_dir/${invoker.html_out_file}", 40 foreach(_out, invoker.html_out_files) {
41 "$target_gen_dir/${invoker.js_out_file}", 41 outputs += [ "$target_gen_dir/$_out" ]
42 ] 42 }
43 foreach(_out, invoker.js_out_files) {
44 outputs += [ "$target_gen_dir/$_out" ]
45 }
46
43 deps = invoker.deps 47 deps = invoker.deps
44 48
45 # Note that we have to manually pass the sources to our script if the 49 # Note that we have to manually pass the sources to our script if the
46 # script needs them as inputs. 50 # script needs them as inputs.
47 args = [ 51 args = [
48 "--host", 52 "--host",
49 invoker.host, 53 invoker.host,
50 "--html_in_file",
51 invoker.html_in_file,
52 "--html_out_file",
53 invoker.html_out_file,
54 "--js_out_file",
55 invoker.js_out_file,
56 "--input", 54 "--input",
57 invoker.input, 55 invoker.input,
58 "--out_folder", 56 "--out_folder",
59 rebase_path(target_gen_dir, root_build_dir), 57 rebase_path(target_gen_dir, root_build_dir),
60 "--depfile", 58 "--depfile",
61 rebase_path(depfile, root_build_dir), 59 rebase_path(depfile, root_build_dir),
62 ] 60 ]
63 61
62 args += [ "--html_in_files" ] + invoker.html_in_files
63 args += [ "--html_out_files" ] + invoker.html_out_files
64 args += [ "--js_out_files" ] + invoker.js_out_files
65
64 if (defined(invoker.excludes)) { 66 if (defined(invoker.excludes)) {
65 args += [ "--exclude" ] + invoker.excludes 67 args += [ "--exclude" ] + invoker.excludes
66 } 68 }
67 69
68 if (defined(invoker.insert_in_head)) { 70 if (defined(invoker.insert_in_head)) {
69 args += [ 71 args += [
70 "--insert_in_head", 72 "--insert_in_head",
71 invoker.insert_in_head, 73 invoker.insert_in_head,
72 ] 74 ]
73 } 75 }
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
114 deps = invoker.deps 116 deps = invoker.deps
115 117
116 args = [ 118 args = [
117 "--out_folder", 119 "--out_folder",
118 rebase_path("$target_gen_dir/${invoker.out_folder}", root_build_dir), 120 rebase_path("$target_gen_dir/${invoker.out_folder}", root_build_dir),
119 "--pak_file", 121 "--pak_file",
120 rebase_path("$target_gen_dir/${invoker.pak_file}", root_build_dir), 122 rebase_path("$target_gen_dir/${invoker.pak_file}", root_build_dir),
121 ] 123 ]
122 } 124 }
123 } 125 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698