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

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

Issue 2670723002: [MD History] Vulcanize as part of GN build. (Closed)
Patch Set: Created 3 years, 11 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
Index: chrome/browser/resources/vulcanize.gni
diff --git a/chrome/browser/resources/vulcanize.gni b/chrome/browser/resources/vulcanize.gni
index c9f9dbeff1ebce34967cd9ddfc9490b54818f901..71bbb5d3713ed537a91bd69a01f30acc52e944c3 100644
--- a/chrome/browser/resources/vulcanize.gni
+++ b/chrome/browser/resources/vulcanize.gni
@@ -50,5 +50,48 @@ template("vulcanize") {
"--depfile",
rebase_path(depfile, root_build_dir),
]
+
+ if (defined(invoker.excludes)) {
+ foreach(_exclude, invoker.excludes) {
+ args += [
+ "--exclude",
+ "$_exclude",
+ ]
+ }
+ }
+ }
+}
+
+template("css_build") {
dpapad 2017/02/02 18:29:14 Can we move this to its own css_build.gni now that
+ action(target_name) {
+ script = "//chrome/browser/resources/css_build_gn.py"
+ inputs = [
+ "//third_party/node/node_modules.tar.gz.sha1",
+ ]
+
+ if (is_linux) {
+ inputs += [ "//third_party/node/linux/node-linux-x64.tar.gz.sha1" ]
+ }
+ if (is_win) {
+ inputs += [ "//third_party/node/win/node.exe.sha1" ]
+ }
+ if (is_mac) {
+ inputs += [ "//third_party/node/mac/node-darwin-x64.tar.gz.sha1" ]
+ }
calamity 2017/02/02 04:24:05 I'm not sure how to share this logic between this
Dan Beam 2017/02/02 17:14:52 i think it might be worthwhile to make a "all thin
dpapad 2017/02/02 18:18:15 "All thing node" template was implemented at https
+ 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
}
}

Powered by Google App Engine
This is Rietveld 408576698