Speculative re-enable of WebRTC tests on XP after fix.
[chromium-blink-merge.git] / chrome / chrome_android.gypi
blob734cda9250b51f1f427aa1f1b8c971b1e78ac0dc
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:child',
28         'chrome.gyp:plugin',
29         'chrome.gyp:renderer',
30         'chrome.gyp:utility',
31         # TODO(kkimlabs): Move this to chrome.gyp:browser when the dependent
32         #                 is upstreamed.
33         '../components/components.gyp:enhanced_bookmarks',
34         '../content/content.gyp:content',
35         '../content/content.gyp:content_app_both',
36       ],
37       'include_dirs': [
38         '..',
39         '<(android_ndk_include)',
40       ],
41       'sources': [
42         'app/android/chrome_android_initializer.cc',
43         'app/android/chrome_android_initializer.h',
44         'app/android/chrome_jni_onload.cc',
45         'app/android/chrome_jni_onload.h',
46         'app/android/chrome_main_delegate_android.cc',
47         'app/android/chrome_main_delegate_android.h',
48         'app/chrome_main_delegate.cc',
49         'app/chrome_main_delegate.h',
50       ],
51       'link_settings': {
52         'libraries': [
53           '-landroid',
54           '-ljnigraphics',
55         ],
56       },
57     },
58     {
59       # GYP: //chrome/android:chrome_version_java
60       'target_name': 'chrome_version_java',
61       'type': 'none',
62       'variables': {
63         'template_input_path': 'android/java/ChromeVersionConstants.java.version',
64         'version_path': 'VERSION',
65         'version_py_path': '<(DEPTH)/build/util/version.py',
66         'output_path': '<(SHARED_INTERMEDIATE_DIR)/templates/<(_target_name)/org/chromium/chrome/browser/ChromeVersionConstants.java',
68         'conditions': [
69           ['branding == "Chrome"', {
70             'branding_path': 'app/theme/google_chrome/BRANDING',
71           }, {
72             'branding_path': 'app/theme/chromium/BRANDING',
73           }],
74         ],
75       },
76       'direct_dependent_settings': {
77         'variables': {
78           # Ensure that the output directory is used in the class path
79           # when building targets that depend on this one.
80           'generated_src_dirs': [
81             '<(SHARED_INTERMEDIATE_DIR)/templates/<(_target_name)',
82           ],
83           # Ensure dependents are rebuilt when the generated Java file changes.
84           'additional_input_paths': [
85             '<(output_path)',
86           ],
87         },
88       },
89       'actions': [
90         {
91           'action_name': 'chrome_version_java_template',
92           'inputs': [
93             '<(template_input_path)',
94             '<(version_path)',
95             '<(branding_path)',
96             '<(version_py_path)',
97           ],
98           'outputs': [
99             '<(output_path)',
100           ],
101           'action': [
102             'python',
103             '<(version_py_path)',
104             '-f', '<(version_path)',
105             '-f', '<(branding_path)',
106             '-e', 'CHANNEL=str.upper("<(android_channel)")',
107             '<(template_input_path)',
108             '<(output_path)',
109           ],
110         },
111       ],
112     },
113   ],