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