1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
|
# Copyright 2017 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
if (is_android) {
import("//build/config/android/config.gni")
import("//build/config/android/rules.gni")
}
static_library("core") {
sources = [
"offline_content_aggregator.cc",
"offline_content_aggregator.h",
"offline_content_provider.h",
"offline_item.cc",
"offline_item.h",
"offline_item_filter.h",
"offline_item_state.h",
"throttled_offline_content_provider.cc",
"throttled_offline_content_provider.h",
]
public_deps = [
"//base",
"//components/keyed_service/core",
"//url",
]
deps = []
if (is_android) {
sources += [
"android/offline_content_aggregator_bridge.cc",
"android/offline_content_aggregator_bridge.h",
"android/offline_item_bridge.cc",
"android/offline_item_bridge.h",
]
deps += [ ":jni_headers" ]
}
}
source_set("unit_tests") {
testonly = true
sources = [
"offline_content_aggregator_unittest.cc",
"throttled_offline_content_provider_unittest.cc",
]
deps = [
":core",
"//base/test:test_support",
"//components/offline_items_collection/core/test_support",
]
}
if (is_android) {
android_library("core_java") {
java_files = [
"android/java/src/org/chromium/components/offline_items_collection/ContentId.java",
"android/java/src/org/chromium/components/offline_items_collection/LegacyHelpers.java",
"android/java/src/org/chromium/components/offline_items_collection/OfflineContentAggregatorBridge.java",
"android/java/src/org/chromium/components/offline_items_collection/OfflineContentProvider.java",
"android/java/src/org/chromium/components/offline_items_collection/OfflineItem.java",
"android/java/src/org/chromium/components/offline_items_collection/OfflineItemBridge.java",
]
srcjar_deps = [ ":jni_enums" ]
deps = [
"//base:base_java",
"//third_party/android_tools:android_support_annotations_java",
]
}
generate_jni("jni_headers") {
visibility = [ ":*" ]
sources = [
"android/java/src/org/chromium/components/offline_items_collection/OfflineContentAggregatorBridge.java",
"android/java/src/org/chromium/components/offline_items_collection/OfflineItemBridge.java",
]
jni_package = "components/offline_items_collection/core/android"
}
java_cpp_enum("jni_enums") {
visibility = [ ":*" ]
sources = [
"offline_item_filter.h",
"offline_item_state.h",
]
}
}
|