| OLD | NEW |
| 1 # Copyright 2014 The Chromium Authors. All rights reserved. | 1 # Copyright 2014 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 static_library("invalidation") { | 5 static_library("invalidation") { |
| 6 sources = [ | 6 sources = [ |
| 7 "ack_handle.cc", | 7 "ack_handle.cc", |
| 8 "ack_handle.h", | 8 "ack_handle.h", |
| 9 "ack_handler.cc", | 9 "ack_handler.cc", |
| 10 "ack_handler.h", | 10 "ack_handler.h", |
| (...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 68 "sync_invalidation_listener.cc", | 68 "sync_invalidation_listener.cc", |
| 69 "sync_invalidation_listener.h", | 69 "sync_invalidation_listener.h", |
| 70 "sync_system_resources.cc", | 70 "sync_system_resources.cc", |
| 71 "sync_system_resources.h", | 71 "sync_system_resources.h", |
| 72 "ticl_invalidation_service.cc", | 72 "ticl_invalidation_service.cc", |
| 73 "ticl_invalidation_service.h", | 73 "ticl_invalidation_service.h", |
| 74 "ticl_settings_provider.cc", | 74 "ticl_settings_provider.cc", |
| 75 "ticl_settings_provider.h", | 75 "ticl_settings_provider.h", |
| 76 ] | 76 ] |
| 77 } | 77 } |
| 78 if (is_android) { |
| 79 sources += [ |
| 80 "android/component_jni_registrar.cc", |
| 81 "android/component_jni_registrar.h", |
| 82 "invalidation_service_android.cc", |
| 83 "invalidation_service_android.h", |
| 84 ] |
| 85 deps += [ ":jni_headers" ] |
| 86 } |
| 78 | 87 |
| 79 deps = [ | 88 deps = [ |
| 80 "//base", | 89 "//base", |
| 81 "//components/gcm_driver", | 90 "//components/gcm_driver", |
| 82 "//components/keyed_service/core", | 91 "//components/keyed_service/core", |
| 83 "//components/pref_registry", | 92 "//components/pref_registry", |
| 84 "//components/signin/core/browser", | 93 "//components/signin/core/browser", |
| 85 "//google_apis", | 94 "//google_apis", |
| 86 "//jingle:notifier", | 95 "//jingle:notifier", |
| 87 "//third_party/cacheinvalidation", | 96 "//third_party/cacheinvalidation", |
| 88 | 97 |
| 89 # TODO(sync): Remove this (http://crbug.com/133352); | 98 # TODO(sync): Remove this (http://crbug.com/133352); |
| 90 "//third_party/protobuf:protobuf_lite", | 99 "//third_party/protobuf:protobuf_lite", |
| 91 # "//third_party/cacheinvalidation/src/google/cacheinvalidation:cacheinvalid
ation_proto_cpp", | 100 # "//third_party/cacheinvalidation/src/google/cacheinvalidation:cacheinvalid
ation_proto_cpp", |
| 92 ] | 101 ] |
| 93 | 102 |
| 94 forward_dependent_configs_from = [ | 103 forward_dependent_configs_from = [ |
| 95 "//third_party/cacheinvalidation", | 104 "//third_party/cacheinvalidation", |
| 96 ] | 105 ] |
| 97 } | 106 } |
| 98 | 107 |
| 108 static_library("unittests") { |
| 109 testonly = true |
| 110 sources = [] |
| 111 deps = [ |
| 112 ":invalidation", |
| 113 ":test_support", |
| 114 ] |
| 115 if (is_android) { |
| 116 deps += [ |
| 117 ":javatests", |
| 118 ":jni_headers", |
| 119 ] |
| 120 } |
| 121 } |
| 122 |
| 99 static_library("test_support") { | 123 static_library("test_support") { |
| 100 testonly = true | 124 testonly = true |
| 101 sources = [ | 125 sources = [ |
| 102 "fake_invalidation_handler.cc", | 126 "fake_invalidation_handler.cc", |
| 103 "fake_invalidation_handler.h", | 127 "fake_invalidation_handler.h", |
| 104 "fake_invalidation_state_tracker.cc", | 128 "fake_invalidation_state_tracker.cc", |
| 105 "fake_invalidation_state_tracker.h", | 129 "fake_invalidation_state_tracker.h", |
| 106 "fake_invalidator.cc", | 130 "fake_invalidator.cc", |
| 107 "fake_invalidator.h", | 131 "fake_invalidator.h", |
| 108 "invalidation_service_test_template.cc", | 132 "invalidation_service_test_template.cc", |
| 109 "invalidation_service_test_template.h", | 133 "invalidation_service_test_template.h", |
| 110 "invalidation_test_util.cc", | 134 "invalidation_test_util.cc", |
| 111 "invalidation_test_util.h", | 135 "invalidation_test_util.h", |
| 112 "invalidator_test_template.cc", | 136 "invalidator_test_template.cc", |
| 113 "invalidator_test_template.h", | 137 "invalidator_test_template.h", |
| 114 "object_id_invalidation_map_test_util.cc", | 138 "object_id_invalidation_map_test_util.cc", |
| 115 "object_id_invalidation_map_test_util.h", | 139 "object_id_invalidation_map_test_util.h", |
| 116 "unacked_invalidation_set_test_util.cc", | 140 "unacked_invalidation_set_test_util.cc", |
| 117 "unacked_invalidation_set_test_util.h", | 141 "unacked_invalidation_set_test_util.h", |
| 118 ] | 142 ] |
| 119 if (!is_android) { | 143 if (!is_android) { |
| 120 sources += [ | 144 sources += [ |
| 121 "p2p_invalidation_service.cc", | 145 "p2p_invalidation_service.cc", |
| 122 "p2p_invalidation_service.h", | 146 "p2p_invalidation_service.h", |
| 123 ] | 147 ] |
| 124 } | 148 } |
| 125 | 149 if (is_android) { |
| 150 deps += [ |
| 151 ":jni_headers", |
| 152 ] |
| 153 } |
| 126 deps = [ | 154 deps = [ |
| 127 "//base", | 155 "//base", |
| 128 "//components/gcm_driver:test_support", | 156 "//components/gcm_driver:test_support", |
| 129 "//components/keyed_service/core", | 157 "//components/keyed_service/core", |
| 130 "//google_apis", | 158 "//google_apis", |
| 131 "//jingle:notifier", | 159 "//jingle:notifier", |
| 132 "//jingle:notifier_test_util", | 160 "//jingle:notifier_test_util", |
| 133 "//net", | 161 "//net", |
| 134 "//testing/gmock", | 162 "//testing/gmock", |
| 135 "//third_party/cacheinvalidation", | 163 "//third_party/cacheinvalidation", |
| 136 | 164 |
| 137 # TODO(sync): Remove this (http://crbug.com/133352); | 165 # TODO(sync): Remove this (http://crbug.com/133352); |
| 138 "//third_party/protobuf:protobuf_lite", | 166 "//third_party/protobuf:protobuf_lite", |
| 139 # "//third_party/cacheinvalidation/src/google/cacheinvalidation:cacheinvalid
ation_proto_cpp", | 167 # "//third_party/cacheinvalidation/src/google/cacheinvalidation:cacheinvalid
ation_proto_cpp", |
| 140 ] | 168 ] |
| 141 } | 169 } |
| 170 |
| 171 if (is_android) { |
| 172 static_library("java") { |
| 173 deps = [ |
| 174 "//base", |
| 175 "//sync:java", |
| 176 "//third_party/cacheinvalidation:javalib", |
| 177 ] |
| 178 sources = [ |
| 179 ] |
| 180 } |
| 181 static_library("javatests") { |
| 182 deps = [ |
| 183 ":java", |
| 184 "//base:java_test_support", |
| 185 ] |
| 186 } |
| 187 static_library("unittests_apk") { |
| 188 deps = [ |
| 189 ":java", |
| 190 ":javatests", |
| 191 ":unittests", |
| 192 ] |
| 193 } |
| 194 generate_jni("jni_headers") { |
| 195 sources = [ |
| 196 "android/java/src/org/chromium/components/invalidation/InvalidationService
.java", |
| 197 ] |
| 198 jni_package = "components/invalidation" |
| 199 } |
| 200 } |
| OLD | NEW |