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