Use common code to set HttpNetworkSession::Param pointers.
[chromium-blink-merge.git] / components / invalidation.gypi
blobaffc2b39fc2c29e33f12706d0c4e44c29ca2b51e
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.
6   'targets': [
7     {
8       # GN version: //components/invalidation/public
9       'target_name': 'invalidation_public',
10       'type': 'static_library',
11       'dependencies': [
12         '../base/base.gyp:base',
13         '../third_party/cacheinvalidation/cacheinvalidation.gyp:cacheinvalidation',
14         # TODO(akalin): Remove this (http://crbug.com/133352).
15         '../third_party/cacheinvalidation/cacheinvalidation.gyp:cacheinvalidation_proto_cpp',
16       ],
17       'export_dependent_settings': [
18         '../third_party/cacheinvalidation/cacheinvalidation.gyp:cacheinvalidation',
19       ],
20       'include_dirs': [
21         '..',
22       ],
23       'sources': [
24         # Note: sources list duplicated in GN build.
25         'invalidation/public/ack_handle.cc',
26         'invalidation/public/ack_handle.h',
27         'invalidation/public/ack_handler.cc',
28         'invalidation/public/ack_handler.h',
29         'invalidation/public/invalidation.cc',
30         'invalidation/public/invalidation.h',
31         'invalidation/public/invalidation_export.h',
32         'invalidation/public/invalidation_handler.cc',
33         'invalidation/public/invalidation_handler.h',
34         'invalidation/public/invalidation_service.h',
35         'invalidation/public/invalidation_util.cc',
36         'invalidation/public/invalidation_util.h',
37         'invalidation/public/invalidator_state.cc',
38         'invalidation/public/invalidator_state.h',
39         'invalidation/public/object_id_invalidation_map.cc',
40         'invalidation/public/object_id_invalidation_map.h',
41         'invalidation/public/single_object_invalidation_set.cc',
42         'invalidation/public/single_object_invalidation_set.h',
43       ],
44     },
45     {
46       # GN version: //components/invalidation/impl
47       'target_name': 'invalidation_impl',
48       'type': 'static_library',
49       'dependencies': [
50         'invalidation_public',
51         '../base/base.gyp:base',
52         '../base/base.gyp:base_i18n',
53         '../base/base.gyp:base_prefs',
54         '../google_apis/google_apis.gyp:google_apis',
55         '../jingle/jingle.gyp:notifier',
56         '../third_party/cacheinvalidation/cacheinvalidation.gyp:cacheinvalidation_proto_cpp',
57         'gcm_driver',
58         'keyed_service_core',
59         'pref_registry',
60         'signin_core_browser',
61       ],
62       'export_dependent_settings': [
63         'invalidation_public',
64       ],
65       'include_dirs': [
66         '..',
67       ],
68       'sources': [
69         # Note: sources list duplicated in GN build.
70         'invalidation/impl/invalidation_logger.cc',
71         'invalidation/impl/invalidation_logger.h',
72         'invalidation/impl/invalidation_logger_observer.h',
73         'invalidation/impl/invalidation_prefs.cc',
74         'invalidation/impl/invalidation_prefs.h',
75         'invalidation/impl/invalidation_service_util.cc',
76         'invalidation/impl/invalidation_service_util.h',
77         'invalidation/impl/invalidation_state_tracker.cc',
78         'invalidation/impl/invalidation_state_tracker.h',
79         'invalidation/impl/invalidation_switches.cc',
80         'invalidation/impl/invalidation_switches.h',
81         'invalidation/impl/invalidator.cc',
82         'invalidation/impl/invalidator.h',
83         'invalidation/impl/invalidator_registrar.cc',
84         'invalidation/impl/invalidator_registrar.h',
85         'invalidation/impl/invalidator_storage.cc',
86         'invalidation/impl/invalidator_storage.h',
87         'invalidation/impl/mock_ack_handler.cc',
88         'invalidation/impl/mock_ack_handler.h',
89         'invalidation/impl/profile_invalidation_provider.cc',
90         'invalidation/impl/profile_invalidation_provider.h',
91         'invalidation/impl/unacked_invalidation_set.cc',
92         'invalidation/impl/unacked_invalidation_set.h',
93       ],
94       'conditions': [
95           ['OS != "android"', {
96             'sources': [
97               # Note: sources list duplicated in GN build.
98               'invalidation/impl/gcm_invalidation_bridge.cc',
99               'invalidation/impl/gcm_invalidation_bridge.h',
100               'invalidation/impl/gcm_network_channel.cc',
101               'invalidation/impl/gcm_network_channel.h',
102               'invalidation/impl/gcm_network_channel_delegate.h',
103               'invalidation/impl/invalidation_notifier.cc',
104               'invalidation/impl/invalidation_notifier.h',
105               'invalidation/impl/non_blocking_invalidator.cc',
106               'invalidation/impl/non_blocking_invalidator.h',
107               'invalidation/impl/notifier_reason_util.cc',
108               'invalidation/impl/notifier_reason_util.h',
109               'invalidation/impl/p2p_invalidator.cc',
110               'invalidation/impl/p2p_invalidator.h',
111               'invalidation/impl/push_client_channel.cc',
112               'invalidation/impl/push_client_channel.h',
113               'invalidation/impl/registration_manager.cc',
114               'invalidation/impl/registration_manager.h',
115               'invalidation/impl/state_writer.h',
116               'invalidation/impl/sync_invalidation_listener.cc',
117               'invalidation/impl/sync_invalidation_listener.h',
118               'invalidation/impl/sync_system_resources.cc',
119               'invalidation/impl/sync_system_resources.h',
120               'invalidation/impl/ticl_invalidation_service.cc',
121               'invalidation/impl/ticl_invalidation_service.h',
122               'invalidation/impl/ticl_settings_provider.cc',
123               'invalidation/impl/ticl_settings_provider.h',
124             ],
125           }],
126         ['OS == "android"', {
127           'dependencies': [
128             'invalidation_jni_headers',
129           ],
130           'sources': [
131             'invalidation/impl/android/component_jni_registrar.cc',
132             'invalidation/impl/android/component_jni_registrar.h',
133             'invalidation/impl/invalidation_service_android.cc',
134             'invalidation/impl/invalidation_service_android.h',
135           ],
136         }],
137       ],
138     },
139     {
140       # GN version: //components/invalidation:test_support
141       'target_name': 'invalidation_test_support',
142       'type': 'static_library',
143       'dependencies': [
144         '../base/base.gyp:base',
145         '../google_apis/google_apis.gyp:google_apis',
146         '../jingle/jingle.gyp:notifier',
147         '../jingle/jingle.gyp:notifier_test_util',
148         '../net/net.gyp:net',
149         '../testing/gmock.gyp:gmock',
150         '../third_party/cacheinvalidation/cacheinvalidation.gyp:cacheinvalidation',
151         '../third_party/cacheinvalidation/cacheinvalidation.gyp:cacheinvalidation_proto_cpp',
152         'gcm_driver_test_support',
153         'keyed_service_core',
154       ],
155       'export_dependent_settings': [
156         '../third_party/cacheinvalidation/cacheinvalidation.gyp:cacheinvalidation_proto_cpp',
157       ],
158       'include_dirs': [
159         '..',
160       ],
161       'sources': [
162         # Note: sources list duplicated in GN build.
163         'invalidation/impl/fake_invalidation_handler.cc',
164         'invalidation/impl/fake_invalidation_handler.h',
165         'invalidation/impl/fake_invalidation_state_tracker.cc',
166         'invalidation/impl/fake_invalidation_state_tracker.h',
167         'invalidation/impl/fake_invalidator.cc',
168         'invalidation/impl/fake_invalidator.h',
169         'invalidation/impl/invalidation_service_test_template.cc',
170         'invalidation/impl/invalidation_service_test_template.h',
171         'invalidation/impl/invalidation_test_util.cc',
172         'invalidation/impl/invalidation_test_util.h',
173         'invalidation/impl/invalidator_test_template.cc',
174         'invalidation/impl/invalidator_test_template.h',
175         'invalidation/impl/object_id_invalidation_map_test_util.cc',
176         'invalidation/impl/object_id_invalidation_map_test_util.h',
177         'invalidation/impl/unacked_invalidation_set_test_util.cc',
178         'invalidation/impl/unacked_invalidation_set_test_util.h',
179       ],
180       'conditions': [
181           ['OS != "android"', {
182             'sources': [
183               # Note: sources list duplicated in GN build.
184               'invalidation/impl/p2p_invalidation_service.cc',
185               'invalidation/impl/p2p_invalidation_service.h',
186             ],
187           }],
188           ['OS == "android"', {
189             'dependencies': [
190               'invalidation_jni_headers',
191             ],
192           }],
193       ],
194     },
195   ],
196   'conditions': [
197     ['OS == "android"', {
198       'targets': [
199         {
200           'target_name': 'invalidation_java',
201           'type': 'none',
202           'dependencies': [
203             'invalidation_proto_java',
204             '../base/base.gyp:base',
205             '../sync/sync.gyp:sync_java',
206             '../third_party/cacheinvalidation/cacheinvalidation.gyp:cacheinvalidation_javalib',
207           ],
208           'variables': {
209             'java_in_dir': 'invalidation/impl/android/java',
210           },
211           'includes': [ '../build/java.gypi' ],
212         },
213         {
214           'target_name': 'invalidation_proto_java',
215           'type': 'none',
216           'sources': [
217             'invalidation/impl/android/proto/serialized_invalidation.proto',
218           ],
219           'includes': [ '../build/protoc_java.gypi' ],
220         },
221         {
222           'target_name': 'invalidation_javatests',
223           'type': 'none',
224           'dependencies': [
225             'invalidation_java',
226             '../base/base.gyp:base_java_test_support',
227             '../content/content_shell_and_tests.gyp:content_java_test_support',
228           ],
229           'variables': {
230             'java_in_dir': 'invalidation/impl/android/javatests',
231           },
232           'includes': [ '../build/java.gypi' ],
233         },
234         {
235           'target_name': 'invalidation_jni_headers',
236           'type': 'none',
237           'sources': [
238             'invalidation/impl/android/java/src/org/chromium/components/invalidation/InvalidationService.java',
239           ],
240           'variables': {
241             'jni_gen_package': 'components/invalidation',
242           },
243           'includes': [ '../build/jni_generator.gypi' ],
244         },
245       ],
246      },
247     ],
248   ],