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 13 matching lines...) Expand all Loading... |
24 "metadata.proto", | 24 "metadata.proto", |
25 ] | 25 ] |
26 } | 26 } |
27 | 27 |
28 # This target is shared between the desktop and mobile versions. | 28 # This target is shared between the desktop and mobile versions. |
29 group("safe_browsing_db_shared") { | 29 group("safe_browsing_db_shared") { |
30 deps = [ | 30 deps = [ |
31 ":database_manager", | 31 ":database_manager", |
32 ":hit_report", | 32 ":hit_report", |
33 ":prefix_set", | 33 ":prefix_set", |
34 ":safe_browsing_prefs", | |
35 ":safebrowsing_proto", | 34 ":safebrowsing_proto", |
36 ":util", | 35 ":util", |
| 36 "//components/safe_browsing/common:safe_browsing_prefs", |
37 ] | 37 ] |
38 } | 38 } |
39 | 39 |
40 # This target is for the desktop version. | 40 # This target is for the desktop version. |
41 group("safe_browsing_db") { | 41 group("safe_browsing_db") { |
42 deps = [ | 42 deps = [ |
43 ":safe_browsing_db_shared", | 43 ":safe_browsing_db_shared", |
44 ":v4_local_database_manager", | 44 ":v4_local_database_manager", |
45 ] | 45 ] |
46 } | 46 } |
(...skipping 28 matching lines...) Expand all Loading... |
75 | 75 |
76 static_library("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 public_deps = [ | 81 public_deps = [ |
82 ":util", | 82 ":util", |
83 ] | 83 ] |
84 deps = [ | 84 deps = [ |
85 ":safe_browsing_prefs", | |
86 "//components/metrics", | 85 "//components/metrics", |
| 86 "//components/safe_browsing/common:safe_browsing_prefs", |
87 "//url", | 87 "//url", |
88 ] | 88 ] |
89 } | 89 } |
90 | 90 |
91 static_library("prefix_set") { | 91 static_library("prefix_set") { |
92 sources = [ | 92 sources = [ |
93 "prefix_set.cc", | 93 "prefix_set.cc", |
94 "prefix_set.h", | 94 "prefix_set.h", |
95 ] | 95 ] |
96 deps = [ | 96 deps = [ |
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
145 "safe_browsing_api_handler_util.cc", | 145 "safe_browsing_api_handler_util.cc", |
146 "safe_browsing_api_handler_util.h", | 146 "safe_browsing_api_handler_util.h", |
147 ] | 147 ] |
148 deps = [ | 148 deps = [ |
149 ":metadata_proto", | 149 ":metadata_proto", |
150 ":util", | 150 ":util", |
151 "//base", | 151 "//base", |
152 ] | 152 ] |
153 } | 153 } |
154 | 154 |
155 static_library("safe_browsing_prefs") { | |
156 sources = [ | |
157 "safe_browsing_prefs.cc", | |
158 "safe_browsing_prefs.h", | |
159 ] | |
160 deps = [ | |
161 "//base:base", | |
162 "//components/prefs", | |
163 ] | |
164 } | |
165 | |
166 static_library("test_database_manager") { | 155 static_library("test_database_manager") { |
167 sources = [ | 156 sources = [ |
168 "test_database_manager.cc", | 157 "test_database_manager.cc", |
169 "test_database_manager.h", | 158 "test_database_manager.h", |
170 ] | 159 ] |
171 deps = [ | 160 deps = [ |
172 ":database_manager", | 161 ":database_manager", |
173 "//base:base", | 162 "//base:base", |
174 "//net", | 163 "//net", |
175 ] | 164 ] |
176 } | 165 } |
177 | 166 |
178 static_library("util") { | 167 static_library("util") { |
179 sources = [ | 168 sources = [ |
180 "util.cc", | 169 "util.cc", |
181 "util.h", | 170 "util.h", |
182 ] | 171 ] |
183 public_deps = [ | 172 public_deps = [ |
184 ":safe_browsing_prefs", | |
185 ":v4_protocol_manager_util", | 173 ":v4_protocol_manager_util", |
| 174 "//components/safe_browsing/common:safe_browsing_prefs", |
186 ] | 175 ] |
187 deps = [ | 176 deps = [ |
188 "//base", | 177 "//base", |
189 "//components/version_info:version_info", | 178 "//components/version_info:version_info", |
190 "//crypto", | 179 "//crypto", |
191 "//google_apis:google_apis", | 180 "//google_apis:google_apis", |
192 "//net", | 181 "//net", |
193 "//url", | 182 "//url", |
194 ] | 183 ] |
195 if (is_win) { | 184 if (is_win) { |
(...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
318 ":v4_protocol_manager_util", | 307 ":v4_protocol_manager_util", |
319 ] | 308 ] |
320 } | 309 } |
321 | 310 |
322 static_library("v4_update_protocol_manager") { | 311 static_library("v4_update_protocol_manager") { |
323 sources = [ | 312 sources = [ |
324 "v4_update_protocol_manager.cc", | 313 "v4_update_protocol_manager.cc", |
325 "v4_update_protocol_manager.h", | 314 "v4_update_protocol_manager.h", |
326 ] | 315 ] |
327 deps = [ | 316 deps = [ |
328 ":safe_browsing_prefs", | |
329 ":safebrowsing_proto", | 317 ":safebrowsing_proto", |
330 ":util", | 318 ":util", |
331 ":v4_protocol_manager_util", | 319 ":v4_protocol_manager_util", |
332 "//base", | 320 "//base", |
333 "//components/data_use_measurement/core", | 321 "//components/data_use_measurement/core", |
| 322 "//components/safe_browsing/common:safe_browsing_prefs", |
334 "//net", | 323 "//net", |
335 "//url", | 324 "//url", |
336 ] | 325 ] |
337 } | 326 } |
338 | 327 |
339 source_set("v4_database_unittest") { | 328 source_set("v4_database_unittest") { |
340 testonly = true | 329 testonly = true |
341 sources = [ | 330 sources = [ |
342 "v4_database_unittest.cc", | 331 "v4_database_unittest.cc", |
343 ] | 332 ] |
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
406 "//net:test_support", | 395 "//net:test_support", |
407 "//testing/gtest", | 396 "//testing/gtest", |
408 ] | 397 ] |
409 } | 398 } |
410 | 399 |
411 source_set("unit_tests") { | 400 source_set("unit_tests") { |
412 testonly = true | 401 testonly = true |
413 sources = [ | 402 sources = [ |
414 "database_manager_unittest.cc", | 403 "database_manager_unittest.cc", |
415 "prefix_set_unittest.cc", | 404 "prefix_set_unittest.cc", |
416 "safe_browsing_prefs_unittest.cc", | |
417 "util_unittest.cc", | 405 "util_unittest.cc", |
418 "v4_database_unittest.cc", | 406 "v4_database_unittest.cc", |
419 "v4_get_hash_protocol_manager_unittest.cc", | 407 "v4_get_hash_protocol_manager_unittest.cc", |
420 "v4_local_database_manager_unittest.cc", | 408 "v4_local_database_manager_unittest.cc", |
421 "v4_protocol_manager_util_unittest.cc", | 409 "v4_protocol_manager_util_unittest.cc", |
422 "v4_rice_unittest.cc", | 410 "v4_rice_unittest.cc", |
423 "v4_store_unittest.cc", | 411 "v4_store_unittest.cc", |
424 "v4_update_protocol_manager_unittest.cc", | 412 "v4_update_protocol_manager_unittest.cc", |
425 ] | 413 ] |
426 deps = [ | 414 deps = [ |
427 ":database_manager", | 415 ":database_manager", |
428 ":prefix_set", | 416 ":prefix_set", |
429 ":safe_browsing_prefs", | |
430 ":safebrowsing_proto", | 417 ":safebrowsing_proto", |
431 ":test_database_manager", | 418 ":test_database_manager", |
432 ":util", | 419 ":util", |
433 ":v4_database", | 420 ":v4_database", |
434 ":v4_get_hash_protocol_manager", | 421 ":v4_get_hash_protocol_manager", |
435 ":v4_local_database_manager", | 422 ":v4_local_database_manager", |
436 ":v4_protocol_manager_util", | 423 ":v4_protocol_manager_util", |
437 ":v4_rice", | 424 ":v4_rice", |
438 ":v4_store", | 425 ":v4_store", |
439 ":v4_store_proto", | 426 ":v4_store_proto", |
440 ":v4_test_util", | 427 ":v4_test_util", |
441 ":v4_update_protocol_manager", | 428 ":v4_update_protocol_manager", |
442 "//base", | 429 "//base", |
443 "//components/prefs:test_support", | 430 "//components/prefs:test_support", |
| 431 "//components/safe_browsing/common:safe_browsing_prefs", |
444 "//content/test:test_support", | 432 "//content/test:test_support", |
445 "//crypto", | 433 "//crypto", |
446 "//net", | 434 "//net", |
447 "//net:test_support", | 435 "//net:test_support", |
448 "//testing/gtest", | 436 "//testing/gtest", |
449 "//url", | 437 "//url", |
450 ] | 438 ] |
451 if (is_win) { | 439 if (is_win) { |
452 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. | 440 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. |
453 cflags = [ "/wd4267" ] # Conversion from size_t to 'type'. | 441 cflags = [ "/wd4267" ] # Conversion from size_t to 'type'. |
(...skipping 16 matching lines...) Expand all Loading... |
470 "//base", | 458 "//base", |
471 "//components/variations", | 459 "//components/variations", |
472 "//testing/gtest", | 460 "//testing/gtest", |
473 "//url", | 461 "//url", |
474 ] | 462 ] |
475 if (is_win) { | 463 if (is_win) { |
476 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. | 464 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. |
477 cflags = [ "/wd4267" ] # Conversion from size_t to 'type'. | 465 cflags = [ "/wd4267" ] # Conversion from size_t to 'type'. |
478 } | 466 } |
479 } | 467 } |
OLD | NEW |