| 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 "tls_error_assistant" from the ascii proto. | |
| 6 action("make_tls_error_assistant_protobuf") { | |
| 7 script = "gen_tls_error_assistant_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 = "tls_error_assistant.asciipb" | |
| 13 output_dir = target_gen_dir | |
| 14 output_basename = "tls_error_assistant.pb" | |
| 15 python_path_root = "$root_out_dir/pyproto" | |
| 16 python_path_ssl = "$python_path_root/chrome/browser/ssl/" | |
| 17 | |
| 18 inputs = [ | |
| 19 input_filename, | |
| 20 ] | |
| 21 | |
| 22 deps = [ | |
| 23 "//chrome/browser/ssl:proto", | |
| 24 "//third_party/protobuf:py_proto", | |
| 25 ] | |
| 26 | |
| 27 outputs = [ | |
| 28 "$output_dir/$output_basename", | |
| 29 ] | |
| 30 | |
| 31 args = [ | |
| 32 "-w", | |
| 33 "-i", | |
| 34 rebase_path(input_filename, root_build_dir), | |
| 35 "-d", | |
| 36 rebase_path(output_dir, root_build_dir), | |
| 37 "-o", | |
| 38 output_basename, | |
| 39 "-p", | |
| 40 rebase_path(python_path_root, root_build_dir), | |
| 41 "-p", | |
| 42 rebase_path(python_path_ssl, root_build_dir), | |
| 43 ] | |
| 44 } | |
| OLD | NEW |