75d2715d7a59c4a561eb49de37fc4c09bcb26ba4
[platform/framework/web/crosswalk.git] / src / google_apis / gcm / gcm.gyp
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.
4
5 {
6   'variables': {
7     'chromium_code': 1,
8   },
9
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:encryptor',
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_request.cc',
66         'engine/registration_request.h',
67         'engine/unregistration_request.cc',
68         'engine/unregistration_request.h',
69         'gcm_client.cc',
70         'gcm_client.h',
71         'gcm_client_impl.cc',
72         'gcm_client_impl.h',
73         'protocol/android_checkin.proto',
74         'protocol/checkin.proto',
75         'protocol/mcs.proto',
76       ],
77       'includes': [
78         '../../build/protoc.gypi'
79       ],
80     },
81
82     # A standalone MCS (mobile connection server) client.
83     {
84       'target_name': 'mcs_probe',
85       'type': 'executable',
86       'variables': { 'enable_wexit_time_destructors': 1, },
87       'include_dirs': [
88         '../..',
89       ],
90       'dependencies': [
91         '../../base/base.gyp:base',
92         '../../net/net.gyp:net',
93         '../../net/net.gyp:net_test_support',
94         '../../third_party/protobuf/protobuf.gyp:protobuf_lite',
95         'gcm'
96       ],
97       'sources': [
98         'tools/mcs_probe.cc',
99       ],
100     },
101
102     # The main GCM unit tests.
103     {
104       'target_name': 'gcm_unit_tests',
105       'type': '<(gtest_target_type)',
106       'variables': { 'enable_wexit_time_destructors': 1, },
107       'include_dirs': [
108         '../..',
109       ],
110       'export_dependent_settings': [
111         '../../third_party/protobuf/protobuf.gyp:protobuf_lite'
112       ],
113       'dependencies': [
114         '../../base/base.gyp:run_all_unittests',
115         '../../base/base.gyp:base',
116         '../../components/components.gyp:encryptor',
117         '../../net/net.gyp:net',
118         '../../net/net.gyp:net_test_support',
119         '../../testing/gtest.gyp:gtest',
120         '../../third_party/protobuf/protobuf.gyp:protobuf_lite',
121         'gcm'
122       ],
123       'sources': [
124         'base/mcs_message_unittest.cc',
125         'base/mcs_util_unittest.cc',
126         'base/socket_stream_unittest.cc',
127         'engine/checkin_request_unittest.cc',
128         'engine/connection_factory_impl_unittest.cc',
129         'engine/connection_handler_impl_unittest.cc',
130         'engine/fake_connection_factory.cc',
131         'engine/fake_connection_factory.h',
132         'engine/fake_connection_handler.cc',
133         'engine/fake_connection_handler.h',
134         'engine/gcm_store_impl_unittest.cc',
135         'engine/heartbeat_manager_unittest.cc',
136         'engine/mcs_client_unittest.cc',
137         'engine/registration_request_unittest.cc',
138         'engine/unregistration_request_unittest.cc',
139         'gcm_client_impl_unittest.cc'
140       ]
141     },
142   ],
143 }