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

Unified 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/resources/uglify_gn.py ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/resources/vulcanize.gni
diff --git a/chrome/browser/resources/vulcanize.gni b/chrome/browser/resources/vulcanize.gni
index 69db5294cc8fa73b74f5f1ad3bb0a197ffcf512c..ca9bd1efba5ee2ea07face64810db2ab91d608d4 100644
--- a/chrome/browser/resources/vulcanize.gni
+++ b/chrome/browser/resources/vulcanize.gni
@@ -74,6 +74,34 @@ template("vulcanize") {
}
}
+template("uglify") {
+ node(target_name) {
+ script = "//chrome/browser/resources/uglify_gn.py"
+
+ # Input and outputs files must be in the same order.
+ inputs = []
+
+ #foreach(_input, invoker.input_files) {
+ # inputs += [ "$target_gen_dir/$_input" ]
+ #}
+ outputs = [
+ "$target_gen_dir/${invoker.output_file}",
+ ]
+
+ args = [
+ "--base_folder",
+ invoker.base_folder,
+ "--out_folder",
+ rebase_path(target_gen_dir, root_build_dir),
+ "--input_files",
+ ] + invoker.input_files +
+ [
+ "--output_file",
+ invoker.output_file,
+ ]
+ }
+}
+
template("polymer_css_build") {
node(target_name) {
script = "//chrome/browser/resources/polymer_css_build_gn.py"
« 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