[Password Manager] Remove Profile access Password[Form]Manager
[chromium-blink-merge.git] / chrome / chrome_android.gypi
blobe10880811fbb0b2b2a5c7aaa74d16cfe5fca8a76
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.gyp:browser_ui',
20         '../content/content.gyp:content_app_browser',
21       ],
22       'sources': [
23         # This file must always be included in the shared_library step to ensure
24         # JNI_OnLoad is exported.
25         'app/android/chrome_jni_onload.cc',
26         'android/testshell/chrome_main_delegate_testshell_android.cc',
27         'android/testshell/chrome_main_delegate_testshell_android.h',
28         "android/testshell/testshell_google_location_settings_helper.cc",
29         "android/testshell/testshell_google_location_settings_helper.h",
30       ],
31       'include_dirs': [
32         '../skia/config',
33       ],
34       'conditions': [
35         [ 'order_profiling!=0', {
36           'conditions': [
37             [ 'OS=="android"', {
38               'dependencies': [ '../tools/cygprofile/cygprofile.gyp:cygprofile', ],
39             }],
40           ],
41         }],
42         [ 'android_use_tcmalloc==1', {
43           'dependencies': [
44             '../base/allocator/allocator.gyp:allocator', ],
45         }],
46       ],
47     },
48     {
49       'target_name': 'chromium_testshell',
50       'type': 'none',
51       'dependencies': [
52         '../media/media.gyp:media_java',
53         'chrome.gyp:chrome_java',
54         'chromium_testshell_paks',
55         'libchromiumtestshell',
56       ],
57       'variables': {
58         'apk_name': 'ChromiumTestShell',
59         'manifest_package_name': 'org.chromium.chrome.testshell',
60         'java_in_dir': 'android/testshell/java',
61         'resource_dir': 'android/testshell/res',
62         'asset_location': '<(PRODUCT_DIR)/../assets/<(package_name)',
63         'native_lib_target': 'libchromiumtestshell',
64         'native_lib_version_name': '<(version_full)',
65         'additional_input_paths': [
66           '<@(chrome_android_pak_output_resources)',
67         ],
68       },
69       'includes': [ '../build/java_apk.gypi', ],
70     },
71     {
72       # chromium_testshell creates a .jar as a side effect. Any java targets
73       # that need that .jar in their classpath should depend on this target,
74       # chromium_testshell_java. Dependents of chromium_testshell receive its
75       # jar path in the variable 'apk_output_jar_path'.
76       'target_name': 'chromium_testshell_java',
77       'type': 'none',
78       'dependencies': [
79         'chromium_testshell',
80       ],
81       'includes': [ '../build/apk_fake_jar.gypi' ],
82     },
83     {
84       'target_name': 'chrome_android_core',
85       'type': 'static_library',
86       'dependencies': [
87         'chrome.gyp:browser',
88         'chrome.gyp:browser_ui',
89         'chrome.gyp:plugin',
90         'chrome.gyp:renderer',
91         'chrome.gyp:utility',
92         '../content/content.gyp:content',
93         '../content/content.gyp:content_app_browser',
94       ],
95       'include_dirs': [
96         '..',
97         '<(android_ndk_include)',
98       ],
99       'sources': [
100         'app/android/chrome_android_initializer.cc',
101         'app/android/chrome_android_initializer.h',
102         'app/android/chrome_main_delegate_android.cc',
103         'app/android/chrome_main_delegate_android.h',
104         'app/chrome_main_delegate.cc',
105         'app/chrome_main_delegate.h',
106       ],
107       'link_settings': {
108         'libraries': [
109           '-landroid',
110           '-ljnigraphics',
111         ],
112       },
113     },
114     {
115       'target_name': 'chromium_testshell_paks',
116       'type': 'none',
117       'dependencies': [
118         '<(DEPTH)/chrome/chrome_resources.gyp:packed_resources',
119         '<(DEPTH)/chrome/chrome_resources.gyp:packed_extra_resources',
120       ],
121       'copies': [
122         {
123           'destination': '<(chrome_android_pak_output_folder)',
124           'files': [
125             '<@(chrome_android_pak_input_resources)',
126           ],
127         }
128       ],
129     },
130   ],