[Metrics] Make MetricsStateManager take a callback param to check if UMA is enabled.
[chromium-blink-merge.git] / google_apis / gcm / gcm.gyp
blob670b0a1daa4e7fbc5eba6f011864434734f85ba3
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         '../../net/net.gyp:net',
35         '../../third_party/leveldatabase/leveldatabase.gyp:leveldatabase',
36         '../../third_party/protobuf/protobuf.gyp:protobuf_lite',
37         '../../url/url.gyp:url_lib',
38       ],
39       'sources': [
40         'base/mcs_message.cc',
41         'base/mcs_message.h',
42         'base/mcs_util.cc',
43         'base/mcs_util.h',
44         'base/socket_stream.cc',
45         'base/socket_stream.h',
46         'engine/checkin_request.cc',
47         'engine/checkin_request.h',
48         'engine/connection_factory.cc',
49         'engine/connection_factory.h',
50         'engine/connection_factory_impl.cc',
51         'engine/connection_factory_impl.h',
52         'engine/connection_handler.cc',
53         'engine/connection_handler.h',
54         'engine/connection_handler_impl.cc',
55         'engine/connection_handler_impl.h',
56         'engine/gcm_store.cc',
57         'engine/gcm_store.h',
58         'engine/gcm_store_impl.cc',
59         'engine/gcm_store_impl.h',
60         'engine/gservices_settings.cc',
61         'engine/gservices_settings.h',
62         'engine/heartbeat_manager.cc',
63         'engine/heartbeat_manager.h',
64         'engine/mcs_client.cc',
65         'engine/mcs_client.h',
66         'engine/registration_info.cc',
67         'engine/registration_info.h',
68         'engine/registration_request.cc',
69         'engine/registration_request.h',
70         'engine/unregistration_request.cc',
71         'engine/unregistration_request.h',
72         'gcm_client.cc',
73         'gcm_client.h',
74         'gcm_client_impl.cc',
75         'gcm_client_impl.h',
76         'monitoring/gcm_stats_recorder.cc',
77         'monitoring/gcm_stats_recorder.h',
78         'protocol/android_checkin.proto',
79         'protocol/checkin.proto',
80         'protocol/mcs.proto',
81       ],
82       'includes': [
83         '../../build/protoc.gypi'
84       ],
85     },
87     # A standalone MCS (mobile connection server) client.
88     {
89       'target_name': 'mcs_probe',
90       'type': 'executable',
91       'variables': { 'enable_wexit_time_destructors': 1, },
92       'include_dirs': [
93         '../..',
94       ],
95       'dependencies': [
96         '../../base/base.gyp:base',
97         '../../net/net.gyp:net',
98         '../../net/net.gyp:net_test_support',
99         '../../third_party/protobuf/protobuf.gyp:protobuf_lite',
100         'gcm'
101       ],
102       'sources': [
103         'base/fake_encryptor.cc',
104         'base/fake_encryptor.h',
105         'tools/mcs_probe.cc',
106       ],
107     },
109     # The main GCM unit tests.
110     {
111       'target_name': 'gcm_unit_tests',
112       'type': '<(gtest_target_type)',
113       'variables': { 'enable_wexit_time_destructors': 1, },
114       'include_dirs': [
115         '../..',
116       ],
117       'export_dependent_settings': [
118         '../../third_party/protobuf/protobuf.gyp:protobuf_lite'
119       ],
120       'dependencies': [
121         '../../base/base.gyp:run_all_unittests',
122         '../../base/base.gyp:base',
123         '../../net/net.gyp:net',
124         '../../net/net.gyp:net_test_support',
125         '../../testing/gtest.gyp:gtest',
126         '../../third_party/protobuf/protobuf.gyp:protobuf_lite',
127         'gcm'
128       ],
129       'sources': [
130         'base/fake_encryptor.cc',
131         'base/fake_encryptor.h',
132         'base/mcs_message_unittest.cc',
133         'base/mcs_util_unittest.cc',
134         'base/socket_stream_unittest.cc',
135         'engine/checkin_request_unittest.cc',
136         'engine/connection_factory_impl_unittest.cc',
137         'engine/connection_handler_impl_unittest.cc',
138         'engine/fake_connection_factory.cc',
139         'engine/fake_connection_factory.h',
140         'engine/fake_connection_handler.cc',
141         'engine/fake_connection_handler.h',
142         'engine/gcm_store_impl_unittest.cc',
143         'engine/gservices_settings_unittest.cc',
144         'engine/heartbeat_manager_unittest.cc',
145         'engine/mcs_client_unittest.cc',
146         'engine/registration_request_unittest.cc',
147         'engine/unregistration_request_unittest.cc',
148         'gcm_client_impl_unittest.cc',
149         'monitoring/gcm_stats_recorder_unittest.cc'
150       ]
151     },
152   ],