f04fbee55b0ed285f6c08ead86b136e0b44c81fe
[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         '../../net/net.gyp:net',
34         '../../third_party/protobuf/protobuf.gyp:protobuf_lite'
35       ],
36       'sources': [
37         'base/mcs_util.h',
38         'base/mcs_util.cc',
39         'base/socket_stream.h',
40         'base/socket_stream.cc',
41         'engine/connection_handler.h',
42         'engine/connection_handler.cc',
43         'protocol/mcs.proto',
44       ],
45       'includes': [
46         '../../build/protoc.gypi'
47       ],
48     },
49
50     # The main GCM unit tests.
51     {
52       'target_name': 'gcm_unit_tests',
53       'type': '<(gtest_target_type)',
54       'variables': { 'enable_wexit_time_destructors': 1, },
55       'include_dirs': [
56         '../..',
57       ],
58       'dependencies': [
59         '../../base/base.gyp:run_all_unittests',
60         '../../base/base.gyp:base',
61         '../../net/net.gyp:net_test_support',
62         '../../testing/gtest.gyp:gtest',
63         '../../third_party/protobuf/protobuf.gyp:protobuf_lite',
64         'gcm'
65       ],
66       'sources': [
67         'base/mcs_util_unittest.cc',
68         'base/socket_stream_unittest.cc',
69         'engine/connection_handler_unittest.cc',
70       ]
71     },
72   ],
73 }