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

Side by Side Diff: chrome/browser/resources/safe_browsing/BUILD.gn

Issue 2743563006: Componentize safe_browsing [+1]: move protos to component
Patch Set: fix remaining proto references Created 3 years, 9 months 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
1 # Copyright 2016 The Chromium Authors. All rights reserved. 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 2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file. 3 # found in the LICENSE file.
4 4
5 # TODO(nparker): reduce the duplication between these two, somehow. 5 # TODO(nparker): reduce the duplication between these two, somehow.
6 6
7 # Generate the binary proto form of "file_types" from the ascii proto. 7 # Generate the binary proto form of "file_types" from the ascii proto.
8 action("make_file_types_protobuf") { 8 action("make_file_types_protobuf") {
9 script = "gen_file_type_proto.py" 9 script = "gen_file_type_proto.py"
10 10
(...skipping 22 matching lines...) Expand all
33 # This will cause the script to fail. 33 # This will cause the script to fail.
34 target_arch = "unknown_target_arch" 34 target_arch = "unknown_target_arch"
35 } 35 }
36 36
37 inputs = [ 37 inputs = [
38 input_filename, 38 input_filename,
39 ] 39 ]
40 40
41 deps = [ 41 deps = [
42 "//chrome/common/safe_browsing:proto", 42 "//chrome/common/safe_browsing:proto",
43 "//components/safe_browsing/common:proto",
43 "//third_party/protobuf:py_proto", 44 "//third_party/protobuf:py_proto",
44 ] 45 ]
45 46
46 outputs = [ 47 outputs = [
47 "$output_dir/$output_basename", 48 "$output_dir/$output_basename",
48 ] 49 ]
49 50
50 args = [ 51 args = [
51 "-w", 52 "-w",
52 "-t", 53 "-t",
(...skipping 20 matching lines...) Expand all
73 output_dir = "$target_gen_dir/all" 74 output_dir = "$target_gen_dir/all"
74 output_basename = "download_file_types.pb" 75 output_basename = "download_file_types.pb"
75 python_path_root = "$root_build_dir/pyproto" 76 python_path_root = "$root_build_dir/pyproto"
76 python_path_safe_browsing = "$python_path_root/chrome/common/safe_browsing" 77 python_path_safe_browsing = "$python_path_root/chrome/common/safe_browsing"
77 78
78 inputs = [ 79 inputs = [
79 input_filename, 80 input_filename,
80 ] 81 ]
81 82
82 deps = [ 83 deps = [
83 "//chrome/common/safe_browsing:proto", 84 "//components/safe_browsing/common:proto",
84 "//third_party/protobuf:py_proto", 85 "//third_party/protobuf:py_proto",
85 ] 86 ]
86 87
87 # A directory, since we can't derive the actual file names here. 88 # A directory, since we can't derive the actual file names here.
88 outputs = [ 89 outputs = [
89 output_dir, 90 output_dir,
90 ] 91 ]
91 92
92 args = [ 93 args = [
93 "-w", 94 "-w",
94 "-a", 95 "-a",
95 "-i", 96 "-i",
96 rebase_path(input_filename, root_build_dir), 97 rebase_path(input_filename, root_build_dir),
97 "-d", 98 "-d",
98 rebase_path(output_dir, root_build_dir), 99 rebase_path(output_dir, root_build_dir),
99 "-o", 100 "-o",
100 output_basename, 101 output_basename,
101 "-p", 102 "-p",
102 rebase_path(python_path_root, root_build_dir), 103 rebase_path(python_path_root, root_build_dir),
103 "-p", 104 "-p",
104 rebase_path(python_path_safe_browsing, root_build_dir), 105 rebase_path(python_path_safe_browsing, root_build_dir),
105 ] 106 ]
106 } 107 }
OLDNEW
« no previous file with comments | « chrome/browser/extensions/test_blacklist_state_fetcher.h ('k') | chrome/browser/safe_browsing/browser_feature_extractor.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698