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("proto") { | 7 proto_library("safebrowsing_proto") { |
8 sources = [ | 8 sources = [ |
9 "safebrowsing.proto", | 9 "safebrowsing.proto", |
10 ] | 10 ] |
11 } | 11 } |
12 | 12 |
| 13 proto_library("v4_store_proto") { |
| 14 sources = [ |
| 15 "v4_store.proto", |
| 16 ] |
| 17 deps = [ |
| 18 ":safebrowsing_proto", |
| 19 ] |
| 20 } |
| 21 |
13 # GYP version: components/safe_browsing_db.gypi:safe_browsing_metadata_proto | 22 # GYP version: components/safe_browsing_db.gypi:safe_browsing_metadata_proto |
14 proto_library("metadata_proto") { | 23 proto_library("metadata_proto") { |
15 sources = [ | 24 sources = [ |
16 "metadata.proto", | 25 "metadata.proto", |
17 ] | 26 ] |
18 } | 27 } |
19 | 28 |
20 # This target is shared between the desktop and mobile versions. | 29 # This target is shared between the desktop and mobile versions. |
21 group("safe_browsing_db_shared") { | 30 group("safe_browsing_db_shared") { |
22 deps = [ | 31 deps = [ |
23 ":database_manager", | 32 ":database_manager", |
24 ":hit_report", | 33 ":hit_report", |
25 ":prefix_set", | 34 ":prefix_set", |
26 ":proto", | 35 ":safebrowsing_proto", |
27 ":util", | 36 ":util", |
28 ] | 37 ] |
29 } | 38 } |
30 | 39 |
31 # This target is for the desktop version. | 40 # This target is for the desktop version. |
32 group("safe_browsing_db") { | 41 group("safe_browsing_db") { |
33 deps = [ | 42 deps = [ |
34 ":safe_browsing_db_shared", | 43 ":safe_browsing_db_shared", |
35 ":v4_local_database_manager", | 44 ":v4_local_database_manager", |
36 ":v4_update_protocol_manager", | 45 ":v4_update_protocol_manager", |
(...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
157 cflags = [ "/wd4267" ] # Conversion from size_t to 'type'. | 166 cflags = [ "/wd4267" ] # Conversion from size_t to 'type'. |
158 } | 167 } |
159 } | 168 } |
160 | 169 |
161 source_set("v4_database") { | 170 source_set("v4_database") { |
162 sources = [ | 171 sources = [ |
163 "v4_database.cc", | 172 "v4_database.cc", |
164 "v4_database.h", | 173 "v4_database.h", |
165 ] | 174 ] |
166 public_deps = [ | 175 public_deps = [ |
167 ":proto", | 176 ":safebrowsing_proto", |
168 ] | 177 ] |
169 deps = [ | 178 deps = [ |
170 ":v4_protocol_manager_util", | 179 ":v4_protocol_manager_util", |
171 ":v4_store", | 180 ":v4_store", |
172 "//base", | 181 "//base", |
173 "//content/public/browser", | 182 "//content/public/browser", |
174 ] | 183 ] |
175 } | 184 } |
176 | 185 |
177 source_set("v4_get_hash_protocol_manager") { | 186 source_set("v4_get_hash_protocol_manager") { |
178 sources = [ | 187 sources = [ |
179 "v4_get_hash_protocol_manager.cc", | 188 "v4_get_hash_protocol_manager.cc", |
180 "v4_get_hash_protocol_manager.h", | 189 "v4_get_hash_protocol_manager.h", |
181 ] | 190 ] |
182 public_deps = [ | 191 public_deps = [ |
183 ":proto", | 192 ":safebrowsing_proto", |
184 ] | 193 ] |
185 deps = [ | 194 deps = [ |
186 ":util", | 195 ":util", |
187 ":v4_protocol_manager_util", | 196 ":v4_protocol_manager_util", |
188 "//base", | 197 "//base", |
189 "//net", | 198 "//net", |
190 "//url:url", | 199 "//url:url", |
191 ] | 200 ] |
192 } | 201 } |
193 | 202 |
194 source_set("v4_local_database_manager") { | 203 source_set("v4_local_database_manager") { |
195 sources = [ | 204 sources = [ |
196 "v4_local_database_manager.cc", | 205 "v4_local_database_manager.cc", |
197 "v4_local_database_manager.h", | 206 "v4_local_database_manager.h", |
198 ] | 207 ] |
199 deps = [ | 208 deps = [ |
200 ":database_manager", | 209 ":database_manager", |
201 ":hit_report", | 210 ":hit_report", |
202 ":proto", | 211 ":safebrowsing_proto", |
203 ":v4_database", | 212 ":v4_database", |
204 ":v4_protocol_manager_util", | 213 ":v4_protocol_manager_util", |
205 ":v4_update_protocol_manager", | 214 ":v4_update_protocol_manager", |
206 "//base", | 215 "//base", |
207 "//content/public/browser", | 216 "//content/public/browser", |
208 "//net", | 217 "//net", |
209 "//url:url", | 218 "//url:url", |
210 ] | 219 ] |
211 } | 220 } |
212 | 221 |
213 source_set("v4_protocol_manager_util") { | 222 source_set("v4_protocol_manager_util") { |
214 sources = [ | 223 sources = [ |
215 "v4_protocol_manager_util.cc", | 224 "v4_protocol_manager_util.cc", |
216 "v4_protocol_manager_util.h", | 225 "v4_protocol_manager_util.h", |
217 ] | 226 ] |
218 deps = [ | 227 deps = [ |
219 ":proto", | 228 ":safebrowsing_proto", |
220 "//base", | 229 "//base", |
221 "//net", | 230 "//net", |
222 "//url:url", | 231 "//url:url", |
223 ] | 232 ] |
224 } | 233 } |
225 | 234 |
226 source_set("v4_store") { | 235 source_set("v4_store") { |
227 sources = [ | 236 sources = [ |
228 "v4_store.cc", | 237 "v4_store.cc", |
229 "v4_store.h", | 238 "v4_store.h", |
230 ] | 239 ] |
231 public_deps = [ | 240 public_deps = [ |
232 ":proto", | 241 ":safebrowsing_proto", |
| 242 ":v4_store_proto", |
233 ] | 243 ] |
234 deps = [ | 244 deps = [ |
235 ":v4_protocol_manager_util", | 245 ":v4_protocol_manager_util", |
236 "//base", | 246 "//base", |
237 ] | 247 ] |
238 } | 248 } |
239 | 249 |
240 source_set("v4_update_protocol_manager") { | 250 source_set("v4_update_protocol_manager") { |
241 sources = [ | 251 sources = [ |
242 "v4_update_protocol_manager.cc", | 252 "v4_update_protocol_manager.cc", |
243 "v4_update_protocol_manager.h", | 253 "v4_update_protocol_manager.h", |
244 ] | 254 ] |
245 deps = [ | 255 deps = [ |
246 ":proto", | 256 ":safebrowsing_proto", |
247 ":util", | 257 ":util", |
248 ":v4_protocol_manager_util", | 258 ":v4_protocol_manager_util", |
249 "//base", | 259 "//base", |
250 "//net", | 260 "//net", |
251 "//url:url", | 261 "//url:url", |
252 ] | 262 ] |
253 } | 263 } |
254 | 264 |
255 source_set("unit_tests") { | 265 source_set("unit_tests") { |
256 testonly = true | 266 testonly = true |
257 sources = [ | 267 sources = [ |
258 "database_manager_unittest.cc", | 268 "database_manager_unittest.cc", |
259 "prefix_set_unittest.cc", | 269 "prefix_set_unittest.cc", |
260 "util_unittest.cc", | 270 "util_unittest.cc", |
261 "v4_database_unittest.cc", | 271 "v4_database_unittest.cc", |
262 "v4_get_hash_protocol_manager_unittest.cc", | 272 "v4_get_hash_protocol_manager_unittest.cc", |
263 "v4_protocol_manager_util_unittest.cc", | 273 "v4_protocol_manager_util_unittest.cc", |
| 274 "v4_store_unittest.cc", |
264 "v4_update_protocol_manager_unittest.cc", | 275 "v4_update_protocol_manager_unittest.cc", |
265 ] | 276 ] |
266 deps = [ | 277 deps = [ |
267 ":database_manager", | 278 ":database_manager", |
268 ":prefix_set", | 279 ":prefix_set", |
269 ":proto", | 280 ":safebrowsing_proto", |
270 ":test_database_manager", | 281 ":test_database_manager", |
271 ":util", | 282 ":util", |
272 ":v4_database", | 283 ":v4_database", |
273 ":v4_get_hash_protocol_manager", | 284 ":v4_get_hash_protocol_manager", |
274 ":v4_local_database_manager", | 285 ":v4_local_database_manager", |
275 ":v4_protocol_manager_util", | 286 ":v4_protocol_manager_util", |
276 ":v4_store", | 287 ":v4_store", |
| 288 ":v4_store_proto", |
277 ":v4_update_protocol_manager", | 289 ":v4_update_protocol_manager", |
278 "//base", | 290 "//base", |
279 "//content/test:test_support", | 291 "//content/test:test_support", |
280 "//net", | 292 "//net", |
281 "//net:test_support", | 293 "//net:test_support", |
282 "//testing/gtest", | 294 "//testing/gtest", |
283 "//url", | 295 "//url", |
284 ] | 296 ] |
285 if (is_win) { | 297 if (is_win) { |
286 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. | 298 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. |
(...skipping 16 matching lines...) Expand all Loading... |
303 "//base", | 315 "//base", |
304 "//components/variations", | 316 "//components/variations", |
305 "//testing/gtest", | 317 "//testing/gtest", |
306 "//url", | 318 "//url", |
307 ] | 319 ] |
308 if (is_win) { | 320 if (is_win) { |
309 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. | 321 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. |
310 cflags = [ "/wd4267" ] # Conversion from size_t to 'type'. | 322 cflags = [ "/wd4267" ] # Conversion from size_t to 'type'. |
311 } | 323 } |
312 } | 324 } |
OLD | NEW |