1 # Copyright 2014 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 # This GYPI allows independent customization of the chrome shell in a manner
6 # similar to content shell (in content_shell.gypi). Notably, this file does
7 # NOT contain chrome_android_core, which is independent of the chrome shell
8 # and should be separately customized.
11 'package_name': 'chrome_shell_apk',
15 # GN: //chrome/android:chrome_shell_base
16 'target_name': 'libchromeshell_base',
17 'type': 'static_library',
19 '../base/base.gyp:base',
20 'chrome_android_core',
21 'chrome.gyp:browser_ui',
22 '../content/content.gyp:content_app_browser',
25 'android/shell/chrome_shell_google_location_settings_helper.cc',
26 'android/shell/chrome_shell_google_location_settings_helper.h',
32 [ 'order_profiling!=0', {
35 'dependencies': [ '../tools/cygprofile/cygprofile.gyp:cygprofile', ],
39 [ 'use_allocator!="none"', {
41 '../base/allocator/allocator.gyp:allocator', ],
44 'direct_dependent_settings': {
46 # Some android targets still depend on --gc-sections to link.
47 # TODO: remove --gc-sections for Debug builds (crbug.com/159847).
55 # GN: //chrome/android:chrome_shell
56 'target_name': 'libchromeshell',
57 'type': 'shared_library',
59 # This file must always be included in the shared_library step to ensure
60 # JNI_OnLoad is exported.
61 'app/android/chrome_jni_onload.cc',
62 'android/shell/chrome_main_delegate_chrome_shell_android.cc',
63 'android/shell/chrome_main_delegate_chrome_shell_android.h',
66 'libchromeshell_base',
70 # GN: //chrome/android:chrome_sync_shell
71 'target_name': 'libchromesyncshell',
72 'type': 'shared_library',
74 # This file must always be included in the shared_library step to ensure
75 # JNI_OnLoad is exported.
76 'app/android/chrome_jni_onload.cc',
77 'android/sync_shell/chrome_main_delegate_chrome_sync_shell_android.cc',
78 'android/sync_shell/chrome_main_delegate_chrome_sync_shell_android.h',
81 'libchromeshell_base',
82 '../sync/sync.gyp:test_support_sync_fake_server_android',
86 # GN: //chrome/android:chrome_shell_apk
87 'target_name': 'chrome_shell_apk',
93 '../media/media.gyp:media_java',
96 'apk_name': 'ChromeShell',
97 'native_lib_version_name': '<(version_full)',
98 'java_in_dir': 'android/shell/java',
99 'resource_dir': 'android/shell/res',
100 'asset_location': '<(PRODUCT_DIR)/../assets/<(package_name)',
101 'native_lib_target': 'libchromeshell',
102 'additional_input_paths': [
103 '<@(chrome_android_pak_output_resources)',
106 'includes': [ '../build/java_apk.gypi', ],
110 # chrome_shell_apk creates a .jar as a side effect. Any java targets
111 # that need that .jar in their classpath should depend on this target,
112 # chrome_shell_apk_java. Dependents of chrome_shell_apk receive its
113 # jar path in the variable 'apk_output_jar_path'.
114 # This target should only be used by targets which instrument
116 'target_name': 'chrome_shell_apk_java',
121 'includes': [ '../build/apk_fake_jar.gypi' ],
124 'target_name': 'chrome_shell_paks',
127 '<(DEPTH)/chrome/chrome_resources.gyp:packed_resources',
128 '<(DEPTH)/chrome/chrome_resources.gyp:packed_extra_resources',
132 'destination': '<(chrome_android_pak_output_folder)',
134 '<@(chrome_android_pak_input_resources)',
140 # GN: //chrome/android:chrome_sync_shell_apk
141 'target_name': 'chrome_sync_shell_apk',
146 'libchromesyncshell',
147 '../media/media.gyp:media_java',
148 '../sync/sync.gyp:sync_java_test_support',
151 'apk_name': 'ChromeSyncShell',
152 'android_manifest_path': 'android/sync_shell/java/AndroidManifest.xml',
153 'R_package': 'org.chromium.chrome.shell',
154 'native_lib_version_name': '<(version_full)',
155 'java_in_dir': 'android/shell/java',
156 'resource_dir': 'android/shell/res',
157 'asset_location': '<(PRODUCT_DIR)/../assets/<(package_name)',
158 'native_lib_target': 'libchromesyncshell',
159 'additional_input_paths': [
160 '<@(chrome_android_pak_output_resources)',
163 'includes': [ '../build/java_apk.gypi', ],
167 # chrome_sync_shell_apk creates a .jar as a side effect. Any java
168 # targets that need that .jar in their classpath should depend on this
169 # target. Dependents of chrome_sync_shell_apk receive its jar path in the
170 # variable 'apk_output_jar_path'. This target should only be used by
171 # targets which instrument chrome_sync_shell_apk.
172 'target_name': 'chrome_sync_shell_apk_java',
175 'chrome_sync_shell_apk',
177 'includes': [ '../build/apk_fake_jar.gypi' ],