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

Unified Diff: chrome/browser/resources/vulcanize.gni

Issue 2698143003: [MD WebUI] Polymer-CSS-Build across all bundles. (Closed)
Patch Set: address comments 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/resources/polymer_css_build_gn.py ('k') | chrome/browser/resources/vulcanize_gn.py » ('j') | 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 bbb64101e912380e2bf59e7f9e8097cdb5741f9c..454f92a9ca9b998fc99bd8dce693f612b1f6a2cd 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("polymer_css_build") {
+ node(target_name) {
+ script = "//chrome/browser/resources/polymer_css_build_gn.py"
+
+ # Input and outputs files must be in the same order.
+ 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
+ }
+}
« no previous file with comments | « chrome/browser/resources/polymer_css_build_gn.py ('k') | chrome/browser/resources/vulcanize_gn.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698