Switch to EnhancedBookmarkModel from meta_accessor
[chromium-blink-merge.git] / chrome / chrome_shell.gypi
blobe9fa8808ca3a951e5d6454f765f44bb2de5ea95f
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': 'static_library',
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       'sources': [
25         'android/shell/chrome_shell_google_location_settings_helper.cc',
26         'android/shell/chrome_shell_google_location_settings_helper.h',
27       ],
28       'include_dirs': [
29         '../skia/config',
30       ],
31       'conditions': [
32         [ 'order_profiling!=0', {
33           'conditions': [
34             [ 'OS=="android"', {
35               'dependencies': [ '../tools/cygprofile/cygprofile.gyp:cygprofile', ],
36             }],
37           ],
38         }],
39         [ 'use_allocator!="none"', {
40           'dependencies': [
41             '../base/allocator/allocator.gyp:allocator', ],
42         }],
43         ['OS=="android"', {
44           'direct_dependent_settings': {
45             'ldflags': [
46               # Some android targets still depend on --gc-sections to link.
47               # TODO: remove --gc-sections for Debug builds (crbug.com/159847).
48               '-Wl,--gc-sections',
49             ],
50           },
51         }],
52       ],
53     },
54     {
55       # GN: //chrome/android:chrome_shell
56       'target_name': 'libchromeshell',
57       'type': 'shared_library',
58       'sources': [
59         # This file must always be included in the shared_library step to ensure
60         # JNI_OnLoad is exported.
61         'app/android/chrome_jni_onload.cc',
62         'android/shell/chrome_main_delegate_chrome_shell_android.cc',
63         'android/shell/chrome_main_delegate_chrome_shell_android.h',
64       ],
65       'dependencies': [
66         'libchromeshell_base',
67       ],
68     },
69     {
70       # GN: //chrome/android:chrome_sync_shell
71       'target_name': 'libchromesyncshell',
72       'type': 'shared_library',
73       'sources': [
74         # This file must always be included in the shared_library step to ensure
75         # JNI_OnLoad is exported.
76         'app/android/chrome_jni_onload.cc',
77         'android/sync_shell/chrome_main_delegate_chrome_sync_shell_android.cc',
78         'android/sync_shell/chrome_main_delegate_chrome_sync_shell_android.h',
79       ],
80       'dependencies': [
81         'libchromeshell_base',
82         '../sync/sync.gyp:test_support_sync_fake_server_android',
83       ],
84     },
85     {
86       # GN: //chrome/android:chrome_shell_manifest
87       'target_name': 'chrome_shell_manifest',
88       'type': 'none',
89       'variables': {
90         'jinja_inputs': ['android/shell/java/AndroidManifest.xml'],
91         'jinja_output': '<(SHARED_INTERMEDIATE_DIR)/chrome_shell_manifest/AndroidManifest.xml',
92       },
93       'includes': [ '../build/android/jinja_template.gypi' ],
94     },
95     {
96       # GN: //chrome/android:chrome_shell_apk
97       'target_name': 'chrome_shell_apk',
98       'type': 'none',
99       'dependencies': [
100         'chrome_java',
101         'chrome_shell_paks',
102         'libchromeshell',
103         '../media/media.gyp:media_java',
104       ],
105       'variables': {
106         'apk_name': 'ChromeShell',
107         'android_manifest_path': '<(SHARED_INTERMEDIATE_DIR)/chrome_shell_manifest/AndroidManifest.xml',
108         'native_lib_version_name': '<(version_full)',
109         'java_in_dir': 'android/shell/java',
110         'resource_dir': 'android/shell/res',
111         'asset_location': '<(PRODUCT_DIR)/../assets/<(package_name)',
112         'native_lib_target': 'libchromeshell',
113         'additional_input_paths': [
114           '<@(chrome_android_pak_output_resources)',
115         ],
116       },
117       'includes': [ '../build/java_apk.gypi', ],
118     },
119     {
120       # GN: N/A
121       # chrome_shell_apk creates a .jar as a side effect. Any java targets
122       # that need that .jar in their classpath should depend on this target,
123       # chrome_shell_apk_java. Dependents of chrome_shell_apk receive its
124       # jar path in the variable 'apk_output_jar_path'.
125       # This target should only be used by targets which instrument
126       # chrome_shell_apk.
127       'target_name': 'chrome_shell_apk_java',
128       'type': 'none',
129       'dependencies': [
130         'chrome_shell_apk',
131       ],
132       'includes': [ '../build/apk_fake_jar.gypi' ],
133     },
134     {
135       'target_name': 'chrome_shell_paks',
136       'type': 'none',
137       'dependencies': [
138         '<(DEPTH)/chrome/chrome_resources.gyp:packed_resources',
139         '<(DEPTH)/chrome/chrome_resources.gyp:packed_extra_resources',
140       ],
141       'copies': [
142         {
143           'destination': '<(chrome_android_pak_output_folder)',
144           'files': [
145             '<@(chrome_android_pak_input_resources)',
146           ],
147         }
148       ],
149     },
150     {
151       # GN: //chrome/android:chrome_sync_shell_apk
152       'target_name': 'chrome_sync_shell_apk',
153       'type': 'none',
154       'dependencies': [
155         'chrome_java',
156         'chrome_shell_paks',
157         'libchromesyncshell',
158         '../media/media.gyp:media_java',
159         '../sync/sync.gyp:sync_java_test_support',
160       ],
161       'variables': {
162         'apk_name': 'ChromeSyncShell',
163         'android_manifest_path': 'android/sync_shell/java/AndroidManifest.xml',
164         'R_package': 'org.chromium.chrome.shell',
165         'native_lib_version_name': '<(version_full)',
166         'java_in_dir': 'android/shell/java',
167         'resource_dir': 'android/shell/res',
168         'asset_location': '<(PRODUCT_DIR)/../assets/<(package_name)',
169         'native_lib_target': 'libchromesyncshell',
170         'additional_input_paths': [
171           '<@(chrome_android_pak_output_resources)',
172         ],
173       },
174       'includes': [ '../build/java_apk.gypi', ],
175     },
176     {
177       # GN: N/A
178       # chrome_sync_shell_apk creates a .jar as a side effect. Any java
179       # targets that need that .jar in their classpath should depend on this
180       # target. Dependents of chrome_sync_shell_apk receive its jar path in the
181       # variable 'apk_output_jar_path'. This target should only be used by
182       # targets which instrument chrome_sync_shell_apk.
183       'target_name': 'chrome_sync_shell_apk_java',
184       'type': 'none',
185       'dependencies': [
186         'chrome_sync_shell_apk',
187       ],
188       'includes': [ '../build/apk_fake_jar.gypi' ],
189     },
190   ],