OLD | NEW |
1 # Copyright 2014 The Chromium Authors. All rights reserved. | 1 # Copyright 2014 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("//build/config/ui.gni") |
| 6 |
| 7 if (is_android) { |
| 8 import("//build/config/android/config.gni") |
| 9 import("//build/config/android/rules.gni") |
| 10 } |
| 11 |
5 # GYP version: components/ntp_snippets.gypi:ntp_snippets | 12 # GYP version: components/ntp_snippets.gypi:ntp_snippets |
6 source_set("ntp_snippets") { | 13 source_set("ntp_snippets") { |
7 sources = [ | 14 sources = [ |
8 "content_suggestion.cc", | 15 "content_suggestion.cc", |
9 "content_suggestion.h", | 16 "content_suggestion.h", |
10 "content_suggestion_category.h", | 17 "content_suggestion_category.h", |
11 "content_suggestions_provider_type.h", | 18 "content_suggestions_provider_type.h", |
12 "ntp_snippet.cc", | 19 "ntp_snippet.cc", |
13 "ntp_snippet.h", | 20 "ntp_snippet.h", |
14 "ntp_snippets_constants.cc", | 21 "ntp_snippets_constants.cc", |
15 "ntp_snippets_constants.h", | 22 "ntp_snippets_constants.h", |
16 "ntp_snippets_database.cc", | 23 "ntp_snippets_database.cc", |
17 "ntp_snippets_database.h", | 24 "ntp_snippets_database.h", |
18 "ntp_snippets_fetcher.cc", | 25 "ntp_snippets_fetcher.cc", |
19 "ntp_snippets_fetcher.h", | 26 "ntp_snippets_fetcher.h", |
20 "ntp_snippets_scheduler.h", | 27 "ntp_snippets_scheduler.h", |
21 "ntp_snippets_service.cc", | 28 "ntp_snippets_service.cc", |
22 "ntp_snippets_service.h", | 29 "ntp_snippets_service.h", |
| 30 "ntp_snippets_status_service.cc", |
| 31 "ntp_snippets_status_service.h", |
23 "pref_names.cc", | 32 "pref_names.cc", |
24 "pref_names.h", | 33 "pref_names.h", |
25 "switches.cc", | 34 "switches.cc", |
26 "switches.h", | 35 "switches.h", |
27 ] | 36 ] |
28 | 37 |
29 public_deps = [ | 38 public_deps = [ |
30 "//base", | 39 "//base", |
31 "//components/keyed_service/core", | 40 "//components/keyed_service/core", |
32 "//components/leveldb_proto", | 41 "//components/leveldb_proto", |
(...skipping 10 matching lines...) Expand all Loading... |
43 "//components/data_use_measurement/core", | 52 "//components/data_use_measurement/core", |
44 "//components/image_fetcher", | 53 "//components/image_fetcher", |
45 "//components/metrics", | 54 "//components/metrics", |
46 "//components/ntp_snippets/proto", | 55 "//components/ntp_snippets/proto", |
47 "//components/variations", | 56 "//components/variations", |
48 "//third_party/icu/", | 57 "//third_party/icu/", |
49 "//ui/gfx", | 58 "//ui/gfx", |
50 ] | 59 ] |
51 } | 60 } |
52 | 61 |
| 62 if (is_android) { |
| 63 java_cpp_enum("ntp_snippets_java_enums_srcjar") { |
| 64 sources = [ |
| 65 "ntp_snippets_status_service.h", |
| 66 ] |
| 67 } |
| 68 } |
| 69 |
53 source_set("unit_tests") { | 70 source_set("unit_tests") { |
54 testonly = true | 71 testonly = true |
55 sources = [ | 72 sources = [ |
56 "ntp_snippet_unittest.cc", | 73 "ntp_snippet_unittest.cc", |
57 "ntp_snippets_database_unittest.cc", | 74 "ntp_snippets_database_unittest.cc", |
58 "ntp_snippets_fetcher_unittest.cc", | 75 "ntp_snippets_fetcher_unittest.cc", |
59 "ntp_snippets_service_unittest.cc", | 76 "ntp_snippets_service_unittest.cc", |
| 77 "ntp_snippets_status_service_unittest.cc", |
| 78 "ntp_snippets_test_utils.cc", |
| 79 "ntp_snippets_test_utils.h", |
60 ] | 80 ] |
61 | 81 |
62 deps = [ | 82 deps = [ |
63 ":ntp_snippets", | 83 ":ntp_snippets", |
64 "//base", | 84 "//base", |
65 "//base/test:test_support", | 85 "//base/test:test_support", |
66 "//components/image_fetcher", | 86 "//components/image_fetcher", |
67 "//components/leveldb_proto:test_support", | 87 "//components/leveldb_proto:test_support", |
68 "//components/signin/core/browser:test_support", | 88 "//components/signin/core/browser:test_support", |
| 89 "//components/signin/core/common", |
69 "//components/sync_driver:test_support", | 90 "//components/sync_driver:test_support", |
70 "//components/variations", | 91 "//components/variations", |
71 "//net:test_support", | 92 "//net:test_support", |
72 "//testing/gtest", | 93 "//testing/gtest", |
73 "//third_party/icu/", | 94 "//third_party/icu/", |
74 ] | 95 ] |
75 } | 96 } |
OLD | NEW |