Update V8 to version 3.29.50 (based on bleeding_edge revision r23756).
[chromium-blink-merge.git] / components / gcm_driver.gypi
blob7efe3c02e2fb5bb7446478c9fbaf30919889d9ae
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.
6   'targets': [
7     {
8       # GN version: //components/gcm_driver
9       'target_name': 'gcm_driver',
10       'type': 'static_library',
11       'dependencies': [
12         'os_crypt',
13         '../base/base.gyp:base',
14         '../google_apis/gcm/gcm.gyp:gcm',
15         '../net/net.gyp:net',
16       ],
17       'include_dirs': [
18         '..',
19       ],
20       'sources': [
21          # Note: file list duplicated in GN build.
22         'gcm_driver/android/component_jni_registrar.cc',
23         'gcm_driver/android/component_jni_registrar.h',
24         'gcm_driver/default_gcm_app_handler.cc',
25         'gcm_driver/default_gcm_app_handler.h',
26         'gcm_driver/gcm_account_mapper.cc',
27         'gcm_driver/gcm_account_mapper.h',
28         'gcm_driver/gcm_activity.cc',
29         'gcm_driver/gcm_activity.h',
30         'gcm_driver/gcm_app_handler.cc',
31         'gcm_driver/gcm_app_handler.h',
32         'gcm_driver/gcm_client.cc',
33         'gcm_driver/gcm_client.h',
34         'gcm_driver/gcm_client_factory.cc',
35         'gcm_driver/gcm_client_factory.h',
36         'gcm_driver/gcm_client_impl.cc',
37         'gcm_driver/gcm_client_impl.h',
38         'gcm_driver/gcm_connection_observer.cc',
39         'gcm_driver/gcm_connection_observer.h',
40         'gcm_driver/gcm_driver.cc',
41         'gcm_driver/gcm_driver.h',
42         'gcm_driver/gcm_driver_android.cc',
43         'gcm_driver/gcm_driver_android.h',
44         'gcm_driver/gcm_driver_desktop.cc',
45         'gcm_driver/gcm_driver_desktop.h',
46         'gcm_driver/gcm_stats_recorder_impl.cc',
47         'gcm_driver/gcm_stats_recorder_impl.h',
48         'gcm_driver/system_encryptor.cc',
49         'gcm_driver/system_encryptor.h',
50       ],
51       'conditions': [
52         ['OS == "android"', {
53           'dependencies': [
54             'gcm_driver_jni_headers',
55           ],
56           'dependencies!': [
57             '../google_apis/gcm/gcm.gyp:gcm',
58           ],
59           'sources!': [
60             'gcm_driver/gcm_account_mapper.cc',
61             'gcm_driver/gcm_account_mapper.h',
62             'gcm_driver/gcm_client_factory.cc',
63             'gcm_driver/gcm_client_factory.h',
64             'gcm_driver/gcm_client_impl.cc',
65             'gcm_driver/gcm_client_impl.h',
66             'gcm_driver/gcm_driver_desktop.cc',
67             'gcm_driver/gcm_driver_desktop.h',
68             'gcm_driver/gcm_stats_recorder_impl.cc',
69             'gcm_driver/gcm_stats_recorder_impl.h',
70           ],
71         }],
72       ],
73     },
74     {
75       # GN version: //components/gcm_driver:test_support
76       'target_name': 'gcm_driver_test_support',
77       'type': 'static_library',
78       'dependencies': [
79         'gcm_driver',
80         '../base/base.gyp:base',
81         '../google_apis/gcm/gcm.gyp:gcm_test_support',
82         '../testing/gtest.gyp:gtest',
83       ],
84       'include_dirs': [
85         '..',
86       ],
87       'sources': [
88         # Note: file list duplicated in GN build.
89         'gcm_driver/fake_gcm_app_handler.cc',
90         'gcm_driver/fake_gcm_app_handler.h',
91         'gcm_driver/fake_gcm_client.cc',
92         'gcm_driver/fake_gcm_client.h',
93         'gcm_driver/fake_gcm_client_factory.cc',
94         'gcm_driver/fake_gcm_client_factory.h',
95         'gcm_driver/fake_gcm_driver.cc',
96         'gcm_driver/fake_gcm_driver.h',
97       ],
98       'conditions': [
99         ['OS == "android"', {
100           'dependencies!': [
101             '../google_apis/gcm/gcm.gyp:gcm_test_support',
102           ],
103           'sources!': [
104             'gcm_driver/fake_gcm_client.cc',
105             'gcm_driver/fake_gcm_client.h',
106             'gcm_driver/fake_gcm_client_factory.cc',
107             'gcm_driver/fake_gcm_client_factory.h',
108           ],
109         }],
110       ],
111     },
112   ],
113   'conditions': [
114     ['OS == "android"', {
115       'targets': [
116         {
117           'target_name': 'gcm_driver_java',
118           'type': 'none',
119           'dependencies': [
120             '../base/base.gyp:base',
121             # TODO(johnme): Fix the layering violation of depending on content/
122             '../content/content.gyp:content_java',
123             '../sync/sync.gyp:sync_java',
124           ],
125           'variables': {
126             'java_in_dir': 'gcm_driver/android/java',
127           },
128           'includes': [ '../build/java.gypi' ],
129         },
130         {
131           'target_name': 'gcm_driver_jni_headers',
132           'type': 'none',
133           'sources': [
134             'gcm_driver/android/java/src/org/chromium/components/gcm_driver/GCMDriver.java',
135           ],
136           'variables': {
137             'jni_gen_package': 'components/gcm_driver',
138           },
139           'includes': [ '../build/jni_generator.gypi' ],
140         },
141       ],
142      },
143     ],
144   ],