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 if (is_android) { | 4 if (is_android) { |
5 import("//build/config/android/rules.gni") | 5 import("//build/config/android/rules.gni") |
6 } | 6 } |
7 | 7 |
8 static_library("invalidation") { | 8 static_library("invalidation") { |
9 sources = [ | 9 sources = [ |
10 "ack_handle.cc", | 10 "ack_handle.cc", |
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
71 "sync_invalidation_listener.cc", | 71 "sync_invalidation_listener.cc", |
72 "sync_invalidation_listener.h", | 72 "sync_invalidation_listener.h", |
73 "sync_system_resources.cc", | 73 "sync_system_resources.cc", |
74 "sync_system_resources.h", | 74 "sync_system_resources.h", |
75 "ticl_invalidation_service.cc", | 75 "ticl_invalidation_service.cc", |
76 "ticl_invalidation_service.h", | 76 "ticl_invalidation_service.h", |
77 "ticl_settings_provider.cc", | 77 "ticl_settings_provider.cc", |
78 "ticl_settings_provider.h", | 78 "ticl_settings_provider.h", |
79 ] | 79 ] |
80 } | 80 } |
81 if (is_android) { | |
82 sources += [ | |
83 "android/component_jni_registrar.cc", | |
84 "android/component_jni_registrar.h", | |
85 "invalidation_service_android.cc", | |
86 "invalidation_service_android.h", | |
87 ] | |
88 deps += [ ":jni_headers" ] | |
89 } | |
90 | 81 |
91 public_deps = [ | 82 public_deps = [ |
92 "//third_party/cacheinvalidation", | 83 "//third_party/cacheinvalidation", |
93 ] | 84 ] |
94 deps = [ | 85 deps = [ |
95 "//base", | 86 "//base", |
96 "//components/gcm_driver", | 87 "//components/gcm_driver", |
97 "//components/keyed_service/core", | 88 "//components/keyed_service/core", |
98 "//components/pref_registry", | 89 "//components/pref_registry", |
99 "//components/signin/core/browser", | 90 "//components/signin/core/browser", |
100 "//google_apis", | 91 "//google_apis", |
101 "//jingle:notifier", | 92 "//jingle:notifier", |
102 | 93 |
103 # TODO(sync): Remove this (http://crbug.com/133352); | 94 # TODO(sync): Remove this (http://crbug.com/133352); |
104 "//third_party/protobuf:protobuf_lite", | 95 "//third_party/protobuf:protobuf_lite", |
105 # "//third_party/cacheinvalidation/src/google/cacheinvalidation:cacheinvalid
ation_proto_cpp", | 96 # "//third_party/cacheinvalidation/src/google/cacheinvalidation:cacheinvalid
ation_proto_cpp", |
106 ] | 97 ] |
| 98 |
| 99 if (is_android) { |
| 100 sources += [ |
| 101 "android/component_jni_registrar.cc", |
| 102 "android/component_jni_registrar.h", |
| 103 "invalidation_service_android.cc", |
| 104 "invalidation_service_android.h", |
| 105 ] |
| 106 deps += [ ":jni_headers" ] |
| 107 } |
107 } | 108 } |
108 | 109 |
109 static_library("unittests") { | 110 static_library("unittests") { |
110 testonly = true | 111 testonly = true |
111 sources = [] | 112 sources = [] |
112 deps = [ | 113 deps = [ |
113 ":invalidation", | 114 ":invalidation", |
114 ":test_support", | 115 ":test_support", |
115 ] | 116 ] |
116 if (is_android) { | 117 if (is_android) { |
(...skipping 17 matching lines...) Expand all Loading... |
134 "invalidation_service_test_template.h", | 135 "invalidation_service_test_template.h", |
135 "invalidation_test_util.cc", | 136 "invalidation_test_util.cc", |
136 "invalidation_test_util.h", | 137 "invalidation_test_util.h", |
137 "invalidator_test_template.cc", | 138 "invalidator_test_template.cc", |
138 "invalidator_test_template.h", | 139 "invalidator_test_template.h", |
139 "object_id_invalidation_map_test_util.cc", | 140 "object_id_invalidation_map_test_util.cc", |
140 "object_id_invalidation_map_test_util.h", | 141 "object_id_invalidation_map_test_util.h", |
141 "unacked_invalidation_set_test_util.cc", | 142 "unacked_invalidation_set_test_util.cc", |
142 "unacked_invalidation_set_test_util.h", | 143 "unacked_invalidation_set_test_util.h", |
143 ] | 144 ] |
144 if (!is_android) { | 145 |
145 sources += [ | |
146 "p2p_invalidation_service.cc", | |
147 "p2p_invalidation_service.h", | |
148 ] | |
149 } | |
150 if (is_android) { | |
151 deps += [ | |
152 ":jni_headers", | |
153 ] | |
154 } | |
155 deps = [ | 146 deps = [ |
156 "//base", | 147 "//base", |
157 "//components/gcm_driver:test_support", | 148 "//components/gcm_driver:test_support", |
158 "//components/keyed_service/core", | 149 "//components/keyed_service/core", |
159 "//google_apis", | 150 "//google_apis", |
160 "//jingle:notifier", | 151 "//jingle:notifier", |
161 "//jingle:notifier_test_util", | 152 "//jingle:notifier_test_util", |
162 "//net", | 153 "//net", |
163 "//testing/gmock", | 154 "//testing/gmock", |
164 "//third_party/cacheinvalidation", | 155 "//third_party/cacheinvalidation", |
165 | 156 |
166 # TODO(sync): Remove this (http://crbug.com/133352); | 157 # TODO(sync): Remove this (http://crbug.com/133352); |
167 "//third_party/protobuf:protobuf_lite", | 158 "//third_party/protobuf:protobuf_lite", |
168 # "//third_party/cacheinvalidation/src/google/cacheinvalidation:cacheinvalid
ation_proto_cpp", | 159 # "//third_party/cacheinvalidation/src/google/cacheinvalidation:cacheinvalid
ation_proto_cpp", |
169 ] | 160 ] |
| 161 |
| 162 if (is_android) { |
| 163 deps += [ |
| 164 ":jni_headers", |
| 165 ] |
| 166 } else { |
| 167 sources += [ |
| 168 "p2p_invalidation_service.cc", |
| 169 "p2p_invalidation_service.h", |
| 170 ] |
| 171 } |
170 } | 172 } |
171 | 173 |
172 if (is_android) { | 174 if (is_android) { |
173 static_library("java") { | 175 android_library("java") { |
174 deps = [ | 176 deps = [ |
175 "//base", | 177 "//base:base_java", |
176 "//sync:java", | 178 "//sync/android:sync_java", |
177 "//third_party/cacheinvalidation:javalib", | 179 "//third_party/cacheinvalidation:cacheinvalidation_javalib", |
| 180 "//third_party/cacheinvalidation:cacheinvalidation_proto_java", |
| 181 "//third_party/jsr-305:jsr_305_javalib", |
178 ] | 182 ] |
179 sources = [ | 183 DEPRECATED_java_in_dir = "android/java/src" |
180 ] | |
181 } | 184 } |
182 static_library("javatests") { | 185 android_library("javatests") { |
183 deps = [ | 186 deps = [ |
184 ":java", | 187 ":java", |
185 "//base:java_test_support", | 188 "//base:base_java", |
| 189 "//base:base_java_test_support", |
| 190 "//sync/android:sync_java", |
| 191 "//third_party/cacheinvalidation:cacheinvalidation_javalib", |
| 192 "//third_party/cacheinvalidation:cacheinvalidation_proto_java", |
186 ] | 193 ] |
| 194 DEPRECATED_java_in_dir = "android/javatests/src" |
187 } | 195 } |
188 generate_jni("jni_headers") { | 196 generate_jni("jni_headers") { |
189 sources = [ | 197 sources = [ |
190 "android/java/src/org/chromium/components/invalidation/InvalidationService
.java", | 198 "android/java/src/org/chromium/components/invalidation/InvalidationService
.java", |
191 ] | 199 ] |
192 jni_package = "components/invalidation" | 200 jni_package = "components/invalidation" |
193 } | 201 } |
194 } | 202 } |
OLD | NEW |