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.
8 ['component != "shared_library" and target_arch != "arm64" and target_arch != "x64" and profiling_full_stack_frames != 1', {
9 # Only enable the chromium linker on regular builds, since the
10 # component build crashes on Android 4.4. See b/11379966
11 'use_chromium_linker': '1',
16 'chrome_android_paks.gypi', # Included for the list of pak resources.
17 'chrome_shell.gypi', # Built atop chrome_android_core (defined here)
21 # GN: //chrome:chrome_android_core
22 'target_name': 'chrome_android_core',
23 'type': 'static_library',
26 'chrome.gyp:browser_ui',
28 'chrome.gyp:renderer',
30 # TODO(kkimlabs): Move this to chrome.gyp:browser when the dependent
32 '../components/components.gyp:enhanced_bookmarks',
33 '../content/content.gyp:content',
34 '../content/content.gyp:content_app_browser',
38 '<(android_ndk_include)',
41 'app/android/chrome_android_initializer.cc',
42 'app/android/chrome_android_initializer.h',
43 'app/android/chrome_main_delegate_android.cc',
44 'app/android/chrome_main_delegate_android.h',
45 'app/chrome_main_delegate.cc',
46 'app/chrome_main_delegate.h',
56 # GYP: //chrome/android:chrome_version_java
57 'target_name': 'chrome_version_java',
60 'template_input_path': 'android/java/ChromeVersionConstants.java.version',
61 'version_path': 'VERSION',
62 'version_py_path': '<(DEPTH)/build/util/version.py',
63 'output_path': '<(SHARED_INTERMEDIATE_DIR)/templates/<(_target_name)/org/chromium/chrome/browser/ChromeVersionConstants.java',
66 ['branding == "Chrome"', {
67 'branding_path': 'app/theme/google_chrome/BRANDING',
69 'branding_path': 'app/theme/chromium/BRANDING',
73 'direct_dependent_settings': {
75 # Ensure that the output directory is used in the class path
76 # when building targets that depend on this one.
77 'generated_src_dirs': [
78 '<(SHARED_INTERMEDIATE_DIR)/templates/<(_target_name)',
80 # Ensure dependents are rebuilt when the generated Java file changes.
81 'additional_input_paths': [
88 'action_name': 'chrome_version_java_template',
90 '<(template_input_path)',
100 '<(version_py_path)',
101 '-f', '<(version_path)',
102 '-f', '<(branding_path)',
103 '<(template_input_path)',