blob: 688e48af7262d69fe840a6db00a4b533f1d92f06 [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]c1f87b22011-10-05 21:59:3322 'target_name': 'content_shell_lib',
23 'type': 'static_library',
[email protected]6d302912012-11-05 21:57:2824 'defines': ['CONTENT_SHELL_VERSION="<(content_shell_version)"'],
[email protected]9fbd3f862011-09-20 23:31:3425 'variables': {
26 'chromium_code': 1,
27 },
[email protected]5629e0c2011-09-12 22:07:3628 'dependencies': [
[email protected]ba42b1e2013-10-19 22:13:1729 'content.gyp:content_app_both',
30 'content.gyp:content_browser',
31 'content.gyp:content_common',
32 'content.gyp:content_gpu',
33 'content.gyp:content_plugin',
34 'content.gyp:content_ppapi_plugin',
35 'content.gyp:content_renderer',
36 'content.gyp:content_utility',
37 'content.gyp:content_worker',
[email protected]73a759772013-07-02 20:47:4538 'content_resources.gyp:content_resources',
[email protected]de28fed2e2014-02-01 14:36:3239 'content_shell_resources',
40 'copy_test_netscape_plugin',
41 'test_support_content',
[email protected]aa6e79762011-09-29 20:53:5242 '../base/base.gyp:base',
43 '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations',
[email protected]d6d06a352013-10-23 07:04:0044 '../components/components.gyp:breakpad_component',
[email protected]41fba0e2014-01-16 18:19:4245 '../gin/gin.gyp:gin',
[email protected]aa6e79762011-09-29 20:53:5246 '../ipc/ipc.gyp:ipc',
[email protected]433df472012-03-07 20:33:3947 '../media/media.gyp:media',
[email protected]aa6e79762011-09-29 20:53:5248 '../net/net.gyp:net',
[email protected]24f80692012-08-13 15:15:5049 '../net/net.gyp:net_resources',
[email protected]5629e0c2011-09-12 22:07:3650 '../skia/skia.gyp:skia',
[email protected]3de922f2013-12-20 13:27:3851 '../third_party/WebKit/public/blink.gyp:blink',
[email protected]3de922f2013-12-20 13:27:3852 '../third_party/WebKit/public/blink_test_runner.gyp:blink_test_support',
[email protected]114efae2013-11-06 20:37:5753 '../ui/events/events.gyp:events_base',
[email protected]529a3cf2013-09-30 02:47:4854 '../ui/gfx/gfx.gyp:gfx',
[email protected]b5e2d782013-12-18 21:01:1555 '../ui/gfx/gfx.gyp:gfx_geometry',
[email protected]8350f16f2012-11-30 00:25:3256 '../ui/gl/gl.gyp:gl',
[email protected]5629e0c2011-09-12 22:07:3657 '../ui/ui.gyp:ui',
[email protected]002cc08f2013-06-03 05:40:2958 '../url/url.gyp:url_lib',
[email protected]12bc28fcb2011-09-21 15:53:5059 '../v8/tools/gyp/v8.gyp:v8',
[email protected]3469ea22013-09-14 01:24:4760 '../webkit/common/user_agent/webkit_user_agent.gyp:user_agent',
[email protected]a356e5cc2013-09-24 02:54:4661 '../webkit/common/webkit_common.gyp:webkit_common',
[email protected]a356e5cc2013-09-24 02:54:4662 '../webkit/webkit_resources.gyp:webkit_resources',
[email protected]5629e0c2011-09-12 22:07:3663 ],
64 'include_dirs': [
65 '..',
66 ],
67 'sources': [
[email protected]3de922f2013-12-20 13:27:3868 'public/test/layouttest_support.h',
[email protected]4d4eb5b2013-01-29 21:55:5569 'shell/android/shell_jni_registrar.cc',
70 'shell/android/shell_jni_registrar.h',
71 'shell/android/shell_manager.cc',
72 'shell/android/shell_manager.h',
[email protected]2a94e812013-07-12 15:31:0273 'shell/app/paths_mac.h',
74 'shell/app/paths_mac.mm',
[email protected]d6d06a352013-10-23 07:04:0075 'shell/app/shell_breakpad_client.cc',
76 'shell/app/shell_breakpad_client.h',
[email protected]993951d2013-05-08 21:37:0277 'shell/app/shell_main_delegate.cc',
78 'shell/app/shell_main_delegate.h',
[email protected]2a94e812013-07-12 15:31:0279 'shell/app/shell_main_delegate_mac.h',
80 'shell/app/shell_main_delegate_mac.mm',
[email protected]216161f2013-07-02 16:23:2081 'shell/app/webkit_test_platform_support_android.cc',
[email protected]de7d61ff2013-08-20 11:30:4182 'shell/app/webkit_test_platform_support.h',
[email protected]216161f2013-07-02 16:23:2083 'shell/app/webkit_test_platform_support_linux.cc',
84 'shell/app/webkit_test_platform_support_mac.mm',
85 'shell/app/webkit_test_platform_support_win.cc',
[email protected]de7d61ff2013-08-20 11:30:4186 'shell/browser/notify_done_forwarder.cc',
87 'shell/browser/notify_done_forwarder.h',
88 'shell/browser/shell_android.cc',
89 'shell/browser/shell_application_mac.h',
90 'shell/browser/shell_application_mac.mm',
91 'shell/browser/shell_aura.cc',
92 'shell/browser/shell_browser_context.cc',
93 'shell/browser/shell_browser_context.h',
94 'shell/browser/shell_browser_main.cc',
95 'shell/browser/shell_browser_main.h',
96 'shell/browser/shell_browser_main_parts.cc',
97 'shell/browser/shell_browser_main_parts.h',
98 'shell/browser/shell_browser_main_parts_mac.mm',
99 'shell/browser/shell.cc',
100 'shell/browser/shell_content_browser_client.cc',
101 'shell/browser/shell_content_browser_client.h',
102 'shell/browser/shell_devtools_delegate.cc',
103 'shell/browser/shell_devtools_delegate.h',
104 'shell/browser/shell_devtools_frontend.cc',
105 'shell/browser/shell_devtools_frontend.h',
106 'shell/browser/shell_download_manager_delegate.cc',
107 'shell/browser/shell_download_manager_delegate.h',
108 'shell/browser/shell_gtk.cc',
109 'shell/browser/shell.h',
110 'shell/browser/shell_javascript_dialog_gtk.cc',
111 'shell/browser/shell_javascript_dialog.h',
112 'shell/browser/shell_javascript_dialog_mac.mm',
113 'shell/browser/shell_javascript_dialog_manager.cc',
114 'shell/browser/shell_javascript_dialog_manager.h',
115 'shell/browser/shell_javascript_dialog_win.cc',
116 'shell/browser/shell_layout_tests_android.cc',
117 'shell/browser/shell_layout_tests_android.h',
118 'shell/browser/shell_login_dialog.cc',
119 'shell/browser/shell_login_dialog_gtk.cc',
120 'shell/browser/shell_login_dialog.h',
121 'shell/browser/shell_login_dialog_mac.mm',
122 'shell/browser/shell_mac.mm',
123 'shell/browser/shell_message_filter.cc',
124 'shell/browser/shell_message_filter.h',
125 'shell/browser/shell_net_log.cc',
126 'shell/browser/shell_net_log.h',
127 'shell/browser/shell_network_delegate.cc',
128 'shell/browser/shell_network_delegate.h',
[email protected]a6591142014-01-27 19:32:26129 'shell/browser/shell_platform_data_aura.cc',
130 'shell/browser/shell_platform_data_aura.h',
[email protected]de7d61ff2013-08-20 11:30:41131 'shell/browser/shell_plugin_service_filter.cc',
132 'shell/browser/shell_plugin_service_filter.h',
133 'shell/browser/shell_quota_permission_context.cc',
134 'shell/browser/shell_quota_permission_context.h',
135 'shell/browser/shell_resource_dispatcher_host_delegate.cc',
136 'shell/browser/shell_resource_dispatcher_host_delegate.h',
[email protected]9896c552013-08-29 19:03:20137 'shell/browser/shell_speech_recognition_manager_delegate.cc',
138 'shell/browser/shell_speech_recognition_manager_delegate.h',
[email protected]de7d61ff2013-08-20 11:30:41139 'shell/browser/shell_url_request_context_getter.cc',
140 'shell/browser/shell_url_request_context_getter.h',
[email protected]a896e1e2013-10-20 19:10:30141 'shell/browser/shell_views.cc',
[email protected]de7d61ff2013-08-20 11:30:41142 'shell/browser/shell_web_contents_view_delegate_android.cc',
143 'shell/browser/shell_web_contents_view_delegate_creator.h',
144 'shell/browser/shell_web_contents_view_delegate_gtk.cc',
145 'shell/browser/shell_web_contents_view_delegate.h',
146 'shell/browser/shell_web_contents_view_delegate_mac.mm',
147 'shell/browser/shell_web_contents_view_delegate_win.cc',
[email protected]de7d61ff2013-08-20 11:30:41148 'shell/browser/webkit_test_controller.cc',
149 'shell/browser/webkit_test_controller.h',
[email protected]4562cf72014-01-27 10:10:13150 'shell/common/leak_detection_result.h',
[email protected]b7c504c2013-05-07 14:42:12151 'shell/common/shell_content_client.cc',
152 'shell/common/shell_content_client.h',
153 'shell/common/shell_messages.cc',
154 'shell/common/shell_messages.h',
155 'shell/common/shell_switches.cc',
156 'shell/common/shell_switches.h',
157 'shell/common/shell_test_configuration.cc',
158 'shell/common/shell_test_configuration.h',
[email protected]3de922f2013-12-20 13:27:38159 'shell/common/test_runner/WebPreferences.cpp',
160 'shell/common/test_runner/WebPreferences.h',
[email protected]b7c504c2013-05-07 14:42:12161 'shell/common/webkit_test_helpers.cc',
162 'shell/common/webkit_test_helpers.h',
[email protected]6cfccd12012-06-28 12:14:05163 'shell/geolocation/shell_access_token_store.cc',
164 'shell/geolocation/shell_access_token_store.h',
[email protected]41fba0e2014-01-16 18:19:42165 'shell/renderer/gc_controller.cc',
166 'shell/renderer/gc_controller.h',
[email protected]4562cf72014-01-27 10:10:13167 'shell/renderer/leak_detector.cc',
168 'shell/renderer/leak_detector.h',
[email protected]f7a4e3b92013-05-03 15:29:58169 'shell/renderer/shell_content_renderer_client.cc',
170 'shell/renderer/shell_content_renderer_client.h',
[email protected]a86c0e962013-12-17 17:10:39171 'shell/renderer/shell_render_frame_observer.cc',
172 'shell/renderer/shell_render_frame_observer.h',
[email protected]f7a4e3b92013-05-03 15:29:58173 'shell/renderer/shell_render_process_observer.cc',
174 'shell/renderer/shell_render_process_observer.h',
[email protected]81914ad2013-07-02 18:54:25175 'shell/renderer/shell_render_view_observer.cc',
176 'shell/renderer/shell_render_view_observer.h',
[email protected]3de922f2013-12-20 13:27:38177 'shell/renderer/test_runner/AccessibilityController.cpp',
178 'shell/renderer/test_runner/AccessibilityController.h',
179 'shell/renderer/test_runner/CppBoundClass.cpp',
180 'shell/renderer/test_runner/CppBoundClass.h',
181 'shell/renderer/test_runner/CppVariant.cpp',
182 'shell/renderer/test_runner/CppVariant.h',
183 'shell/renderer/test_runner/EventSender.cpp',
184 'shell/renderer/test_runner/EventSender.h',
185 'shell/renderer/test_runner/GamepadController.cpp',
186 'shell/renderer/test_runner/GamepadController.h',
187 'shell/renderer/test_runner/KeyCodeMapping.cpp',
188 'shell/renderer/test_runner/KeyCodeMapping.h',
189 'shell/renderer/test_runner/MockColorChooser.cpp',
190 'shell/renderer/test_runner/MockColorChooser.h',
191 'shell/renderer/test_runner/MockConstraints.cpp',
192 'shell/renderer/test_runner/MockConstraints.h',
193 'shell/renderer/test_runner/MockGrammarCheck.cpp',
194 'shell/renderer/test_runner/MockGrammarCheck.h',
195 'shell/renderer/test_runner/MockSpellCheck.cpp',
196 'shell/renderer/test_runner/MockSpellCheck.h',
197 'shell/renderer/test_runner/MockWebAudioDevice.cpp',
198 'shell/renderer/test_runner/MockWebAudioDevice.h',
[email protected]3de922f2013-12-20 13:27:38199 'shell/renderer/test_runner/MockWebMIDIAccessor.cpp',
200 'shell/renderer/test_runner/MockWebMIDIAccessor.h',
[email protected]d76ff4162014-01-05 19:04:43201 'shell/renderer/test_runner/MockWebMediaStreamCenter.cpp',
202 'shell/renderer/test_runner/MockWebMediaStreamCenter.h',
[email protected]3de922f2013-12-20 13:27:38203 'shell/renderer/test_runner/MockWebRTCDTMFSenderHandler.cpp',
204 'shell/renderer/test_runner/MockWebRTCDTMFSenderHandler.h',
[email protected]d76ff4162014-01-05 19:04:43205 'shell/renderer/test_runner/MockWebRTCDataChannelHandler.cpp',
206 'shell/renderer/test_runner/MockWebRTCDataChannelHandler.h',
[email protected]3de922f2013-12-20 13:27:38207 'shell/renderer/test_runner/MockWebRTCPeerConnectionHandler.cpp',
208 'shell/renderer/test_runner/MockWebRTCPeerConnectionHandler.h',
209 'shell/renderer/test_runner/MockWebSpeechInputController.cpp',
210 'shell/renderer/test_runner/MockWebSpeechInputController.h',
211 'shell/renderer/test_runner/MockWebSpeechRecognizer.cpp',
212 'shell/renderer/test_runner/MockWebSpeechRecognizer.h',
213 'shell/renderer/test_runner/NotificationPresenter.cpp',
214 'shell/renderer/test_runner/NotificationPresenter.h',
215 'shell/renderer/test_runner/SpellCheckClient.cpp',
216 'shell/renderer/test_runner/SpellCheckClient.h',
217 'shell/renderer/test_runner/TestCommon.cpp',
218 'shell/renderer/test_runner/TestCommon.h',
219 'shell/renderer/test_runner/TestInterfaces.cpp',
220 'shell/renderer/test_runner/TestInterfaces.h',
221 'shell/renderer/test_runner/TestPlugin.cpp',
222 'shell/renderer/test_runner/TestPlugin.h',
223 'shell/renderer/test_runner/TestRunner.cpp',
224 'shell/renderer/test_runner/TestRunner.h',
225 'shell/renderer/test_runner/TextInputController.cpp',
226 'shell/renderer/test_runner/TextInputController.h',
227 'shell/renderer/test_runner/WebAXObjectProxy.cpp',
228 'shell/renderer/test_runner/WebAXObjectProxy.h',
229 'shell/renderer/test_runner/WebFrameTestProxy.h',
230 'shell/renderer/test_runner/WebPermissions.cpp',
231 'shell/renderer/test_runner/WebPermissions.h',
[email protected]3de922f2013-12-20 13:27:38232 'shell/renderer/test_runner/WebTask.cpp',
233 'shell/renderer/test_runner/WebTask.h',
234 'shell/renderer/test_runner/WebTestDelegate.h',
235 'shell/renderer/test_runner/WebTestInterfaces.cpp',
236 'shell/renderer/test_runner/WebTestInterfaces.h',
237 'shell/renderer/test_runner/WebTestProxy.cpp',
238 'shell/renderer/test_runner/WebTestProxy.h',
239 'shell/renderer/test_runner/WebTestRunner.h',
[email protected]3de922f2013-12-20 13:27:38240 'shell/renderer/test_runner/WebTestThemeEngineMac.h',
241 'shell/renderer/test_runner/WebTestThemeEngineMac.mm',
242 'shell/renderer/test_runner/WebTestThemeEngineMock.cpp',
243 'shell/renderer/test_runner/WebTestThemeEngineMock.h',
[email protected]3de922f2013-12-20 13:27:38244 'shell/renderer/test_runner/WebUserMediaClientMock.cpp',
245 'shell/renderer/test_runner/WebUserMediaClientMock.h',
[email protected]f7a4e3b92013-05-03 15:29:58246 'shell/renderer/webkit_test_runner.cc',
247 'shell/renderer/webkit_test_runner.h',
[email protected]3de922f2013-12-20 13:27:38248 'test/layouttest_support.cc',
[email protected]5629e0c2011-09-12 22:07:36249 ],
250 'msvs_settings': {
251 'VCLinkerTool': {
252 'SubSystem': '2', # Set /SUBSYSTEM:WINDOWS
253 },
254 },
255 'conditions': [
[email protected]099d14a2014-02-06 09:49:46256 ['OS=="mac"', {
257 'sources/': [
258 ['exclude', 'WebTestThemeEngineMock.cpp'],
259 ],
260 }],
[email protected]5629e0c2011-09-12 22:07:36261 ['OS=="win" and win_use_allocator_shim==1', {
262 'dependencies': [
263 '../base/allocator/allocator.gyp:allocator',
264 ],
265 }],
[email protected]9fbd3f862011-09-20 23:31:34266 ['OS=="win"', {
267 'resource_include_dirs': [
268 '<(SHARED_INTERMEDIATE_DIR)/webkit',
269 ],
[email protected]9fbd3f862011-09-20 23:31:34270 'dependencies': [
[email protected]d7871ac2013-07-09 21:35:41271 '<(DEPTH)/webkit/webkit_resources.gyp:webkit_strings',
[email protected]9fbd3f862011-09-20 23:31:34272 ],
273 'configurations': {
274 'Debug_Base': {
275 'msvs_settings': {
276 'VCLinkerTool': {
277 'LinkIncremental': '<(msvs_large_module_debug_link_mode)',
278 },
279 },
280 },
281 },
[email protected]3bed5302013-02-15 19:31:41282 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
283 'msvs_disabled_warnings': [ 4267, ],
[email protected]3de922f2013-12-20 13:27:38284 }, { # OS!="win"
285 'sources/': [
286 ['exclude', 'Win\\.cpp$'],
287 ],
[email protected]85ff16042012-03-06 23:46:34288 }], # OS=="win"
[email protected]6eb6bb62012-11-10 06:30:59289 ['OS=="linux"', {
290 'dependencies': [
291 '../build/linux/system.gyp:fontconfig',
292 ],
293 }],
[email protected]6b911a32014-01-10 02:34:53294 ['use_x11 == 1', {
295 'dependencies': [
296 '../tools/xdisplaycheck/xdisplaycheck.gyp:xdisplaycheck',
297 ],
298 }],
[email protected]689266d2012-08-07 12:52:20299 ['OS=="android"', {
[email protected]82e9e2b12012-07-19 00:32:01300 'dependencies': [
301 'content_shell_jni_headers',
302 ],
[email protected]6b911a32014-01-10 02:34:53303 'dependencies!': [
[email protected]de28fed2e2014-02-01 14:36:32304 'copy_test_netscape_plugin',
[email protected]6b911a32014-01-10 02:34:53305 ],
[email protected]689266d2012-08-07 12:52:20306 }, { # else: OS!="android"
307 'dependencies': [
308 # This dependency is for running DRT against the content shell, and
309 # this combination is not yet supported on Android.
[email protected]3469ea22013-09-14 01:24:47310 'test_support_content',
[email protected]689266d2012-08-07 12:52:20311 ],
[email protected]82e9e2b12012-07-19 00:32:01312 }], # OS=="android"
[email protected]a7aa8ab2013-10-24 07:21:48313 ['os_posix == 1 and OS != "mac" and android_webview_build != 1', {
314 'dependencies': [
315 '../components/components.gyp:breakpad_host',
316 ],
317 }],
[email protected]3c8fe5482013-05-22 15:17:03318 ['(os_posix==1 and use_aura==1 and linux_use_tcmalloc==1) or (android_use_tcmalloc==1)', {
[email protected]c767d572012-07-27 10:55:58319 'dependencies': [
320 # This is needed by content/app/content_main_runner.cc
321 '../base/allocator/allocator.gyp:allocator',
322 ],
323 }],
[email protected]fa4a45832012-04-12 21:32:48324 ['use_aura==1', {
[email protected]c767d572012-07-27 10:55:58325 'dependencies': [
326 '../ui/aura/aura.gyp:aura',
327 '../ui/base/strings/ui_strings.gyp:ui_strings',
[email protected]c767d572012-07-27 10:55:58328 ],
[email protected]fa4a45832012-04-12 21:32:48329 'sources/': [
[email protected]de7d61ff2013-08-20 11:30:41330 ['exclude', 'shell/browser/shell_gtk.cc'],
[email protected]fa4a45832012-04-12 21:32:48331 ],
[email protected]a896e1e2013-10-20 19:10:30332 'conditions': [
333 ['toolkit_views==1', {
334 'dependencies': [
[email protected]dae78442013-11-26 16:57:02335 '../ui/resources/ui_resources.gyp:ui_resources',
[email protected]a896e1e2013-10-20 19:10:30336 '../ui/views/controls/webview/webview.gyp:webview',
337 '../ui/views/views.gyp:views',
338 '../ui/views/views.gyp:views_test_support',
[email protected]a896e1e2013-10-20 19:10:30339 ],
340 'sources/': [
341 ['exclude', 'shell/browser/shell_aura.cc'],
342 ],
343 }, {
344 'sources/': [
345 ['exclude', 'shell/browser/shell_views.cc'],
346 ],
347 }],
348 ],
349 }, {
350 'sources/': [
351 ['exclude', 'shell/browser/shell_aura.cc'],
352 ['exclude', 'shell/browser/shell_views.cc'],
353 ],
[email protected]96b80b472012-07-03 19:41:56354 }], # use_aura==1
[email protected]6b911a32014-01-10 02:34:53355 # The test plugin relies on X11.
356 ['OS=="linux" and use_x11==0', {
357 'dependencies!': [
[email protected]de28fed2e2014-02-01 14:36:32358 'copy_test_netscape_plugin',
[email protected]6b911a32014-01-10 02:34:53359 ],
360 }],
[email protected]c767d572012-07-27 10:55:58361 ['chromeos==1', {
362 'dependencies': [
363 '../chromeos/chromeos.gyp:chromeos',
[email protected]de6831b2013-11-16 01:04:30364 '../ui/wm/wm.gyp:wm_test_support',
[email protected]c767d572012-07-27 10:55:58365 ],
366 }], # chromeos==1
[email protected]929246a2013-02-28 13:55:20367 ['use_custom_freetype==1', {
368 'dependencies': [
369 '../third_party/freetype2/freetype2.gyp:freetype2',
370 ],
371 }],
[email protected]dfb9360192013-05-27 09:42:34372 ['enable_plugins==0', {
373 'sources/': [
[email protected]de7d61ff2013-08-20 11:30:41374 ['exclude', 'shell/browser/shell_plugin_service_filter.cc'],
375 ['exclude', 'shell/browser/shell_plugin_service_filter.h'],
[email protected]dfb9360192013-05-27 09:42:34376 ],
377 }]
[email protected]5629e0c2011-09-12 22:07:36378 ],
379 },
[email protected]c1f87b22011-10-05 21:59:33380 {
[email protected]ee75b8992012-01-27 07:53:57381 'target_name': 'content_shell_resources',
382 'type': 'none',
[email protected]b581eb402012-03-09 01:31:46383 'dependencies': [
384 'generate_content_shell_resources',
385 ],
386 'variables': {
387 'grit_out_dir': '<(SHARED_INTERMEDIATE_DIR)/content',
388 },
389 'includes': [ '../build/grit_target.gypi' ],
390 'copies': [
391 {
392 'destination': '<(PRODUCT_DIR)',
393 'files': [
394 '<(SHARED_INTERMEDIATE_DIR)/content/shell_resources.pak'
395 ],
396 },
397 ],
[email protected]6b911a32014-01-10 02:34:53398 'conditions': [
399 ['OS=="win"', {
400 'copies': [{
401 'destination': '<(PRODUCT_DIR)',
402 'files': ['shell/renderer/test_runner/resources/fonts/AHEM____.TTF'],
403 }],
404 }],
405 ['OS=="mac"', {
406 'all_dependent_settings': {
407 'mac_bundle_resources': [
408 'shell/renderer/test_runner/resources/fonts/AHEM____.TTF',
409 '<(SHARED_INTERMEDIATE_DIR)/webkit/missingImage.png',
410 '<(SHARED_INTERMEDIATE_DIR)/webkit/textAreaResizeCorner.png',
411 ],
412 },
413 }],
414 ['use_x11 == 1', {
415 'copies': [{
416 'destination': '<(PRODUCT_DIR)',
417 'files': [
418 'shell/renderer/test_runner/resources/fonts/AHEM____.TTF',
419 'shell/renderer/test_runner/resources/fonts/fonts.conf',
420 ]
421 }],
422 }],
423 ['OS=="android"', {
424 'copies': [{
425 'destination': '<(PRODUCT_DIR)',
426 'files': [
427 'shell/renderer/test_runner/resources/fonts/AHEM____.TTF',
428 'shell/renderer/test_runner/resources/fonts/android_main_fonts.xml',
429 'shell/renderer/test_runner/resources/fonts/android_fallback_fonts.xml',
430 ]
431 }],
432 }],
433 ],
[email protected]4cb792f42012-03-24 03:12:42434 },
435 {
[email protected]b581eb402012-03-09 01:31:46436 'target_name': 'generate_content_shell_resources',
437 'type': 'none',
[email protected]ee75b8992012-01-27 07:53:57438 'variables': {
439 'grit_out_dir': '<(SHARED_INTERMEDIATE_DIR)/content',
440 },
441 'actions': [
442 {
443 'action_name': 'content_shell_resources',
444 'variables': {
445 'grit_grd_file': 'shell/shell_resources.grd',
446 },
447 'includes': [ '../build/grit_action.gypi' ],
448 },
449 ],
[email protected]ee75b8992012-01-27 07:53:57450 },
451 {
[email protected]81f30ce2012-01-18 22:10:33452 # We build a minimal set of resources so WebKit in content_shell has
453 # access to necessary resources.
454 'target_name': 'content_shell_pak',
455 'type': 'none',
[email protected]ee75b8992012-01-27 07:53:57456 'dependencies': [
[email protected]06c54162013-06-10 00:25:05457 'content_resources.gyp:content_resources',
[email protected]ee75b8992012-01-27 07:53:57458 'content_shell_resources',
[email protected]06c54162013-06-10 00:25:05459 '<(DEPTH)/net/net.gyp:net_resources',
460 '<(DEPTH)/ui/base/strings/ui_strings.gyp:ui_strings',
[email protected]1c0c3f42013-11-20 02:03:28461 '<(DEPTH)/ui/resources/ui_resources.gyp:ui_resources',
[email protected]d7871ac2013-07-09 21:35:41462 '<(DEPTH)/webkit/webkit_resources.gyp:webkit_resources',
463 '<(DEPTH)/webkit/webkit_resources.gyp:webkit_strings',
[email protected]ee75b8992012-01-27 07:53:57464 ],
[email protected]3df230d2013-07-03 00:44:57465 'conditions': [
466 ['OS!="android" and OS!="ios"', {
467 'dependencies': [
468 'browser/tracing/tracing_resources.gyp:tracing_resources',
469 ],
470 }],
[email protected]8dffd2c2013-12-02 14:14:38471 ['OS!="android"', {
472 'dependencies': [
473 'browser/devtools/devtools_resources.gyp:devtools_resources',
474 ],
475 }],
[email protected]3df230d2013-07-03 00:44:57476 ],
[email protected]81f30ce2012-01-18 22:10:33477 'variables': {
478 'repack_path': '<(DEPTH)/tools/grit/grit/format/repack.py',
479 },
480 'actions': [
481 {
482 'action_name': 'repack_content_shell_pack',
483 'variables': {
484 'pak_inputs': [
485 '<(SHARED_INTERMEDIATE_DIR)/content/content_resources.pak',
[email protected]479bea22013-07-02 21:46:06486 '<(SHARED_INTERMEDIATE_DIR)/content/browser/tracing/tracing_resources.pak',
[email protected]ee75b8992012-01-27 07:53:57487 '<(SHARED_INTERMEDIATE_DIR)/content/shell_resources.pak',
[email protected]81f30ce2012-01-18 22:10:33488 '<(SHARED_INTERMEDIATE_DIR)/net/net_resources.pak',
[email protected]c767d572012-07-27 10:55:58489 '<(SHARED_INTERMEDIATE_DIR)/ui/app_locale_settings/app_locale_settings_en-US.pak',
[email protected]a52c7312012-07-24 22:45:57490 '<(SHARED_INTERMEDIATE_DIR)/ui/ui_resources/ui_resources_100_percent.pak',
[email protected]e1c26ae2013-01-31 18:13:18491 '<(SHARED_INTERMEDIATE_DIR)/ui/ui_resources/webui_resources.pak',
[email protected]c767d572012-07-27 10:55:58492 '<(SHARED_INTERMEDIATE_DIR)/ui/ui_strings/ui_strings_en-US.pak',
[email protected]e5f893b2013-07-30 02:52:22493 '<(SHARED_INTERMEDIATE_DIR)/webkit/blink_resources.pak',
[email protected]30c8f542012-09-01 01:02:29494 '<(SHARED_INTERMEDIATE_DIR)/webkit/webkit_resources_100_percent.pak',
[email protected]af551a62012-07-31 16:44:03495 '<(SHARED_INTERMEDIATE_DIR)/webkit/webkit_strings_en-US.pak',
[email protected]81f30ce2012-01-18 22:10:33496 ],
[email protected]81f30ce2012-01-18 22:10:33497 },
498 'inputs': [
499 '<(repack_path)',
500 '<@(pak_inputs)',
501 ],
[email protected]81f30ce2012-01-18 22:10:33502 'action': ['python', '<(repack_path)', '<@(_outputs)',
503 '<@(pak_inputs)'],
[email protected]a08029b42012-04-25 03:18:46504 'conditions': [
505 ['OS!="android"', {
[email protected]8dffd2c2013-12-02 14:14:38506 'variables': {
507 'pak_inputs': [
508 '<(SHARED_INTERMEDIATE_DIR)/webkit/devtools_resources.pak',
509 ],
510 },
[email protected]a08029b42012-04-25 03:18:46511 'outputs': [
512 '<(PRODUCT_DIR)/content_shell.pak',
513 ],
514 }, {
515 'outputs': [
516 '<(PRODUCT_DIR)/content_shell/assets/content_shell.pak',
517 ],
518 }],
519 ],
[email protected]81f30ce2012-01-18 22:10:33520 },
521 ],
522 },
523 {
[email protected]c1f87b22011-10-05 21:59:33524 'target_name': 'content_shell',
525 'type': 'executable',
[email protected]85ff16042012-03-06 23:46:34526 'mac_bundle': 1,
[email protected]c1f87b22011-10-05 21:59:33527 'variables': {
528 'chromium_code': 1,
529 },
530 'dependencies': [
531 'content_shell_lib',
[email protected]81f30ce2012-01-18 22:10:33532 'content_shell_pak',
[email protected]bb5d2d92012-10-15 07:45:42533 '../third_party/mesa/mesa.gyp:osmesa',
[email protected]331d1692013-07-25 20:40:13534 '../tools/imagediff/image_diff.gyp:image_diff',
[email protected]c1f87b22011-10-05 21:59:33535 ],
536 'include_dirs': [
537 '..',
538 ],
539 'sources': [
[email protected]711f428e2012-06-22 02:18:23540 'app/startup_helper_win.cc',
[email protected]993951d2013-05-08 21:37:02541 'shell/app/shell_main.cc',
[email protected]c1f87b22011-10-05 21:59:33542 ],
[email protected]85ff16042012-03-06 23:46:34543 'mac_bundle_resources': [
[email protected]993951d2013-05-08 21:37:02544 'shell/app/app.icns',
545 'shell/app/app-Info.plist',
[email protected]85ff16042012-03-06 23:46:34546 ],
547 # TODO(mark): Come up with a fancier way to do this. It should only
548 # be necessary to list app-Info.plist once, not the three times it is
549 # listed here.
550 'mac_bundle_resources!': [
[email protected]993951d2013-05-08 21:37:02551 'shell/app/app-Info.plist',
[email protected]85ff16042012-03-06 23:46:34552 ],
553 'xcode_settings': {
[email protected]993951d2013-05-08 21:37:02554 'INFOPLIST_FILE': 'shell/app/app-Info.plist',
[email protected]85ff16042012-03-06 23:46:34555 },
[email protected]c1f87b22011-10-05 21:59:33556 'msvs_settings': {
557 'VCLinkerTool': {
558 'SubSystem': '2', # Set /SUBSYSTEM:WINDOWS
559 },
[email protected]30624922013-06-04 10:40:10560 'VCManifestTool': {
[email protected]5d60b0b2013-07-30 20:24:30561 'AdditionalManifestFiles': [
562 'shell/app/shell.exe.manifest',
563 ],
[email protected]30624922013-06-04 10:40:10564 },
[email protected]c1f87b22011-10-05 21:59:33565 },
566 'conditions': [
567 ['OS=="win" and win_use_allocator_shim==1', {
568 'dependencies': [
569 '../base/allocator/allocator.gyp:allocator',
570 ],
571 }],
572 ['OS=="win"', {
[email protected]7fc83822012-03-30 19:53:29573 'sources': [
[email protected]993951d2013-05-08 21:37:02574 'shell/app/shell.rc',
[email protected]7fc83822012-03-30 19:53:29575 ],
[email protected]c1f87b22011-10-05 21:59:33576 'configurations': {
577 'Debug_Base': {
578 'msvs_settings': {
579 'VCLinkerTool': {
580 'LinkIncremental': '<(msvs_large_module_debug_link_mode)',
581 },
582 },
583 },
584 },
[email protected]85ff16042012-03-06 23:46:34585 }], # OS=="win"
[email protected]5d9bc782013-05-17 17:22:14586 ['OS == "win" or toolkit_uses_gtk == 1', {
[email protected]27315ce42011-10-14 01:25:12587 'dependencies': [
588 '../sandbox/sandbox.gyp:sandbox',
589 ],
[email protected]5d9bc782013-05-17 17:22:14590 }], # OS=="win" or toolkit_uses_gtk == 1
[email protected]398990892012-01-20 03:25:58591 ['toolkit_uses_gtk == 1', {
592 'dependencies': [
593 '<(DEPTH)/build/linux/system.gyp:gtk',
594 ],
[email protected]85ff16042012-03-06 23:46:34595 }], # toolkit_uses_gtk
596 ['OS=="mac"', {
597 'product_name': '<(content_shell_product_name)',
598 'dependencies!': [
599 'content_shell_lib',
600 ],
601 'dependencies': [
602 'content_shell_framework',
[email protected]180df8f2012-03-09 22:36:10603 'content_shell_helper_app',
604 ],
605 'copies': [
606 {
607 'destination': '<(PRODUCT_DIR)/<(content_shell_product_name).app/Contents/Frameworks',
608 'files': [
609 '<(PRODUCT_DIR)/<(content_shell_product_name) Helper.app',
610 ],
611 },
[email protected]85ff16042012-03-06 23:46:34612 ],
613 'postbuilds': [
614 {
615 'postbuild_name': 'Copy <(content_shell_product_name) Framework.framework',
616 'action': [
617 '../build/mac/copy_framework_unversioned.sh',
618 '${BUILT_PRODUCTS_DIR}/<(content_shell_product_name) Framework.framework',
619 '${BUILT_PRODUCTS_DIR}/${CONTENTS_FOLDER_PATH}/Frameworks',
620 ],
621 },
622 {
[email protected]85ff16042012-03-06 23:46:34623 # Modify the Info.plist as needed.
624 'postbuild_name': 'Tweak Info.plist',
625 'action': ['../build/mac/tweak_info_plist.py',
[email protected]6d302912012-11-05 21:57:28626 '--scm=1',
627 '--version=<(content_shell_version)'],
[email protected]85ff16042012-03-06 23:46:34628 },
629 {
[email protected]180df8f2012-03-09 22:36:10630 # This postbuid step is responsible for creating the following
631 # helpers:
632 #
633 # Content Shell Helper EH.app and Content Shell Helper NP.app are
634 # created from Content Shell Helper.app.
635 #
636 # The EH helper is marked for an executable heap. The NP helper
637 # is marked for no PIE (ASLR).
638 'postbuild_name': 'Make More Helpers',
639 'action': [
640 '../build/mac/make_more_helpers.sh',
641 'Frameworks',
642 '<(content_shell_product_name)',
643 ],
644 },
645 {
[email protected]85ff16042012-03-06 23:46:34646 # Make sure there isn't any Objective-C in the shell's
647 # executable.
648 'postbuild_name': 'Verify No Objective-C',
649 'action': [
650 '../build/mac/verify_no_objc.sh',
651 ],
652 },
653 ],
654 }], # OS=="mac"
[email protected]331d1692013-07-25 20:40:13655 ['OS=="android"', {
656 'dependencies!': [
657 '../tools/imagediff/image_diff.gyp:image_diff',
658 ],
659 }], # OS=="android"
660 ['OS=="android" and android_webview_build==0', {
661 'dependencies': [
662 '../tools/imagediff/image_diff.gyp:image_diff#host',
663 ],
664 }], # OS=="android" and android_webview_build==0
[email protected]c1f87b22011-10-05 21:59:33665 ],
666 },
[email protected]fe2420d2012-08-21 07:28:33667 {
668 'target_name': 'content_shell_builder',
669 'type': 'none',
670 'dependencies': [
671 'content_shell',
[email protected]fe2420d2012-08-21 07:28:33672 ],
673 },
[email protected]d76ff4162014-01-05 19:04:43674 {
675 'target_name': 'layout_test_helper',
676 'type': 'executable',
677 'sources': [
678 'shell/renderer/test_runner/helper/layout_test_helper_mac.mm',
679 'shell/renderer/test_runner/helper/layout_test_helper_win.cc',
680 ],
681 'conditions': [
682 ['OS=="mac"', {
683 'link_settings': {
684 'libraries': [
685 '$(SDKROOT)/System/Library/Frameworks/AppKit.framework',
686 ],
687 },
688 }],
689 ],
690 },
[email protected]de28fed2e2014-02-01 14:36:32691 {
692 'target_name': 'test_netscape_plugin',
693 'type': 'loadable_module',
694 'sources': [
695 'shell/tools/plugin/PluginObject.cpp',
696 'shell/tools/plugin/PluginObject.h',
697 'shell/tools/plugin/PluginObjectMac.mm',
698 'shell/tools/plugin/PluginTest.cpp',
699 'shell/tools/plugin/PluginTest.h',
700 'shell/tools/plugin/TestObject.cpp',
701 'shell/tools/plugin/TestObject.h',
702 'shell/tools/plugin/Tests/DocumentOpenInDestroyStream.cpp',
703 'shell/tools/plugin/Tests/EvaluateJSAfterRemovingPluginElement.cpp',
704 'shell/tools/plugin/Tests/FormValue.cpp',
705 'shell/tools/plugin/Tests/GetURLNotifyWithURLThatFailsToLoad.cpp',
706 'shell/tools/plugin/Tests/GetURLWithJavaScriptURL.cpp',
707 'shell/tools/plugin/Tests/GetURLWithJavaScriptURLDestroyingPlugin.cpp',
708 'shell/tools/plugin/Tests/GetUserAgentWithNullNPPFromNPPNew.cpp',
709 'shell/tools/plugin/Tests/LeakWindowScriptableObject.cpp',
710 'shell/tools/plugin/Tests/LogNPPSetWindow.cpp',
711 'shell/tools/plugin/Tests/NPDeallocateCalledBeforeNPShutdown.cpp',
712 'shell/tools/plugin/Tests/NPPNewFails.cpp',
713 'shell/tools/plugin/Tests/NPRuntimeCallsWithNullNPP.cpp',
714 'shell/tools/plugin/Tests/NPRuntimeObjectFromDestroyedPlugin.cpp',
715 'shell/tools/plugin/Tests/NPRuntimeRemoveProperty.cpp',
716 'shell/tools/plugin/Tests/NullNPPGetValuePointer.cpp',
717 'shell/tools/plugin/Tests/PassDifferentNPPStruct.cpp',
718 'shell/tools/plugin/Tests/PluginScriptableNPObjectInvokeDefault.cpp',
719 'shell/tools/plugin/Tests/PluginScriptableObjectOverridesAllProperties.cpp',
720 'shell/tools/plugin/main.cpp',
721 ],
722 'include_dirs': [
723 '<(DEPTH)',
724 '<(DEPTH)/content/shell/tools/plugin/',
725 ],
726 'dependencies': [
727 '../base/base.gyp:base',
728 '../third_party/npapi/npapi.gyp:npapi',
729 ],
730 'conditions': [
731 ['OS=="mac"', {
732 'mac_bundle': 1,
733 'product_extension': 'plugin',
734 'link_settings': {
735 'libraries': [
736 '$(SDKROOT)/System/Library/Frameworks/Carbon.framework',
737 '$(SDKROOT)/System/Library/Frameworks/Cocoa.framework',
738 '$(SDKROOT)/System/Library/Frameworks/QuartzCore.framework',
739 ]
740 },
741 'xcode_settings': {
742 'GCC_SYMBOLS_PRIVATE_EXTERN': 'NO',
743 'INFOPLIST_FILE': 'shell/tools/plugin/mac/Info.plist',
744 },
745 }],
746 ['os_posix == 1 and OS != "mac"', {
747 'cflags': [
748 '-fvisibility=default',
749 ],
750 }],
751 ['OS=="win"', {
752 'defines': [
753 # This seems like a hack, but this is what Safari Win does.
754 'snprintf=_snprintf',
755 ],
756 'sources': [
757 'shell/tools/plugin/win/TestNetscapePlugin.def',
758 'shell/tools/plugin/win/TestNetscapePlugin.rc',
759 ],
760 # The .rc file requires that the name of the dll is np_test_netscape_plugin.dll.
761 'product_name': 'np_test_netscape_plugin',
762 # Disable c4267 warnings until we fix size_t to int truncations.
763 'msvs_disabled_warnings': [ 4267, ],
764 }],
765 ],
766 },
767 {
768 'target_name': 'copy_test_netscape_plugin',
769 'type': 'none',
770 'dependencies': [
771 'test_netscape_plugin',
772 ],
773 'conditions': [
774 ['OS=="win"', {
775 'copies': [{
776 'destination': '<(PRODUCT_DIR)/plugins',
777 'files': ['<(PRODUCT_DIR)/np_test_netscape_plugin.dll'],
778 }],
779 }],
780 ['OS=="mac"', {
781 'copies': [{
782 'destination': '<(PRODUCT_DIR)/plugins/',
783 'files': ['<(PRODUCT_DIR)/test_netscape_plugin.plugin/'],
784 }],
785 }],
786 ['os_posix == 1 and OS != "mac"', {
787 'copies': [{
788 'destination': '<(PRODUCT_DIR)/plugins',
789 'files': ['<(PRODUCT_DIR)/libtest_netscape_plugin.so'],
790 }],
791 }],
792 ],
793 }
[email protected]5629e0c2011-09-12 22:07:36794 ],
[email protected]85ff16042012-03-06 23:46:34795 'conditions': [
796 ['OS=="mac"', {
797 'targets': [
798 {
799 'target_name': 'content_shell_framework',
800 'type': 'shared_library',
801 'product_name': '<(content_shell_product_name) Framework',
802 'mac_bundle': 1,
803 'mac_bundle_resources': [
[email protected]993951d2013-05-08 21:37:02804 'shell/app/English.lproj/HttpAuth.xib',
805 'shell/app/English.lproj/MainMenu.xib',
[email protected]a7aa8ab2013-10-24 07:21:48806 '<(PRODUCT_DIR)/content_shell.pak',
807 'shell/app/framework-Info.plist',
[email protected]85ff16042012-03-06 23:46:34808 ],
[email protected]a7aa8ab2013-10-24 07:21:48809 'mac_bundle_resources!': [
810 'shell/app/framework-Info.plist',
811 ],
812 'xcode_settings': {
[email protected]6efed472013-11-01 02:09:34813 # The framework is placed within the .app's Framework
814 # directory. DYLIB_INSTALL_NAME_BASE and
815 # LD_DYLIB_INSTALL_NAME affect -install_name.
816 'DYLIB_INSTALL_NAME_BASE':
817 '@executable_path/../Frameworks',
818 # See /build/mac/copy_framework_unversioned.sh for
819 # information on LD_DYLIB_INSTALL_NAME.
820 'LD_DYLIB_INSTALL_NAME':
821 '$(DYLIB_INSTALL_NAME_BASE:standardizepath)/$(WRAPPER_NAME)/$(PRODUCT_NAME)',
822
[email protected]a7aa8ab2013-10-24 07:21:48823 'INFOPLIST_FILE': 'shell/app/framework-Info.plist',
824 },
[email protected]85ff16042012-03-06 23:46:34825 'dependencies': [
826 'content_shell_lib',
827 ],
828 'include_dirs': [
829 '..',
830 ],
831 'sources': [
[email protected]4642f5b2013-07-03 21:43:31832 'shell/app/shell_content_main.cc',
[email protected]216161f2013-07-02 16:23:20833 'shell/app/shell_content_main.h',
[email protected]85ff16042012-03-06 23:46:34834 ],
[email protected]30c246bc2014-01-28 06:00:04835 'postbuilds': [
836 {
837 # Modify the Info.plist as needed. The script explains why
838 # this is needed. This is also done in the chrome target.
839 # The framework needs the Breakpad keys if this feature is
840 # enabled. It does not need the Keystone keys; these always
841 # come from the outer application bundle. The framework
842 # doesn't currently use the SCM keys for anything,
843 # but this seems like a really good place to store them.
844 'postbuild_name': 'Tweak Info.plist',
845 'action': ['../build/mac/tweak_info_plist.py',
846 '--breakpad=1',
847 '--keystone=0',
848 '--scm=1',
849 '--version=<(content_shell_version)',
850 '--branding=<(content_shell_product_name)'],
851 },
852 ],
[email protected]5d96bbe2012-07-25 17:13:23853 'copies': [
854 {
855 # Copy FFmpeg binaries for audio/video support.
856 'destination': '<(PRODUCT_DIR)/$(CONTENTS_FOLDER_PATH)/Libraries',
857 'files': [
858 '<(PRODUCT_DIR)/ffmpegsumo.so',
859 ],
860 },
[email protected]a7aa8ab2013-10-24 07:21:48861 {
862 'destination': '<(PRODUCT_DIR)/$(CONTENTS_FOLDER_PATH)/Resources',
863 'files': [
864 '<(PRODUCT_DIR)/crash_inspector',
865 '<(PRODUCT_DIR)/crash_report_sender.app'
866 ],
867 },
[email protected]5d96bbe2012-07-25 17:13:23868 ],
[email protected]fda1c6c82013-04-09 16:10:12869 'conditions': [
870 ['enable_webrtc==1', {
871 'variables': {
872 'libpeer_target_type%': 'static_library',
873 },
874 'conditions': [
[email protected]e4aa290b2013-05-01 18:54:19875 ['libpeer_target_type!="static_library"', {
[email protected]fda1c6c82013-04-09 16:10:12876 'copies': [{
877 'destination': '<(PRODUCT_DIR)/$(CONTENTS_FOLDER_PATH)/Libraries',
878 'files': [
[email protected]62461b72013-05-02 12:27:12879 '<(PRODUCT_DIR)/libpeerconnection.so',
[email protected]fda1c6c82013-04-09 16:10:12880 ],
881 }],
882 }],
883 ],
884 }],
[email protected]30c246bc2014-01-28 06:00:04885 ['icu_use_data_file_flag==1', {
886 'mac_bundle_resources': [
887 '<(PRODUCT_DIR)/icudtl.dat',
888 ],
889 }],
[email protected]fda1c6c82013-04-09 16:10:12890 ],
[email protected]180df8f2012-03-09 22:36:10891 }, # target content_shell_framework
892 {
893 'target_name': 'content_shell_helper_app',
894 'type': 'executable',
895 'variables': { 'enable_wexit_time_destructors': 1, },
896 'product_name': '<(content_shell_product_name) Helper',
897 'mac_bundle': 1,
898 'dependencies': [
899 'content_shell_framework',
900 ],
901 'sources': [
[email protected]993951d2013-05-08 21:37:02902 'shell/app/shell_main.cc',
903 'shell/app/helper-Info.plist',
[email protected]180df8f2012-03-09 22:36:10904 ],
905 # TODO(mark): Come up with a fancier way to do this. It should only
906 # be necessary to list helper-Info.plist once, not the three times it
907 # is listed here.
908 'mac_bundle_resources!': [
[email protected]993951d2013-05-08 21:37:02909 'shell/app/helper-Info.plist',
[email protected]180df8f2012-03-09 22:36:10910 ],
911 # TODO(mark): For now, don't put any resources into this app. Its
912 # resources directory will be a symbolic link to the browser app's
913 # resources directory.
914 'mac_bundle_resources/': [
915 ['exclude', '.*'],
916 ],
917 'xcode_settings': {
[email protected]993951d2013-05-08 21:37:02918 'INFOPLIST_FILE': 'shell/app/helper-Info.plist',
[email protected]180df8f2012-03-09 22:36:10919 },
920 'postbuilds': [
921 {
922 # The framework defines its load-time path
923 # (DYLIB_INSTALL_NAME_BASE) relative to the main executable
924 # (chrome). A different relative path needs to be used in
925 # content_shell_helper_app.
926 'postbuild_name': 'Fix Framework Link',
927 'action': [
928 'install_name_tool',
929 '-change',
[email protected]6efed472013-11-01 02:09:34930 '@executable_path/../Frameworks/<(content_shell_product_name) Framework.framework/<(content_shell_product_name) Framework',
931 '@executable_path/../../../<(content_shell_product_name) Framework.framework/<(content_shell_product_name) Framework',
[email protected]180df8f2012-03-09 22:36:10932 '${BUILT_PRODUCTS_DIR}/${EXECUTABLE_PATH}'
933 ],
934 },
935 {
936 # Modify the Info.plist as needed. The script explains why this
937 # is needed. This is also done in the chrome and chrome_dll
[email protected]bbf52442012-08-23 22:53:18938 # targets. In this case, --breakpad=0, --keystone=0, and --scm=0
939 # are used because Breakpad, Keystone, and SCM keys are
[email protected]180df8f2012-03-09 22:36:10940 # never placed into the helper.
941 'postbuild_name': 'Tweak Info.plist',
942 'action': ['../build/mac/tweak_info_plist.py',
943 '--breakpad=0',
944 '--keystone=0',
[email protected]6d302912012-11-05 21:57:28945 '--scm=0',
946 '--version=<(content_shell_version)'],
[email protected]180df8f2012-03-09 22:36:10947 },
948 {
949 # Make sure there isn't any Objective-C in the helper app's
950 # executable.
951 'postbuild_name': 'Verify No Objective-C',
952 'action': [
953 '../build/mac/verify_no_objc.sh',
954 ],
955 },
956 ],
[email protected]ec40c38f2012-06-28 16:37:49957 'conditions': [
958 ['component=="shared_library"', {
959 'xcode_settings': {
960 'LD_RUNPATH_SEARCH_PATHS': [
961 # Get back from Content Shell.app/Contents/Frameworks/
962 # Helper.app/Contents/MacOS
963 '@loader_path/../../../../../..',
964 ],
965 },
966 }],
967 ],
[email protected]180df8f2012-03-09 22:36:10968 }, # target content_shell_helper_app
[email protected]85ff16042012-03-06 23:46:34969 ],
970 }], # OS=="mac"
[email protected]cc66d282012-03-30 11:44:06971 ['OS=="android"', {
972 'targets': [
973 {
[email protected]a08029b42012-04-25 03:18:46974 # TODO(jrg): Update this action and other jni generators to only
975 # require specifying the java directory and generate the rest.
976 'target_name': 'content_shell_jni_headers',
977 'type': 'none',
[email protected]e46f66152012-07-19 20:02:55978 'sources': [
[email protected]4d4eb5b2013-01-29 21:55:55979 'shell/android/browsertests_apk/src/org/chromium/content_browsertests_apk/ContentBrowserTestsActivity.java',
[email protected]eadcff0f2013-06-20 21:08:10980 'shell/android/java/src/org/chromium/content_shell/ShellLayoutTestUtils.java',
[email protected]e46f66152012-07-19 20:02:55981 'shell/android/java/src/org/chromium/content_shell/ShellManager.java',
982 'shell/android/java/src/org/chromium/content_shell/Shell.java',
983 ],
[email protected]a08029b42012-04-25 03:18:46984 'variables': {
[email protected]521cd942013-03-07 22:34:05985 'jni_gen_package': 'content/shell',
[email protected]8ef3318fe2014-01-10 15:23:54986 'jni_generator_ptr_type': 'long',
[email protected]a08029b42012-04-25 03:18:46987 },
988 'includes': [ '../build/jni_generator.gypi' ],
989 },
990 {
[email protected]c1101582012-06-25 17:07:18991 'target_name': 'libcontent_shell_content_view',
[email protected]a08029b42012-04-25 03:18:46992 'type': 'shared_library',
993 'dependencies': [
994 'content_shell_jni_headers',
995 'content_shell_lib',
996 'content_shell_pak',
997 # Skia is necessary to ensure the dependencies needed by
998 # WebContents are included.
999 '../skia/skia.gyp:skia',
1000 '<(DEPTH)/media/media.gyp:player_android',
1001 ],
[email protected]a08029b42012-04-25 03:18:461002 'sources': [
1003 'shell/android/shell_library_loader.cc',
1004 'shell/android/shell_library_loader.h',
[email protected]f83a47392012-07-12 22:15:041005 ],
[email protected]7abcaa82012-06-27 17:09:481006 'conditions': [
[email protected]d999c3cb2013-03-12 10:22:361007 ['android_webview_build==1', {
[email protected]7abcaa82012-06-27 17:09:481008 'ldflags': [
1009 '-lgabi++', # For rtti
1010 ],
1011 }],
1012 ],
[email protected]a08029b42012-04-25 03:18:461013 },
1014 {
[email protected]4d4eb5b2013-01-29 21:55:551015 'target_name': 'content_shell_java',
1016 'type': 'none',
1017 'dependencies': [
[email protected]ba42b1e2013-10-19 22:13:171018 'content.gyp:content_java',
[email protected]4d4eb5b2013-01-29 21:55:551019 ],
1020 'variables': {
[email protected]4d4eb5b2013-01-29 21:55:551021 'java_in_dir': '../content/shell/android/java',
1022 'has_java_resources': 1,
1023 'R_package': 'org.chromium.content_shell',
1024 'R_package_relpath': 'org/chromium/content_shell',
1025 },
1026 'includes': [ '../build/java.gypi' ],
1027 },
1028 {
[email protected]319d6a82012-09-20 22:52:281029 # content_shell_apk creates a .jar as a side effect. Any java targets
1030 # that need that .jar in their classpath should depend on this target,
[email protected]4d4eb5b2013-01-29 21:55:551031 # content_shell_apk_java. Dependents of content_shell_apk receive its
1032 # jar path in the variable 'apk_output_jar_path'. This target should
1033 # only be used by targets which instrument content_shell_apk.
1034 'target_name': 'content_shell_apk_java',
[email protected]319d6a82012-09-20 22:52:281035 'type': 'none',
[email protected]319d6a82012-09-20 22:52:281036 'dependencies': [
[email protected]319d6a82012-09-20 22:52:281037 'content_shell_apk',
[email protected]319d6a82012-09-20 22:52:281038 ],
[email protected]b13f73e2013-03-27 23:31:271039 'includes': [ '../build/apk_fake_jar.gypi' ],
[email protected]319d6a82012-09-20 22:52:281040 },
[email protected]75c86a22012-09-26 03:50:371041 {
1042 'target_name': 'content_shell_apk',
1043 'type': 'none',
1044 'dependencies': [
[email protected]ba42b1e2013-10-19 22:13:171045 'content.gyp:content_java',
[email protected]c48fece02013-06-19 12:01:421046 'content_java_test_support',
[email protected]4d4eb5b2013-01-29 21:55:551047 'content_shell_java',
1048 'libcontent_shell_content_view',
[email protected]75c86a22012-09-26 03:50:371049 '../base/base.gyp:base_java',
1050 '../media/media.gyp:media_java',
1051 '../net/net.gyp:net_java',
[email protected]4e384052013-08-14 20:46:301052 '../tools/android/forwarder/forwarder.gyp:forwarder',
[email protected]f450287d2013-11-15 17:52:541053 '../ui/android/ui_android.gyp:ui_java',
[email protected]75c86a22012-09-26 03:50:371054 ],
1055 'variables': {
[email protected]75c86a22012-09-26 03:50:371056 'apk_name': 'ContentShell',
[email protected]4d4eb5b2013-01-29 21:55:551057 'manifest_package_name': 'org.chromium.content_shell_apk',
1058 'java_in_dir': 'shell/android/shell_apk',
[email protected]bd6ab3db2013-03-26 17:35:211059 'resource_dir': 'shell/android/shell_apk/res',
[email protected]e4865252013-04-04 09:15:591060 'native_lib_target': 'libcontent_shell_content_view',
[email protected]75c86a22012-09-26 03:50:371061 'additional_input_paths': ['<(PRODUCT_DIR)/content_shell/assets/content_shell.pak'],
[email protected]0437c502013-11-28 05:17:331062 'asset_location': '<(PRODUCT_DIR)/content_shell/assets',
[email protected]75c86a22012-09-26 03:50:371063 },
[email protected]5b0095b72013-08-01 17:44:221064 'conditions': [
1065 ['android_webview_build==0', {
1066 'dependencies': [
1067 '../tools/imagediff/image_diff.gyp:image_diff#host',
1068 ],
1069 }],
1070 ],
[email protected]75c86a22012-09-26 03:50:371071 'includes': [ '../build/java_apk.gypi' ],
1072 },
[email protected]cc66d282012-03-30 11:44:061073 ],
1074 }], # OS=="android"
[email protected]369205f2013-10-29 04:35:051075 ['OS=="win"', {
1076 'targets': [
1077 {
1078 'target_name': 'content_shell_crash_service',
1079 'type': 'executable',
1080 'dependencies': [
1081 '../base/base.gyp:base',
1082 '../components/components.gyp:breakpad_crash_service',
1083 ],
1084 'include_dirs': [
1085 '..',
1086 ],
1087 'sources': [
1088 'shell/tools/content_shell_crash_service.cc',
1089 ],
1090 'msvs_settings': {
1091 'VCLinkerTool': {
1092 'SubSystem': '2', # Set /SUBSYSTEM:WINDOWS
1093 },
1094 },
1095 },
1096 ],
1097 }], # OS=="win"
[email protected]c8250d42013-10-01 05:17:461098 ['OS=="win" and fastbuild==0 and target_arch=="ia32"', {
1099 'variables': {
1100 'dest_dir': '<(PRODUCT_DIR)/syzygy',
1101 },
1102 'targets': [
1103 {
1104 'target_name': 'content_shell_syzyasan',
1105 'type': 'none',
1106 'sources' : [],
1107 # Instrument content_shell with SyzyAsan.
1108 'actions': [
1109 {
1110 'action_name': 'Instrument content_shell with SyzyAsan',
[email protected]c8250d42013-10-01 05:17:461111 'inputs': [
1112 '<(PRODUCT_DIR)/content_shell.exe',
1113 ],
1114 'outputs': [
1115 '<(dest_dir)/content_shell.exe',
1116 '<(dest_dir)/content_shell.exe.pdb',
1117 ],
1118 'action': [
1119 'python',
1120 '<(DEPTH)/chrome/tools/build/win/syzygy_instrument.py',
1121 '--mode', 'asan',
1122 '--input_executable', '<(PRODUCT_DIR)/content_shell.exe',
1123 '--input_symbol', '<(PRODUCT_DIR)/content_shell.exe.pdb',
1124 '--destination_dir', '<(dest_dir)',
1125 ],
1126 },
1127 ],
1128 },
1129 ],
1130 }], # OS=="win" and fastbuild==0 and target_arch=="ia32"
[email protected]cc66d282012-03-30 11:44:061131 ]
[email protected]5629e0c2011-09-12 22:07:361132}