Do not instantiate DriveNotificationManager during shutdown
[chromium-blink-merge.git] / google_apis / gcm / gcm.gyp
blob98437763d72ece3ac8607c981884394c45ee3a5e
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       'target_name': 'gcm',
14       'type': '<(component)',
15       'variables': {
16         'enable_wexit_time_destructors': 1,
17         'proto_in_dir': './protocol',
18         'proto_out_dir': 'google_apis/gcm/protocol',
19         'cc_generator_options': 'dllexport_decl=GCM_EXPORT:',
20         'cc_include': 'google_apis/gcm/base/gcm_export.h',
21       },
22       'include_dirs': [
23         '../..',
24       ],
25       'defines': [
26         'GCM_IMPLEMENTATION',
27       ],
28       'export_dependent_settings': [
29         '../../third_party/protobuf/protobuf.gyp:protobuf_lite'
30       ],
31       'dependencies': [
32         '../../base/base.gyp:base',
33         '../../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations',
34         '../../components/components.gyp:os_crypt',
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         'base/mcs_message.cc',
42         'base/mcs_message.h',
43         'base/mcs_util.cc',
44         'base/mcs_util.h',
45         'base/socket_stream.cc',
46         'base/socket_stream.h',
47         'engine/checkin_request.cc',
48         'engine/checkin_request.h',
49         'engine/connection_factory.cc',
50         'engine/connection_factory.h',
51         'engine/connection_factory_impl.cc',
52         'engine/connection_factory_impl.h',
53         'engine/connection_handler.cc',
54         'engine/connection_handler.h',
55         'engine/connection_handler_impl.cc',
56         'engine/connection_handler_impl.h',
57         'engine/gcm_store.cc',
58         'engine/gcm_store.h',
59         'engine/gcm_store_impl.cc',
60         'engine/gcm_store_impl.h',
61         'engine/heartbeat_manager.cc',
62         'engine/heartbeat_manager.h',
63         'engine/mcs_client.cc',
64         'engine/mcs_client.h',
65         'engine/registration_info.cc',
66         'engine/registration_info.h',
67         'engine/registration_request.cc',
68         'engine/registration_request.h',
69         'engine/unregistration_request.cc',
70         'engine/unregistration_request.h',
71         'gcm_client.cc',
72         'gcm_client.h',
73         'gcm_client_impl.cc',
74         'gcm_client_impl.h',
75         'protocol/android_checkin.proto',
76         'protocol/checkin.proto',
77         'protocol/mcs.proto',
78       ],
79       'includes': [
80         '../../build/protoc.gypi'
81       ],
82     },
84     # A standalone MCS (mobile connection server) client.
85     {
86       'target_name': 'mcs_probe',
87       'type': 'executable',
88       'variables': { 'enable_wexit_time_destructors': 1, },
89       'include_dirs': [
90         '../..',
91       ],
92       'dependencies': [
93         '../../base/base.gyp:base',
94         '../../net/net.gyp:net',
95         '../../net/net.gyp:net_test_support',
96         '../../third_party/protobuf/protobuf.gyp:protobuf_lite',
97         'gcm'
98       ],
99       'sources': [
100         'tools/mcs_probe.cc',
101       ],
102     },
104     # The main GCM unit tests.
105     {
106       'target_name': 'gcm_unit_tests',
107       'type': '<(gtest_target_type)',
108       'variables': { 'enable_wexit_time_destructors': 1, },
109       'include_dirs': [
110         '../..',
111       ],
112       'export_dependent_settings': [
113         '../../third_party/protobuf/protobuf.gyp:protobuf_lite'
114       ],
115       'dependencies': [
116         '../../base/base.gyp:run_all_unittests',
117         '../../base/base.gyp:base',
118         '../../components/components.gyp:os_crypt',
119         '../../net/net.gyp:net',
120         '../../net/net.gyp:net_test_support',
121         '../../testing/gtest.gyp:gtest',
122         '../../third_party/protobuf/protobuf.gyp:protobuf_lite',
123         'gcm'
124       ],
125       'sources': [
126         'base/mcs_message_unittest.cc',
127         'base/mcs_util_unittest.cc',
128         'base/socket_stream_unittest.cc',
129         'engine/checkin_request_unittest.cc',
130         'engine/connection_factory_impl_unittest.cc',
131         'engine/connection_handler_impl_unittest.cc',
132         'engine/fake_connection_factory.cc',
133         'engine/fake_connection_factory.h',
134         'engine/fake_connection_handler.cc',
135         'engine/fake_connection_handler.h',
136         'engine/gcm_store_impl_unittest.cc',
137         'engine/heartbeat_manager_unittest.cc',
138         'engine/mcs_client_unittest.cc',
139         'engine/registration_request_unittest.cc',
140         'engine/unregistration_request_unittest.cc',
141         'gcm_client_impl_unittest.cc'
142       ]
143     },
144   ],