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 # Generate the binary proto form of "file_types" from the ascii proto. | |
6 action("make_file_types_protobuf") { | |
7 script = "gen_file_type_proto.py" | |
8 | |
9 # The output goes in $target_gen_dir since that's where | |
10 # chrome/browser/browser_resources.grd will look for it. | |
11 | |
12 input_filename = "download_file_types.asciipb" | |
13 output_filename = "$target_gen_dir/download_file_types.pb" | |
14 python_path = "$root_build_dir/pyproto/chrome/common/safe_browsing" | |
15 | |
16 inputs = [ | |
17 script, | |
18 input_filename, | |
19 ] | |
20 | |
21 # This script requires the generated python proto code | |
22 deps = [ | |
23 "//chrome/common/safe_browsing:proto", | |
24 ] | |
25 | |
26 outputs = [ | |
27 output_filename, | |
28 ] | |
29 | |
30 args = [ | |
31 "-i", | |
32 rebase_path(input_filename, root_build_dir), | |
33 "-o", | |
34 rebase_path(output_filename, root_build_dir), | |
35 "-p", | |
36 rebase_path(python_path, root_build_dir), | |
37 ] | |
38 } | |
OLD | NEW |