Don't show supervised user as "already on this device" while they're being imported.
[chromium-blink-merge.git] / google_apis / gcm / gcm.gyp
blobaa9df60868be004dce75fba23e783ea2f6a43191
1 # Copyright 2013 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   'variables': {
7     'chromium_code': 1,
8   },
10   'targets': [
11     # The public GCM target.
12     {
13       # GN version: //google_apis/gcm
14       'target_name': 'gcm',
15       'type': '<(component)',
16       'variables': {
17         'enable_wexit_time_destructors': 1,
18         'proto_in_dir': './protocol',
19         'proto_out_dir': 'google_apis/gcm/protocol',
20         'cc_generator_options': 'dllexport_decl=GCM_EXPORT:',
21         'cc_include': 'google_apis/gcm/base/gcm_export.h',
22       },
23       'include_dirs': [
24         '../..',
25       ],
26       'defines': [
27         'GCM_IMPLEMENTATION',
28       ],
29       'export_dependent_settings': [
30         '../../third_party/protobuf/protobuf.gyp:protobuf_lite'
31       ],
32       'dependencies': [
33         '../../base/base.gyp:base',
34         '../../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations',
35         '../../net/net.gyp:net',
36         '../../third_party/leveldatabase/leveldatabase.gyp:leveldatabase',
37         '../../third_party/protobuf/protobuf.gyp:protobuf_lite',
38         '../../url/url.gyp:url_lib',
39       ],
40       'sources': [
41         # Note: sources list duplicated in GN build.
42         'base/gcm_util.cc',
43         'base/gcm_util.h',
44         'base/mcs_message.cc',
45         'base/mcs_message.h',
46         'base/mcs_util.cc',
47         'base/mcs_util.h',
48         'base/socket_stream.cc',
49         'base/socket_stream.h',
50         'engine/account_mapping.cc',
51         'engine/account_mapping.h',
52         'engine/checkin_request.cc',
53         'engine/checkin_request.h',
54         'engine/connection_factory.cc',
55         'engine/connection_factory.h',
56         'engine/connection_factory_impl.cc',
57         'engine/connection_factory_impl.h',
58         'engine/connection_handler.cc',
59         'engine/connection_handler.h',
60         'engine/connection_handler_impl.cc',
61         'engine/connection_handler_impl.h',
62         'engine/gcm_registration_request_handler.cc',
63         'engine/gcm_registration_request_handler.h',
64         'engine/gcm_store.cc',
65         'engine/gcm_store.h',
66         'engine/gcm_store_impl.cc',
67         'engine/gcm_store_impl.h',
68         'engine/gcm_unregistration_request_handler.cc',
69         'engine/gcm_unregistration_request_handler.h',
70         'engine/gservices_settings.cc',
71         'engine/gservices_settings.h',
72         'engine/heartbeat_manager.cc',
73         'engine/heartbeat_manager.h',
74         'engine/instance_id_delete_token_request_handler.cc',
75         'engine/instance_id_delete_token_request_handler.h',
76         'engine/instance_id_get_token_request_handler.cc',
77         'engine/instance_id_get_token_request_handler.h',
78         'engine/mcs_client.cc',
79         'engine/mcs_client.h',
80         'engine/registration_request.cc',
81         'engine/registration_request.h',
82         'engine/unregistration_request.cc',
83         'engine/unregistration_request.h',
84         'monitoring/gcm_stats_recorder.h',
85         'protocol/android_checkin.proto',
86         'protocol/checkin.proto',
87         'protocol/mcs.proto',
88       ],
89       'includes': [
90         '../../build/protoc.gypi'
91       ],
92     },
94     # The test support library that is needed to test gcm.
95     {
96       # GN version: //google_apis/gcm:test_support
97       'target_name': 'gcm_test_support',
98       'type': 'static_library',
99       'include_dirs': [
100         '..',
101       ],
102       'export_dependent_settings': [
103         '../../third_party/protobuf/protobuf.gyp:protobuf_lite'
104       ],
105       'dependencies': [
106         '../../base/base.gyp:base',
107         '../../testing/gtest.gyp:gtest',
108         '../../third_party/protobuf/protobuf.gyp:protobuf_lite',
109         'gcm',
110       ],
111       'sources': [
112         # Note: sources list duplicated in GN build.
113         'base/fake_encryptor.cc',
114         'base/fake_encryptor.h',
115         'engine/fake_connection_factory.cc',
116         'engine/fake_connection_factory.h',
117         'engine/fake_connection_handler.cc',
118         'engine/fake_connection_handler.h',
119         'monitoring/fake_gcm_stats_recorder.cc',
120         'monitoring/fake_gcm_stats_recorder.h',
121       ],
122     },
124     # A standalone MCS (mobile connection server) client.
125     {
126       # GN version: //google_apis/gcm:mcs_probe
127       'target_name': 'mcs_probe',
128       'type': 'executable',
129       'variables': { 'enable_wexit_time_destructors': 1, },
130       'include_dirs': [
131         '../..',
132       ],
133       'dependencies': [
134         '../../base/base.gyp:base',
135         '../../net/net.gyp:net',
136         '../../net/net.gyp:net_test_support',
137         '../../third_party/protobuf/protobuf.gyp:protobuf_lite',
138         'gcm',
139         'gcm_test_support'
140       ],
141       'sources': [
142         # Note: file list duplicated in GN build.
143         'tools/mcs_probe.cc',
144       ],
145     },
147     # The main GCM unit tests.
148     {
149       'target_name': 'gcm_unit_tests',
150       'type': '<(gtest_target_type)',
151       'variables': { 'enable_wexit_time_destructors': 1, },
152       'include_dirs': [
153         '../..',
154       ],
155       'export_dependent_settings': [
156         '../../third_party/protobuf/protobuf.gyp:protobuf_lite'
157       ],
158       'dependencies': [
159         '../../base/base.gyp:run_all_unittests',
160         '../../base/base.gyp:base',
161         '../../net/net.gyp:net',
162         '../../net/net.gyp:net_test_support',
163         '../../testing/gtest.gyp:gtest',
164         '../../third_party/protobuf/protobuf.gyp:protobuf_lite',
165         'gcm',
166         'gcm_test_support'
167       ],
168       'sources': [
169         'base/mcs_message_unittest.cc',
170         'base/mcs_util_unittest.cc',
171         'base/socket_stream_unittest.cc',
172         'engine/account_mapping_unittest.cc',
173         'engine/checkin_request_unittest.cc',
174         'engine/connection_factory_impl_unittest.cc',
175         'engine/connection_handler_impl_unittest.cc',
176         'engine/gcm_store_impl_unittest.cc',
177         'engine/gservices_settings_unittest.cc',
178         'engine/heartbeat_manager_unittest.cc',
179         'engine/mcs_client_unittest.cc',
180         'engine/registration_request_unittest.cc',
181         'engine/unregistration_request_unittest.cc',
182       ]
183     },
184   ],