OLD | NEW |
---|---|
(Empty) | |
1 # Copyright 2016 The Chromium Authors. All rights reserved. | |
2 # Use of this source code is governed by a BSD-style license that can be | |
3 # found in the LICENSE file. | |
4 | |
5 template("vulcanize") { | |
6 action(target_name) { | |
7 script = "//chrome/browser/resources/vulcanize_gn.py" | |
8 | |
9 depfile = "${target_gen_dir}/${target_name}.d" | |
10 | |
11 outputs = [ | |
12 "$target_gen_dir/${invoker.html_out_file}", | |
13 "$target_gen_dir/${invoker.js_out_file}", | |
14 ] | |
15 deps = invoker.deps | |
16 | |
17 #sources = [ | |
18 # invoker.html_in_file, | |
19 #] | |
Dan Beam
2017/01/20 00:56:50
remove
dpapad
2017/01/20 18:35:04
Done.
| |
20 print(outputs) | |
Dan Beam
2017/01/20 00:56:50
remove
dpapad
2017/01/20 18:35:04
Done.
| |
21 | |
22 print( | |
23 invoker.target_name + " " + invoker.host + " " + invoker.html_in_file + | |
24 " " + invoker.html_out_file + " " + invoker.js_out_file) | |
25 | |
26 # Note that we have to manually pass the sources to our script if the | |
27 # script needs them as inputs. | |
28 args = [ | |
29 "--host", | |
30 invoker.host, | |
31 "--htmlInFile", | |
Dan Beam
2017/01/20 00:56:50
flagsLikeThis should actually be_like_this
Dan Beam
2017/01/20 17:43:09
ping
dpapad
2017/01/20 18:35:04
Done.
| |
32 invoker.html_in_file, | |
33 "--htmlOutFile", | |
34 invoker.html_out_file, | |
35 "--jsOutFile", | |
36 invoker.js_out_file, | |
37 "--inputType", | |
38 invoker.input_type, | |
39 "--input", | |
40 invoker.input, | |
41 "--outFolder", | |
42 rebase_path(target_gen_dir, root_build_dir), | |
43 "--depfile", | |
44 rebase_path(depfile, root_build_dir), | |
45 ] | |
46 } | |
47 } | |
OLD | NEW |