1 # Copyright 2014 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.
8 # GN version: //components/gcm_driver:common
9 'target_name': 'gcm_driver_common',
10 'type': '<(component)',
15 'GCM_DRIVER_IMPLEMENTATION',
18 # Note: file list duplicated in GN build.
19 'gcm_driver/common/gcm_driver_export.h',
20 'gcm_driver/common/gcm_messages.cc',
21 'gcm_driver/common/gcm_messages.h',
25 # GN version: //components/gcm_driver
26 'target_name': 'gcm_driver',
27 'type': 'static_library',
30 '../base/base.gyp:base',
31 '../google_apis/gcm/gcm.gyp:gcm',
33 '../sync/sync.gyp:sync_proto',
40 # Note: file list duplicated in GN build.
41 'gcm_driver/android/component_jni_registrar.cc',
42 'gcm_driver/android/component_jni_registrar.h',
43 'gcm_driver/default_gcm_app_handler.cc',
44 'gcm_driver/default_gcm_app_handler.h',
45 'gcm_driver/gcm_account_mapper.cc',
46 'gcm_driver/gcm_account_mapper.h',
47 'gcm_driver/gcm_activity.cc',
48 'gcm_driver/gcm_activity.h',
49 'gcm_driver/gcm_app_handler.cc',
50 'gcm_driver/gcm_app_handler.h',
51 'gcm_driver/gcm_backoff_policy.cc',
52 'gcm_driver/gcm_backoff_policy.h',
53 'gcm_driver/gcm_channel_status_request.cc',
54 'gcm_driver/gcm_channel_status_request.h',
55 'gcm_driver/gcm_channel_status_syncer.cc',
56 'gcm_driver/gcm_channel_status_syncer.h',
57 'gcm_driver/gcm_client.cc',
58 'gcm_driver/gcm_client.h',
59 'gcm_driver/gcm_client_factory.cc',
60 'gcm_driver/gcm_client_factory.h',
61 'gcm_driver/gcm_client_impl.cc',
62 'gcm_driver/gcm_client_impl.h',
63 'gcm_driver/gcm_connection_observer.cc',
64 'gcm_driver/gcm_connection_observer.h',
65 'gcm_driver/gcm_delayed_task_controller.cc',
66 'gcm_driver/gcm_delayed_task_controller.h',
67 'gcm_driver/gcm_driver.cc',
68 'gcm_driver/gcm_driver.h',
69 'gcm_driver/gcm_driver_android.cc',
70 'gcm_driver/gcm_driver_android.h',
71 'gcm_driver/gcm_driver_desktop.cc',
72 'gcm_driver/gcm_driver_desktop.h',
73 'gcm_driver/gcm_stats_recorder_impl.cc',
74 'gcm_driver/gcm_stats_recorder_impl.h',
75 'gcm_driver/registration_info.cc',
76 'gcm_driver/registration_info.h',
77 'gcm_driver/system_encryptor.cc',
78 'gcm_driver/system_encryptor.h',
83 'gcm_driver_jni_headers',
86 '../google_apis/gcm/gcm.gyp:gcm',
89 'gcm_driver/gcm_account_mapper.cc',
90 'gcm_driver/gcm_account_mapper.h',
91 'gcm_driver/gcm_channel_status_request.cc',
92 'gcm_driver/gcm_channel_status_request.h',
93 'gcm_driver/gcm_channel_status_syncer.cc',
94 'gcm_driver/gcm_channel_status_syncer.h',
95 'gcm_driver/gcm_client_factory.cc',
96 'gcm_driver/gcm_client_factory.h',
97 'gcm_driver/gcm_client_impl.cc',
98 'gcm_driver/gcm_client_impl.h',
99 'gcm_driver/gcm_driver_desktop.cc',
100 'gcm_driver/gcm_driver_desktop.h',
101 'gcm_driver/gcm_stats_recorder_impl.cc',
102 'gcm_driver/gcm_stats_recorder_impl.h',
113 # GN version: //components/gcm_driver:test_support
114 'target_name': 'gcm_driver_test_support',
115 'type': 'static_library',
118 '../base/base.gyp:base',
119 '../google_apis/gcm/gcm.gyp:gcm_test_support',
120 '../testing/gtest.gyp:gtest',
126 # Note: file list duplicated in GN build.
127 'gcm_driver/fake_gcm_app_handler.cc',
128 'gcm_driver/fake_gcm_app_handler.h',
129 'gcm_driver/fake_gcm_client.cc',
130 'gcm_driver/fake_gcm_client.h',
131 'gcm_driver/fake_gcm_client_factory.cc',
132 'gcm_driver/fake_gcm_client_factory.h',
133 'gcm_driver/fake_gcm_driver.cc',
134 'gcm_driver/fake_gcm_driver.h',
137 ['OS == "android"', {
139 '../google_apis/gcm/gcm.gyp:gcm_test_support',
142 'gcm_driver/fake_gcm_client.cc',
143 'gcm_driver/fake_gcm_client.h',
144 'gcm_driver/fake_gcm_client_factory.cc',
145 'gcm_driver/fake_gcm_client_factory.h',
151 # GN version: //components/gcm_driver/instance_id
152 'target_name': 'instance_id',
153 'type': 'static_library',
158 # Note: file list duplicated in GN build.
159 'gcm_driver/instance_id/instance_id.cc',
160 'gcm_driver/instance_id/instance_id.h',
161 'gcm_driver/instance_id/instance_id_android.cc',
162 'gcm_driver/instance_id/instance_id_android.h',
163 'gcm_driver/instance_id/instance_id_driver.cc',
164 'gcm_driver/instance_id/instance_id_driver.h',
165 'gcm_driver/instance_id/instance_id_impl.cc',
166 'gcm_driver/instance_id/instance_id_impl.h',
169 ['OS == "android"', {
171 'gcm_driver/instance_id/instance_id_impl.cc',
172 'gcm_driver/instance_id/instance_id_impl.h',
178 # GN version: //components/gcm_driver/instance_id:test_support
179 'target_name': 'instance_id_test_support',
180 'type': 'static_library',
182 'gcm_driver_test_support',
184 '../testing/gtest.gyp:gtest',
190 # Note: file list duplicated in GN build.
191 'gcm_driver/instance_id/fake_gcm_driver_for_instance_id.cc',
192 'gcm_driver/instance_id/fake_gcm_driver_for_instance_id.h',
196 # GN version: //components/gcm_driver/crypto
197 'target_name': 'gcm_driver_crypto',
198 'type': 'static_library',
200 'gcm_driver_crypto_proto',
201 '../base/base.gyp:base',
202 '../components/components.gyp:leveldb_proto',
203 '../crypto/crypto.gyp:crypto',
209 # Note: file list duplicated in GN build.
210 'gcm_driver/crypto/gcm_key_store.cc',
211 'gcm_driver/crypto/gcm_key_store.h',
212 'gcm_driver/crypto/gcm_message_cryptographer.cc',
213 'gcm_driver/crypto/gcm_message_cryptographer.h',
214 'gcm_driver/crypto/gcm_message_cryptographer_nss.cc',
215 'gcm_driver/crypto/gcm_message_cryptographer_openssl.cc',
220 'gcm_driver/crypto/gcm_message_cryptographer_nss.cc',
223 '../third_party/boringssl/boringssl.gyp:boringssl',
227 'gcm_driver/crypto/gcm_message_cryptographer_openssl.cc',
233 # GN version: //components/gcm_driver/crypto/proto
234 'target_name': 'gcm_driver_crypto_proto',
235 'type': 'static_library',
237 'gcm_driver/crypto/proto/gcm_encryption_data.proto',
240 'proto_in_dir': 'gcm_driver/crypto/proto',
241 'proto_out_dir': 'components/gcm_driver/crypto/proto',
243 'includes': [ '../build/protoc.gypi' ],
247 ['OS == "android"', {
250 # GN version: //components/gcm_driver/android:gcm_driver_java
251 'target_name': 'gcm_driver_java',
254 '../base/base.gyp:base',
255 # TODO(johnme): Fix the layering violation of depending on content/
256 '../content/content.gyp:content_java',
257 '../sync/sync.gyp:sync_java',
260 'java_in_dir': 'gcm_driver/android/java',
262 'includes': [ '../build/java.gypi' ],
265 # GN version: //components/gcm_driver/android:jni_headers
266 'target_name': 'gcm_driver_jni_headers',
269 'gcm_driver/android/java/src/org/chromium/components/gcm_driver/GCMDriver.java',
272 'jni_gen_package': 'components/gcm_driver',
274 'includes': [ '../build/jni_generator.gypi' ],