summaryrefslogtreecommitdiff
path: root/chromium/third_party/android_tools/android_tools.gyp
blob: 68ed001c0c5a4f67878ed1c2c040ee476dc5b5a1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
# Copyright (c) 2010 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
{
  'targets': [
    {
      'target_name': 'android_java',
      'type' : 'none',
      'variables': {
        'jar_path': '<(android_sdk)/android.jar',
        'exclude_from_apk': 1,
      },
      'includes': ['../../build/java_prebuilt.gypi'],
    },
    {
      'target_name': 'android_gcm',
      'type' : 'none',
      'variables': {
        'jar_path': '<(android_sdk_root)/extras/google/gcm/gcm-client/dist/gcm.jar',
      },
      'includes': ['../../build/java_prebuilt.gypi'],
    },
    {
      'target_name': 'uiautomator_jar',
      'type': 'none',
      'variables': {
        'jar_path': '<(android_sdk)/uiautomator.jar',
      },
      'includes': ['../../build/java_prebuilt.gypi'],
    },
    {
      # This jar contains the Android support v4 library from the revision 18
      # of the Android Support library.
      'target_name': 'android_support_v4_javalib',
      'type' : 'none',
      'variables': {
        'jar_path': '<(android_sdk_root)/extras/android/support/v4/android-support-v4.jar',
      },
      'includes': ['../../build/java_prebuilt.gypi'],
    },
    {
      # This jar contains the Android support v7 appcompat library from the
      # revision 18 of the Android Support library. This library doesn't
      # contain the resources needed for the library to work.
      # TODO(avayvod): Add the resources directly once crbug.com/274697 is
      # fixed.
      'target_name': 'android_support_v7_appcompat_javalib_no_res',
      'type' : 'none',
      'variables': {
        'jar_path': '<(android_sdk_root)/extras/android/support/v7/appcompat/libs/android-support-v7-appcompat.jar',
      },
      'includes': ['../../build/java_prebuilt.gypi'],
    },
    {
      # This jar contains the Android support v7 mediarouter library from the
      # revision 18 of the Android Support library. This library doesn't
      # contain the resources needed for the library to work.
      # TODO(avayvod): Add the resources directly once crbug.com/274697 is
      # fixed.
      'target_name': 'android_support_v7_mediarouter_javalib_no_res',
      'type' : 'none',
      'variables': {
        'jar_path': '<(android_sdk_root)/extras/android/support/v7/mediarouter/libs/android-support-v7-mediarouter.jar',
      },
      'includes': ['../../build/java_prebuilt.gypi'],
    },
    {
      # This target contains the Android support v7 appcompat library with the
      # resources needed.
      'target_name': 'android_support_v7_appcompat_javalib',
      'type': 'none',
      'variables': {
        'java_in_dir': '<(android_sdk_root)/extras/android/support/v7/appcompat',
        'R_package': ['android.support.v7.appcompat'],
        'R_package_relpath': ['android/support/v7/appcompat'],
        'has_java_resources': 1,
        'res_v14_verify_only': 1,
      },
      'dependencies': [
        'android_support_v7_appcompat_javalib_no_res',
      ],
      'includes': [ '../../build/java.gypi' ]
    },
    {
      # This target contains the Android support v7 mediarouter library with the
      # resources needed.
      'target_name': 'android_support_v7_mediarouter_javalib',
      'type': 'none',
      'variables': {
        'java_in_dir': '<(android_sdk_root)/extras/android/support/v7/mediarouter',
        'R_package': ['android.support.v7.mediarouter'],
        'R_package_relpath': ['android/support/v7/mediarouter'],
        'has_java_resources': 1,
        'res_v14_verify_only': 1,
        'res_extra_dirs': ['<(android_sdk_root)/extras/android/support/v7/appcompat/res'],
      },
      'dependencies': [
        'android_support_v7_mediarouter_javalib_no_res',
      ],
      'includes': [ '../../build/java.gypi' ]
    },
  ],
}