blob: dccb0740a542484b92bf281f3a505c242b061f6e [file] [log] [blame]
[email protected]81f30ce2012-01-18 22:10:331# Copyright (c) 2012 The Chromium Authors. All rights reserved.
[email protected]5629e0c2011-09-12 22:07:362# Use of this source code is governed by a BSD-style license that can be
3# found in the LICENSE file.
4
5{
[email protected]85ff16042012-03-06 23:46:346 'variables': {
7 'content_shell_product_name': 'Content Shell',
[email protected]6d302912012-11-05 21:57:288 # The "19" is so that sites that sniff for version think that this is
9 # something reasonably current; the "77.34.5" is a hint that this isn't a
10 # standard Chrome.
11 'content_shell_version': '19.77.34.5',
[email protected]929246a2013-02-28 13:55:2012 'conditions': [
[email protected]bf6b6442013-03-07 09:18:2413 ['OS=="linux"', {
[email protected]929246a2013-02-28 13:55:2014 'use_custom_freetype%': 1,
15 }, {
16 'use_custom_freetype%': 0,
17 }],
18 ],
[email protected]85ff16042012-03-06 23:46:3419 },
[email protected]5629e0c2011-09-12 22:07:3620 'targets': [
21 {
[email protected]6b9028ab2014-07-23 17:15:3822 # GN version: //content/shell:content_shell_lib
[email protected]c1f87b22011-10-05 21:59:3323 'target_name': 'content_shell_lib',
24 'type': 'static_library',
[email protected]6d302912012-11-05 21:57:2825 'defines': ['CONTENT_SHELL_VERSION="<(content_shell_version)"'],
[email protected]9fbd3f862011-09-20 23:31:3426 'variables': {
27 'chromium_code': 1,
28 },
[email protected]5629e0c2011-09-12 22:07:3629 'dependencies': [
[email protected]a9ca8d52014-08-22 10:21:0830 'app/resources/content_resources.gyp:content_resources',
[email protected]6586a2e32014-08-09 19:24:1231 'app/strings/content_strings.gyp:content_strings',
[email protected]ba42b1e2013-10-19 22:13:1732 'content.gyp:content_app_both',
33 'content.gyp:content_browser',
34 'content.gyp:content_common',
35 'content.gyp:content_gpu',
36 'content.gyp:content_plugin',
37 'content.gyp:content_ppapi_plugin',
38 'content.gyp:content_renderer',
thestigbce02672014-08-26 10:01:3439 'content.gyp:content_resources',
[email protected]ba42b1e2013-10-19 22:13:1740 'content.gyp:content_utility',
[email protected]de28fed2e2014-02-01 14:36:3241 'content_shell_resources',
mostynb6a65ae6e2015-09-28 13:50:0042 'content_test_mojo_bindings',
[email protected]de28fed2e2014-02-01 14:36:3243 'copy_test_netscape_plugin',
[email protected]5326cd2f2014-04-07 13:35:5844 'layouttest_support_content',
[email protected]aa6e79762011-09-29 20:53:5245 '../base/base.gyp:base',
[email protected]5326cd2f2014-04-07 13:35:5846 '../base/base.gyp:base_static',
[email protected]aa6e79762011-09-29 20:53:5247 '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations',
[email protected]38564622014-08-19 02:47:1848 '../cc/blink/cc_blink.gyp:cc_blink',
[email protected]5326cd2f2014-04-07 13:35:5849 '../cc/cc.gyp:cc',
markd413b2d2015-03-13 07:45:4050 '../components/components.gyp:crash_component_breakpad_mac_to_be_deleted',
dgozmanf7200152015-04-22 17:48:2151 '../components/components.gyp:devtools_discovery',
dgozman102fee92015-04-20 15:45:4652 '../components/components.gyp:devtools_http_handler',
hanxi149b92d2014-09-11 21:57:1853 '../components/components.gyp:web_cache_renderer',
chrishtr8a377e62015-06-01 19:20:0854 '../components/components.gyp:plugins_renderer',
jochen73e711c2015-06-03 10:01:4655 '../components/test_runner/test_runner.gyp:test_runner',
rsleevi24f64dc22015-08-07 21:39:2156 '../components/url_formatter/url_formatter.gyp:url_formatter',
scheib87f45892015-01-20 19:19:4457 '../device/bluetooth/bluetooth.gyp:device_bluetooth',
ortunofd24faa2015-05-20 16:34:3758 '../device/bluetooth/bluetooth.gyp:device_bluetooth_mocks',
[email protected]41fba0e2014-01-16 18:19:4259 '../gin/gin.gyp:gin',
[email protected]5326cd2f2014-04-07 13:35:5860 '../gpu/gpu.gyp:gpu',
[email protected]aa6e79762011-09-29 20:53:5261 '../ipc/ipc.gyp:ipc',
acolwell9e0840d2014-09-06 19:01:3262 '../media/blink/media_blink.gyp:media_blink',
[email protected]433df472012-03-07 20:33:3963 '../media/media.gyp:media',
[email protected]aa6e79762011-09-29 20:53:5264 '../net/net.gyp:net',
[email protected]24f80692012-08-13 15:15:5065 '../net/net.gyp:net_resources',
[email protected]5629e0c2011-09-12 22:07:3666 '../skia/skia.gyp:skia',
pilgrim4af8c212014-09-05 17:30:1567 '../storage/storage_browser.gyp:storage',
[email protected]3de922f2013-12-20 13:27:3868 '../third_party/WebKit/public/blink.gyp:blink',
[email protected]95f8a142014-04-24 00:23:5869 '../third_party/WebKit/public/blink.gyp:blink_test_support',
ortunofd24faa2015-05-20 16:34:3770 '../testing/gmock.gyp:gmock',
71 '../testing/gtest.gyp:gtest',
spang1c36fac2015-02-05 19:55:1272 '../ui/base/ime/ui_base_ime.gyp:ui_base_ime',
[email protected]ed8fd9152014-03-13 10:20:3773 '../ui/base/ui_base.gyp:ui_base',
[email protected]114efae2013-11-06 20:37:5774 '../ui/events/events.gyp:events_base',
[email protected]529a3cf2013-09-30 02:47:4875 '../ui/gfx/gfx.gyp:gfx',
[email protected]b5e2d782013-12-18 21:01:1576 '../ui/gfx/gfx.gyp:gfx_geometry',
[email protected]ffff5b32014-06-25 21:31:0877 '../ui/gfx/ipc/gfx_ipc.gyp:gfx_ipc',
[email protected]8350f16f2012-11-30 00:25:3278 '../ui/gl/gl.gyp:gl',
[email protected]002cc08f2013-06-03 05:40:2979 '../url/url.gyp:url_lib',
[email protected]12bc28fcb2011-09-21 15:53:5080 '../v8/tools/gyp/v8.gyp:v8',
[email protected]5629e0c2011-09-12 22:07:3681 ],
82 'include_dirs': [
83 '..',
84 ],
85 'sources': [
[email protected]6b9028ab2014-07-23 17:15:3886 # Note: sources list duplicated in GN build.
[email protected]4d4eb5b2013-01-29 21:55:5587 'shell/android/shell_jni_registrar.cc',
88 'shell/android/shell_jni_registrar.h',
89 'shell/android/shell_manager.cc',
90 'shell/android/shell_manager.h',
tfarina4d06f572014-10-17 03:36:4891 'shell/app/blink_test_platform_support.h',
92 'shell/app/blink_test_platform_support_android.cc',
93 'shell/app/blink_test_platform_support_linux.cc',
94 'shell/app/blink_test_platform_support_mac.mm',
95 'shell/app/blink_test_platform_support_win.cc',
[email protected]2a94e812013-07-12 15:31:0296 'shell/app/paths_mac.h',
97 'shell/app/paths_mac.mm',
rseseka0a7a042014-09-18 23:59:2098 'shell/app/shell_crash_reporter_client.cc',
99 'shell/app/shell_crash_reporter_client.h',
[email protected]993951d2013-05-08 21:37:02100 'shell/app/shell_main_delegate.cc',
101 'shell/app/shell_main_delegate.h',
[email protected]2a94e812013-07-12 15:31:02102 'shell/app/shell_main_delegate_mac.h',
103 'shell/app/shell_main_delegate_mac.mm',
tfarinacde91252015-05-06 16:10:49104 'shell/browser/blink_test_controller.cc',
105 'shell/browser/blink_test_controller.h',
[email protected]9cd36bfb2014-08-20 00:32:00106 'shell/browser/ipc_echo_message_filter.cc',
107 'shell/browser/ipc_echo_message_filter.h',
mkwstd6805d0d2014-10-16 14:44:37108 'shell/browser/layout_test/layout_test_android.cc',
109 'shell/browser/layout_test/layout_test_android.h',
ortunofd24faa2015-05-20 16:34:37110 'shell/browser/layout_test/layout_test_bluetooth_adapter_provider.cc',
111 'shell/browser/layout_test/layout_test_bluetooth_adapter_provider.h',
jyasskin8057c002015-09-10 19:09:53112 'shell/browser/layout_test/layout_test_bluetooth_chooser_factory.cc',
113 'shell/browser/layout_test/layout_test_bluetooth_chooser_factory.h',
mkwstd993d06a2014-10-10 11:44:38114 'shell/browser/layout_test/layout_test_browser_context.cc',
115 'shell/browser/layout_test/layout_test_browser_context.h',
mkwst88e23182014-10-16 12:08:58116 'shell/browser/layout_test/layout_test_browser_main.cc',
117 'shell/browser/layout_test/layout_test_browser_main.h',
mkwst36b11b6f2014-10-15 16:18:56118 'shell/browser/layout_test/layout_test_browser_main_parts.cc',
119 'shell/browser/layout_test/layout_test_browser_main_parts.h',
petercd7abb42014-10-17 13:34:01120 'shell/browser/layout_test/layout_test_content_browser_client.cc',
121 'shell/browser/layout_test/layout_test_content_browser_client.h',
mkwst30d20d52014-10-09 13:33:14122 'shell/browser/layout_test/layout_test_devtools_frontend.cc',
123 'shell/browser/layout_test/layout_test_devtools_frontend.h',
satorux225d7ed2015-02-13 02:23:35124 'shell/browser/layout_test/layout_test_download_manager_delegate.cc',
125 'shell/browser/layout_test/layout_test_download_manager_delegate.h',
mkwst6efe7f2e62014-10-08 15:09:01126 'shell/browser/layout_test/layout_test_javascript_dialog_manager.cc',
127 'shell/browser/layout_test/layout_test_javascript_dialog_manager.h',
Peter Beverlooe8f2f9d2014-10-20 16:47:49128 'shell/browser/layout_test/layout_test_message_filter.cc',
129 'shell/browser/layout_test/layout_test_message_filter.h',
mekc9182202015-03-03 17:56:07130 'shell/browser/layout_test/layout_test_navigator_connect_service_factory.cc',
131 'shell/browser/layout_test/layout_test_navigator_connect_service_factory.h',
petercd7abb42014-10-17 13:34:01132 'shell/browser/layout_test/layout_test_notification_manager.cc',
133 'shell/browser/layout_test/layout_test_notification_manager.h',
mlamouri4e372022015-03-29 14:51:06134 'shell/browser/layout_test/layout_test_permission_manager.cc',
tfarina8e08285f2015-05-02 03:17:39135 'shell/browser/layout_test/layout_test_permission_manager.h',
mvanouwerkerkde895c9c2014-12-06 12:17:32136 'shell/browser/layout_test/layout_test_push_messaging_service.cc',
137 'shell/browser/layout_test/layout_test_push_messaging_service.h',
mkwst002d02902014-10-09 10:17:00138 'shell/browser/layout_test/layout_test_resource_dispatcher_host_delegate.cc',
139 'shell/browser/layout_test/layout_test_resource_dispatcher_host_delegate.h',
mkwst94388f792014-10-16 07:36:52140 'shell/browser/layout_test/layout_test_url_request_context_getter.cc',
141 'shell/browser/layout_test/layout_test_url_request_context_getter.h',
[email protected]de7d61ff2013-08-20 11:30:41142 'shell/browser/notify_done_forwarder.cc',
143 'shell/browser/notify_done_forwarder.h',
peter11d5f562014-10-23 23:12:25144 'shell/browser/shell.cc',
145 'shell/browser/shell.h',
146 'shell/browser/shell_access_token_store.cc',
147 'shell/browser/shell_access_token_store.h',
[email protected]de7d61ff2013-08-20 11:30:41148 'shell/browser/shell_android.cc',
149 'shell/browser/shell_application_mac.h',
150 'shell/browser/shell_application_mac.mm',
151 'shell/browser/shell_aura.cc',
152 'shell/browser/shell_browser_context.cc',
153 'shell/browser/shell_browser_context.h',
154 'shell/browser/shell_browser_main.cc',
155 'shell/browser/shell_browser_main.h',
156 'shell/browser/shell_browser_main_parts.cc',
157 'shell/browser/shell_browser_main_parts.h',
158 'shell/browser/shell_browser_main_parts_mac.mm',
[email protected]de7d61ff2013-08-20 11:30:41159 'shell/browser/shell_content_browser_client.cc',
160 'shell/browser/shell_content_browser_client.h',
[email protected]de7d61ff2013-08-20 11:30:41161 'shell/browser/shell_devtools_frontend.cc',
162 'shell/browser/shell_devtools_frontend.h',
satorux225d7ed2015-02-13 02:23:35163 'shell/browser/shell_devtools_manager_delegate.cc',
164 'shell/browser/shell_devtools_manager_delegate.h',
[email protected]de7d61ff2013-08-20 11:30:41165 'shell/browser/shell_download_manager_delegate.cc',
166 'shell/browser/shell_download_manager_delegate.h',
[email protected]de7d61ff2013-08-20 11:30:41167 'shell/browser/shell_javascript_dialog.h',
168 'shell/browser/shell_javascript_dialog_mac.mm',
169 'shell/browser/shell_javascript_dialog_manager.cc',
170 'shell/browser/shell_javascript_dialog_manager.h',
171 'shell/browser/shell_javascript_dialog_win.cc',
[email protected]de7d61ff2013-08-20 11:30:41172 'shell/browser/shell_login_dialog.cc',
[email protected]de7d61ff2013-08-20 11:30:41173 'shell/browser/shell_login_dialog.h',
174 'shell/browser/shell_login_dialog_mac.mm',
175 'shell/browser/shell_mac.mm',
satorux225d7ed2015-02-13 02:23:35176 'shell/browser/shell_mojo_test_utils_android.cc',
177 'shell/browser/shell_mojo_test_utils_android.h',
[email protected]de7d61ff2013-08-20 11:30:41178 'shell/browser/shell_net_log.cc',
179 'shell/browser/shell_net_log.h',
180 'shell/browser/shell_network_delegate.cc',
181 'shell/browser/shell_network_delegate.h',
mlamouri4e372022015-03-29 14:51:06182 'shell/browser/shell_permission_manager.cc',
183 'shell/browser/shell_permission_manager.h',
[email protected]a6591142014-01-27 19:32:26184 'shell/browser/shell_platform_data_aura.cc',
185 'shell/browser/shell_platform_data_aura.h',
[email protected]de7d61ff2013-08-20 11:30:41186 'shell/browser/shell_plugin_service_filter.cc',
187 'shell/browser/shell_plugin_service_filter.h',
188 'shell/browser/shell_quota_permission_context.cc',
189 'shell/browser/shell_quota_permission_context.h',
190 'shell/browser/shell_resource_dispatcher_host_delegate.cc',
191 'shell/browser/shell_resource_dispatcher_host_delegate.h',
[email protected]9896c552013-08-29 19:03:20192 'shell/browser/shell_speech_recognition_manager_delegate.cc',
193 'shell/browser/shell_speech_recognition_manager_delegate.h',
[email protected]de7d61ff2013-08-20 11:30:41194 'shell/browser/shell_url_request_context_getter.cc',
195 'shell/browser/shell_url_request_context_getter.h',
[email protected]a896e1e2013-10-20 19:10:30196 'shell/browser/shell_views.cc',
satorux225d7ed2015-02-13 02:23:35197 'shell/browser/shell_web_contents_view_delegate.h',
[email protected]de7d61ff2013-08-20 11:30:41198 'shell/browser/shell_web_contents_view_delegate_android.cc',
199 'shell/browser/shell_web_contents_view_delegate_creator.h',
[email protected]de7d61ff2013-08-20 11:30:41200 'shell/browser/shell_web_contents_view_delegate_mac.mm',
201 'shell/browser/shell_web_contents_view_delegate_win.cc',
petere04203592014-10-27 17:57:35202 'shell/common/layout_test/layout_test_messages.cc',
203 'shell/common/layout_test/layout_test_messages.h',
[email protected]4562cf72014-01-27 10:10:13204 'shell/common/leak_detection_result.h',
[email protected]b7c504c2013-05-07 14:42:12205 'shell/common/shell_content_client.cc',
206 'shell/common/shell_content_client.h',
207 'shell/common/shell_messages.cc',
208 'shell/common/shell_messages.h',
209 'shell/common/shell_switches.cc',
210 'shell/common/shell_switches.h',
211 'shell/common/shell_test_configuration.cc',
212 'shell/common/shell_test_configuration.h',
jochen284435c2014-10-02 13:08:23213 'shell/common/v8_breakpad_support_win.cc',
214 'shell/common/v8_breakpad_support_win.h',
[email protected]9cd36bfb2014-08-20 00:32:00215 'shell/renderer/ipc_echo.cc',
216 'shell/renderer/ipc_echo.h',
tfarina685c39802015-05-04 22:11:22217 'shell/renderer/layout_test/blink_test_helpers.cc',
218 'shell/renderer/layout_test/blink_test_helpers.h',
tfarina8e08285f2015-05-02 03:17:39219 'shell/renderer/layout_test/blink_test_runner.cc',
220 'shell/renderer/layout_test/blink_test_runner.h',
mkwst04b72d12014-10-08 15:52:55221 'shell/renderer/layout_test/gc_controller.cc',
222 'shell/renderer/layout_test/gc_controller.h',
mkwst02ec0d62014-10-07 22:07:29223 'shell/renderer/layout_test/layout_test_content_renderer_client.cc',
224 'shell/renderer/layout_test/layout_test_content_renderer_client.h',
mkwst3e72c1f2014-10-08 05:02:36225 'shell/renderer/layout_test/layout_test_render_frame_observer.cc',
226 'shell/renderer/layout_test/layout_test_render_frame_observer.h',
mkwst99069fc2014-10-08 06:13:28227 'shell/renderer/layout_test/layout_test_render_process_observer.cc',
228 'shell/renderer/layout_test/layout_test_render_process_observer.h',
mkwst04b72d12014-10-08 15:52:55229 'shell/renderer/layout_test/leak_detector.cc',
230 'shell/renderer/layout_test/leak_detector.h',
jochen51265132015-05-28 07:33:45231 'shell/renderer/layout_test/test_media_stream_renderer_factory.cc',
232 'shell/renderer/layout_test/test_media_stream_renderer_factory.h',
233 'shell/renderer/layout_test/test_video_frame_provider.cc',
234 'shell/renderer/layout_test/test_video_frame_provider.h',
[email protected]f7a4e3b92013-05-03 15:29:58235 'shell/renderer/shell_content_renderer_client.cc',
236 'shell/renderer/shell_content_renderer_client.h',
[email protected]81914ad2013-07-02 18:54:25237 'shell/renderer/shell_render_view_observer.cc',
238 'shell/renderer/shell_render_view_observer.h',
rockotb814a582015-06-05 00:30:52239 'shell/utility/shell_content_utility_client.cc',
240 'shell/utility/shell_content_utility_client.h',
[email protected]5629e0c2011-09-12 22:07:36241 ],
242 'msvs_settings': {
243 'VCLinkerTool': {
244 'SubSystem': '2', # Set /SUBSYSTEM:WINDOWS
245 },
246 },
247 'conditions': [
248 ['OS=="win" and win_use_allocator_shim==1', {
249 'dependencies': [
250 '../base/allocator/allocator.gyp:allocator',
251 ],
252 }],
[email protected]9fbd3f862011-09-20 23:31:34253 ['OS=="win"', {
254 'resource_include_dirs': [
[email protected]6586a2e32014-08-09 19:24:12255 '<(SHARED_INTERMEDIATE_DIR)/content/app/strings',
[email protected]9fbd3f862011-09-20 23:31:34256 ],
[email protected]9fbd3f862011-09-20 23:31:34257 'dependencies': [
[email protected]6586a2e32014-08-09 19:24:12258 '<(DEPTH)/content/app/strings/content_strings.gyp:content_strings',
[email protected]9fbd3f862011-09-20 23:31:34259 ],
260 'configurations': {
261 'Debug_Base': {
262 'msvs_settings': {
263 'VCLinkerTool': {
264 'LinkIncremental': '<(msvs_large_module_debug_link_mode)',
265 },
266 },
267 },
268 },
[email protected]3bed5302013-02-15 19:31:41269 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
270 'msvs_disabled_warnings': [ 4267, ],
[email protected]85ff16042012-03-06 23:46:34271 }], # OS=="win"
[email protected]6eb6bb62012-11-10 06:30:59272 ['OS=="linux"', {
273 'dependencies': [
274 '../build/linux/system.gyp:fontconfig',
275 ],
276 }],
[email protected]6b911a32014-01-10 02:34:53277 ['use_x11 == 1', {
278 'dependencies': [
dnicoara78a734702014-11-04 19:54:38279 '../ui/events/devices/events_devices.gyp:events_devices',
[email protected]6b911a32014-01-10 02:34:53280 '../tools/xdisplaycheck/xdisplaycheck.gyp:xdisplaycheck',
281 ],
282 }],
[email protected]689266d2012-08-07 12:52:20283 ['OS=="android"', {
[email protected]82e9e2b12012-07-19 00:32:01284 'dependencies': [
ppif581fe92014-10-08 18:52:19285 '../mojo/mojo_base.gyp:libmojo_system_java',
[email protected]82e9e2b12012-07-19 00:32:01286 'content_shell_jni_headers',
287 ],
[email protected]6b911a32014-01-10 02:34:53288 'dependencies!': [
[email protected]de28fed2e2014-02-01 14:36:32289 'copy_test_netscape_plugin',
[email protected]6b911a32014-01-10 02:34:53290 ],
[email protected]82e9e2b12012-07-19 00:32:01291 }], # OS=="android"
torne1b1c9782015-03-30 20:49:00292 ['os_posix == 1 and OS != "mac"', {
[email protected]a7aa8ab2013-10-24 07:21:48293 'dependencies': [
294 '../components/components.gyp:breakpad_host',
295 ],
296 }],
[email protected]2fa89ef2014-05-07 18:45:59297 ['(OS=="linux" or OS=="android") and use_allocator!="none"', {
[email protected]c767d572012-07-27 10:55:58298 'dependencies': [
299 # This is needed by content/app/content_main_runner.cc
300 '../base/allocator/allocator.gyp:allocator',
301 ],
302 }],
[email protected]fa4a45832012-04-12 21:32:48303 ['use_aura==1', {
[email protected]c767d572012-07-27 10:55:58304 'dependencies': [
305 '../ui/aura/aura.gyp:aura',
[email protected]72fed232014-04-07 20:21:46306 '../ui/aura/aura.gyp:aura_test_support',
[email protected]72fed232014-04-07 20:21:46307 '../ui/events/events.gyp:events',
[email protected]e3d74862014-05-18 14:12:27308 '../ui/strings/ui_strings.gyp:ui_strings',
[email protected]884dac5b2014-04-30 15:10:10309 '../ui/wm/wm.gyp:wm',
[email protected]c767d572012-07-27 10:55:58310 ],
[email protected]a896e1e2013-10-20 19:10:30311 'conditions': [
312 ['toolkit_views==1', {
313 'dependencies': [
[email protected]dae78442013-11-26 16:57:02314 '../ui/resources/ui_resources.gyp:ui_resources',
[email protected]a896e1e2013-10-20 19:10:30315 '../ui/views/controls/webview/webview.gyp:webview',
316 '../ui/views/views.gyp:views',
317 '../ui/views/views.gyp:views_test_support',
[email protected]a896e1e2013-10-20 19:10:30318 ],
319 'sources/': [
320 ['exclude', 'shell/browser/shell_aura.cc'],
321 ],
322 }, {
323 'sources/': [
324 ['exclude', 'shell/browser/shell_views.cc'],
325 ],
326 }],
327 ],
328 }, {
329 'sources/': [
330 ['exclude', 'shell/browser/shell_aura.cc'],
331 ['exclude', 'shell/browser/shell_views.cc'],
332 ],
[email protected]96b80b472012-07-03 19:41:56333 }], # use_aura==1
[email protected]6b911a32014-01-10 02:34:53334 # The test plugin relies on X11.
335 ['OS=="linux" and use_x11==0', {
336 'dependencies!': [
[email protected]de28fed2e2014-02-01 14:36:32337 'copy_test_netscape_plugin',
[email protected]6b911a32014-01-10 02:34:53338 ],
339 }],
[email protected]c767d572012-07-27 10:55:58340 ['chromeos==1', {
341 'dependencies': [
342 '../chromeos/chromeos.gyp:chromeos',
[email protected]de6831b2013-11-16 01:04:30343 '../ui/wm/wm.gyp:wm_test_support',
[email protected]c767d572012-07-27 10:55:58344 ],
345 }], # chromeos==1
[email protected]929246a2013-02-28 13:55:20346 ['use_custom_freetype==1', {
347 'dependencies': [
348 '../third_party/freetype2/freetype2.gyp:freetype2',
349 ],
350 }],
[email protected]dfb9360192013-05-27 09:42:34351 ['enable_plugins==0', {
[email protected]6b9028ab2014-07-23 17:15:38352 'sources!': [
353 'shell/browser/shell_plugin_service_filter.cc',
354 'shell/browser/shell_plugin_service_filter.h',
[email protected]dfb9360192013-05-27 09:42:34355 ],
356 }]
[email protected]5629e0c2011-09-12 22:07:36357 ],
358 },
[email protected]c1f87b22011-10-05 21:59:33359 {
[email protected]6b9028ab2014-07-23 17:15:38360 # GN version: //content/shell:resources
[email protected]ee75b8992012-01-27 07:53:57361 'target_name': 'content_shell_resources',
362 'type': 'none',
[email protected]b581eb402012-03-09 01:31:46363 'variables': {
364 'grit_out_dir': '<(SHARED_INTERMEDIATE_DIR)/content',
365 },
jochen73e711c2015-06-03 10:01:46366 'dependencies': [
367 '../components/test_runner/test_runner.gyp:resources',
368 ],
[email protected]5c94e992014-05-11 14:22:06369 'actions': [
370 {
371 'action_name': 'generate_content_shell_resources',
372 'variables': {
373 'grit_grd_file': 'shell/shell_resources.grd',
374 },
375 'includes': [ '../build/grit_action.gypi' ],
376 },
377 ],
[email protected]b581eb402012-03-09 01:31:46378 'includes': [ '../build/grit_target.gypi' ],
379 'copies': [
380 {
381 'destination': '<(PRODUCT_DIR)',
382 'files': [
383 '<(SHARED_INTERMEDIATE_DIR)/content/shell_resources.pak'
384 ],
385 },
386 ],
[email protected]4cb792f42012-03-24 03:12:42387 },
388 {
[email protected]81f30ce2012-01-18 22:10:33389 # We build a minimal set of resources so WebKit in content_shell has
390 # access to necessary resources.
[email protected]6b9028ab2014-07-23 17:15:38391 # GN version: //content/shell:pak
[email protected]81f30ce2012-01-18 22:10:33392 'target_name': 'content_shell_pak',
393 'type': 'none',
[email protected]ee75b8992012-01-27 07:53:57394 'dependencies': [
[email protected]a9ca8d52014-08-22 10:21:08395 'app/resources/content_resources.gyp:content_resources',
[email protected]6586a2e32014-08-09 19:24:12396 'app/strings/content_strings.gyp:content_strings',
[email protected]6b9028ab2014-07-23 17:15:38397 'browser/tracing/tracing_resources.gyp:tracing_resources',
thestigbce02672014-08-26 10:01:34398 'content.gyp:content_resources',
[email protected]ee75b8992012-01-27 07:53:57399 'content_shell_resources',
[email protected]06c54162013-06-10 00:25:05400 '<(DEPTH)/net/net.gyp:net_resources',
[email protected]1400d1d2014-07-25 07:49:59401 '<(DEPTH)/third_party/WebKit/public/blink_resources.gyp:blink_resources',
[email protected]1c0c3f42013-11-20 02:03:28402 '<(DEPTH)/ui/resources/ui_resources.gyp:ui_resources',
[email protected]e3d74862014-05-18 14:12:27403 '<(DEPTH)/ui/strings/ui_strings.gyp:ui_strings',
[email protected]ee75b8992012-01-27 07:53:57404 ],
[email protected]3df230d2013-07-03 00:44:57405 'conditions': [
[email protected]8dffd2c2013-12-02 14:14:38406 ['OS!="android"', {
407 'dependencies': [
408 'browser/devtools/devtools_resources.gyp:devtools_resources',
409 ],
410 }],
vivek.vge136a8652014-09-05 10:51:28411 ['OS=="android"', {
412 'copies': [
413 {
414 'destination': '<(PRODUCT_DIR)',
415 'files': [
416 '<(PRODUCT_DIR)/content_shell/assets/content_shell.pak'
417 ],
418 },
419 ],
420 }],
sadrul7bd20c92015-06-24 16:45:44421 ['toolkit_views==1', {
422 'dependencies': [
423 '<(DEPTH)/ui/views/resources/views_resources.gyp:views_resources'
424 ],
425 }],
[email protected]3df230d2013-07-03 00:44:57426 ],
[email protected]81f30ce2012-01-18 22:10:33427 'actions': [
428 {
429 'action_name': 'repack_content_shell_pack',
430 'variables': {
431 'pak_inputs': [
erga3c614c92015-04-03 17:47:51432 '<(SHARED_INTERMEDIATE_DIR)/blink/public/resources/blink_resources.pak',
433 '<(SHARED_INTERMEDIATE_DIR)/blink/public/resources/blink_image_resources_100_percent.pak',
[email protected]a9ca8d52014-08-22 10:21:08434 '<(SHARED_INTERMEDIATE_DIR)/content/app/resources/content_resources_100_percent.pak',
[email protected]6586a2e32014-08-09 19:24:12435 '<(SHARED_INTERMEDIATE_DIR)/content/app/strings/content_strings_en-US.pak',
[email protected]479bea22013-07-02 21:46:06436 '<(SHARED_INTERMEDIATE_DIR)/content/browser/tracing/tracing_resources.pak',
[email protected]1400d1d2014-07-25 07:49:59437 '<(SHARED_INTERMEDIATE_DIR)/content/content_resources.pak',
[email protected]ee75b8992012-01-27 07:53:57438 '<(SHARED_INTERMEDIATE_DIR)/content/shell_resources.pak',
[email protected]81f30ce2012-01-18 22:10:33439 '<(SHARED_INTERMEDIATE_DIR)/net/net_resources.pak',
[email protected]a3c134352014-07-11 19:23:19440 '<(SHARED_INTERMEDIATE_DIR)/ui/resources/ui_resources_100_percent.pak',
441 '<(SHARED_INTERMEDIATE_DIR)/ui/resources/webui_resources.pak',
[email protected]d2329222014-07-18 07:14:22442 '<(SHARED_INTERMEDIATE_DIR)/ui/strings/app_locale_settings_en-US.pak',
[email protected]a3c134352014-07-11 19:23:19443 '<(SHARED_INTERMEDIATE_DIR)/ui/strings/ui_strings_en-US.pak',
[email protected]81f30ce2012-01-18 22:10:33444 ],
[email protected]01bdc9202014-03-28 21:11:20445 'conditions': [
sadrul7bd20c92015-06-24 16:45:44446 ['toolkit_views==1', {
447 'pak_inputs': [
448 '<(SHARED_INTERMEDIATE_DIR)/ui/views/resources/views_resources_100_percent.pak',
449 ],
450 }],
[email protected]01bdc9202014-03-28 21:11:20451 ['OS!="android"', {
vivek.vg77816a12014-12-18 14:28:20452 'pak_inputs': ['<(SHARED_INTERMEDIATE_DIR)/blink/devtools_resources.pak',],
[email protected]01bdc9202014-03-28 21:11:20453 'pak_output': '<(PRODUCT_DIR)/content_shell.pak',
454 }, {
455 'pak_output': '<(PRODUCT_DIR)/content_shell/assets/content_shell.pak',
456 }],
457 ],
[email protected]81f30ce2012-01-18 22:10:33458 },
[email protected]01bdc9202014-03-28 21:11:20459 'includes': [ '../build/repack_action.gypi' ],
[email protected]81f30ce2012-01-18 22:10:33460 },
461 ],
462 },
463 {
[email protected]6b9028ab2014-07-23 17:15:38464 # GN version: //content/shell:content_shell
[email protected]c1f87b22011-10-05 21:59:33465 'target_name': 'content_shell',
466 'type': 'executable',
[email protected]85ff16042012-03-06 23:46:34467 'mac_bundle': 1,
[email protected]c1f87b22011-10-05 21:59:33468 'variables': {
469 'chromium_code': 1,
470 },
471 'dependencies': [
472 'content_shell_lib',
[email protected]81f30ce2012-01-18 22:10:33473 'content_shell_pak',
[email protected]bb5d2d92012-10-15 07:45:42474 '../third_party/mesa/mesa.gyp:osmesa',
[email protected]331d1692013-07-25 20:40:13475 '../tools/imagediff/image_diff.gyp:image_diff',
[email protected]c1f87b22011-10-05 21:59:33476 ],
477 'include_dirs': [
478 '..',
479 ],
480 'sources': [
[email protected]993951d2013-05-08 21:37:02481 'shell/app/shell_main.cc',
[email protected]c1f87b22011-10-05 21:59:33482 ],
[email protected]85ff16042012-03-06 23:46:34483 'mac_bundle_resources': [
[email protected]993951d2013-05-08 21:37:02484 'shell/app/app.icns',
485 'shell/app/app-Info.plist',
[email protected]85ff16042012-03-06 23:46:34486 ],
487 # TODO(mark): Come up with a fancier way to do this. It should only
488 # be necessary to list app-Info.plist once, not the three times it is
489 # listed here.
490 'mac_bundle_resources!': [
[email protected]993951d2013-05-08 21:37:02491 'shell/app/app-Info.plist',
[email protected]85ff16042012-03-06 23:46:34492 ],
493 'xcode_settings': {
[email protected]993951d2013-05-08 21:37:02494 'INFOPLIST_FILE': 'shell/app/app-Info.plist',
[email protected]85ff16042012-03-06 23:46:34495 },
[email protected]c1f87b22011-10-05 21:59:33496 'msvs_settings': {
[email protected]30624922013-06-04 10:40:10497 'VCManifestTool': {
[email protected]5d60b0b2013-07-30 20:24:30498 'AdditionalManifestFiles': [
499 'shell/app/shell.exe.manifest',
500 ],
[email protected]30624922013-06-04 10:40:10501 },
[email protected]c1f87b22011-10-05 21:59:33502 },
503 'conditions': [
504 ['OS=="win" and win_use_allocator_shim==1', {
505 'dependencies': [
506 '../base/allocator/allocator.gyp:allocator',
507 ],
508 }],
509 ['OS=="win"', {
[email protected]7fc83822012-03-30 19:53:29510 'sources': [
[email protected]993951d2013-05-08 21:37:02511 'shell/app/shell.rc',
[email protected]7fc83822012-03-30 19:53:29512 ],
[email protected]c1f87b22011-10-05 21:59:33513 'configurations': {
514 'Debug_Base': {
515 'msvs_settings': {
516 'VCLinkerTool': {
517 'LinkIncremental': '<(msvs_large_module_debug_link_mode)',
518 },
519 },
520 },
521 },
[email protected]85ff16042012-03-06 23:46:34522 }], # OS=="win"
[email protected]c997bc42014-04-11 18:25:58523 ['OS == "win"', {
[email protected]27315ce42011-10-14 01:25:12524 'dependencies': [
525 '../sandbox/sandbox.gyp:sandbox',
526 ],
[email protected]c997bc42014-04-11 18:25:58527 }], # OS=="win"
[email protected]78539df2014-07-16 22:34:22528 ['OS=="win" and asan==0', {
529 'msvs_settings': {
530 'VCLinkerTool': {
531 'SubSystem': '2', # Set /SUBSYSTEM:WINDOWS
532 },
533 },
534 }], # OS=="win" and asan==0
[email protected]85ff16042012-03-06 23:46:34535 ['OS=="mac"', {
536 'product_name': '<(content_shell_product_name)',
537 'dependencies!': [
538 'content_shell_lib',
539 ],
540 'dependencies': [
541 'content_shell_framework',
[email protected]180df8f2012-03-09 22:36:10542 'content_shell_helper_app',
543 ],
544 'copies': [
545 {
546 'destination': '<(PRODUCT_DIR)/<(content_shell_product_name).app/Contents/Frameworks',
547 'files': [
548 '<(PRODUCT_DIR)/<(content_shell_product_name) Helper.app',
549 ],
550 },
[email protected]85ff16042012-03-06 23:46:34551 ],
552 'postbuilds': [
553 {
554 'postbuild_name': 'Copy <(content_shell_product_name) Framework.framework',
555 'action': [
556 '../build/mac/copy_framework_unversioned.sh',
557 '${BUILT_PRODUCTS_DIR}/<(content_shell_product_name) Framework.framework',
558 '${BUILT_PRODUCTS_DIR}/${CONTENTS_FOLDER_PATH}/Frameworks',
559 ],
560 },
561 {
[email protected]85ff16042012-03-06 23:46:34562 # Modify the Info.plist as needed.
563 'postbuild_name': 'Tweak Info.plist',
564 'action': ['../build/mac/tweak_info_plist.py',
[email protected]6d302912012-11-05 21:57:28565 '--scm=1',
566 '--version=<(content_shell_version)'],
[email protected]85ff16042012-03-06 23:46:34567 },
[email protected]85ff16042012-03-06 23:46:34568 ],
569 }], # OS=="mac"
[email protected]331d1692013-07-25 20:40:13570 ['OS=="android"', {
torne1b1c9782015-03-30 20:49:00571 'dependencies': [
572 '../tools/imagediff/image_diff.gyp:image_diff#host',
573 ],
[email protected]331d1692013-07-25 20:40:13574 'dependencies!': [
575 '../tools/imagediff/image_diff.gyp:image_diff',
576 ],
577 }], # OS=="android"
[email protected]c1f87b22011-10-05 21:59:33578 ],
579 },
[email protected]fe2420d2012-08-21 07:28:33580 {
581 'target_name': 'content_shell_builder',
582 'type': 'none',
583 'dependencies': [
584 'content_shell',
[email protected]fe2420d2012-08-21 07:28:33585 ],
586 },
[email protected]9f3ecf42014-05-07 18:21:06587
[email protected]de28fed2e2014-02-01 14:36:32588 {
589 'target_name': 'test_netscape_plugin',
590 'type': 'loadable_module',
591 'sources': [
592 'shell/tools/plugin/PluginObject.cpp',
593 'shell/tools/plugin/PluginObject.h',
594 'shell/tools/plugin/PluginObjectMac.mm',
595 'shell/tools/plugin/PluginTest.cpp',
596 'shell/tools/plugin/PluginTest.h',
597 'shell/tools/plugin/TestObject.cpp',
[email protected]de28fed2e2014-02-01 14:36:32598 'shell/tools/plugin/Tests/DocumentOpenInDestroyStream.cpp',
599 'shell/tools/plugin/Tests/EvaluateJSAfterRemovingPluginElement.cpp',
600 'shell/tools/plugin/Tests/FormValue.cpp',
601 'shell/tools/plugin/Tests/GetURLNotifyWithURLThatFailsToLoad.cpp',
602 'shell/tools/plugin/Tests/GetURLWithJavaScriptURL.cpp',
603 'shell/tools/plugin/Tests/GetURLWithJavaScriptURLDestroyingPlugin.cpp',
604 'shell/tools/plugin/Tests/GetUserAgentWithNullNPPFromNPPNew.cpp',
605 'shell/tools/plugin/Tests/LeakWindowScriptableObject.cpp',
606 'shell/tools/plugin/Tests/LogNPPSetWindow.cpp',
607 'shell/tools/plugin/Tests/NPDeallocateCalledBeforeNPShutdown.cpp',
608 'shell/tools/plugin/Tests/NPPNewFails.cpp',
609 'shell/tools/plugin/Tests/NPRuntimeCallsWithNullNPP.cpp',
610 'shell/tools/plugin/Tests/NPRuntimeObjectFromDestroyedPlugin.cpp',
611 'shell/tools/plugin/Tests/NPRuntimeRemoveProperty.cpp',
612 'shell/tools/plugin/Tests/NullNPPGetValuePointer.cpp',
613 'shell/tools/plugin/Tests/PassDifferentNPPStruct.cpp',
614 'shell/tools/plugin/Tests/PluginScriptableNPObjectInvokeDefault.cpp',
615 'shell/tools/plugin/Tests/PluginScriptableObjectOverridesAllProperties.cpp',
616 'shell/tools/plugin/main.cpp',
[email protected]0516a592014-02-13 00:10:04617 'shell/tools/plugin/test_object.h',
[email protected]de28fed2e2014-02-01 14:36:32618 ],
619 'include_dirs': [
620 '<(DEPTH)',
621 '<(DEPTH)/content/shell/tools/plugin/',
622 ],
623 'dependencies': [
624 '../base/base.gyp:base',
625 '../third_party/npapi/npapi.gyp:npapi',
626 ],
627 'conditions': [
628 ['OS=="mac"', {
629 'mac_bundle': 1,
630 'product_extension': 'plugin',
631 'link_settings': {
632 'libraries': [
633 '$(SDKROOT)/System/Library/Frameworks/Carbon.framework',
634 '$(SDKROOT)/System/Library/Frameworks/Cocoa.framework',
635 '$(SDKROOT)/System/Library/Frameworks/QuartzCore.framework',
636 ]
637 },
638 'xcode_settings': {
639 'GCC_SYMBOLS_PRIVATE_EXTERN': 'NO',
640 'INFOPLIST_FILE': 'shell/tools/plugin/mac/Info.plist',
641 },
642 }],
643 ['os_posix == 1 and OS != "mac"', {
644 'cflags': [
645 '-fvisibility=default',
646 ],
647 }],
thakis603fc872015-01-19 05:42:29648 ['use_x11 == 1', {
649 'dependencies': [ '../build/linux/system.gyp:x11' ],
650 }],
[email protected]de28fed2e2014-02-01 14:36:32651 ['OS=="win"', {
brucedawson2622e272015-04-08 00:13:54652 'conditions': [
653 ['MSVS_VERSION < "2015"', {
654 'defines': [
655 # This seems like a hack, but this is what Safari Win does.
656 # Luckily it is no longer needed/allowed with VS 2015.
657 'snprintf=_snprintf',
658 ],
659 }],
[email protected]de28fed2e2014-02-01 14:36:32660 ],
661 'sources': [
662 'shell/tools/plugin/win/TestNetscapePlugin.def',
663 'shell/tools/plugin/win/TestNetscapePlugin.rc',
664 ],
665 # The .rc file requires that the name of the dll is np_test_netscape_plugin.dll.
666 'product_name': 'np_test_netscape_plugin',
667 # Disable c4267 warnings until we fix size_t to int truncations.
668 'msvs_disabled_warnings': [ 4267, ],
669 }],
670 ],
671 },
672 {
673 'target_name': 'copy_test_netscape_plugin',
674 'type': 'none',
675 'dependencies': [
676 'test_netscape_plugin',
677 ],
678 'conditions': [
679 ['OS=="win"', {
680 'copies': [{
681 'destination': '<(PRODUCT_DIR)/plugins',
682 'files': ['<(PRODUCT_DIR)/np_test_netscape_plugin.dll'],
683 }],
684 }],
685 ['OS=="mac"', {
686 'copies': [{
687 'destination': '<(PRODUCT_DIR)/plugins/',
688 'files': ['<(PRODUCT_DIR)/test_netscape_plugin.plugin/'],
689 }],
690 }],
691 ['os_posix == 1 and OS != "mac"', {
692 'copies': [{
693 'destination': '<(PRODUCT_DIR)/plugins',
694 'files': ['<(PRODUCT_DIR)/libtest_netscape_plugin.so'],
695 }],
696 }],
697 ],
698 }
[email protected]5629e0c2011-09-12 22:07:36699 ],
[email protected]85ff16042012-03-06 23:46:34700 'conditions': [
701 ['OS=="mac"', {
702 'targets': [
703 {
704 'target_name': 'content_shell_framework',
705 'type': 'shared_library',
706 'product_name': '<(content_shell_product_name) Framework',
707 'mac_bundle': 1,
708 'mac_bundle_resources': [
[email protected]993951d2013-05-08 21:37:02709 'shell/app/English.lproj/HttpAuth.xib',
710 'shell/app/English.lproj/MainMenu.xib',
[email protected]a7aa8ab2013-10-24 07:21:48711 '<(PRODUCT_DIR)/content_shell.pak',
712 'shell/app/framework-Info.plist',
[email protected]85ff16042012-03-06 23:46:34713 ],
[email protected]a7aa8ab2013-10-24 07:21:48714 'mac_bundle_resources!': [
715 'shell/app/framework-Info.plist',
716 ],
717 'xcode_settings': {
[email protected]6efed472013-11-01 02:09:34718 # The framework is placed within the .app's Framework
719 # directory. DYLIB_INSTALL_NAME_BASE and
720 # LD_DYLIB_INSTALL_NAME affect -install_name.
721 'DYLIB_INSTALL_NAME_BASE':
722 '@executable_path/../Frameworks',
723 # See /build/mac/copy_framework_unversioned.sh for
724 # information on LD_DYLIB_INSTALL_NAME.
725 'LD_DYLIB_INSTALL_NAME':
726 '$(DYLIB_INSTALL_NAME_BASE:standardizepath)/$(WRAPPER_NAME)/$(PRODUCT_NAME)',
727
[email protected]a7aa8ab2013-10-24 07:21:48728 'INFOPLIST_FILE': 'shell/app/framework-Info.plist',
729 },
[email protected]85ff16042012-03-06 23:46:34730 'dependencies': [
731 'content_shell_lib',
732 ],
733 'include_dirs': [
734 '..',
735 ],
736 'sources': [
[email protected]4642f5b2013-07-03 21:43:31737 'shell/app/shell_content_main.cc',
[email protected]216161f2013-07-02 16:23:20738 'shell/app/shell_content_main.h',
[email protected]85ff16042012-03-06 23:46:34739 ],
[email protected]30c246bc2014-01-28 06:00:04740 'postbuilds': [
741 {
742 # Modify the Info.plist as needed. The script explains why
743 # this is needed. This is also done in the chrome target.
744 # The framework needs the Breakpad keys if this feature is
745 # enabled. It does not need the Keystone keys; these always
746 # come from the outer application bundle. The framework
747 # doesn't currently use the SCM keys for anything,
748 # but this seems like a really good place to store them.
749 'postbuild_name': 'Tweak Info.plist',
750 'action': ['../build/mac/tweak_info_plist.py',
751 '--breakpad=1',
752 '--keystone=0',
753 '--scm=1',
754 '--version=<(content_shell_version)',
755 '--branding=<(content_shell_product_name)'],
756 },
757 ],
[email protected]5d96bbe2012-07-25 17:13:23758 'copies': [
759 {
[email protected]a7aa8ab2013-10-24 07:21:48760 'destination': '<(PRODUCT_DIR)/$(CONTENTS_FOLDER_PATH)/Resources',
761 'files': [
762 '<(PRODUCT_DIR)/crash_inspector',
763 '<(PRODUCT_DIR)/crash_report_sender.app'
764 ],
765 },
[email protected]5d96bbe2012-07-25 17:13:23766 ],
[email protected]fda1c6c82013-04-09 16:10:12767 'conditions': [
[email protected]30c246bc2014-01-28 06:00:04768 ['icu_use_data_file_flag==1', {
769 'mac_bundle_resources': [
770 '<(PRODUCT_DIR)/icudtl.dat',
771 ],
772 }],
baixo51f683a2014-11-28 13:05:25773 ['v8_use_external_startup_data==1', {
774 'mac_bundle_resources': [
775 '<(PRODUCT_DIR)/natives_blob.bin',
776 '<(PRODUCT_DIR)/snapshot_blob.bin',
777 ],
778 }],
[email protected]fda1c6c82013-04-09 16:10:12779 ],
[email protected]180df8f2012-03-09 22:36:10780 }, # target content_shell_framework
781 {
782 'target_name': 'content_shell_helper_app',
783 'type': 'executable',
784 'variables': { 'enable_wexit_time_destructors': 1, },
785 'product_name': '<(content_shell_product_name) Helper',
786 'mac_bundle': 1,
787 'dependencies': [
788 'content_shell_framework',
789 ],
790 'sources': [
[email protected]993951d2013-05-08 21:37:02791 'shell/app/shell_main.cc',
792 'shell/app/helper-Info.plist',
[email protected]180df8f2012-03-09 22:36:10793 ],
794 # TODO(mark): Come up with a fancier way to do this. It should only
795 # be necessary to list helper-Info.plist once, not the three times it
796 # is listed here.
797 'mac_bundle_resources!': [
[email protected]993951d2013-05-08 21:37:02798 'shell/app/helper-Info.plist',
[email protected]180df8f2012-03-09 22:36:10799 ],
800 # TODO(mark): For now, don't put any resources into this app. Its
801 # resources directory will be a symbolic link to the browser app's
802 # resources directory.
803 'mac_bundle_resources/': [
804 ['exclude', '.*'],
805 ],
806 'xcode_settings': {
[email protected]993951d2013-05-08 21:37:02807 'INFOPLIST_FILE': 'shell/app/helper-Info.plist',
[email protected]180df8f2012-03-09 22:36:10808 },
809 'postbuilds': [
810 {
811 # The framework defines its load-time path
812 # (DYLIB_INSTALL_NAME_BASE) relative to the main executable
813 # (chrome). A different relative path needs to be used in
814 # content_shell_helper_app.
815 'postbuild_name': 'Fix Framework Link',
816 'action': [
817 'install_name_tool',
818 '-change',
[email protected]6efed472013-11-01 02:09:34819 '@executable_path/../Frameworks/<(content_shell_product_name) Framework.framework/<(content_shell_product_name) Framework',
820 '@executable_path/../../../<(content_shell_product_name) Framework.framework/<(content_shell_product_name) Framework',
[email protected]180df8f2012-03-09 22:36:10821 '${BUILT_PRODUCTS_DIR}/${EXECUTABLE_PATH}'
822 ],
823 },
824 {
825 # Modify the Info.plist as needed. The script explains why this
826 # is needed. This is also done in the chrome and chrome_dll
[email protected]bbf52442012-08-23 22:53:18827 # targets. In this case, --breakpad=0, --keystone=0, and --scm=0
828 # are used because Breakpad, Keystone, and SCM keys are
[email protected]180df8f2012-03-09 22:36:10829 # never placed into the helper.
830 'postbuild_name': 'Tweak Info.plist',
831 'action': ['../build/mac/tweak_info_plist.py',
832 '--breakpad=0',
833 '--keystone=0',
[email protected]6d302912012-11-05 21:57:28834 '--scm=0',
835 '--version=<(content_shell_version)'],
[email protected]180df8f2012-03-09 22:36:10836 },
[email protected]180df8f2012-03-09 22:36:10837 ],
[email protected]ec40c38f2012-06-28 16:37:49838 'conditions': [
839 ['component=="shared_library"', {
840 'xcode_settings': {
841 'LD_RUNPATH_SEARCH_PATHS': [
842 # Get back from Content Shell.app/Contents/Frameworks/
843 # Helper.app/Contents/MacOS
844 '@loader_path/../../../../../..',
845 ],
846 },
847 }],
848 ],
[email protected]180df8f2012-03-09 22:36:10849 }, # target content_shell_helper_app
[email protected]85ff16042012-03-06 23:46:34850 ],
851 }], # OS=="mac"
[email protected]cc66d282012-03-30 11:44:06852 ['OS=="android"', {
853 'targets': [
854 {
[email protected]a08029b42012-04-25 03:18:46855 # TODO(jrg): Update this action and other jni generators to only
856 # require specifying the java directory and generate the rest.
857 'target_name': 'content_shell_jni_headers',
858 'type': 'none',
[email protected]e46f66152012-07-19 20:02:55859 'sources': [
[email protected]eadcff0f2013-06-20 21:08:10860 'shell/android/java/src/org/chromium/content_shell/ShellLayoutTestUtils.java',
ppif581fe92014-10-08 18:52:19861 'shell/android/java/src/org/chromium/content_shell/ShellMojoTestUtils.java',
[email protected]e46f66152012-07-19 20:02:55862 'shell/android/java/src/org/chromium/content_shell/ShellManager.java',
863 'shell/android/java/src/org/chromium/content_shell/Shell.java',
864 ],
[email protected]a08029b42012-04-25 03:18:46865 'variables': {
[email protected]521cd942013-03-07 22:34:05866 'jni_gen_package': 'content/shell',
[email protected]a08029b42012-04-25 03:18:46867 },
868 'includes': [ '../build/jni_generator.gypi' ],
869 },
870 {
[email protected]c1101582012-06-25 17:07:18871 'target_name': 'libcontent_shell_content_view',
[email protected]a08029b42012-04-25 03:18:46872 'type': 'shared_library',
873 'dependencies': [
874 'content_shell_jni_headers',
875 'content_shell_lib',
876 'content_shell_pak',
877 # Skia is necessary to ensure the dependencies needed by
878 # WebContents are included.
879 '../skia/skia.gyp:skia',
880 '<(DEPTH)/media/media.gyp:player_android',
881 ],
[email protected]a08029b42012-04-25 03:18:46882 'sources': [
883 'shell/android/shell_library_loader.cc',
[email protected]f83a47392012-07-12 22:15:04884 ],
[email protected]a08029b42012-04-25 03:18:46885 },
886 {
[email protected]4d4eb5b2013-01-29 21:55:55887 'target_name': 'content_shell_java',
888 'type': 'none',
889 'dependencies': [
[email protected]ba42b1e2013-10-19 22:13:17890 'content.gyp:content_java',
[email protected]4d4eb5b2013-01-29 21:55:55891 ],
892 'variables': {
[email protected]4d4eb5b2013-01-29 21:55:55893 'java_in_dir': '../content/shell/android/java',
894 'has_java_resources': 1,
895 'R_package': 'org.chromium.content_shell',
896 'R_package_relpath': 'org/chromium/content_shell',
897 },
898 'includes': [ '../build/java.gypi' ],
899 },
900 {
[email protected]319d6a82012-09-20 22:52:28901 # content_shell_apk creates a .jar as a side effect. Any java targets
902 # that need that .jar in their classpath should depend on this target,
[email protected]4d4eb5b2013-01-29 21:55:55903 # content_shell_apk_java. Dependents of content_shell_apk receive its
904 # jar path in the variable 'apk_output_jar_path'. This target should
905 # only be used by targets which instrument content_shell_apk.
906 'target_name': 'content_shell_apk_java',
[email protected]319d6a82012-09-20 22:52:28907 'type': 'none',
[email protected]319d6a82012-09-20 22:52:28908 'dependencies': [
[email protected]319d6a82012-09-20 22:52:28909 'content_shell_apk',
[email protected]319d6a82012-09-20 22:52:28910 ],
[email protected]b13f73e2013-03-27 23:31:27911 'includes': [ '../build/apk_fake_jar.gypi' ],
[email protected]319d6a82012-09-20 22:52:28912 },
[email protected]75c86a22012-09-26 03:50:37913 {
sievers0350cad2014-12-03 23:50:55914 # GN version: //content/shell/android:content_shell_manifest
915 'target_name': 'content_shell_manifest',
916 'type': 'none',
917 'variables': {
sievers4c08a9c2014-12-05 01:57:28918 'jinja_inputs': ['shell/android/shell_apk/AndroidManifest.xml.jinja2'],
sievers0350cad2014-12-03 23:50:55919 'jinja_output': '<(SHARED_INTERMEDIATE_DIR)/content_shell_manifest/AndroidManifest.xml',
920 },
921 'includes': [ '../build/android/jinja_template.gypi' ],
922 },
923 {
924 # GN version: //content/shell/android:content_shell_apk
[email protected]75c86a22012-09-26 03:50:37925 'target_name': 'content_shell_apk',
926 'type': 'none',
927 'dependencies': [
[email protected]c8e8781e2014-03-08 12:02:26928 'content.gyp:content_icudata',
[email protected]ba42b1e2013-10-19 22:13:17929 'content.gyp:content_java',
baixo3a3c88a2014-10-28 11:52:21930 'content.gyp:content_v8_external_data',
[email protected]c48fece02013-06-19 12:01:42931 'content_java_test_support',
[email protected]4d4eb5b2013-01-29 21:55:55932 'content_shell_java',
933 'libcontent_shell_content_view',
[email protected]75c86a22012-09-26 03:50:37934 '../base/base.gyp:base_java',
935 '../media/media.gyp:media_java',
936 '../net/net.gyp:net_java',
[email protected]abeda1f2014-02-21 17:08:34937 '../third_party/mesa/mesa.gyp:osmesa_in_lib_dir',
[email protected]4e384052013-08-14 20:46:30938 '../tools/android/forwarder/forwarder.gyp:forwarder',
torne1b1c9782015-03-30 20:49:00939 '../tools/imagediff/image_diff.gyp:image_diff#host',
[email protected]f450287d2013-11-15 17:52:54940 '../ui/android/ui_android.gyp:ui_java',
[email protected]75c86a22012-09-26 03:50:37941 ],
942 'variables': {
[email protected]75c86a22012-09-26 03:50:37943 'apk_name': 'ContentShell',
[email protected]4d4eb5b2013-01-29 21:55:55944 'manifest_package_name': 'org.chromium.content_shell_apk',
sievers0350cad2014-12-03 23:50:55945 'android_manifest_path': '<(SHARED_INTERMEDIATE_DIR)/content_shell_manifest/AndroidManifest.xml',
[email protected]4d4eb5b2013-01-29 21:55:55946 'java_in_dir': 'shell/android/shell_apk',
[email protected]bd6ab3db2013-03-26 17:35:21947 'resource_dir': 'shell/android/shell_apk/res',
[email protected]e4865252013-04-04 09:15:59948 'native_lib_target': 'libcontent_shell_content_view',
[email protected]75c86a22012-09-26 03:50:37949 'additional_input_paths': ['<(PRODUCT_DIR)/content_shell/assets/content_shell.pak'],
[email protected]0437c502013-11-28 05:17:33950 'asset_location': '<(PRODUCT_DIR)/content_shell/assets',
[email protected]abeda1f2014-02-21 17:08:34951 'extra_native_libs': ['<(SHARED_LIB_DIR)/libosmesa.so'],
[email protected]c8e8781e2014-03-08 12:02:26952 'conditions': [
953 ['icu_use_data_file_flag==1', {
954 'additional_input_paths': [
955 '<(PRODUCT_DIR)/icudtl.dat',
956 ],
957 }],
baixo3a3c88a2014-10-28 11:52:21958 ['v8_use_external_startup_data==1', {
959 'additional_input_paths': [
960 '<(PRODUCT_DIR)/natives_blob.bin',
961 '<(PRODUCT_DIR)/snapshot_blob.bin',
962 ],
963 }],
[email protected]c8e8781e2014-03-08 12:02:26964 ],
[email protected]75c86a22012-09-26 03:50:37965 },
[email protected]75c86a22012-09-26 03:50:37966 'includes': [ '../build/java_apk.gypi' ],
967 },
[email protected]cc66d282012-03-30 11:44:06968 ],
969 }], # OS=="android"
[email protected]369205f2013-10-29 04:35:05970 ['OS=="win"', {
971 'targets': [
972 {
tfarina795e01a2015-05-15 19:29:57973 # GN version: //content/shell:crash_service
[email protected]369205f2013-10-29 04:35:05974 'target_name': 'content_shell_crash_service',
975 'type': 'executable',
976 'dependencies': [
977 '../base/base.gyp:base',
978 '../components/components.gyp:breakpad_crash_service',
979 ],
980 'include_dirs': [
981 '..',
982 ],
983 'sources': [
984 'shell/tools/content_shell_crash_service.cc',
985 ],
986 'msvs_settings': {
987 'VCLinkerTool': {
988 'SubSystem': '2', # Set /SUBSYSTEM:WINDOWS
989 },
990 },
991 },
992 ],
993 }], # OS=="win"
[email protected]004703a2014-05-05 23:23:00994 ['OS=="win" and fastbuild==0 and target_arch=="ia32" and syzyasan==1', {
[email protected]c8250d42013-10-01 05:17:46995 'variables': {
996 'dest_dir': '<(PRODUCT_DIR)/syzygy',
997 },
998 'targets': [
999 {
1000 'target_name': 'content_shell_syzyasan',
1001 'type': 'none',
1002 'sources' : [],
1003 # Instrument content_shell with SyzyAsan.
1004 'actions': [
1005 {
1006 'action_name': 'Instrument content_shell with SyzyAsan',
[email protected]c8250d42013-10-01 05:17:461007 'inputs': [
1008 '<(PRODUCT_DIR)/content_shell.exe',
1009 ],
1010 'outputs': [
1011 '<(dest_dir)/content_shell.exe',
1012 '<(dest_dir)/content_shell.exe.pdb',
1013 ],
1014 'action': [
1015 'python',
chrishaf25cab22014-12-16 19:40:151016 '<(DEPTH)/chrome/tools/build/win/syzygy/instrument.py',
[email protected]c8250d42013-10-01 05:17:461017 '--mode', 'asan',
1018 '--input_executable', '<(PRODUCT_DIR)/content_shell.exe',
1019 '--input_symbol', '<(PRODUCT_DIR)/content_shell.exe.pdb',
1020 '--destination_dir', '<(dest_dir)',
1021 ],
1022 },
1023 ],
1024 },
1025 ],
1026 }], # OS=="win" and fastbuild==0 and target_arch=="ia32"
[email protected]cc66d282012-03-30 11:44:061027 ]
[email protected]5629e0c2011-09-12 22:07:361028}