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