Run VM apptests on Android; disable fixtures failing or timing out.
[chromium-blink-merge.git] / components / invalidation.gypi
blob8378c2cd26ed5e761874018910bd240c2aec4b8d
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
9       'target_name': 'invalidation',
10       'type': 'static_library',
11       'dependencies': [
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',
19         'gcm_driver',
20         'keyed_service_core',
21         'pref_registry',
22         'signin_core_browser',
23       ],
24       'export_dependent_settings': [
25         '../third_party/cacheinvalidation/cacheinvalidation.gyp:cacheinvalidation',
26       ],
27       'include_dirs': [
28         '..',
29       ],
30       'sources': [
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',
72       ],
73       'conditions': [
74           ['OS != "android"', {
75             'sources': [
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',
103             ],
104           }],
105         ['OS == "android"', {
106           'dependencies': [
107             'invalidation_jni_headers',
108           ],
109           'sources': [
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',
114           ],
115         }],
116       ],
117     },
119     {
120       # GN version: //components/invalidation:test_support
121       'target_name': 'invalidation_test_support',
122       'type': 'static_library',
123       'dependencies': [
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',
134       ],
135       'include_dirs': [
136         '..',
137       ],
138       'sources': [
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',
156       ],
157       'conditions': [
158           ['OS != "android"', {
159             'sources': [
160               # Note: sources list duplicated in GN build.
161               'invalidation/p2p_invalidation_service.cc',
162               'invalidation/p2p_invalidation_service.h',
163             ],
164           }],
165           ['OS == "android"', {
166             'dependencies': [
167               'invalidation_jni_headers',
168             ],
169           }],
170       ],
171     },
172   ],
173   'conditions': [
174     ['OS == "android"', {
175       'targets': [
176         {
177           'target_name': 'invalidation_java',
178           'type': 'none',
179           'dependencies': [
180             '../base/base.gyp:base',
181             '../sync/sync.gyp:sync_java',
182             '../third_party/cacheinvalidation/cacheinvalidation.gyp:cacheinvalidation_javalib',
183           ],
184           'variables': {
185             'java_in_dir': 'invalidation/android/java',
186           },
187           'includes': [ '../build/java.gypi' ],
188         },
189         {
190           'target_name': 'invalidation_javatests',
191           'type': 'none',
192           'dependencies': [
193             'invalidation_java',
194             '../base/base.gyp:base_java_test_support',
195           ],
196           'variables': {
197             'java_in_dir': 'invalidation/android/javatests',
198           },
199           'includes': [ '../build/java.gypi' ],
200         },
201         {
202           'target_name': 'invalidation_jni_headers',
203           'type': 'none',
204           'sources': [
205             'invalidation/android/java/src/org/chromium/components/invalidation/InvalidationService.java',
206           ],
207           'variables': {
208             'jni_gen_package': 'components/invalidation',
209           },
210           'includes': [ '../build/jni_generator.gypi' ],
211         },
212       ],
213      },
214     ],
215   ],