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") | 5 import("//build/config/ui.gni") |
6 | 6 |
7 if (is_android) { | 7 if (is_android) { |
8 import("//build/config/android/config.gni") | 8 import("//build/config/android/config.gni") |
9 import("//build/config/android/rules.gni") | 9 import("//build/config/android/rules.gni") |
10 } | 10 } |
11 | 11 |
12 # GYP version: components/ntp_snippets.gypi:ntp_snippets | 12 # GYP version: components/ntp_snippets.gypi:ntp_snippets |
13 static_library("ntp_snippets") { | 13 static_library("ntp_snippets") { |
14 sources = [ | 14 sources = [ |
15 "bookmarks/bookmark_last_visit_utils.cc", | 15 "bookmarks/bookmark_last_visit_utils.cc", |
16 "bookmarks/bookmark_last_visit_utils.h", | 16 "bookmarks/bookmark_last_visit_utils.h", |
17 "bookmarks/bookmark_suggestions_provider.cc", | 17 "bookmarks/bookmark_suggestions_provider.cc", |
18 "bookmarks/bookmark_suggestions_provider.h", | 18 "bookmarks/bookmark_suggestions_provider.h", |
19 "category.cc", | 19 "category.cc", |
20 "category.h", | 20 "category.h", |
21 "category_factory.cc", | 21 "category_factory.cc", |
22 "category_factory.h", | 22 "category_factory.h", |
| 23 "category_info.cc", |
| 24 "category_info.h", |
23 "category_status.cc", | 25 "category_status.cc", |
24 "category_status.h", | 26 "category_status.h", |
25 "content_suggestion.cc", | 27 "content_suggestion.cc", |
26 "content_suggestion.h", | 28 "content_suggestion.h", |
27 "content_suggestions_provider.cc", | 29 "content_suggestions_provider.cc", |
28 "content_suggestions_provider.h", | 30 "content_suggestions_provider.h", |
29 "content_suggestions_service.cc", | 31 "content_suggestions_service.cc", |
30 "content_suggestions_service.h", | 32 "content_suggestions_service.h", |
31 "features.cc", | 33 "features.cc", |
32 "features.h", | 34 "features.h", |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
66 "//url", | 68 "//url", |
67 ] | 69 ] |
68 | 70 |
69 deps = [ | 71 deps = [ |
70 "//components/bookmarks/browser", | 72 "//components/bookmarks/browser", |
71 "//components/data_use_measurement/core", | 73 "//components/data_use_measurement/core", |
72 "//components/image_fetcher", | 74 "//components/image_fetcher", |
73 "//components/metrics", | 75 "//components/metrics", |
74 "//components/ntp_snippets/proto", | 76 "//components/ntp_snippets/proto", |
75 "//components/offline_pages", | 77 "//components/offline_pages", |
| 78 "//components/strings", |
76 "//components/variations", | 79 "//components/variations", |
77 "//components/variations/net", | 80 "//components/variations/net", |
78 "//third_party/icu/", | 81 "//third_party/icu/", |
| 82 "//ui/base", |
79 "//ui/gfx", | 83 "//ui/gfx", |
80 ] | 84 ] |
81 } | 85 } |
82 | 86 |
83 if (is_android) { | 87 if (is_android) { |
84 java_cpp_enum("ntp_snippets_java_enums_srcjar") { | 88 java_cpp_enum("ntp_snippets_java_enums_srcjar") { |
85 sources = [ | 89 sources = [ |
86 "category.h", | 90 "category.h", |
| 91 "category_info.h", |
87 "category_status.h", | 92 "category_status.h", |
88 ] | 93 ] |
89 } | 94 } |
90 } | 95 } |
91 | 96 |
92 source_set("unit_tests") { | 97 source_set("unit_tests") { |
93 testonly = true | 98 testonly = true |
94 sources = [ | 99 sources = [ |
95 "content_suggestions_service_unittest.cc", | 100 "content_suggestions_service_unittest.cc", |
96 "ntp_snippet_unittest.cc", | 101 "ntp_snippet_unittest.cc", |
97 "ntp_snippets_database_unittest.cc", | 102 "ntp_snippets_database_unittest.cc", |
98 "ntp_snippets_fetcher_unittest.cc", | 103 "ntp_snippets_fetcher_unittest.cc", |
99 "ntp_snippets_service_unittest.cc", | 104 "ntp_snippets_service_unittest.cc", |
100 "ntp_snippets_status_service_unittest.cc", | 105 "ntp_snippets_status_service_unittest.cc", |
101 "ntp_snippets_test_utils.cc", | 106 "ntp_snippets_test_utils.cc", |
102 "ntp_snippets_test_utils.h", | 107 "ntp_snippets_test_utils.h", |
103 "request_throttler_unittest.cc", | 108 "request_throttler_unittest.cc", |
104 ] | 109 ] |
105 | 110 |
106 deps = [ | 111 deps = [ |
107 ":ntp_snippets", | 112 ":ntp_snippets", |
108 "//base", | 113 "//base", |
109 "//base/test:test_support", | 114 "//base/test:test_support", |
110 "//components/image_fetcher", | 115 "//components/image_fetcher", |
111 "//components/leveldb_proto:test_support", | 116 "//components/leveldb_proto:test_support", |
112 "//components/signin/core/browser:test_support", | 117 "//components/signin/core/browser:test_support", |
113 "//components/signin/core/common", | 118 "//components/signin/core/common", |
| 119 "//components/strings", |
114 "//components/sync_driver:test_support", | 120 "//components/sync_driver:test_support", |
115 "//components/variations", | 121 "//components/variations", |
116 "//net:test_support", | 122 "//net:test_support", |
117 "//testing/gtest", | 123 "//testing/gtest", |
118 "//third_party/icu/", | 124 "//third_party/icu/", |
119 ] | 125 ] |
120 } | 126 } |
OLD | NEW |