OLD | NEW |
---|---|
(Empty) | |
1 # Generate the binary proto form of "file_types" from the ascii proto. | |
Lei Zhang
2016/04/04 21:24:48
Missing copyright header.
Nathan Parker
2016/04/04 22:00:53
Done.
| |
2 action("make_file_types_protobuf") { | |
3 script = "gen_file_type_proto.py" | |
4 | |
5 # The output goes in $target_gen_dir since that's where | |
6 # chrome/browser/browser_resources.grd will look for it. | |
7 | |
8 input_filename = "download_file_types.asciipb" | |
9 output_filename = "$target_gen_dir/download_file_types.pb" | |
10 python_path = "$root_build_dir/pyproto/chrome/common/safe_browsing" | |
11 | |
12 inputs = [ | |
13 script, | |
14 input_filename, | |
15 ] | |
16 | |
17 # This script requires the generated python proto code | |
18 deps = [ | |
19 "//chrome/common/safe_browsing:proto", | |
20 ] | |
21 | |
22 outputs = [ | |
23 output_filename, | |
24 ] | |
25 | |
26 args = [ | |
27 "-i", | |
28 rebase_path(input_filename, root_build_dir), | |
29 "-o", | |
30 rebase_path(output_filename, root_build_dir), | |
31 "-p", | |
32 rebase_path(python_path, root_build_dir), | |
33 ] | |
34 } | |
OLD | NEW |