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

Side by Side 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 unified diff | Download patch
« no previous file with comments | « chrome/android/BUILD.gn ('k') | components/offline_items_collection/core/DEPS » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright 2017 The Chromium Authors. All rights reserved. 1 # Copyright 2017 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) {
6 import("//build/config/android/config.gni")
7 import("//build/config/android/rules.gni")
8 }
9
5 static_library("core") { 10 static_library("core") {
6 sources = [ 11 sources = [
7 "offline_content_aggregator.cc", 12 "offline_content_aggregator.cc",
8 "offline_content_aggregator.h", 13 "offline_content_aggregator.h",
9 "offline_content_provider.h", 14 "offline_content_provider.h",
10 "offline_item.cc", 15 "offline_item.cc",
11 "offline_item.h", 16 "offline_item.h",
12 17
13 # TODO(dtrainor): Generate the Java version of these enums when the Android 18 # TODO(dtrainor): Generate the Java version of these enums when the Android
14 # bridge is built. 19 # bridge is built.
15 "offline_item_filter.h", 20 "offline_item_filter.h",
16 "offline_item_state.h", 21 "offline_item_state.h",
17 ] 22 ]
18 23
19 deps = [ 24 public_deps = [
20 "//base", 25 "//base",
21 "//url", 26 "//url",
22 ] 27 ]
28
29 deps = []
30
31 if (is_android) {
32 sources += [
33 "android/offline_content_aggregator_bridge.cc",
34 "android/offline_content_aggregator_bridge.h",
35 "android/offline_item_bridge.cc",
36 "android/offline_item_bridge.h",
37 ]
38
39 deps += [ ":jni_headers" ]
40 }
23 } 41 }
24 42
25 source_set("unit_tests") { 43 source_set("unit_tests") {
26 testonly = true 44 testonly = true
27 45
28 sources = [ 46 sources = [
29 "offline_content_aggregator_unittest.cc", 47 "offline_content_aggregator_unittest.cc",
30 ] 48 ]
31 49
32 deps = [ 50 deps = [
33 ":core", 51 ":core",
34 "//base/test:test_support", 52 "//base/test:test_support",
35 "//components/offline_items_collection/core/test_support", 53 "//components/offline_items_collection/core/test_support",
36 ] 54 ]
37 } 55 }
56
57 if (is_android) {
58 android_library("core_java") {
59 java_files = [
60 "android/java/src/org/chromium/components/offline_items_collection/Content Id.java",
61 "android/java/src/org/chromium/components/offline_items_collection/Offline ContentAggregatorBridge.java",
62 "android/java/src/org/chromium/components/offline_items_collection/Offline ContentProvider.java",
63 "android/java/src/org/chromium/components/offline_items_collection/Offline Item.java",
64 "android/java/src/org/chromium/components/offline_items_collection/Offline ItemBridge.java",
65 ]
66
67 srcjar_deps = [ ":jni_enums" ]
68
69 deps = [
70 "//base:base_java",
71 "//third_party/android_tools:android_support_annotations_java",
72 ]
73 }
74
75 generate_jni("jni_headers") {
76 visibility = [ ":*" ]
77
78 sources = [
79 "android/java/src/org/chromium/components/offline_items_collection/Offline ContentAggregatorBridge.java",
80 "android/java/src/org/chromium/components/offline_items_collection/Offline ItemBridge.java",
81 ]
82
83 jni_package = "components/offline_items_collection/core/android"
84 }
85
86 java_cpp_enum("jni_enums") {
87 visibility = [ ":*" ]
88
89 sources = [
90 "offline_item_filter.h",
91 "offline_item_state.h",
92 ]
93 }
94 }
OLDNEW
« 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