OLD | NEW |
---|---|
(Empty) | |
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 | |
3 # found in the LICENSE file. | |
4 | |
5 template("vulcanize") { | |
6 action(target_name) { | |
7 script = "//chrome/browser/resources/vulcanize_gn.py" | |
8 inputs = [ | |
9 "//chrome/browser/resources/unpack_pak.py", | |
dpapad
2017/01/24 00:36:48
FYI, added this line, such that vulcanize() action
Dan Beam
2017/01/24 01:54:25
good idea
| |
10 ] | |
11 | |
12 depfile = "${target_gen_dir}/${target_name}.d" | |
13 | |
14 outputs = [ | |
15 "$target_gen_dir/${invoker.html_out_file}", | |
16 "$target_gen_dir/${invoker.js_out_file}", | |
17 ] | |
18 deps = invoker.deps | |
19 | |
20 # Note that we have to manually pass the sources to our script if the | |
21 # script needs them as inputs. | |
22 args = [ | |
23 "--host", | |
24 invoker.host, | |
25 "--html_in_file", | |
26 invoker.html_in_file, | |
27 "--html_out_file", | |
28 invoker.html_out_file, | |
29 "--js_out_file", | |
30 invoker.js_out_file, | |
31 "--input_type", | |
32 invoker.input_type, | |
33 "--input", | |
34 invoker.input, | |
35 "--out_folder", | |
36 rebase_path(target_gen_dir, root_build_dir), | |
37 "--depfile", | |
38 rebase_path(depfile, root_build_dir), | |
39 ] | |
40 } | |
41 } | |
OLD | NEW |