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 if (is_android) { | 5 if (is_android) { |
6 import("//build/config/android/rules.gni") | 6 import("//build/config/android/rules.gni") |
7 } | 7 } |
8 | 8 |
9 # GYP: //components/offline_pages.gypi:offline_pages | 9 # GYP: //components/offline_pages.gypi:offline_pages |
10 static_library("offline_pages") { | 10 static_library("offline_pages") { |
11 sources = [ | 11 sources = [ |
12 "offline_page_archiver.h", | 12 "offline_page_archiver.h", |
13 "offline_page_feature.cc", | 13 "offline_page_feature.cc", |
14 "offline_page_feature.h", | 14 "offline_page_feature.h", |
15 "offline_page_item.cc", | 15 "offline_page_item.cc", |
16 "offline_page_item.h", | 16 "offline_page_item.h", |
17 "offline_page_metadata_store.cc", | 17 "offline_page_metadata_store.cc", |
18 "offline_page_metadata_store.h", | 18 "offline_page_metadata_store.h", |
19 "offline_page_metadata_store_impl.cc", | 19 "offline_page_metadata_store_impl.cc", |
20 "offline_page_metadata_store_impl.h", | 20 "offline_page_metadata_store_impl.h", |
21 "offline_page_model.cc", | 21 "offline_page_model.cc", |
22 "offline_page_model.h", | 22 "offline_page_model.h", |
23 "offline_page_switches.cc", | 23 "offline_page_switches.cc", |
24 "offline_page_switches.h", | 24 "offline_page_switches.h", |
25 ] | 25 ] |
26 | 26 |
27 deps = [ | 27 deps = [ |
28 "//base", | 28 "//base", |
| 29 "//components/bookmarks/browser", |
29 "//components/keyed_service/core", | 30 "//components/keyed_service/core", |
30 "//components/leveldb_proto", | 31 "//components/leveldb_proto", |
31 "//components/offline_pages/proto:offline_pages_proto", | 32 "//components/offline_pages/proto:offline_pages_proto", |
32 "//net", | 33 "//net", |
33 "//third_party/leveldatabase", | 34 "//third_party/leveldatabase", |
34 "//url", | 35 "//url", |
35 ] | 36 ] |
36 } | 37 } |
37 | 38 |
38 source_set("unit_tests") { | 39 source_set("unit_tests") { |
39 testonly = true | 40 testonly = true |
40 sources = [ | 41 sources = [ |
41 "offline_page_metadata_store_impl_unittest.cc", | 42 "offline_page_metadata_store_impl_unittest.cc", |
42 "offline_page_model_unittest.cc", | 43 "offline_page_model_unittest.cc", |
43 ] | 44 ] |
44 | 45 |
45 deps = [ | 46 deps = [ |
46 ":offline_pages", | 47 ":offline_pages", |
| 48 "//base", |
| 49 "//components/bookmarks/browser", |
| 50 "//components/leveldb_proto", |
47 "//components/offline_pages/proto:offline_pages_proto", | 51 "//components/offline_pages/proto:offline_pages_proto", |
48 "//testing/gtest", | 52 "//testing/gtest", |
| 53 "//url", |
49 ] | 54 ] |
50 } | 55 } |
51 | 56 |
52 if (is_android) { | 57 if (is_android) { |
53 java_cpp_enum("offline_pages_enums_java") { | 58 java_cpp_enum("offline_pages_enums_java") { |
54 sources = [ | 59 sources = [ |
55 "offline_page_model.h", | 60 "offline_page_model.h", |
56 ] | 61 ] |
57 } | 62 } |
58 } | 63 } |
OLD | NEW |