Update V8 to version 4.2.36 (based on d0f3e5302c8d89fee4995b86a2b83c9ecf5d1e7a).
[chromium-blink-merge.git] / chrome / chrome_android.gypi
blob7ecfda009ebf064d9e737bc8082f35809b2fc8bc
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     'conditions': [
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',
12       }],
13     ],
14   },
15   'includes': [
16     'chrome_android_paks.gypi', # Included for the list of pak resources.
17     'chrome_shell.gypi', # Built atop chrome_android_core (defined here)
18   ],
19   'targets': [
20     {
21       # GN: //chrome:chrome_android_core
22       'target_name': 'chrome_android_core',
23       'type': 'static_library',
24       'dependencies': [
25         'chrome.gyp:browser',
26         'chrome.gyp:browser_ui',
27         'chrome.gyp:plugin',
28         'chrome.gyp:renderer',
29         'chrome.gyp:utility',
30         # TODO(kkimlabs): Move this to chrome.gyp:browser when the dependent
31         #                 is upstreamed.
32         '../components/components.gyp:enhanced_bookmarks',
33         '../content/content.gyp:content',
34         '../content/content.gyp:content_app_browser',
35       ],
36       'include_dirs': [
37         '..',
38         '<(android_ndk_include)',
39       ],
40       'sources': [
41         'app/android/chrome_android_initializer.cc',
42         'app/android/chrome_android_initializer.h',
43         'app/android/chrome_jni_onload.cc',
44         'app/android/chrome_main_delegate_android.cc',
45         'app/android/chrome_main_delegate_android.h',
46         'app/chrome_main_delegate.cc',
47         'app/chrome_main_delegate.h',
48       ],
49       'link_settings': {
50         'libraries': [
51           '-landroid',
52           '-ljnigraphics',
53         ],
54       },
55     },
56     {
57       # GYP: //chrome/android:chrome_version_java
58       'target_name': 'chrome_version_java',
59       'type': 'none',
60       'variables': {
61         'template_input_path': 'android/java/ChromeVersionConstants.java.version',
62         'version_path': 'VERSION',
63         'version_py_path': '<(DEPTH)/build/util/version.py',
64         'output_path': '<(SHARED_INTERMEDIATE_DIR)/templates/<(_target_name)/org/chromium/chrome/browser/ChromeVersionConstants.java',
66         'conditions': [
67           ['branding == "Chrome"', {
68             'branding_path': 'app/theme/google_chrome/BRANDING',
69           }, {
70             'branding_path': 'app/theme/chromium/BRANDING',
71           }],
72         ],
73       },
74       'direct_dependent_settings': {
75         'variables': {
76           # Ensure that the output directory is used in the class path
77           # when building targets that depend on this one.
78           'generated_src_dirs': [
79             '<(SHARED_INTERMEDIATE_DIR)/templates/<(_target_name)',
80           ],
81           # Ensure dependents are rebuilt when the generated Java file changes.
82           'additional_input_paths': [
83             '<(output_path)',
84           ],
85         },
86       },
87       'actions': [
88         {
89           'action_name': 'chrome_version_java_template',
90           'inputs': [
91             '<(template_input_path)',
92             '<(version_path)',
93             '<(branding_path)',
94             '<(version_py_path)',
95           ],
96           'outputs': [
97             '<(output_path)',
98           ],
99           'action': [
100             'python',
101             '<(version_py_path)',
102             '-f', '<(version_path)',
103             '-f', '<(branding_path)',
104             '-e', 'CHANNEL=str.upper("<(android_channel)")',
105             '<(template_input_path)',
106             '<(output_path)',
107           ],
108         },
109       ],
110     },
111   ],