| OLD | NEW |
| 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) { | 5 if (is_android) { |
| 6 import("//build/config/android/config.gni") | 6 import("//build/config/android/config.gni") |
| 7 import("//build/config/android/rules.gni") | 7 import("//build/config/android/rules.gni") |
| 8 } | 8 } |
| 9 | 9 |
| 10 static_library("core") { | 10 static_library("core") { |
| 11 sources = [ | 11 sources = [ |
| 12 "offline_content_aggregator.cc", | 12 "offline_content_aggregator.cc", |
| 13 "offline_content_aggregator.h", | 13 "offline_content_aggregator.h", |
| 14 "offline_content_provider.h", | 14 "offline_content_provider.h", |
| 15 "offline_item.cc", | 15 "offline_item.cc", |
| 16 "offline_item.h", | 16 "offline_item.h", |
| 17 "offline_item_filter.h", | 17 "offline_item_filter.h", |
| 18 "offline_item_state.h", | 18 "offline_item_state.h", |
| 19 "throttled_offline_content_provider.cc", | 19 "throttled_offline_content_provider.cc", |
| 20 "throttled_offline_content_provider.h", | 20 "throttled_offline_content_provider.h", |
| 21 ] | 21 ] |
| 22 | 22 |
| 23 public_deps = [ | 23 public_deps = [ |
| 24 "//base", | 24 "//base", |
| 25 "//components/keyed_service/core", | 25 "//components/keyed_service/core", |
| 26 "//ui/gfx", |
| 26 "//url", | 27 "//url", |
| 27 ] | 28 ] |
| 28 | 29 |
| 29 deps = [] | 30 deps = [ |
| 31 "//ui/gfx/geometry", |
| 32 ] |
| 30 | 33 |
| 31 if (is_android) { | 34 if (is_android) { |
| 32 sources += [ | 35 sources += [ |
| 33 "android/offline_content_aggregator_bridge.cc", | 36 "android/offline_content_aggregator_bridge.cc", |
| 34 "android/offline_content_aggregator_bridge.h", | 37 "android/offline_content_aggregator_bridge.h", |
| 35 "android/offline_item_bridge.cc", | 38 "android/offline_item_bridge.cc", |
| 36 "android/offline_item_bridge.h", | 39 "android/offline_item_bridge.h", |
| 40 "android/offline_item_visuals_bridge.cc", |
| 41 "android/offline_item_visuals_bridge.h", |
| 37 ] | 42 ] |
| 38 | 43 |
| 39 deps += [ ":jni_headers" ] | 44 deps += [ ":jni_headers" ] |
| 40 } | 45 } |
| 41 } | 46 } |
| 42 | 47 |
| 43 source_set("unit_tests") { | 48 source_set("unit_tests") { |
| 44 testonly = true | 49 testonly = true |
| 45 | 50 |
| 46 sources = [ | 51 sources = [ |
| 47 "offline_content_aggregator_unittest.cc", | 52 "offline_content_aggregator_unittest.cc", |
| 48 "throttled_offline_content_provider_unittest.cc", | 53 "throttled_offline_content_provider_unittest.cc", |
| 49 ] | 54 ] |
| 50 | 55 |
| 51 deps = [ | 56 deps = [ |
| 52 ":core", | 57 ":core", |
| 53 "//base/test:test_support", | 58 "//base/test:test_support", |
| 54 "//components/offline_items_collection/core/test_support", | 59 "//components/offline_items_collection/core/test_support", |
| 55 ] | 60 ] |
| 56 } | 61 } |
| 57 | 62 |
| 58 if (is_android) { | 63 if (is_android) { |
| 59 android_library("core_java") { | 64 android_library("core_java") { |
| 60 java_files = [ | 65 java_files = [ |
| 66 "android/java/src/org/chromium/components/offline_items_collection/bridges
/OfflineItemBridge.java", |
| 67 "android/java/src/org/chromium/components/offline_items_collection/bridges
/OfflineItemVisualsBridge.java", |
| 61 "android/java/src/org/chromium/components/offline_items_collection/Content
Id.java", | 68 "android/java/src/org/chromium/components/offline_items_collection/Content
Id.java", |
| 62 "android/java/src/org/chromium/components/offline_items_collection/LegacyH
elpers.java", | 69 "android/java/src/org/chromium/components/offline_items_collection/LegacyH
elpers.java", |
| 63 "android/java/src/org/chromium/components/offline_items_collection/Offline
ContentAggregatorBridge.java", | 70 "android/java/src/org/chromium/components/offline_items_collection/Offline
ContentAggregatorBridge.java", |
| 64 "android/java/src/org/chromium/components/offline_items_collection/Offline
ContentProvider.java", | 71 "android/java/src/org/chromium/components/offline_items_collection/Offline
ContentProvider.java", |
| 65 "android/java/src/org/chromium/components/offline_items_collection/Offline
Item.java", | 72 "android/java/src/org/chromium/components/offline_items_collection/Offline
Item.java", |
| 66 "android/java/src/org/chromium/components/offline_items_collection/Offline
ItemBridge.java", | 73 "android/java/src/org/chromium/components/offline_items_collection/Offline
ItemVisuals.java", |
| 67 ] | 74 ] |
| 68 | 75 |
| 69 srcjar_deps = [ ":jni_enums" ] | 76 srcjar_deps = [ ":jni_enums" ] |
| 70 | 77 |
| 71 deps = [ | 78 deps = [ |
| 72 "//base:base_java", | 79 "//base:base_java", |
| 73 "//third_party/android_tools:android_support_annotations_java", | 80 "//third_party/android_tools:android_support_annotations_java", |
| 74 ] | 81 ] |
| 75 } | 82 } |
| 76 | 83 |
| 77 generate_jni("jni_headers") { | 84 generate_jni("jni_headers") { |
| 78 visibility = [ ":*" ] | 85 visibility = [ ":*" ] |
| 79 | 86 |
| 80 sources = [ | 87 sources = [ |
| 81 "android/java/src/org/chromium/components/offline_items_collection/Offline
ContentAggregatorBridge.java", | 88 "android/java/src/org/chromium/components/offline_items_collection/Offline
ContentAggregatorBridge.java", |
| 82 "android/java/src/org/chromium/components/offline_items_collection/Offline
ItemBridge.java", | 89 "android/java/src/org/chromium/components/offline_items_collection/bridges
/OfflineItemBridge.java", |
| 90 "android/java/src/org/chromium/components/offline_items_collection/bridges
/OfflineItemVisualsBridge.java", |
| 83 ] | 91 ] |
| 84 | 92 |
| 85 jni_package = "components/offline_items_collection/core/android" | 93 jni_package = "components/offline_items_collection/core/android" |
| 86 } | 94 } |
| 87 | 95 |
| 88 java_cpp_enum("jni_enums") { | 96 java_cpp_enum("jni_enums") { |
| 89 visibility = [ ":*" ] | 97 visibility = [ ":*" ] |
| 90 | 98 |
| 91 sources = [ | 99 sources = [ |
| 92 "offline_item_filter.h", | 100 "offline_item_filter.h", |
| 93 "offline_item_state.h", | 101 "offline_item_state.h", |
| 94 ] | 102 ] |
| 95 } | 103 } |
| 96 } | 104 } |
| OLD | NEW |