OLD | NEW |
---|---|
1 # Copyright 2013 The Chromium Authors. All rights reserved. | 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 | 2 # Use of this source code is governed by a BSD-style license that can be |
3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
4 | 4 |
5 { | 5 { |
6 'variables': { | 6 'variables': { |
7 'chromium_code': 1, | 7 'chromium_code': 1, |
8 }, | 8 }, |
9 | 9 |
10 'targets': [ | 10 'targets': [ |
11 # The public GCM target. | 11 # The public GCM target. |
12 { | 12 { |
13 # GN version: //google_apis/gcm | |
13 'target_name': 'gcm', | 14 'target_name': 'gcm', |
14 'type': '<(component)', | 15 'type': '<(component)', |
15 'variables': { | 16 'variables': { |
16 'enable_wexit_time_destructors': 1, | 17 'enable_wexit_time_destructors': 1, |
17 'proto_in_dir': './protocol', | 18 'proto_in_dir': './protocol', |
18 'proto_out_dir': 'google_apis/gcm/protocol', | 19 'proto_out_dir': 'google_apis/gcm/protocol', |
19 'cc_generator_options': 'dllexport_decl=GCM_EXPORT:', | 20 'cc_generator_options': 'dllexport_decl=GCM_EXPORT:', |
20 'cc_include': 'google_apis/gcm/base/gcm_export.h', | 21 'cc_include': 'google_apis/gcm/base/gcm_export.h', |
21 }, | 22 }, |
22 'include_dirs': [ | 23 'include_dirs': [ |
23 '../..', | 24 '../..', |
24 ], | 25 ], |
25 'defines': [ | 26 'defines': [ |
26 'GCM_IMPLEMENTATION', | 27 'GCM_IMPLEMENTATION', |
27 ], | 28 ], |
28 'export_dependent_settings': [ | 29 'export_dependent_settings': [ |
29 '../../third_party/protobuf/protobuf.gyp:protobuf_lite' | 30 '../../third_party/protobuf/protobuf.gyp:protobuf_lite' |
30 ], | 31 ], |
31 'dependencies': [ | 32 'dependencies': [ |
32 '../../base/base.gyp:base', | 33 '../../base/base.gyp:base', |
33 '../../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dyna mic_annotations', | 34 '../../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dyna mic_annotations', |
34 '../../net/net.gyp:net', | 35 '../../net/net.gyp:net', |
35 '../../third_party/leveldatabase/leveldatabase.gyp:leveldatabase', | 36 '../../third_party/leveldatabase/leveldatabase.gyp:leveldatabase', |
36 '../../third_party/protobuf/protobuf.gyp:protobuf_lite', | 37 '../../third_party/protobuf/protobuf.gyp:protobuf_lite', |
37 '../../url/url.gyp:url_lib', | 38 '../../url/url.gyp:url_lib', |
38 ], | 39 ], |
39 'sources': [ | 40 'sources': [ |
41 # Note: sources list duplicated in GN build. | |
40 'base/mcs_message.cc', | 42 'base/mcs_message.cc', |
41 'base/mcs_message.h', | 43 'base/mcs_message.h', |
42 'base/mcs_util.cc', | 44 'base/mcs_util.cc', |
43 'base/mcs_util.h', | 45 'base/mcs_util.h', |
44 'base/socket_stream.cc', | 46 'base/socket_stream.cc', |
45 'base/socket_stream.h', | 47 'base/socket_stream.h', |
46 'engine/checkin_request.cc', | 48 'engine/checkin_request.cc', |
47 'engine/checkin_request.h', | 49 'engine/checkin_request.h', |
48 'engine/connection_factory.cc', | 50 'engine/connection_factory.cc', |
49 'engine/connection_factory.h', | 51 'engine/connection_factory.h', |
(...skipping 24 matching lines...) Expand all Loading... | |
74 'protocol/checkin.proto', | 76 'protocol/checkin.proto', |
75 'protocol/mcs.proto', | 77 'protocol/mcs.proto', |
76 ], | 78 ], |
77 'includes': [ | 79 'includes': [ |
78 '../../build/protoc.gypi' | 80 '../../build/protoc.gypi' |
79 ], | 81 ], |
80 }, | 82 }, |
81 | 83 |
82 # The test support library that is needed to test gcm. | 84 # The test support library that is needed to test gcm. |
83 { | 85 { |
86 # GN version: //google_apis/gcm:test_support | |
84 'target_name': 'gcm_test_support', | 87 'target_name': 'gcm_test_support', |
85 'type': 'static_library', | 88 'type': 'static_library', |
86 'include_dirs': [ | 89 'include_dirs': [ |
87 '..', | 90 '..', |
88 ], | 91 ], |
89 'export_dependent_settings': [ | 92 'export_dependent_settings': [ |
90 '../../third_party/protobuf/protobuf.gyp:protobuf_lite' | 93 '../../third_party/protobuf/protobuf.gyp:protobuf_lite' |
91 ], | 94 ], |
92 'dependencies': [ | 95 'dependencies': [ |
93 '../../base/base.gyp:base', | 96 '../../base/base.gyp:base', |
94 '../../testing/gtest.gyp:gtest', | 97 '../../testing/gtest.gyp:gtest', |
95 '../../third_party/protobuf/protobuf.gyp:protobuf_lite', | 98 '../../third_party/protobuf/protobuf.gyp:protobuf_lite', |
96 'gcm', | 99 'gcm', |
97 ], | 100 ], |
98 'sources': [ | 101 'sources': [ |
102 # Note: sources list duplicated in GN build. | |
99 'base/fake_encryptor.cc', | 103 'base/fake_encryptor.cc', |
100 'base/fake_encryptor.h', | 104 'base/fake_encryptor.h', |
101 'engine/fake_connection_factory.cc', | 105 'engine/fake_connection_factory.cc', |
102 'engine/fake_connection_factory.h', | 106 'engine/fake_connection_factory.h', |
103 'engine/fake_connection_handler.cc', | 107 'engine/fake_connection_handler.cc', |
104 'engine/fake_connection_handler.h', | 108 'engine/fake_connection_handler.h', |
105 'monitoring/fake_gcm_stats_recorder.cc', | 109 'monitoring/fake_gcm_stats_recorder.cc', |
106 'monitoring/fake_gcm_stats_recorder.h', | 110 'monitoring/fake_gcm_stats_recorder.h', |
107 ], | 111 ], |
108 }, | 112 }, |
109 | 113 |
110 # A standalone MCS (mobile connection server) client. | 114 # A standalone MCS (mobile connection server) client. |
111 { | 115 { |
116 # GN version: //google_apis/gcm:mcs_probe | |
112 'target_name': 'mcs_probe', | 117 'target_name': 'mcs_probe', |
113 'type': 'executable', | 118 'type': 'executable', |
114 'variables': { 'enable_wexit_time_destructors': 1, }, | 119 'variables': { 'enable_wexit_time_destructors': 1, }, |
115 'include_dirs': [ | 120 'include_dirs': [ |
116 '../..', | 121 '../..', |
117 ], | 122 ], |
118 'dependencies': [ | 123 'dependencies': [ |
119 '../../base/base.gyp:base', | 124 '../../base/base.gyp:base', |
120 '../../net/net.gyp:net', | 125 '../../net/net.gyp:net', |
121 '../../net/net.gyp:net_test_support', | 126 '../../net/net.gyp:net_test_support', |
122 '../../third_party/protobuf/protobuf.gyp:protobuf_lite', | 127 '../../third_party/protobuf/protobuf.gyp:protobuf_lite', |
123 'gcm', | 128 'gcm', |
124 'gcm_test_support' | 129 'gcm_test_support' |
125 ], | 130 ], |
126 'sources': [ | 131 'sources': [ |
132 # Note: file list duplicated in GN build. | |
127 'tools/mcs_probe.cc', | 133 'tools/mcs_probe.cc', |
128 ], | 134 ], |
129 }, | 135 }, |
130 | 136 |
131 # The main GCM unit tests. | 137 # The main GCM unit tests. |
132 { | 138 { |
133 'target_name': 'gcm_unit_tests', | 139 'target_name': 'gcm_unit_tests', |
134 'type': '<(gtest_target_type)', | 140 'type': '<(gtest_target_type)', |
135 'variables': { 'enable_wexit_time_destructors': 1, }, | 141 'variables': { 'enable_wexit_time_destructors': 1, }, |
136 'include_dirs': [ | 142 'include_dirs': [ |
137 '../..', | 143 '../..', |
138 ], | 144 ], |
139 'export_dependent_settings': [ | 145 'export_dependent_settings': [ |
140 '../../third_party/protobuf/protobuf.gyp:protobuf_lite' | 146 '../../third_party/protobuf/protobuf.gyp:protobuf_lite' |
141 ], | 147 ], |
142 'dependencies': [ | 148 'dependencies': [ |
143 '../../base/base.gyp:run_all_unittests', | 149 '../../base/base.gyp:run_all_unittests', |
144 '../../base/base.gyp:base', | 150 '../../base/base.gyp:base', |
145 '../../net/net.gyp:net', | 151 '../../net/net.gyp:net', |
146 '../../net/net.gyp:net_test_support', | 152 '../../net/net.gyp:net_test_support', |
147 '../../testing/gtest.gyp:gtest', | 153 '../../testing/gtest.gyp:gtest', |
148 '../../third_party/protobuf/protobuf.gyp:protobuf_lite', | 154 '../../third_party/protobuf/protobuf.gyp:protobuf_lite', |
149 'mcs_probe', | |
brettw
2014/07/15 21:54:35
This removal was on purpose. It was depending on a
| |
150 'gcm', | 155 'gcm', |
151 'gcm_test_support' | 156 'gcm_test_support' |
152 ], | 157 ], |
153 'sources': [ | 158 'sources': [ |
154 'base/mcs_message_unittest.cc', | 159 'base/mcs_message_unittest.cc', |
155 'base/mcs_util_unittest.cc', | 160 'base/mcs_util_unittest.cc', |
156 'base/socket_stream_unittest.cc', | 161 'base/socket_stream_unittest.cc', |
157 'engine/checkin_request_unittest.cc', | 162 'engine/checkin_request_unittest.cc', |
158 'engine/connection_factory_impl_unittest.cc', | 163 'engine/connection_factory_impl_unittest.cc', |
159 'engine/connection_handler_impl_unittest.cc', | 164 'engine/connection_handler_impl_unittest.cc', |
160 'engine/gcm_store_impl_unittest.cc', | 165 'engine/gcm_store_impl_unittest.cc', |
161 'engine/gservices_settings_unittest.cc', | 166 'engine/gservices_settings_unittest.cc', |
162 'engine/heartbeat_manager_unittest.cc', | 167 'engine/heartbeat_manager_unittest.cc', |
163 'engine/mcs_client_unittest.cc', | 168 'engine/mcs_client_unittest.cc', |
164 'engine/registration_request_unittest.cc', | 169 'engine/registration_request_unittest.cc', |
165 'engine/unregistration_request_unittest.cc', | 170 'engine/unregistration_request_unittest.cc', |
166 ] | 171 ] |
167 }, | 172 }, |
168 ], | 173 ], |
169 } | 174 } |
OLD | NEW |