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',
31 'direct_dependent_settings': {
33 # Some android targets still depend on --gc-sections to link.
34 # TODO: remove --gc-sections for Debug builds (crbug.com/159847).
39 [ 'order_profiling!=0', {
40 'dependencies': [ '../tools/cygprofile/cygprofile.gyp:cygprofile', ],
42 [ 'use_allocator!="none"', {
44 '../base/allocator/allocator.gyp:allocator', ],
46 [ 'cld_version==0 or cld_version==2', {
48 # Chrome shell should always use the statically-linked CLD data.
49 '<(DEPTH)/third_party/cld_2/cld_2.gyp:cld2_static', ],
54 # GN: //chrome/android:chrome_shell
55 'target_name': 'libchromeshell',
56 'type': 'shared_library',
58 # This file must always be included in the shared_library step to ensure
59 # JNI_OnLoad is exported.
60 'app/android/chrome_jni_onload.cc',
61 'android/shell/chrome_main_delegate_chrome_shell_android.cc',
62 'android/shell/chrome_main_delegate_chrome_shell_android.h',
65 'libchromeshell_base',
68 # File 'protection' is based on non-trivial linker magic. TODO(pasko):
69 # remove it when crbug.com/424562 is fixed.
70 '../base/files/protect_file_posix.gypi',
74 # GN: //chrome/android:chrome_sync_shell
75 'target_name': 'libchromesyncshell',
76 'type': 'shared_library',
78 # This file must always be included in the shared_library step to ensure
79 # JNI_OnLoad is exported.
80 'app/android/chrome_jni_onload.cc',
81 'android/sync_shell/chrome_main_delegate_chrome_sync_shell_android.cc',
82 'android/sync_shell/chrome_main_delegate_chrome_sync_shell_android.h',
85 'libchromeshell_base',
86 '../sync/sync.gyp:test_support_sync_fake_server_android',
90 # GN: //chrome/android:chrome_shell_manifest
91 'target_name': 'chrome_shell_manifest',
94 'jinja_inputs': ['android/shell/java/AndroidManifest.xml.jinja2'],
95 'jinja_output': '<(SHARED_INTERMEDIATE_DIR)/chrome_shell_manifest/AndroidManifest.xml',
97 'includes': [ '../build/android/jinja_template.gypi' ],
100 # GN: //chrome/android:chrome_shell_apk
101 'target_name': 'chrome_shell_apk',
107 '../media/media.gyp:media_java',
110 'apk_name': 'ChromeShell',
111 'android_manifest_path': '<(SHARED_INTERMEDIATE_DIR)/chrome_shell_manifest/AndroidManifest.xml',
112 'native_lib_version_name': '<(version_full)',
113 'java_in_dir': 'android/shell/java',
114 'resource_dir': 'android/shell/res',
115 'asset_location': '<(PRODUCT_DIR)/../assets/<(package_name)',
116 'native_lib_target': 'libchromeshell',
117 'additional_input_paths': [
118 '<@(chrome_android_pak_output_resources)',
121 'includes': [ '../build/java_apk.gypi', ],
125 # chrome_shell_apk creates a .jar as a side effect. Any java targets
126 # that need that .jar in their classpath should depend on this target,
127 # chrome_shell_apk_java. Dependents of chrome_shell_apk receive its
128 # jar path in the variable 'apk_output_jar_path'.
129 # This target should only be used by targets which instrument
131 'target_name': 'chrome_shell_apk_java',
136 'includes': [ '../build/apk_fake_jar.gypi' ],
139 'target_name': 'chrome_shell_paks',
142 '<(DEPTH)/chrome/chrome_resources.gyp:packed_resources',
143 '<(DEPTH)/chrome/chrome_resources.gyp:packed_extra_resources',
147 'destination': '<(chrome_android_pak_output_folder)',
149 '<@(chrome_android_pak_input_resources)',
155 # GN: //chrome/android:chrome_sync_shell_manifest
156 'target_name': 'chrome_sync_shell_manifest',
159 'jinja_inputs': ['android/sync_shell/java/AndroidManifest.xml.jinja2'],
160 'jinja_output': '<(SHARED_INTERMEDIATE_DIR)/chrome_sync_shell_manifest/AndroidManifest.xml',
162 'includes': [ '../build/android/jinja_template.gypi' ],
165 # GN: //chrome/android:chrome_sync_shell_apk
166 'target_name': 'chrome_sync_shell_apk',
171 'libchromesyncshell',
172 '../media/media.gyp:media_java',
173 '../sync/sync.gyp:sync_java_test_support',
176 'apk_name': 'ChromeSyncShell',
177 'android_manifest_path': '<(SHARED_INTERMEDIATE_DIR)/chrome_sync_shell_manifest/AndroidManifest.xml',
178 'R_package': 'org.chromium.chrome.shell',
179 'native_lib_version_name': '<(version_full)',
180 'java_in_dir': 'android/shell/java',
181 'resource_dir': 'android/shell/res',
182 'asset_location': '<(PRODUCT_DIR)/../assets/<(package_name)',
183 'native_lib_target': 'libchromesyncshell',
184 'additional_input_paths': [
185 '<@(chrome_android_pak_output_resources)',
188 'includes': [ '../build/java_apk.gypi', ],
192 # chrome_sync_shell_apk creates a .jar as a side effect. Any java
193 # targets that need that .jar in their classpath should depend on this
194 # target. Dependents of chrome_sync_shell_apk receive its jar path in the
195 # variable 'apk_output_jar_path'. This target should only be used by
196 # targets which instrument chrome_sync_shell_apk.
197 'target_name': 'chrome_sync_shell_apk_java',
200 'chrome_sync_shell_apk',
202 'includes': [ '../build/apk_fake_jar.gypi' ],