Revert "Roll NDK to r11c and extract it into its own repository."
[android_tools.git] / android_tools.gyp
blob18ad583c293bc17cda926e355cda4ed2a40c5fd2
1 # Copyright (c) 2010 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.
5   'targets': [
6     {
7       'target_name': 'android_java',
8       'type' : 'none',
9       'variables': {
10         'jar_path': '<(android_sdk)/android.jar',
11         'exclude_from_apk': 1,
12       },
13       'includes': ['../../build/java_prebuilt.gypi'],
14     },
15     {
16       'target_name': 'android_gcm',
17       'type' : 'none',
18       'variables': {
19         'jar_path': '<(android_sdk_root)/extras/google/gcm/gcm-client/dist/gcm.jar',
20       },
21       'includes': ['../../build/java_prebuilt.gypi'],
22     },
23     {
24       'target_name': 'uiautomator_jar',
25       'type': 'none',
26       'variables': {
27         'jar_path': '<(android_sdk)/uiautomator.jar',
28         # uiautomator is provided by the framework.
29         'neverlink': 1,
30       },
31       'includes': ['../../build/java_prebuilt.gypi'],
32     },
33     {
34       'target_name': 'android_support_multidex_javalib',
35       'type': 'none',
36       'variables': {
37         'jar_path': '<(android_sdk_root)/extras/android/support/multidex/library/libs/android-support-multidex.jar',
38       },
39       'includes': ['../../build/java_prebuilt.gypi'],
40     },
41     {
42       # This jar contains the Android support v13 library from the revision 18
43       # of the Android Support library.
44       'target_name': 'android_support_v13_javalib',
45       'type' : 'none',
46       'variables': {
47         'jar_path': '<(android_sdk_root)/extras/android/support/v13/android-support-v13.jar',
48       },
49       'includes': ['../../build/java_prebuilt.gypi'],
50     },
51     {
52       # This jar contains the Android support v7 appcompat library from the
53       # revision 18 of the Android Support library. This library doesn't
54       # contain the resources needed for the library to work.
55       # TODO(avayvod): Add the resources directly once crbug.com/274697 is
56       # fixed.
57       'target_name': 'android_support_v7_appcompat_javalib_no_res',
58       'type' : 'none',
59       'variables': {
60         'jar_path': '<(android_sdk_root)/extras/android/support/v7/appcompat/libs/android-support-v7-appcompat.jar',
61       },
62       'includes': ['../../build/java_prebuilt.gypi'],
63     },
64     {
65       # This jar contains the Android support v7 mediarouter library from the
66       # revision 18 of the Android Support library. This library doesn't
67       # contain the resources needed for the library to work.
68       # TODO(avayvod): Add the resources directly once crbug.com/274697 is
69       # fixed.
70       'target_name': 'android_support_v7_mediarouter_javalib_no_res',
71       'type' : 'none',
72       'variables': {
73         'jar_path': '<(android_sdk_root)/extras/android/support/v7/mediarouter/libs/android-support-v7-mediarouter.jar',
74       },
75       'includes': ['../../build/java_prebuilt.gypi'],
76     },
77     {
78       # This jar contains the Google Play services library without the
79       # resources needed for the library to work.
80       'target_name': 'google_play_services_default_javalib_no_res',
81       'type': 'none',
82       'variables': {
83         'jar_path': '<(android_sdk_root)/extras/google/google_play_services/libproject/google-play-services_lib/libs/google-play-services.jar',
84         'proguard_preprocess': 1,
85         'proguard_config': 'proguard.flags',
86       },
87       'dependencies': [
88         'android_support_v13_javalib',
89         'android_support_v7_mediarouter_javalib',
90         # TODO(jbudorick): Remove this once play services doesn't need it.
91         # b/21026243
92         'legacy_http_javalib',
93       ],
94       'includes': ['../../build/java_prebuilt.gypi'],
95     },
96     {
97       # This target contains the Android support v7 appcompat library with the
98       # resources needed.
99       'target_name': 'android_support_v7_appcompat_javalib',
100       'type': 'none',
101       'variables': {
102         'java_in_dir': '<(android_sdk_root)/extras/android/support/v7/appcompat',
103         'R_package': ['android.support.v7.appcompat'],
104         'R_package_relpath': ['android/support/v7/appcompat'],
105         'has_java_resources': 1,
106         'res_v14_skip': 1,
107         'run_findbugs': 0,
108       },
109       'dependencies': [
110         'android_support_v7_appcompat_javalib_no_res',
111       ],
112       'includes': [ '../../build/java.gypi' ]
113     },
114     {
115       # This target contains the Android support v7 mediarouter library with the
116       # resources needed.
117       'target_name': 'android_support_v7_mediarouter_javalib',
118       'type': 'none',
119       'variables': {
120         'java_in_dir': '<(android_sdk_root)/extras/android/support/v7/mediarouter',
121         'R_package': ['android.support.v7.mediarouter'],
122         'R_package_relpath': ['android/support/v7/mediarouter'],
123         'has_java_resources': 1,
124         'res_v14_skip': 1,
125         'run_findbugs': 0,
126       },
127       'dependencies': [
128         'android_support_v7_mediarouter_javalib_no_res',
129         'android_support_v7_appcompat_javalib',
130       ],
131       'includes': [ '../../build/java.gypi' ]
132     },
133     {
134       # This jar contains the Android support v7 recyclerview library from the
135       # revision 21 of the Android Support library. This library doesn't
136       # contain the resources needed for the library to work.
137       'target_name': 'android_support_v7_recyclerview_javalib_no_res',
138       'type' : 'none',
139       'variables': {
140         'jar_path': '<(android_sdk_root)/extras/android/support/v7/recyclerview/libs/android-support-v7-recyclerview.jar',
141       },
142       'dependencies': [
143       ],
144       'includes': ['../../build/java_prebuilt.gypi'],
145     },
146     {
147       # This target contains the Android support v7 recyclerview library with the
148       # resources needed.
149       'target_name': 'android_support_v7_recyclerview_javalib',
150       'type': 'none',
151       'variables': {
152         'java_in_dir': '<(android_sdk_root)/extras/android/support/v7/recyclerview',
153         'R_package': ['android.support.v7.recyclerview'],
154         'R_package_relpath': ['android/support/v7/recyclerview'],
155         'has_java_resources': 1,
156         'res_v14_skip': 1,
157         'run_findbugs': 0,
158       },
159       'dependencies': [
160         'android_support_v7_recyclerview_javalib_no_res',
161       ],
162       'includes': [ '../../build/java.gypi' ]
163     },
164     {
165       # This jar contains the Android support design library. This library doesn't
166       # contain the resources needed for the library to work.
167       'target_name': 'android_support_design_javalib_no_res',
168       'type' : 'none',
169       'variables': {
170         'jar_path': '<(android_sdk_root)/extras/android/support/design/libs/android-support-design.jar',
171       },
172       'includes': ['../../build/java_prebuilt.gypi'],
173     },
174     {
175       # This target contains the Android support design library with the
176       # resources needed.
177       'target_name': 'android_support_design_javalib',
178       'type': 'none',
179       'variables': {
180         'java_in_dir': '<(android_sdk_root)/extras/android/support/design',
181         'R_package': ['android.support.design'],
182         'R_package_relpath': ['android/support/design/'],
183         'has_java_resources': 1,
184         'res_v14_skip': 1,
185         'run_findbugs': 0,
186       },
187       'dependencies': [
188         'android_support_v7_recyclerview_javalib',
189         'android_support_design_javalib_no_res',
190         'android_support_v7_appcompat_javalib',
191       ],
192       'includes': [ '../../build/java.gypi' ]
193     },
194     {
195       # This target contains the Android support v17 leanback library with the
196       # resources needed.
197       'target_name': 'android_support_v17_leanback_javalib',
198       'type': 'none',
199       'variables': {
200         'java_in_dir': '<(android_sdk_root)/extras/android/support/v17/leanback',
201         'R_package': ['android.support.v17.leanback'],
202         'R_package_relpath': ['android/support/v17/leanback'],
203         'has_java_resources': 1,
204         'res_v14_skip': 1,
205         'run_findbugs': 0,
206       },
207       'dependencies': [
208         'android_support_v17_leanback_javalib_no_res',
209       ],
210       'includes': [ '../../build/java.gypi' ]
211     },
212     {
213       # This jar contains the Android support v17 leanback library. This library
214       # doesn't contain the resources needed for the library to work.
215       'target_name': 'android_support_v17_leanback_javalib_no_res',
216       'type' : 'none',
217       'variables': {
218         'jar_path': '<(android_sdk_root)/extras/android/support/v17/leanback/libs/android-support-v17-leanback.jar',
219       },
220       'includes': ['../../build/java_prebuilt.gypi'],
221     },
222     {
223       # This target contains the Android support library annotations.
224       'target_name': 'android_support_annotations_javalib',
225       'type': 'none',
226       'variables': {
227         'jar_path': '<(android_sdk_root)/extras/android/support/annotations/android-support-annotations.jar',
228       },
229       'includes': [ '../../build/java_prebuilt.gypi' ]
230     },
231     {
232       # This target contains the Google Play services library with the
233       # resources needed. It will fail to build unless you have a local
234       # version of the Google Play services library (as installed by
235       # install_build_deps_android.sh).
236       # This target should never be used directly, since a build may need
237       # to use a conflicting version of Google Play Services. Targets depending
238       # on Google Play Services should depend on google_play_services_javalib to allow
239       # this.
240       'target_name': 'google_play_services_default_javalib',
241       'type': 'none',
242       'variables': {
243         'java_in_dir': '<(android_sdk_root)/extras/google/google_play_services/libproject/google-play-services_lib',
244         'R_package': ['com.google.android.gms'],
245         'R_package_relpath': ['com/google/android/gms'],
246         'has_java_resources': 1,
247         'res_v14_skip': 1,
248         'run_findbugs': 0,
249       },
250       'dependencies': [
251         'google_play_services_default_javalib_no_res',
252       ],
253       'includes': ['../../build/java.gypi'],
254     },
255     {
256       # This target wraps the Google Play Services library, allowing the use of alternative versions of it as
257       # needed. An alternative version can be selected by setting google_play_services_library_target to
258       # a target that provides the alternative version.
259       'target_name': 'google_play_services_javalib',
260       'type': 'none',
261       'dependencies': [
262         '<(google_play_services_library_target)',
263       ],
264     },
265     {
266       # TODO(jbudorick): Remove this once net_java_test_support doesn't need it.
267       'target_name': 'legacy_http_javalib',
268       'type': 'none',
269       'variables': {
270         'jar_path': '<(android_sdk)/optional/org.apache.http.legacy.jar',
271         'neverlink': 1,
272       },
273       'includes': ['../../build/java_prebuilt.gypi'],
274     }
275   ],
276   'variables': {'google_play_services_library_target%': 'google_play_services_default_javalib'},