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',
81 'proto_in_dir': 'gcm_driver/proto',
82 'proto_out_dir': 'components/gcm_driver/proto',
84 'includes': [ '../build/protoc.gypi' ],
88 'gcm_driver_jni_headers',
91 '../google_apis/gcm/gcm.gyp:gcm',
94 'gcm_driver/gcm_account_mapper.cc',
95 'gcm_driver/gcm_account_mapper.h',
96 'gcm_driver/gcm_channel_status_request.cc',
97 'gcm_driver/gcm_channel_status_request.h',
98 'gcm_driver/gcm_channel_status_syncer.cc',
99 'gcm_driver/gcm_channel_status_syncer.h',
100 'gcm_driver/gcm_client_factory.cc',
101 'gcm_driver/gcm_client_factory.h',
102 'gcm_driver/gcm_client_impl.cc',
103 'gcm_driver/gcm_client_impl.h',
104 'gcm_driver/gcm_delayed_task_controller.cc',
105 'gcm_driver/gcm_delayed_task_controller.h',
106 'gcm_driver/gcm_driver_desktop.cc',
107 'gcm_driver/gcm_driver_desktop.h',
108 'gcm_driver/gcm_stats_recorder_impl.cc',
109 'gcm_driver/gcm_stats_recorder_impl.h',
110 'gcm_driver/proto/gcm_channel_status.proto',
121 # GN version: //components/gcm_driver:test_support
122 'target_name': 'gcm_driver_test_support',
123 'type': 'static_library',
126 '../base/base.gyp:base',
127 '../google_apis/gcm/gcm.gyp:gcm_test_support',
128 '../testing/gtest.gyp:gtest',
134 # Note: file list duplicated in GN build.
135 'gcm_driver/fake_gcm_app_handler.cc',
136 'gcm_driver/fake_gcm_app_handler.h',
137 'gcm_driver/fake_gcm_client.cc',
138 'gcm_driver/fake_gcm_client.h',
139 'gcm_driver/fake_gcm_client_factory.cc',
140 'gcm_driver/fake_gcm_client_factory.h',
141 'gcm_driver/fake_gcm_driver.cc',
142 'gcm_driver/fake_gcm_driver.h',
145 ['OS == "android"', {
147 '../google_apis/gcm/gcm.gyp:gcm_test_support',
150 'gcm_driver/fake_gcm_client.cc',
151 'gcm_driver/fake_gcm_client.h',
152 'gcm_driver/fake_gcm_client_factory.cc',
153 'gcm_driver/fake_gcm_client_factory.h',
159 # GN version: //components/gcm_driver/instance_id
160 'target_name': 'instance_id',
161 'type': 'static_library',
166 # Note: file list duplicated in GN build.
167 'gcm_driver/instance_id/instance_id.cc',
168 'gcm_driver/instance_id/instance_id.h',
169 'gcm_driver/instance_id/instance_id_android.cc',
170 'gcm_driver/instance_id/instance_id_android.h',
171 'gcm_driver/instance_id/instance_id_driver.cc',
172 'gcm_driver/instance_id/instance_id_driver.h',
173 'gcm_driver/instance_id/instance_id_impl.cc',
174 'gcm_driver/instance_id/instance_id_impl.h',
177 ['OS == "android"', {
179 'gcm_driver/instance_id/instance_id_impl.cc',
180 'gcm_driver/instance_id/instance_id_impl.h',
186 # GN version: //components/gcm_driver/instance_id:test_support
187 'target_name': 'instance_id_test_support',
188 'type': 'static_library',
190 'gcm_driver_test_support',
192 '../testing/gtest.gyp:gtest',
198 # Note: file list duplicated in GN build.
199 'gcm_driver/instance_id/fake_gcm_driver_for_instance_id.cc',
200 'gcm_driver/instance_id/fake_gcm_driver_for_instance_id.h',
205 ['OS == "android"', {
208 # GN version: //components/gcm_driver/android:gcm_driver_java
209 'target_name': 'gcm_driver_java',
212 '../base/base.gyp:base',
213 # TODO(johnme): Fix the layering violation of depending on content/
214 '../content/content.gyp:content_java',
215 '../sync/sync.gyp:sync_java',
218 'java_in_dir': 'gcm_driver/android/java',
220 'includes': [ '../build/java.gypi' ],
223 # GN version: //components/gcm_driver/android:jni_headers
224 'target_name': 'gcm_driver_jni_headers',
227 'gcm_driver/android/java/src/org/chromium/components/gcm_driver/GCMDriver.java',
230 'jni_gen_package': 'components/gcm_driver',
232 'includes': [ '../build/jni_generator.gypi' ],