Revert "Add partial WebFrameClient implementation to RenderFrame."
[chromium-blink-merge.git] / chrome / chrome_android.gypi
blob8237fac6e5e923d2cdca9081b649fe2a1661ccc8
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     'package_name': 'chromium_testshell',
8   },
9   'includes': [
10     'chrome_android_paks.gypi', # Included for the list of pak resources.
11   ],
12   'targets': [
13     {
14       'target_name': 'libchromiumtestshell',
15       'type': 'shared_library',
16       'dependencies': [
17         '../base/base.gyp:base',
18         'chrome_android_core',
19         'chrome_android_auxiliary',
20         'chromium_testshell_jni_headers',
21         'chrome.gyp:browser_ui',
22       ],
23       'sources': [
24         # This file must always be included in the shared_library step to ensure
25         # JNI_OnLoad is exported.
26         'app/android/chrome_jni_onload.cc',
27         'android/testshell/chrome_main_delegate_testshell_android.cc',
28         'android/testshell/chrome_main_delegate_testshell_android.h',
29         "android/testshell/testshell_google_location_settings_helper.cc",
30         "android/testshell/testshell_google_location_settings_helper.h",
31         'android/testshell/testshell_tab.cc',
32         'android/testshell/testshell_tab.h',
33         'android/testshell/testshell_stubs.cc',
34       ],
35       'include_dirs': [
36         '<(SHARED_INTERMEDIATE_DIR)/chromium_testshell',
37         '../skia/config',
38       ],
39       'conditions': [
40         [ 'order_profiling!=0', {
41           'conditions': [
42             [ 'OS=="android"', {
43               'dependencies': [ '../tools/cygprofile/cygprofile.gyp:cygprofile', ],
44             }],
45           ],
46         }],
47         [ 'android_use_tcmalloc==1', {
48           'dependencies': [
49             '../base/allocator/allocator.gyp:allocator', ],
50         }],
51       ],
52     },
53     {
54       'target_name': 'chromium_testshell',
55       'type': 'none',
56       'dependencies': [
57         '../media/media.gyp:media_java',
58         'chrome.gyp:chrome_java',
59         'chromium_testshell_paks',
60         'libchromiumtestshell',
61       ],
62       'variables': {
63         'apk_name': 'ChromiumTestShell',
64         'manifest_package_name': 'org.chromium.chrome.testshell',
65         'java_in_dir': 'android/testshell/java',
66         'resource_dir': 'android/testshell/res',
67         'asset_location': '<(ant_build_out)/../assets/<(package_name)',
68         'native_lib_target': 'libchromiumtestshell',
69         'additional_input_paths': [
70           '<@(chrome_android_pak_output_resources)',
71         ],
72       },
73       'includes': [ '../build/java_apk.gypi', ],
74     },
75     {
76       'target_name': 'chromium_testshell_jni_headers',
77       'type': 'none',
78       'sources': [
79         'android/testshell/java/src/org/chromium/chrome/testshell/TestShellTab.java',
80       ],
81       'variables': {
82         'jni_gen_package': 'chromium_testshell',
83       },
84       'includes': [ '../build/jni_generator.gypi' ],
85     },
86     {
87       # chromium_testshell creates a .jar as a side effect. Any java targets
88       # that need that .jar in their classpath should depend on this target,
89       # chromium_testshell_java. Dependents of chromium_testshell receive its
90       # jar path in the variable 'apk_output_jar_path'.
91       'target_name': 'chromium_testshell_java',
92       'type': 'none',
93       'dependencies': [
94         'chromium_testshell',
95       ],
96       'includes': [ '../build/apk_fake_jar.gypi' ],
97     },
98     {
99       'target_name': 'chrome_android_core',
100       'type': 'static_library',
101       'dependencies': [
102         'chrome.gyp:browser',
103         'chrome.gyp:browser_ui',
104         'chrome.gyp:plugin',
105         'chrome.gyp:renderer',
106         'chrome.gyp:utility',
107         '../content/content.gyp:content',
108       ],
109       'include_dirs': [
110         '..',
111         '<(SHARED_INTERMEDIATE_DIR)/android',
112         '<(SHARED_INTERMEDIATE_DIR)/chrome',
113         '<(android_ndk_include)',
114       ],
115       'sources': [
116         'app/android/chrome_android_initializer.cc',
117         'app/android/chrome_android_initializer.h',
118         'app/android/chrome_data_reduction_proxy_android.cc',
119         'app/android/chrome_data_reduction_proxy_android.h',
120         'app/android/chrome_main_delegate_android.cc',
121         'app/android/chrome_main_delegate_android.h',
122         'app/chrome_main_delegate.cc',
123         'app/chrome_main_delegate.h',
124       ],
125       'link_settings': {
126         'libraries': [
127           '-landroid',
128           '-ljnigraphics',
129         ],
130       },
131     },
132     {
133        'target_name': 'chrome_android_auxiliary',
134        'type': 'static_library',
135        'include_dirs': [
136          '<(SHARED_INTERMEDIATE_DIR)/chromium_testshell',
137        ],
138        'sources': [
139          'android/testshell/chrome_data_reduction_proxy_testshell_android.cc',
140        ],
141        'dependencies': [
142          '../base/base.gyp:base',
143        ],
144     },
145     {
146       'target_name': 'chromium_testshell_paks',
147       'type': 'none',
148       'dependencies': [
149         '<(DEPTH)/chrome/chrome_resources.gyp:packed_resources',
150         '<(DEPTH)/chrome/chrome_resources.gyp:packed_extra_resources',
151       ],
152       'copies': [
153         {
154           'destination': '<(chrome_android_pak_output_folder)',
155           'files': [
156             '<@(chrome_android_pak_input_resources)',
157           ],
158         }
159       ],
160     },
161   ],