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

Side by Side Diff: components/invalidation/BUILD.gn

Issue 459513002: Massive refactor of the Android invalidation code. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: A couple GN fixes. Created 6 years, 2 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 | « components/invalidation.gypi ('k') | components/invalidation/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 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) {
5 import("//build/config/android/rules.gni")
6 }
4 7
5 static_library("invalidation") { 8 static_library("invalidation") {
6 sources = [ 9 sources = [
7 "ack_handle.cc", 10 "ack_handle.cc",
8 "ack_handle.h", 11 "ack_handle.h",
9 "ack_handler.cc", 12 "ack_handler.cc",
10 "ack_handler.h", 13 "ack_handler.h",
11 "invalidation.cc", 14 "invalidation.cc",
12 "invalidation.h", 15 "invalidation.h",
13 "invalidation_handler.cc", 16 "invalidation_handler.cc",
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
68 "sync_invalidation_listener.cc", 71 "sync_invalidation_listener.cc",
69 "sync_invalidation_listener.h", 72 "sync_invalidation_listener.h",
70 "sync_system_resources.cc", 73 "sync_system_resources.cc",
71 "sync_system_resources.h", 74 "sync_system_resources.h",
72 "ticl_invalidation_service.cc", 75 "ticl_invalidation_service.cc",
73 "ticl_invalidation_service.h", 76 "ticl_invalidation_service.h",
74 "ticl_settings_provider.cc", 77 "ticl_settings_provider.cc",
75 "ticl_settings_provider.h", 78 "ticl_settings_provider.h",
76 ] 79 ]
77 } 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 }
78 90
79 public_deps = [ 91 public_deps = [
80 "//third_party/cacheinvalidation", 92 "//third_party/cacheinvalidation",
81 ] 93 ]
82 deps = [ 94 deps = [
83 "//base", 95 "//base",
84 "//components/gcm_driver", 96 "//components/gcm_driver",
85 "//components/keyed_service/core", 97 "//components/keyed_service/core",
86 "//components/pref_registry", 98 "//components/pref_registry",
87 "//components/signin/core/browser", 99 "//components/signin/core/browser",
88 "//google_apis", 100 "//google_apis",
89 "//jingle:notifier", 101 "//jingle:notifier",
90 102
91 # TODO(sync): Remove this (http://crbug.com/133352); 103 # TODO(sync): Remove this (http://crbug.com/133352);
92 "//third_party/protobuf:protobuf_lite", 104 "//third_party/protobuf:protobuf_lite",
93 # "//third_party/cacheinvalidation/src/google/cacheinvalidation:cacheinvalid ation_proto_cpp", 105 # "//third_party/cacheinvalidation/src/google/cacheinvalidation:cacheinvalid ation_proto_cpp",
94 ] 106 ]
95 } 107 }
96 108
109 static_library("unittests") {
110 testonly = true
111 sources = []
112 deps = [
113 ":invalidation",
114 ":test_support",
115 ]
116 if (is_android) {
117 deps += [
118 ":javatests",
119 ":jni_headers",
120 ]
121 }
122 }
123
97 static_library("test_support") { 124 static_library("test_support") {
98 testonly = true 125 testonly = true
99 sources = [ 126 sources = [
100 "fake_invalidation_handler.cc", 127 "fake_invalidation_handler.cc",
101 "fake_invalidation_handler.h", 128 "fake_invalidation_handler.h",
102 "fake_invalidation_state_tracker.cc", 129 "fake_invalidation_state_tracker.cc",
103 "fake_invalidation_state_tracker.h", 130 "fake_invalidation_state_tracker.h",
104 "fake_invalidator.cc", 131 "fake_invalidator.cc",
105 "fake_invalidator.h", 132 "fake_invalidator.h",
106 "invalidation_service_test_template.cc", 133 "invalidation_service_test_template.cc",
107 "invalidation_service_test_template.h", 134 "invalidation_service_test_template.h",
108 "invalidation_test_util.cc", 135 "invalidation_test_util.cc",
109 "invalidation_test_util.h", 136 "invalidation_test_util.h",
110 "invalidator_test_template.cc", 137 "invalidator_test_template.cc",
111 "invalidator_test_template.h", 138 "invalidator_test_template.h",
112 "object_id_invalidation_map_test_util.cc", 139 "object_id_invalidation_map_test_util.cc",
113 "object_id_invalidation_map_test_util.h", 140 "object_id_invalidation_map_test_util.h",
114 "unacked_invalidation_set_test_util.cc", 141 "unacked_invalidation_set_test_util.cc",
115 "unacked_invalidation_set_test_util.h", 142 "unacked_invalidation_set_test_util.h",
116 ] 143 ]
117 if (!is_android) { 144 if (!is_android) {
118 sources += [ 145 sources += [
119 "p2p_invalidation_service.cc", 146 "p2p_invalidation_service.cc",
120 "p2p_invalidation_service.h", 147 "p2p_invalidation_service.h",
121 ] 148 ]
122 } 149 }
123 150 if (is_android) {
151 deps += [
152 ":jni_headers",
153 ]
154 }
124 deps = [ 155 deps = [
125 "//base", 156 "//base",
126 "//components/gcm_driver:test_support", 157 "//components/gcm_driver:test_support",
127 "//components/keyed_service/core", 158 "//components/keyed_service/core",
128 "//google_apis", 159 "//google_apis",
129 "//jingle:notifier", 160 "//jingle:notifier",
130 "//jingle:notifier_test_util", 161 "//jingle:notifier_test_util",
131 "//net", 162 "//net",
132 "//testing/gmock", 163 "//testing/gmock",
133 "//third_party/cacheinvalidation", 164 "//third_party/cacheinvalidation",
134 165
135 # TODO(sync): Remove this (http://crbug.com/133352); 166 # TODO(sync): Remove this (http://crbug.com/133352);
136 "//third_party/protobuf:protobuf_lite", 167 "//third_party/protobuf:protobuf_lite",
137 # "//third_party/cacheinvalidation/src/google/cacheinvalidation:cacheinvalid ation_proto_cpp", 168 # "//third_party/cacheinvalidation/src/google/cacheinvalidation:cacheinvalid ation_proto_cpp",
138 ] 169 ]
139 } 170 }
171
172 if (is_android) {
173 static_library("java") {
174 deps = [
175 "//base",
176 "//sync:java",
177 "//third_party/cacheinvalidation:javalib",
178 ]
179 sources = [
180 ]
181 }
182 static_library("javatests") {
183 deps = [
184 ":java",
185 "//base:java_test_support",
186 ]
187 }
188 generate_jni("jni_headers") {
189 sources = [
190 "android/java/src/org/chromium/components/invalidation/InvalidationService .java",
191 ]
192 jni_package = "components/invalidation"
193 }
194 }
OLDNEW
« no previous file with comments | « components/invalidation.gypi ('k') | components/invalidation/DEPS » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698