Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(366)

Side by Side Diff: chrome/browser/resources/ssl/tls_error_assistant/BUILD.gn

Issue 2567483002: Add proto for TLS error assistant, refactor proto generator code. (Closed)
Patch Set: Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(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 # TODO(nparker): reduce the duplication between these two, somehow.
Nathan Parker 2016/12/10 00:56:50 rm comment, since there's only one action here.
meacer 2016/12/13 02:30:16 Done.
6
7 # Generate the binary proto form of "file_types" from the ascii proto.
Nathan Parker 2016/12/10 00:56:50 remove references to "file_types"
meacer 2016/12/13 02:30:16 Done.
8 action("make_tls_error_assistant_protobuf") {
9 script = "gen_tls_error_assistant_proto.py"
10
11 # The output goes in $target_gen_dir since that's where
12 # chrome/browser/browser_resources.grd will look for it.
13
14 input_filename = "tls_error_assistant.asciipb"
15 output_dir = target_gen_dir
16 output_basename = "tls_error_assistant.pb"
17 python_path_root = "$root_out_dir/pyproto"
18 python_path_ssl = "$python_path_root/chrome/browser/ssl/"
19
20 inputs = [
21 input_filename,
22 ]
23
24 deps = [
25 "//chrome/browser/ssl:proto",
26 "//third_party/protobuf:py_proto",
27 ]
28
29 outputs = [
30 "$output_dir/$output_basename",
31 ]
32
33 args = [
34 "-w",
35 "-i",
36 rebase_path(input_filename, root_build_dir),
37 "-d",
38 rebase_path(output_dir, root_build_dir),
39 "-o",
40 output_basename,
41 "-p",
42 rebase_path(python_path_root, root_build_dir),
43 "-p",
44 rebase_path(python_path_ssl, root_build_dir),
45 ]
46 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698