Make it possible to set porterduff mode to TintedImageButton
[chromium-blink-merge.git] / chrome / chrome_shell.gypi
blobb614ff36bccff056c3ed68f4b2914480e188dc4a
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.
10   'variables': {
11     'package_name': 'chrome_shell_apk',
12   },
13   'targets': [
14     {
15       # GN: //chrome/android:chrome_shell_base
16       'target_name': 'libchromeshell_base',
17       'type': 'none',
18       'dependencies': [
19         '../base/base.gyp:base',
20         'chrome_android_core',
21         'chrome.gyp:browser_ui',
22         '../content/content.gyp:content_app_both',
23       ],
24       'direct_dependent_settings': {
25         'ldflags': [
26           # Some android targets still depend on --gc-sections to link.
27           # TODO: remove --gc-sections for Debug builds (crbug.com/159847).
28           '-Wl,--gc-sections',
29         ],
30       },
31       'conditions': [
32         [ 'order_profiling!=0', {
33           'dependencies': [ '../tools/cygprofile/cygprofile.gyp:cygprofile', ],
34         }],
35         [ 'use_allocator!="none"', {
36           'dependencies': [
37             '../base/allocator/allocator.gyp:allocator', ],
38         }],
39         [ 'cld_version==0 or cld_version==2', {
40           'dependencies': [
41             # Chrome shell should always use the statically-linked CLD data.
42             '<(DEPTH)/third_party/cld_2/cld_2.gyp:cld2_static', ],
43         }],
44       ],
45     },
46     {
47       # GN: //chrome/android:chrome_shell
48       'target_name': 'libchromeshell',
49       'type': 'shared_library',
50       'sources': [
51         'android/shell/chrome_shell_entry_point.cc',
52         'android/shell/chrome_main_delegate_chrome_shell_android.cc',
53         'android/shell/chrome_main_delegate_chrome_shell_android.h',
54       ],
55       'dependencies': [
56         'libchromeshell_base',
57       ],
58       'includes': [
59         # File 'protection' is based on non-trivial linker magic. TODO(pasko):
60         # remove it when crbug.com/424562 is fixed.
61         '../base/files/protect_file_posix.gypi',
62       ],
63     },
64     {
65       # GN: //chrome/android:chrome_sync_shell
66       'target_name': 'libchromesyncshell',
67       'type': 'shared_library',
68       'sources': [
69         'android/shell/chrome_shell_entry_point.cc',
70         'android/sync_shell/chrome_main_delegate_chrome_sync_shell_android.cc',
71         'android/sync_shell/chrome_main_delegate_chrome_sync_shell_android.h',
72       ],
73       'dependencies': [
74         'libchromeshell_base',
75         '../sync/sync.gyp:sync_core',
76         '../sync/sync.gyp:test_support_sync_fake_server_android',
77       ],
78     },
79     {
80       # GN: //chrome/android:chrome_shell_manifest
81       'target_name': 'chrome_shell_manifest',
82       'type': 'none',
83       'variables': {
84         'jinja_inputs': ['android/shell/java/AndroidManifest.xml.jinja2'],
85         'jinja_output': '<(SHARED_INTERMEDIATE_DIR)/chrome_shell_manifest/AndroidManifest.xml',
86       },
87       'includes': [ '../build/android/jinja_template.gypi' ],
88     },
89     {
90       # GN: //chrome/android:chrome_shell_apk
91       'target_name': 'chrome_shell_apk',
92       'type': 'none',
93       'dependencies': [
94         'chrome_java',
95         'chrome_android_paks_copy',
96         'libchromeshell',
97         '../media/media.gyp:media_java',
98       ],
99       'variables': {
100         'apk_name': 'ChromeShell',
101         'android_manifest_path': '<(SHARED_INTERMEDIATE_DIR)/chrome_shell_manifest/AndroidManifest.xml',
102         'native_lib_version_name': '<(version_full)',
103         'java_in_dir': 'android/shell/java',
104         'resource_dir': 'android/shell/res',
105         'asset_location': '<(PRODUCT_DIR)/../assets/<(package_name)',
106         'native_lib_target': 'libchromeshell',
107         'additional_input_paths': [
108           '<@(chrome_android_pak_output_resources)',
109         ],
110       },
111       'includes': [ '../build/java_apk.gypi', ],
112     },
113     {
114       # GN: N/A
115       # chrome_shell_apk creates a .jar as a side effect. Any java targets
116       # that need that .jar in their classpath should depend on this target,
117       # chrome_shell_apk_java. Dependents of chrome_shell_apk receive its
118       # jar path in the variable 'apk_output_jar_path'.
119       # This target should only be used by targets which instrument
120       # chrome_shell_apk.
121       'target_name': 'chrome_shell_apk_java',
122       'type': 'none',
123       'dependencies': [
124         'chrome_shell_apk',
125       ],
126       'includes': [ '../build/apk_fake_jar.gypi' ],
127     },
128     {
129       # GN: //chrome/android:chrome_sync_shell_manifest
130       'target_name': 'chrome_sync_shell_manifest',
131       'type': 'none',
132       'variables': {
133         'jinja_inputs': ['android/sync_shell/java/AndroidManifest.xml.jinja2'],
134         'jinja_output': '<(SHARED_INTERMEDIATE_DIR)/chrome_sync_shell_manifest/AndroidManifest.xml',
135       },
136       'includes': [ '../build/android/jinja_template.gypi' ],
137     },
138     {
139       # GN: //chrome/android:chrome_sync_shell_apk
140       'target_name': 'chrome_sync_shell_apk',
141       'type': 'none',
142       'dependencies': [
143         'chrome_java',
144         'chrome_android_paks_copy',
145         'libchromesyncshell',
146         '../media/media.gyp:media_java',
147         '../sync/sync.gyp:sync_java_test_support',
148       ],
149       'variables': {
150         'apk_name': 'ChromeSyncShell',
151         'android_manifest_path': '<(SHARED_INTERMEDIATE_DIR)/chrome_sync_shell_manifest/AndroidManifest.xml',
152         'R_package': 'org.chromium.chrome.shell',
153         'native_lib_version_name': '<(version_full)',
154         'java_in_dir': 'android/shell/java',
155         'resource_dir': 'android/shell/res',
156         'asset_location': '<(PRODUCT_DIR)/../assets/<(package_name)',
157         'native_lib_target': 'libchromesyncshell',
158         'additional_input_paths': [
159           '<@(chrome_android_pak_output_resources)',
160         ],
161       },
162       'includes': [ '../build/java_apk.gypi', ],
163     },
164     {
165       # GN: N/A
166       # chrome_sync_shell_apk creates a .jar as a side effect. Any java
167       # targets that need that .jar in their classpath should depend on this
168       # target. Dependents of chrome_sync_shell_apk receive its jar path in the
169       # variable 'apk_output_jar_path'. This target should only be used by
170       # targets which instrument chrome_sync_shell_apk.
171       'target_name': 'chrome_sync_shell_apk_java',
172       'type': 'none',
173       'dependencies': [
174         'chrome_sync_shell_apk',
175       ],
176       'includes': [ '../build/apk_fake_jar.gypi' ],
177     },
178   ],