Revert 168224 - Update V8 to version 3.15.4.
[chromium-blink-merge.git] / chrome / chrome_android.gypi
blobd99e143f6da9787a57edfd116c04e8e96de49280
1 # Copyright (c) 2012 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   'variables': {
6     'chromium_code': 1,
7   },
8   'includes': [
9     'chrome_android_paks.gypi', # Included for the list of pak resources.
10   ],
11   'targets': [
12     {
13       'target_name': 'libchromiumtestshell',
14       'type': 'shared_library',
15       'dependencies': [
16         'chrome_android_core',
17       ],
18       'sources': [
19         'android/testshell/chrome_main_delegate_testshell_android.cc',
20         'android/testshell/chrome_main_delegate_testshell_android.h',
21         'android/testshell/testshell_entry_point.cc',
22         "android/testshell/testshell_google_location_settings_helper.cc",
23         "android/testshell/testshell_google_location_settings_helper.h",
24         'android/testshell/testshell_stubs.cc',
25       ],
26       'include_dirs': [
27         '<(SHARED_INTERMEDIATE_DIR)/android',
28         '<(SHARED_INTERMEDIATE_DIR)/chromium_testshell',
29         '../skia/config',
30       ],
31       'conditions': [
32         [ 'order_profiling!=0', {
33           'conditions': [
34             [ 'OS=="android"', {
35               'dependencies': [ '../tools/cygprofile/cygprofile.gyp:cygprofile', ],
36             }],
37           ],
38         }],
39       ],
40     },
41     {
42       'target_name': 'chromium_testshell',
43       'type': 'none',
44       'dependencies': [
45         '../media/media.gyp:media_java',
46         'chrome.gyp:chrome_java',
47         'chrome_android_paks',
48         'libchromiumtestshell',
49       ],
50       'variables': {
51         'package_name': 'chromium_testshell',
52         'apk_name': 'ChromiumTestShell',
53         'manifest_package_name': 'org.chromium.chrome.testshell',
54         'java_in_dir': 'android/testshell/java',
55         'resource_dir': '../res',
56         'asset_location': '<(ant_build_out)/../assets/chrome',
57         'native_libs_paths': [ '<(SHARED_LIB_DIR)/libchromiumtestshell.so', ],
58         'additional_input_paths': [ '<@(chrome_android_pak_output_resources)', ],
59       },
60       'includes': [ '../build/java_apk.gypi', ],
61     },
62     {
63       # chromium_testshell creates a .jar as a side effect. Any java targets
64       # that need that .jar in their classpath should depend on this target,
65       # chromium_testshell_java. Dependents of chromium_testshell receive its
66       # jar path in the variable 'apk_output_jar_path'.
67       'target_name': 'chromium_testshell_java',
68       'type': 'none',
69       'dependencies': [
70         'chromium_testshell',
71       ],
72       # This all_dependent_settings is used for java targets only. This will add
73       # the chromium_testshell jar to the classpath of dependent java targets.
74       'all_dependent_settings': {
75         'variables': {
76           'input_jars_paths': ['>(apk_output_jar_path)'],
77         },
78       },
79       # Add an action with the appropriate output. This allows the generated
80       # buildfiles to determine which target the output corresponds to.
81       'actions': [
82         {
83           'action_name': 'fake_generate_jar',
84           'inputs': [],
85           'outputs': ['>(apk_output_jar_path)'],
86           'action': [],
87         },
88       ],
89     },
90     {
91       'target_name': 'chrome_android_core',
92       'type': 'static_library',
93       'dependencies': [
94         'chrome.gyp:browser',
95         'chrome.gyp:plugin',
96         'chrome.gyp:renderer',
97         'chrome.gyp:utility',
98         '../content/content.gyp:content',
99       ],
100       'include_dirs': [
101         '..',
102         '<(SHARED_INTERMEDIATE_DIR)/android',
103         '<(SHARED_INTERMEDIATE_DIR)/chrome',
104         '<(android_ndk_include)',
105       ],
106       'sources': [
107         'app/android/chrome_android_initializer.cc',
108         'app/android/chrome_android_initializer.h',
109         'app/android/chrome_main_delegate_android.cc',
110         'app/android/chrome_main_delegate_android.h',
111         'app/chrome_main_delegate.cc',
112         'app/chrome_main_delegate.h',
113       ],
114       'link_settings': {
115         'libraries': [
116           '-landroid',
117           '-ljnigraphics',
118         ],
119       },
120     },
121     {
122       'target_name': 'chrome_android_paks',
123       'type': 'none',
124       'dependencies': [
125         '<(DEPTH)/chrome/chrome_resources.gyp:packed_resources',
126         '<(DEPTH)/chrome/chrome_resources.gyp:packed_extra_resources',
127       ],
128       'copies': [
129         {
130           'destination': '<(chrome_android_pak_output_folder)',
131           'files': [ '<@(chrome_android_pak_input_resources)' ],
132         }
133       ],
134     },
135   ],