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
3 # found in the LICENSE file.
8 # GN version: //components/invalidation
9 'target_name': 'invalidation',
10 'type': 'static_library',
12 '../base/base.gyp:base',
13 '../base/base.gyp:base_prefs',
14 '../google_apis/google_apis.gyp:google_apis',
15 '../jingle/jingle.gyp:notifier',
16 '../third_party/cacheinvalidation/cacheinvalidation.gyp:cacheinvalidation',
17 # TODO(akalin): Remove this (http://crbug.com/133352).
18 '../third_party/cacheinvalidation/cacheinvalidation.gyp:cacheinvalidation_proto_cpp',
22 'signin_core_browser',
24 'export_dependent_settings': [
25 '../third_party/cacheinvalidation/cacheinvalidation.gyp:cacheinvalidation',
31 # Note: sources list duplicated in GN build.
32 'invalidation/ack_handle.cc',
33 'invalidation/ack_handle.h',
34 'invalidation/ack_handler.cc',
35 'invalidation/ack_handler.h',
36 'invalidation/invalidation.cc',
37 'invalidation/invalidation.h',
38 'invalidation/invalidation_handler.cc',
39 'invalidation/invalidation_handler.h',
40 'invalidation/invalidation_logger.cc',
41 'invalidation/invalidation_logger.h',
42 'invalidation/invalidation_logger_observer.h',
43 'invalidation/invalidation_prefs.cc',
44 'invalidation/invalidation_prefs.h',
45 'invalidation/invalidation_service.h',
46 'invalidation/invalidation_service_util.cc',
47 'invalidation/invalidation_service_util.h',
48 'invalidation/invalidation_state_tracker.cc',
49 'invalidation/invalidation_state_tracker.h',
50 'invalidation/invalidation_switches.cc',
51 'invalidation/invalidation_switches.h',
52 'invalidation/invalidation_util.cc',
53 'invalidation/invalidation_util.h',
54 'invalidation/invalidator.cc',
55 'invalidation/invalidator.h',
56 'invalidation/invalidator_registrar.cc',
57 'invalidation/invalidator_registrar.h',
58 'invalidation/invalidator_state.cc',
59 'invalidation/invalidator_state.h',
60 'invalidation/invalidator_storage.cc',
61 'invalidation/invalidator_storage.h',
62 'invalidation/mock_ack_handler.cc',
63 'invalidation/mock_ack_handler.h',
64 'invalidation/object_id_invalidation_map.cc',
65 'invalidation/object_id_invalidation_map.h',
66 'invalidation/profile_invalidation_provider.cc',
67 'invalidation/profile_invalidation_provider.h',
68 'invalidation/single_object_invalidation_set.cc',
69 'invalidation/single_object_invalidation_set.h',
70 'invalidation/unacked_invalidation_set.cc',
71 'invalidation/unacked_invalidation_set.h',
76 # Note: sources list duplicated in GN build.
77 'invalidation/gcm_invalidation_bridge.cc',
78 'invalidation/gcm_invalidation_bridge.h',
79 'invalidation/gcm_network_channel.cc',
80 'invalidation/gcm_network_channel.h',
81 'invalidation/gcm_network_channel_delegate.h',
82 'invalidation/invalidation_notifier.cc',
83 'invalidation/invalidation_notifier.h',
84 'invalidation/non_blocking_invalidator.cc',
85 'invalidation/non_blocking_invalidator.h',
86 'invalidation/notifier_reason_util.cc',
87 'invalidation/notifier_reason_util.h',
88 'invalidation/p2p_invalidator.cc',
89 'invalidation/p2p_invalidator.h',
90 'invalidation/push_client_channel.cc',
91 'invalidation/push_client_channel.h',
92 'invalidation/registration_manager.cc',
93 'invalidation/registration_manager.h',
94 'invalidation/state_writer.h',
95 'invalidation/sync_invalidation_listener.cc',
96 'invalidation/sync_invalidation_listener.h',
97 'invalidation/sync_system_resources.cc',
98 'invalidation/sync_system_resources.h',
99 'invalidation/ticl_invalidation_service.cc',
100 'invalidation/ticl_invalidation_service.h',
101 'invalidation/ticl_settings_provider.cc',
102 'invalidation/ticl_settings_provider.h',
105 ['OS == "android"', {
107 'invalidation_jni_headers',
110 'invalidation/android/component_jni_registrar.cc',
111 'invalidation/android/component_jni_registrar.h',
112 'invalidation/invalidation_service_android.cc',
113 'invalidation/invalidation_service_android.h',
120 # GN version: //components/invalidation:test_support
121 'target_name': 'invalidation_test_support',
122 'type': 'static_library',
124 '../base/base.gyp:base',
125 '../google_apis/google_apis.gyp:google_apis',
126 '../jingle/jingle.gyp:notifier',
127 '../jingle/jingle.gyp:notifier_test_util',
128 '../net/net.gyp:net',
129 '../testing/gmock.gyp:gmock',
130 '../third_party/cacheinvalidation/cacheinvalidation.gyp:cacheinvalidation',
131 '../third_party/cacheinvalidation/cacheinvalidation.gyp:cacheinvalidation_proto_cpp',
132 'gcm_driver_test_support',
133 'keyed_service_core',
139 # Note: sources list duplicated in GN build.
140 'invalidation/fake_invalidation_handler.cc',
141 'invalidation/fake_invalidation_handler.h',
142 'invalidation/fake_invalidation_state_tracker.cc',
143 'invalidation/fake_invalidation_state_tracker.h',
144 'invalidation/fake_invalidator.cc',
145 'invalidation/fake_invalidator.h',
146 'invalidation/invalidation_service_test_template.cc',
147 'invalidation/invalidation_service_test_template.h',
148 'invalidation/invalidation_test_util.cc',
149 'invalidation/invalidation_test_util.h',
150 'invalidation/invalidator_test_template.cc',
151 'invalidation/invalidator_test_template.h',
152 'invalidation/object_id_invalidation_map_test_util.cc',
153 'invalidation/object_id_invalidation_map_test_util.h',
154 'invalidation/unacked_invalidation_set_test_util.cc',
155 'invalidation/unacked_invalidation_set_test_util.h',
158 ['OS != "android"', {
160 # Note: sources list duplicated in GN build.
161 'invalidation/p2p_invalidation_service.cc',
162 'invalidation/p2p_invalidation_service.h',
165 ['OS == "android"', {
167 'invalidation_jni_headers',
174 ['OS == "android"', {
177 'target_name': 'invalidation_java',
180 '../base/base.gyp:base',
181 '../sync/sync.gyp:sync_java',
182 '../third_party/cacheinvalidation/cacheinvalidation.gyp:cacheinvalidation_javalib',
185 'java_in_dir': 'invalidation/android/java',
187 'includes': [ '../build/java.gypi' ],
190 'target_name': 'invalidation_javatests',
194 '../base/base.gyp:base_java_test_support',
197 'java_in_dir': 'invalidation/android/javatests',
199 'includes': [ '../build/java.gypi' ],
202 'target_name': 'invalidation_jni_headers',
205 'invalidation/android/java/src/org/chromium/components/invalidation/InvalidationService.java',
208 'jni_gen_package': 'components/invalidation',
210 'includes': [ '../build/jni_generator.gypi' ],