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

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

Issue 2670723002: [MD History] Vulcanize as part of GN build. (Closed)
Patch Set: 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 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("vulcanize") { 5 template("vulcanize") {
6 action(target_name) { 6 action(target_name) {
7 script = "//chrome/browser/resources/vulcanize_gn.py" 7 script = "//chrome/browser/resources/vulcanize_gn.py"
8 8
9 # Declare dependencies to all involved tools. 9 # Declare dependencies to all involved tools.
10 inputs = [ 10 inputs = [
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
43 invoker.js_out_file, 43 invoker.js_out_file,
44 "--input_type", 44 "--input_type",
45 invoker.input_type, 45 invoker.input_type,
46 "--input", 46 "--input",
47 invoker.input, 47 invoker.input,
48 "--out_folder", 48 "--out_folder",
49 rebase_path(target_gen_dir, root_build_dir), 49 rebase_path(target_gen_dir, root_build_dir),
50 "--depfile", 50 "--depfile",
51 rebase_path(depfile, root_build_dir), 51 rebase_path(depfile, root_build_dir),
52 ] 52 ]
53
54 if (defined(invoker.excludes)) {
55 foreach(_exclude, invoker.excludes) {
56 args += [
57 "--exclude",
58 "$_exclude",
59 ]
60 }
61 }
53 } 62 }
54 } 63 }
64
65 template("css_build") {
dpapad 2017/02/02 18:29:14 Can we move this to its own css_build.gni now that
66 action(target_name) {
67 script = "//chrome/browser/resources/css_build_gn.py"
68 inputs = [
69 "//third_party/node/node_modules.tar.gz.sha1",
70 ]
71
72 if (is_linux) {
73 inputs += [ "//third_party/node/linux/node-linux-x64.tar.gz.sha1" ]
74 }
75 if (is_win) {
76 inputs += [ "//third_party/node/win/node.exe.sha1" ]
77 }
78 if (is_mac) {
79 inputs += [ "//third_party/node/mac/node-darwin-x64.tar.gz.sha1" ]
80 }
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
81 foreach(_input, invoker.input_files) {
82 inputs += [ "$target_gen_dir/$_input" ]
83 }
84
85 outputs = []
86 foreach(_output, invoker.output_files) {
87 outputs += [ "$target_gen_dir/$_output" ]
88 }
89 deps = invoker.deps
90
91 args = [
92 "--out_folder",
93 rebase_path(target_gen_dir, root_build_dir),
94 "--input_files",
95 ] + invoker.input_files + [ "--output_files" ] + invoker.output_files
96 }
97 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698