OLD | NEW |
1 # Copyright 2015 The Chromium Authors. All rights reserved. | 1 # Copyright 2015 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 import("//third_party/protobuf/proto_library.gni") | 5 import("//third_party/protobuf/proto_library.gni") |
6 | 6 |
7 proto_library("safebrowsing_proto") { | 7 proto_library("safebrowsing_proto") { |
8 sources = [ | 8 sources = [ |
9 "safebrowsing.proto", | 9 "safebrowsing.proto", |
10 ] | 10 ] |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
49 # This target is for the mobile version. | 49 # This target is for the mobile version. |
50 group("safe_browsing_db_mobile") { | 50 group("safe_browsing_db_mobile") { |
51 deps = [ | 51 deps = [ |
52 ":remote_database_manager", | 52 ":remote_database_manager", |
53 ":safe_browsing_api_handler", | 53 ":safe_browsing_api_handler", |
54 ":safe_browsing_api_handler_util", | 54 ":safe_browsing_api_handler_util", |
55 ":safe_browsing_db_shared", | 55 ":safe_browsing_db_shared", |
56 ] | 56 ] |
57 } | 57 } |
58 | 58 |
59 source_set("database_manager") { | 59 static_library("database_manager") { |
60 sources = [ | 60 sources = [ |
61 "database_manager.cc", | 61 "database_manager.cc", |
62 "database_manager.h", | 62 "database_manager.h", |
63 ] | 63 ] |
64 deps = [ | 64 deps = [ |
65 ":hit_report", | 65 ":hit_report", |
66 ":util", | 66 ":util", |
67 ":v4_get_hash_protocol_manager", | 67 ":v4_get_hash_protocol_manager", |
68 "//base:base", | 68 "//base:base", |
69 "//content/public/browser", | 69 "//content/public/browser", |
70 "//content/public/common", | 70 "//content/public/common", |
71 "//net", | 71 "//net", |
72 "//url:url", | 72 "//url:url", |
73 ] | 73 ] |
74 } | 74 } |
75 | 75 |
76 source_set("hit_report") { | 76 static_library("hit_report") { |
77 sources = [ | 77 sources = [ |
78 "hit_report.cc", | 78 "hit_report.cc", |
79 "hit_report.h", | 79 "hit_report.h", |
80 ] | 80 ] |
81 deps = [ | 81 deps = [ |
82 ":util", | 82 ":util", |
83 "//components/metrics:metrics", | 83 "//components/metrics:metrics", |
84 "//url:url", | 84 "//url:url", |
85 ] | 85 ] |
86 } | 86 } |
87 | 87 |
88 source_set("prefix_set") { | 88 static_library("prefix_set") { |
89 sources = [ | 89 sources = [ |
90 "prefix_set.cc", | 90 "prefix_set.cc", |
91 "prefix_set.h", | 91 "prefix_set.h", |
92 ] | 92 ] |
93 deps = [ | 93 deps = [ |
94 ":util", | 94 ":util", |
95 "//base", | 95 "//base", |
96 ] | 96 ] |
97 } | 97 } |
98 | 98 |
99 source_set("remote_database_manager") { | 99 static_library("remote_database_manager") { |
100 sources = [ | 100 sources = [ |
101 "remote_database_manager.cc", | 101 "remote_database_manager.cc", |
102 "remote_database_manager.h", | 102 "remote_database_manager.h", |
103 ] | 103 ] |
104 deps = [ | 104 deps = [ |
105 ":database_manager", | 105 ":database_manager", |
106 ":safe_browsing_api_handler", | 106 ":safe_browsing_api_handler", |
107 ":v4_get_hash_protocol_manager", | 107 ":v4_get_hash_protocol_manager", |
108 "//base:base", | 108 "//base:base", |
109 "//components/variations", | 109 "//components/variations", |
110 "//content/public/browser", | 110 "//content/public/browser", |
111 "//net", | 111 "//net", |
112 "//url:url", | 112 "//url:url", |
113 ] | 113 ] |
114 } | 114 } |
115 | 115 |
116 source_set("safe_browsing_api_handler") { | 116 source_set("safe_browsing_api_handler") { |
117 sources = [ | 117 sources = [ |
118 "safe_browsing_api_handler.cc", | 118 "safe_browsing_api_handler.cc", |
119 "safe_browsing_api_handler.h", | 119 "safe_browsing_api_handler.h", |
120 ] | 120 ] |
121 deps = [ | 121 deps = [ |
122 ":util", | 122 ":util", |
123 "//base:base", | 123 "//base:base", |
124 "//url:url", | 124 "//url:url", |
125 ] | 125 ] |
126 } | 126 } |
127 | 127 |
128 source_set("safe_browsing_api_handler_util") { | 128 static_library("safe_browsing_api_handler_util") { |
129 sources = [ | 129 sources = [ |
130 "safe_browsing_api_handler_util.cc", | 130 "safe_browsing_api_handler_util.cc", |
131 "safe_browsing_api_handler_util.h", | 131 "safe_browsing_api_handler_util.h", |
132 ] | 132 ] |
133 deps = [ | 133 deps = [ |
134 ":metadata_proto", | 134 ":metadata_proto", |
135 ":util", | 135 ":util", |
136 "//base:base", | 136 "//base:base", |
137 ] | 137 ] |
138 } | 138 } |
139 | 139 |
140 source_set("test_database_manager") { | 140 static_library("test_database_manager") { |
141 sources = [ | 141 sources = [ |
142 "test_database_manager.cc", | 142 "test_database_manager.cc", |
143 "test_database_manager.h", | 143 "test_database_manager.h", |
144 ] | 144 ] |
145 deps = [ | 145 deps = [ |
146 ":database_manager", | 146 ":database_manager", |
147 "//base:base", | 147 "//base:base", |
148 "//net", | 148 "//net", |
149 ] | 149 ] |
150 } | 150 } |
151 | 151 |
152 source_set("util") { | 152 static_library("util") { |
153 sources = [ | 153 sources = [ |
154 "util.cc", | 154 "util.cc", |
155 "util.h", | 155 "util.h", |
156 ] | 156 ] |
157 deps = [ | 157 deps = [ |
158 "//base", | 158 "//base", |
159 "//base:base", | 159 "//base:base", |
160 "//crypto", | 160 "//crypto", |
161 "//net", | 161 "//net", |
162 "//url:url", | 162 "//url:url", |
163 ] | 163 ] |
164 if (is_win) { | 164 if (is_win) { |
165 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. | 165 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. |
166 cflags = [ "/wd4267" ] # Conversion from size_t to 'type'. | 166 cflags = [ "/wd4267" ] # Conversion from size_t to 'type'. |
167 } | 167 } |
168 } | 168 } |
169 | 169 |
170 source_set("v4_database") { | 170 static_library("v4_database") { |
171 sources = [ | 171 sources = [ |
172 "v4_database.cc", | 172 "v4_database.cc", |
173 "v4_database.h", | 173 "v4_database.h", |
174 ] | 174 ] |
175 public_deps = [ | 175 public_deps = [ |
176 ":safebrowsing_proto", | 176 ":safebrowsing_proto", |
177 ] | 177 ] |
178 deps = [ | 178 deps = [ |
179 ":v4_protocol_manager_util", | 179 ":v4_protocol_manager_util", |
180 ":v4_store", | 180 ":v4_store", |
181 "//base", | 181 "//base", |
182 "//content/public/browser", | 182 "//content/public/browser", |
183 ] | 183 ] |
184 } | 184 } |
185 | 185 |
186 source_set("v4_get_hash_protocol_manager") { | 186 static_library("v4_get_hash_protocol_manager") { |
187 sources = [ | 187 sources = [ |
188 "v4_get_hash_protocol_manager.cc", | 188 "v4_get_hash_protocol_manager.cc", |
189 "v4_get_hash_protocol_manager.h", | 189 "v4_get_hash_protocol_manager.h", |
190 ] | 190 ] |
191 public_deps = [ | 191 public_deps = [ |
192 ":safebrowsing_proto", | 192 ":safebrowsing_proto", |
193 ] | 193 ] |
194 deps = [ | 194 deps = [ |
195 ":util", | 195 ":util", |
196 ":v4_protocol_manager_util", | 196 ":v4_protocol_manager_util", |
197 "//base", | 197 "//base", |
198 "//net", | 198 "//net", |
199 "//url:url", | 199 "//url:url", |
200 ] | 200 ] |
201 } | 201 } |
202 | 202 |
203 source_set("v4_local_database_manager") { | 203 static_library("v4_local_database_manager") { |
204 sources = [ | 204 sources = [ |
205 "v4_local_database_manager.cc", | 205 "v4_local_database_manager.cc", |
206 "v4_local_database_manager.h", | 206 "v4_local_database_manager.h", |
207 ] | 207 ] |
208 deps = [ | 208 deps = [ |
209 ":database_manager", | 209 ":database_manager", |
210 ":hit_report", | 210 ":hit_report", |
211 ":safebrowsing_proto", | 211 ":safebrowsing_proto", |
212 ":v4_database", | 212 ":v4_database", |
213 ":v4_protocol_manager_util", | 213 ":v4_protocol_manager_util", |
(...skipping 26 matching lines...) Expand all Loading... |
240 public_deps = [ | 240 public_deps = [ |
241 ":safebrowsing_proto", | 241 ":safebrowsing_proto", |
242 ":v4_store_proto", | 242 ":v4_store_proto", |
243 ] | 243 ] |
244 deps = [ | 244 deps = [ |
245 ":v4_protocol_manager_util", | 245 ":v4_protocol_manager_util", |
246 "//base", | 246 "//base", |
247 ] | 247 ] |
248 } | 248 } |
249 | 249 |
250 source_set("v4_update_protocol_manager") { | 250 static_library("v4_update_protocol_manager") { |
251 sources = [ | 251 sources = [ |
252 "v4_update_protocol_manager.cc", | 252 "v4_update_protocol_manager.cc", |
253 "v4_update_protocol_manager.h", | 253 "v4_update_protocol_manager.h", |
254 ] | 254 ] |
255 deps = [ | 255 deps = [ |
256 ":safebrowsing_proto", | 256 ":safebrowsing_proto", |
257 ":util", | 257 ":util", |
258 ":v4_protocol_manager_util", | 258 ":v4_protocol_manager_util", |
259 "//base", | 259 "//base", |
260 "//net", | 260 "//net", |
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
315 "//base", | 315 "//base", |
316 "//components/variations", | 316 "//components/variations", |
317 "//testing/gtest", | 317 "//testing/gtest", |
318 "//url", | 318 "//url", |
319 ] | 319 ] |
320 if (is_win) { | 320 if (is_win) { |
321 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. | 321 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. |
322 cflags = [ "/wd4267" ] # Conversion from size_t to 'type'. | 322 cflags = [ "/wd4267" ] # Conversion from size_t to 'type'. |
323 } | 323 } |
324 } | 324 } |
OLD | NEW |