OLD | NEW |
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 source_set("common") { | 5 source_set("common") { |
6 sources = [ | 6 sources = [ |
7 "safebrowsing_constants.cc", | 7 "safebrowsing_constants.cc", |
8 "safebrowsing_constants.h", | 8 "safebrowsing_constants.h", |
9 "safebrowsing_message_generator.cc", | |
10 "safebrowsing_message_generator.h", | |
11 "safebrowsing_messages.h", | |
12 "safebrowsing_switches.cc", | |
13 "safebrowsing_switches.h", | |
14 "safebrowsing_types.h", | |
15 ] | 9 ] |
| 10 if (!is_ios) { |
| 11 sources += [ |
| 12 "safebrowsing_message_generator.cc", |
| 13 "safebrowsing_message_generator.h", |
| 14 "safebrowsing_messages.h", |
| 15 "safebrowsing_switches.cc", |
| 16 "safebrowsing_switches.h", |
| 17 "safebrowsing_types.h", |
| 18 ] |
| 19 } |
16 | 20 |
17 deps = [ | 21 deps = [ |
18 "//base", | 22 "//base", |
19 "//ipc", | |
20 "//url/ipc:url_ipc", | |
21 ] | 23 ] |
| 24 |
| 25 if (!is_ios) { |
| 26 deps += [ |
| 27 "//ipc", |
| 28 "//url/ipc:url_ipc", |
| 29 ] |
| 30 } |
22 } | 31 } |
23 | 32 |
24 static_library("safe_browsing_prefs") { | 33 static_library("safe_browsing_prefs") { |
25 sources = [ | 34 sources = [ |
26 "safe_browsing_prefs.cc", | 35 "safe_browsing_prefs.cc", |
27 "safe_browsing_prefs.h", | 36 "safe_browsing_prefs.h", |
28 ] | 37 ] |
29 deps = [ | 38 deps = [ |
30 "//base:base", | 39 "//base:base", |
31 "//components/prefs", | 40 "//components/prefs", |
32 ] | 41 ] |
33 } | 42 } |
34 | 43 |
35 source_set("unit_tests") { | 44 source_set("unit_tests") { |
36 testonly = true | 45 testonly = true |
37 sources = [ | 46 sources = [ |
38 "safe_browsing_prefs_unittest.cc", | 47 "safe_browsing_prefs_unittest.cc", |
39 ] | 48 ] |
40 deps = [ | 49 deps = [ |
41 ":safe_browsing_prefs", | 50 ":safe_browsing_prefs", |
42 "//base:base", | 51 "//base:base", |
43 "//base/test:test_support", | 52 "//base/test:test_support", |
44 "//components/prefs:test_support", | 53 "//components/prefs:test_support", |
45 "//testing/gtest", | 54 "//testing/gtest", |
46 ] | 55 ] |
47 } | 56 } |
OLD | NEW |