NaCl: Update revision in DEPS, e8fbd4b -> 9e3dac8
[chromium-blink-merge.git] / chrome / chrome_shell.gypi
blobe7b9e4e42c4f8f2e7c5b2c9a3b3421807eb26faf
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_browser',
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_main_delegate_chrome_shell_android.cc',
52         'android/shell/chrome_main_delegate_chrome_shell_android.h',
53       ],
54       'dependencies': [
55         'libchromeshell_base',
56       ],
57       'includes': [
58         # File 'protection' is based on non-trivial linker magic. TODO(pasko):
59         # remove it when crbug.com/424562 is fixed.
60         '../base/files/protect_file_posix.gypi',
61       ],
62     },
63     {
64       # GN: //chrome/android:chrome_sync_shell
65       'target_name': 'libchromesyncshell',
66       'type': 'shared_library',
67       'sources': [
68         'android/sync_shell/chrome_main_delegate_chrome_sync_shell_android.cc',
69         'android/sync_shell/chrome_main_delegate_chrome_sync_shell_android.h',
70       ],
71       'dependencies': [
72         'libchromeshell_base',
73         '../sync/sync.gyp:test_support_sync_fake_server_android',
74       ],
75     },
76     {
77       # GN: //chrome/android:chrome_shell_manifest
78       'target_name': 'chrome_shell_manifest',
79       'type': 'none',
80       'variables': {
81         'jinja_inputs': ['android/shell/java/AndroidManifest.xml.jinja2'],
82         'jinja_output': '<(SHARED_INTERMEDIATE_DIR)/chrome_shell_manifest/AndroidManifest.xml',
83       },
84       'includes': [ '../build/android/jinja_template.gypi' ],
85     },
86     {
87       # GN: //chrome/android:chrome_shell_apk
88       'target_name': 'chrome_shell_apk',
89       'type': 'none',
90       'dependencies': [
91         'chrome_java',
92         'chrome_android_paks_copy',
93         'libchromeshell',
94         '../media/media.gyp:media_java',
95       ],
96       'variables': {
97         'apk_name': 'ChromeShell',
98         'android_manifest_path': '<(SHARED_INTERMEDIATE_DIR)/chrome_shell_manifest/AndroidManifest.xml',
99         'native_lib_version_name': '<(version_full)',
100         'java_in_dir': 'android/shell/java',
101         'resource_dir': 'android/shell/res',
102         'asset_location': '<(PRODUCT_DIR)/../assets/<(package_name)',
103         'native_lib_target': 'libchromeshell',
104         'additional_input_paths': [
105           '<@(chrome_android_pak_output_resources)',
106         ],
107       },
108       'includes': [ '../build/java_apk.gypi', ],
109     },
110     {
111       # GN: N/A
112       # chrome_shell_apk creates a .jar as a side effect. Any java targets
113       # that need that .jar in their classpath should depend on this target,
114       # chrome_shell_apk_java. Dependents of chrome_shell_apk receive its
115       # jar path in the variable 'apk_output_jar_path'.
116       # This target should only be used by targets which instrument
117       # chrome_shell_apk.
118       'target_name': 'chrome_shell_apk_java',
119       'type': 'none',
120       'dependencies': [
121         'chrome_shell_apk',
122       ],
123       'includes': [ '../build/apk_fake_jar.gypi' ],
124     },
125     {
126       # GN: //chrome/android:chrome_sync_shell_manifest
127       'target_name': 'chrome_sync_shell_manifest',
128       'type': 'none',
129       'variables': {
130         'jinja_inputs': ['android/sync_shell/java/AndroidManifest.xml.jinja2'],
131         'jinja_output': '<(SHARED_INTERMEDIATE_DIR)/chrome_sync_shell_manifest/AndroidManifest.xml',
132       },
133       'includes': [ '../build/android/jinja_template.gypi' ],
134     },
135     {
136       # GN: //chrome/android:chrome_sync_shell_apk
137       'target_name': 'chrome_sync_shell_apk',
138       'type': 'none',
139       'dependencies': [
140         'chrome_java',
141         'chrome_android_paks_copy',
142         'libchromesyncshell',
143         '../media/media.gyp:media_java',
144         '../sync/sync.gyp:sync_java_test_support',
145       ],
146       'variables': {
147         'apk_name': 'ChromeSyncShell',
148         'android_manifest_path': '<(SHARED_INTERMEDIATE_DIR)/chrome_sync_shell_manifest/AndroidManifest.xml',
149         'R_package': 'org.chromium.chrome.shell',
150         'native_lib_version_name': '<(version_full)',
151         'java_in_dir': 'android/shell/java',
152         'resource_dir': 'android/shell/res',
153         'asset_location': '<(PRODUCT_DIR)/../assets/<(package_name)',
154         'native_lib_target': 'libchromesyncshell',
155         'additional_input_paths': [
156           '<@(chrome_android_pak_output_resources)',
157         ],
158       },
159       'includes': [ '../build/java_apk.gypi', ],
160     },
161     {
162       # GN: N/A
163       # chrome_sync_shell_apk creates a .jar as a side effect. Any java
164       # targets that need that .jar in their classpath should depend on this
165       # target. Dependents of chrome_sync_shell_apk receive its jar path in the
166       # variable 'apk_output_jar_path'. This target should only be used by
167       # targets which instrument chrome_sync_shell_apk.
168       'target_name': 'chrome_sync_shell_apk_java',
169       'type': 'none',
170       'dependencies': [
171         'chrome_sync_shell_apk',
172       ],
173       'includes': [ '../build/apk_fake_jar.gypi' ],
174     },
175   ],