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

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

Issue 2980933002: DO NOT SUBMIT, Uglify print preview resources, WIP.
Patch Set: 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
« no previous file with comments | « chrome/browser/resources/uglify_gn.py ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
67 67
68 if (defined(invoker.insert_in_head)) { 68 if (defined(invoker.insert_in_head)) {
69 args += [ 69 args += [
70 "--insert_in_head", 70 "--insert_in_head",
71 invoker.insert_in_head, 71 invoker.insert_in_head,
72 ] 72 ]
73 } 73 }
74 } 74 }
75 } 75 }
76 76
77 template("uglify") {
78 node(target_name) {
79 script = "//chrome/browser/resources/uglify_gn.py"
80
81 # Input and outputs files must be in the same order.
82 inputs = []
83
84 #foreach(_input, invoker.input_files) {
85 # inputs += [ "$target_gen_dir/$_input" ]
86 #}
87 outputs = [
88 "$target_gen_dir/${invoker.output_file}",
89 ]
90
91 args = [
92 "--base_folder",
93 invoker.base_folder,
94 "--out_folder",
95 rebase_path(target_gen_dir, root_build_dir),
96 "--input_files",
97 ] + invoker.input_files +
98 [
99 "--output_file",
100 invoker.output_file,
101 ]
102 }
103 }
104
77 template("polymer_css_build") { 105 template("polymer_css_build") {
78 node(target_name) { 106 node(target_name) {
79 script = "//chrome/browser/resources/polymer_css_build_gn.py" 107 script = "//chrome/browser/resources/polymer_css_build_gn.py"
80 108
81 # Input and outputs files must be in the same order. 109 # Input and outputs files must be in the same order.
82 inputs = [] 110 inputs = []
83 foreach(_input, invoker.input_files) { 111 foreach(_input, invoker.input_files) {
84 inputs += [ "$target_gen_dir/$_input" ] 112 inputs += [ "$target_gen_dir/$_input" ]
85 } 113 }
86 114
(...skipping 27 matching lines...) Expand all
114 deps = invoker.deps 142 deps = invoker.deps
115 143
116 args = [ 144 args = [
117 "--out_folder", 145 "--out_folder",
118 rebase_path("$target_gen_dir/${invoker.out_folder}", root_build_dir), 146 rebase_path("$target_gen_dir/${invoker.out_folder}", root_build_dir),
119 "--pak_file", 147 "--pak_file",
120 rebase_path("$target_gen_dir/${invoker.pak_file}", root_build_dir), 148 rebase_path("$target_gen_dir/${invoker.pak_file}", root_build_dir),
121 ] 149 ]
122 } 150 }
123 } 151 }
OLDNEW
« no previous file with comments | « chrome/browser/resources/uglify_gn.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698