Enable PPAPI tests for non-SFI mode.
[chromium-blink-merge.git] / chrome / chrome_android.gypi
blob48e8cdb08593cb8da12b1da5aaf9ae45a6136f23
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': 'chrome_shell_apk',
8   },
9   'includes': [
10     'chrome_android_paks.gypi', # Included for the list of pak resources.
11   ],
12   'targets': [
13     {
14       'target_name': 'libchromeshell',
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/shell/chrome_main_delegate_chrome_shell_android.cc',
27         'android/shell/chrome_main_delegate_chrome_shell_android.h',
28         "android/shell/chrome_shell_google_location_settings_helper.cc",
29         "android/shell/chrome_shell_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         # TODO(dmikurube): Kill android_use_tcmalloc. http://crbug.com/345554
43         [ '(use_allocator!="none" and use_allocator!="see_use_tcmalloc") or (use_allocator=="see_use_tcmalloc" and android_use_tcmalloc==1)', {
44           'dependencies': [
45             '../base/allocator/allocator.gyp:allocator', ],
46         }],
47       ],
48     },
49     {
50       'target_name': 'chrome_shell_apk',
51       'type': 'none',
52       'dependencies': [
53         'chrome_java',
54         'chrome_shell_paks',
55         'libchromeshell',
56         '../media/media.gyp:media_java',
57       ],
58       'variables': {
59         'apk_name': 'ChromeShell',
60         'manifest_package_name': 'org.chromium.chrome.shell',
61         'java_in_dir': 'android/shell/java',
62         'resource_dir': 'android/shell/res',
63         'asset_location': '<(PRODUCT_DIR)/../assets/<(package_name)',
64         'native_lib_target': 'libchromeshell',
65         'native_lib_version_name': '<(version_full)',
66         'additional_input_paths': [
67           '<@(chrome_android_pak_output_resources)',
68         ],
69       },
70       'includes': [ '../build/java_apk.gypi', ],
71     },
72     {
73       # chrome_shell_apk creates a .jar as a side effect. Any java targets
74       # that need that .jar in their classpath should depend on this target,
75       # chrome_shell_apk_java. Dependents of chrome_shell_apk receive its
76       # jar path in the variable 'apk_output_jar_path'.
77       # This target should only be used by targets which instrument
78       # chrome_shell_apk.
79       'target_name': 'chrome_shell_apk_java',
80       'type': 'none',
81       'dependencies': [
82         'chrome_shell_apk',
83       ],
84       'includes': [ '../build/apk_fake_jar.gypi' ],
85     },
86     {
87       'target_name': 'chrome_android_core',
88       'type': 'static_library',
89       'dependencies': [
90         'chrome.gyp:browser',
91         'chrome.gyp:browser_ui',
92         'chrome.gyp:plugin',
93         'chrome.gyp:renderer',
94         'chrome.gyp:utility',
95         '../content/content.gyp:content',
96         '../content/content.gyp:content_app_browser',
97       ],
98       'include_dirs': [
99         '..',
100         '<(android_ndk_include)',
101       ],
102       'sources': [
103         'app/android/chrome_android_initializer.cc',
104         'app/android/chrome_android_initializer.h',
105         'app/android/chrome_main_delegate_android.cc',
106         'app/android/chrome_main_delegate_android.h',
107         'app/chrome_main_delegate.cc',
108         'app/chrome_main_delegate.h',
109       ],
110       'link_settings': {
111         'libraries': [
112           '-landroid',
113           '-ljnigraphics',
114         ],
115       },
116     },
117     {
118       'target_name': 'chrome_shell_paks',
119       'type': 'none',
120       'dependencies': [
121         '<(DEPTH)/chrome/chrome_resources.gyp:packed_resources',
122         '<(DEPTH)/chrome/chrome_resources.gyp:packed_extra_resources',
123       ],
124       'copies': [
125         {
126           'destination': '<(chrome_android_pak_output_folder)',
127           'files': [
128             '<@(chrome_android_pak_input_resources)',
129           ],
130         }
131       ],
132     },
133   ],