Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(466)

Unified Diff: components/offline_items_collection/core/BUILD.gn

Issue 2707003003: Initial checkin of the Java OfflineContentProvider (Closed)
Patch Set: Fixed findbugs warning Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/android/BUILD.gn ('k') | components/offline_items_collection/core/DEPS » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/offline_items_collection/core/BUILD.gn
diff --git a/components/offline_items_collection/core/BUILD.gn b/components/offline_items_collection/core/BUILD.gn
index 1a76124f90eb9b269ce9c8f7b6df4e808a37f755..501adb8b8539272c1beb5bebb76c423d020a8a49 100644
--- a/components/offline_items_collection/core/BUILD.gn
+++ b/components/offline_items_collection/core/BUILD.gn
@@ -2,6 +2,11 @@
# 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",
@@ -16,10 +21,23 @@ static_library("core") {
"offline_item_state.h",
]
- deps = [
+ public_deps = [
"//base",
"//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") {
@@ -35,3 +53,42 @@ source_set("unit_tests") {
"//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/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",
+ ]
+ }
+}
« no previous file with comments | « chrome/android/BUILD.gn ('k') | components/offline_items_collection/core/DEPS » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698