blob: 0969e9e44ab4cf5d265e2db8753142404edd8be9 [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]f1002b02014-02-12 18:49:5352 '../third_party/WebKit/public/blink.gyp:blink_web_test_support',
[email protected]ed8fd9152014-03-13 10:20:3753 '../ui/base/ui_base.gyp:ui_base',
[email protected]114efae2013-11-06 20:37:5754 '../ui/events/events.gyp:events_base',
[email protected]529a3cf2013-09-30 02:47:4855 '../ui/gfx/gfx.gyp:gfx',
[email protected]b5e2d782013-12-18 21:01:1556 '../ui/gfx/gfx.gyp:gfx_geometry',
[email protected]8350f16f2012-11-30 00:25:3257 '../ui/gl/gl.gyp:gl',
[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]a356e5cc2013-09-24 02:54:4660 '../webkit/common/webkit_common.gyp:webkit_common',
[email protected]a356e5cc2013-09-24 02:54:4661 '../webkit/webkit_resources.gyp:webkit_resources',
[email protected]5629e0c2011-09-12 22:07:3662 ],
63 'include_dirs': [
64 '..',
65 ],
66 'sources': [
[email protected]3de922f2013-12-20 13:27:3867 'public/test/layouttest_support.h',
[email protected]4d4eb5b2013-01-29 21:55:5568 'shell/android/shell_jni_registrar.cc',
69 'shell/android/shell_jni_registrar.h',
70 'shell/android/shell_manager.cc',
71 'shell/android/shell_manager.h',
[email protected]2a94e812013-07-12 15:31:0272 'shell/app/paths_mac.h',
73 'shell/app/paths_mac.mm',
[email protected]d6d06a352013-10-23 07:04:0074 'shell/app/shell_breakpad_client.cc',
75 'shell/app/shell_breakpad_client.h',
[email protected]993951d2013-05-08 21:37:0276 'shell/app/shell_main_delegate.cc',
77 'shell/app/shell_main_delegate.h',
[email protected]2a94e812013-07-12 15:31:0278 'shell/app/shell_main_delegate_mac.h',
79 'shell/app/shell_main_delegate_mac.mm',
[email protected]216161f2013-07-02 16:23:2080 'shell/app/webkit_test_platform_support_android.cc',
[email protected]de7d61ff2013-08-20 11:30:4181 'shell/app/webkit_test_platform_support.h',
[email protected]216161f2013-07-02 16:23:2082 'shell/app/webkit_test_platform_support_linux.cc',
83 'shell/app/webkit_test_platform_support_mac.mm',
84 'shell/app/webkit_test_platform_support_win.cc',
[email protected]de7d61ff2013-08-20 11:30:4185 'shell/browser/notify_done_forwarder.cc',
86 'shell/browser/notify_done_forwarder.h',
87 'shell/browser/shell_android.cc',
88 'shell/browser/shell_application_mac.h',
89 'shell/browser/shell_application_mac.mm',
90 'shell/browser/shell_aura.cc',
91 'shell/browser/shell_browser_context.cc',
92 'shell/browser/shell_browser_context.h',
93 'shell/browser/shell_browser_main.cc',
94 'shell/browser/shell_browser_main.h',
95 'shell/browser/shell_browser_main_parts.cc',
96 'shell/browser/shell_browser_main_parts.h',
97 'shell/browser/shell_browser_main_parts_mac.mm',
98 'shell/browser/shell.cc',
99 'shell/browser/shell_content_browser_client.cc',
100 'shell/browser/shell_content_browser_client.h',
101 'shell/browser/shell_devtools_delegate.cc',
102 'shell/browser/shell_devtools_delegate.h',
103 'shell/browser/shell_devtools_frontend.cc',
104 'shell/browser/shell_devtools_frontend.h',
105 'shell/browser/shell_download_manager_delegate.cc',
106 'shell/browser/shell_download_manager_delegate.h',
107 'shell/browser/shell_gtk.cc',
108 'shell/browser/shell.h',
109 'shell/browser/shell_javascript_dialog_gtk.cc',
110 'shell/browser/shell_javascript_dialog.h',
111 'shell/browser/shell_javascript_dialog_mac.mm',
112 'shell/browser/shell_javascript_dialog_manager.cc',
113 'shell/browser/shell_javascript_dialog_manager.h',
114 'shell/browser/shell_javascript_dialog_win.cc',
115 'shell/browser/shell_layout_tests_android.cc',
116 'shell/browser/shell_layout_tests_android.h',
117 'shell/browser/shell_login_dialog.cc',
118 'shell/browser/shell_login_dialog_gtk.cc',
119 'shell/browser/shell_login_dialog.h',
120 'shell/browser/shell_login_dialog_mac.mm',
121 'shell/browser/shell_mac.mm',
122 'shell/browser/shell_message_filter.cc',
123 'shell/browser/shell_message_filter.h',
124 'shell/browser/shell_net_log.cc',
125 'shell/browser/shell_net_log.h',
126 'shell/browser/shell_network_delegate.cc',
127 'shell/browser/shell_network_delegate.h',
[email protected]a6591142014-01-27 19:32:26128 'shell/browser/shell_platform_data_aura.cc',
129 'shell/browser/shell_platform_data_aura.h',
[email protected]de7d61ff2013-08-20 11:30:41130 'shell/browser/shell_plugin_service_filter.cc',
131 'shell/browser/shell_plugin_service_filter.h',
132 'shell/browser/shell_quota_permission_context.cc',
133 'shell/browser/shell_quota_permission_context.h',
134 'shell/browser/shell_resource_dispatcher_host_delegate.cc',
135 'shell/browser/shell_resource_dispatcher_host_delegate.h',
[email protected]9896c552013-08-29 19:03:20136 'shell/browser/shell_speech_recognition_manager_delegate.cc',
137 'shell/browser/shell_speech_recognition_manager_delegate.h',
[email protected]de7d61ff2013-08-20 11:30:41138 'shell/browser/shell_url_request_context_getter.cc',
139 'shell/browser/shell_url_request_context_getter.h',
[email protected]a896e1e2013-10-20 19:10:30140 'shell/browser/shell_views.cc',
[email protected]de7d61ff2013-08-20 11:30:41141 'shell/browser/shell_web_contents_view_delegate_android.cc',
142 'shell/browser/shell_web_contents_view_delegate_creator.h',
143 'shell/browser/shell_web_contents_view_delegate_gtk.cc',
144 'shell/browser/shell_web_contents_view_delegate.h',
145 'shell/browser/shell_web_contents_view_delegate_mac.mm',
146 'shell/browser/shell_web_contents_view_delegate_win.cc',
[email protected]de7d61ff2013-08-20 11:30:41147 'shell/browser/webkit_test_controller.cc',
148 'shell/browser/webkit_test_controller.h',
[email protected]4562cf72014-01-27 10:10:13149 'shell/common/leak_detection_result.h',
[email protected]b7c504c2013-05-07 14:42:12150 'shell/common/shell_content_client.cc',
151 'shell/common/shell_content_client.h',
152 'shell/common/shell_messages.cc',
153 'shell/common/shell_messages.h',
154 'shell/common/shell_switches.cc',
155 'shell/common/shell_switches.h',
156 'shell/common/shell_test_configuration.cc',
157 'shell/common/shell_test_configuration.h',
[email protected]3de922f2013-12-20 13:27:38158 'shell/common/test_runner/WebPreferences.cpp',
159 'shell/common/test_runner/WebPreferences.h',
[email protected]b7c504c2013-05-07 14:42:12160 'shell/common/webkit_test_helpers.cc',
161 'shell/common/webkit_test_helpers.h',
[email protected]6cfccd12012-06-28 12:14:05162 'shell/geolocation/shell_access_token_store.cc',
163 'shell/geolocation/shell_access_token_store.h',
[email protected]41fba0e2014-01-16 18:19:42164 'shell/renderer/gc_controller.cc',
165 'shell/renderer/gc_controller.h',
[email protected]4562cf72014-01-27 10:10:13166 'shell/renderer/leak_detector.cc',
167 'shell/renderer/leak_detector.h',
[email protected]f7a4e3b92013-05-03 15:29:58168 'shell/renderer/shell_content_renderer_client.cc',
169 'shell/renderer/shell_content_renderer_client.h',
[email protected]a86c0e962013-12-17 17:10:39170 'shell/renderer/shell_render_frame_observer.cc',
171 'shell/renderer/shell_render_frame_observer.h',
[email protected]f7a4e3b92013-05-03 15:29:58172 'shell/renderer/shell_render_process_observer.cc',
173 'shell/renderer/shell_render_process_observer.h',
[email protected]81914ad2013-07-02 18:54:25174 'shell/renderer/shell_render_view_observer.cc',
175 'shell/renderer/shell_render_view_observer.h',
[email protected]3de922f2013-12-20 13:27:38176 'shell/renderer/test_runner/CppBoundClass.cpp',
177 'shell/renderer/test_runner/CppBoundClass.h',
178 'shell/renderer/test_runner/CppVariant.cpp',
179 'shell/renderer/test_runner/CppVariant.h',
180 'shell/renderer/test_runner/EventSender.cpp',
181 'shell/renderer/test_runner/EventSender.h',
[email protected]3de922f2013-12-20 13:27:38182 'shell/renderer/test_runner/KeyCodeMapping.cpp',
183 'shell/renderer/test_runner/KeyCodeMapping.h',
184 'shell/renderer/test_runner/MockColorChooser.cpp',
185 'shell/renderer/test_runner/MockColorChooser.h',
186 'shell/renderer/test_runner/MockConstraints.cpp',
187 'shell/renderer/test_runner/MockConstraints.h',
188 'shell/renderer/test_runner/MockGrammarCheck.cpp',
189 'shell/renderer/test_runner/MockGrammarCheck.h',
190 'shell/renderer/test_runner/MockSpellCheck.cpp',
191 'shell/renderer/test_runner/MockSpellCheck.h',
192 'shell/renderer/test_runner/MockWebAudioDevice.cpp',
193 'shell/renderer/test_runner/MockWebAudioDevice.h',
[email protected]3de922f2013-12-20 13:27:38194 'shell/renderer/test_runner/MockWebMIDIAccessor.cpp',
195 'shell/renderer/test_runner/MockWebMIDIAccessor.h',
[email protected]d76ff4162014-01-05 19:04:43196 'shell/renderer/test_runner/MockWebMediaStreamCenter.cpp',
197 'shell/renderer/test_runner/MockWebMediaStreamCenter.h',
[email protected]3de922f2013-12-20 13:27:38198 'shell/renderer/test_runner/MockWebRTCDTMFSenderHandler.cpp',
199 'shell/renderer/test_runner/MockWebRTCDTMFSenderHandler.h',
[email protected]d76ff4162014-01-05 19:04:43200 'shell/renderer/test_runner/MockWebRTCDataChannelHandler.cpp',
201 'shell/renderer/test_runner/MockWebRTCDataChannelHandler.h',
[email protected]3de922f2013-12-20 13:27:38202 'shell/renderer/test_runner/MockWebRTCPeerConnectionHandler.cpp',
203 'shell/renderer/test_runner/MockWebRTCPeerConnectionHandler.h',
204 'shell/renderer/test_runner/MockWebSpeechInputController.cpp',
205 'shell/renderer/test_runner/MockWebSpeechInputController.h',
206 'shell/renderer/test_runner/MockWebSpeechRecognizer.cpp',
207 'shell/renderer/test_runner/MockWebSpeechRecognizer.h',
[email protected]3de922f2013-12-20 13:27:38208 'shell/renderer/test_runner/SpellCheckClient.cpp',
209 'shell/renderer/test_runner/SpellCheckClient.h',
210 'shell/renderer/test_runner/TestCommon.cpp',
211 'shell/renderer/test_runner/TestCommon.h',
212 'shell/renderer/test_runner/TestInterfaces.cpp',
213 'shell/renderer/test_runner/TestInterfaces.h',
214 'shell/renderer/test_runner/TestPlugin.cpp',
215 'shell/renderer/test_runner/TestPlugin.h',
[email protected]3de922f2013-12-20 13:27:38216 'shell/renderer/test_runner/WebFrameTestProxy.h',
217 'shell/renderer/test_runner/WebPermissions.cpp',
218 'shell/renderer/test_runner/WebPermissions.h',
[email protected]3de922f2013-12-20 13:27:38219 'shell/renderer/test_runner/WebTask.cpp',
220 'shell/renderer/test_runner/WebTask.h',
221 'shell/renderer/test_runner/WebTestDelegate.h',
222 'shell/renderer/test_runner/WebTestInterfaces.cpp',
223 'shell/renderer/test_runner/WebTestInterfaces.h',
224 'shell/renderer/test_runner/WebTestProxy.cpp',
225 'shell/renderer/test_runner/WebTestProxy.h',
226 'shell/renderer/test_runner/WebTestRunner.h',
[email protected]3de922f2013-12-20 13:27:38227 'shell/renderer/test_runner/WebTestThemeEngineMac.h',
228 'shell/renderer/test_runner/WebTestThemeEngineMac.mm',
229 'shell/renderer/test_runner/WebTestThemeEngineMock.cpp',
230 'shell/renderer/test_runner/WebTestThemeEngineMock.h',
[email protected]3de922f2013-12-20 13:27:38231 'shell/renderer/test_runner/WebUserMediaClientMock.cpp',
232 'shell/renderer/test_runner/WebUserMediaClientMock.h',
[email protected]fa6a8f42014-03-06 14:20:18233 'shell/renderer/test_runner/accessibility_controller.cc',
234 'shell/renderer/test_runner/accessibility_controller.h',
[email protected]cf786002014-02-11 02:05:54235 'shell/renderer/test_runner/gamepad_controller.cc',
236 'shell/renderer/test_runner/gamepad_controller.h',
[email protected]dc0a9762014-02-28 18:41:54237 'shell/renderer/test_runner/notification_presenter.cc',
238 'shell/renderer/test_runner/notification_presenter.h',
[email protected]97f9a7952014-03-14 11:50:33239 'shell/renderer/test_runner/test_runner.cc',
240 'shell/renderer/test_runner/test_runner.h',
[email protected]f751653a92014-02-18 16:32:55241 'shell/renderer/test_runner/text_input_controller.cc',
242 'shell/renderer/test_runner/text_input_controller.h',
[email protected]fa6a8f42014-03-06 14:20:18243 'shell/renderer/test_runner/unsafe_persistent.h',
244 'shell/renderer/test_runner/web_ax_object_proxy.cc',
245 'shell/renderer/test_runner/web_ax_object_proxy.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]5fcce3f72014-03-05 20:07:26318 # TODO(dmikurube): Kill linux_use_tcmalloc. http://crbug.com/345554
[email protected]09854752014-03-12 21:19:06319 ['(os_posix==1 and use_aura==1 and ((use_allocator!="none" and use_allocator!="see_use_tcmalloc") or (use_allocator=="see_use_tcmalloc" and linux_use_tcmalloc==1))) or (android_use_tcmalloc==1)', {
[email protected]c767d572012-07-27 10:55:58320 'dependencies': [
321 # This is needed by content/app/content_main_runner.cc
322 '../base/allocator/allocator.gyp:allocator',
323 ],
324 }],
[email protected]fa4a45832012-04-12 21:32:48325 ['use_aura==1', {
[email protected]c767d572012-07-27 10:55:58326 'dependencies': [
327 '../ui/aura/aura.gyp:aura',
328 '../ui/base/strings/ui_strings.gyp:ui_strings',
[email protected]c767d572012-07-27 10:55:58329 ],
[email protected]fa4a45832012-04-12 21:32:48330 'sources/': [
[email protected]de7d61ff2013-08-20 11:30:41331 ['exclude', 'shell/browser/shell_gtk.cc'],
[email protected]fa4a45832012-04-12 21:32:48332 ],
[email protected]a896e1e2013-10-20 19:10:30333 'conditions': [
334 ['toolkit_views==1', {
335 'dependencies': [
[email protected]dae78442013-11-26 16:57:02336 '../ui/resources/ui_resources.gyp:ui_resources',
[email protected]a896e1e2013-10-20 19:10:30337 '../ui/views/controls/webview/webview.gyp:webview',
338 '../ui/views/views.gyp:views',
339 '../ui/views/views.gyp:views_test_support',
[email protected]e319c7e2014-03-14 19:56:14340 '../ui/wm/wm.gyp:wm_core',
[email protected]a896e1e2013-10-20 19:10:30341 ],
342 'sources/': [
343 ['exclude', 'shell/browser/shell_aura.cc'],
344 ],
345 }, {
346 'sources/': [
347 ['exclude', 'shell/browser/shell_views.cc'],
348 ],
349 }],
350 ],
351 }, {
352 'sources/': [
353 ['exclude', 'shell/browser/shell_aura.cc'],
354 ['exclude', 'shell/browser/shell_views.cc'],
355 ],
[email protected]96b80b472012-07-03 19:41:56356 }], # use_aura==1
[email protected]6b911a32014-01-10 02:34:53357 # The test plugin relies on X11.
358 ['OS=="linux" and use_x11==0', {
359 'dependencies!': [
[email protected]de28fed2e2014-02-01 14:36:32360 'copy_test_netscape_plugin',
[email protected]6b911a32014-01-10 02:34:53361 ],
362 }],
[email protected]c767d572012-07-27 10:55:58363 ['chromeos==1', {
364 'dependencies': [
365 '../chromeos/chromeos.gyp:chromeos',
[email protected]de6831b2013-11-16 01:04:30366 '../ui/wm/wm.gyp:wm_test_support',
[email protected]c767d572012-07-27 10:55:58367 ],
368 }], # chromeos==1
[email protected]929246a2013-02-28 13:55:20369 ['use_custom_freetype==1', {
370 'dependencies': [
371 '../third_party/freetype2/freetype2.gyp:freetype2',
372 ],
373 }],
[email protected]dfb9360192013-05-27 09:42:34374 ['enable_plugins==0', {
375 'sources/': [
[email protected]de7d61ff2013-08-20 11:30:41376 ['exclude', 'shell/browser/shell_plugin_service_filter.cc'],
377 ['exclude', 'shell/browser/shell_plugin_service_filter.h'],
[email protected]dfb9360192013-05-27 09:42:34378 ],
379 }]
[email protected]5629e0c2011-09-12 22:07:36380 ],
381 },
[email protected]c1f87b22011-10-05 21:59:33382 {
[email protected]ee75b8992012-01-27 07:53:57383 'target_name': 'content_shell_resources',
384 'type': 'none',
[email protected]b581eb402012-03-09 01:31:46385 'dependencies': [
386 'generate_content_shell_resources',
387 ],
388 'variables': {
389 'grit_out_dir': '<(SHARED_INTERMEDIATE_DIR)/content',
390 },
391 'includes': [ '../build/grit_target.gypi' ],
392 'copies': [
393 {
394 'destination': '<(PRODUCT_DIR)',
395 'files': [
396 '<(SHARED_INTERMEDIATE_DIR)/content/shell_resources.pak'
397 ],
398 },
399 ],
[email protected]6b911a32014-01-10 02:34:53400 'conditions': [
401 ['OS=="win"', {
402 'copies': [{
403 'destination': '<(PRODUCT_DIR)',
404 'files': ['shell/renderer/test_runner/resources/fonts/AHEM____.TTF'],
405 }],
406 }],
407 ['OS=="mac"', {
408 'all_dependent_settings': {
409 'mac_bundle_resources': [
410 'shell/renderer/test_runner/resources/fonts/AHEM____.TTF',
411 '<(SHARED_INTERMEDIATE_DIR)/webkit/missingImage.png',
412 '<(SHARED_INTERMEDIATE_DIR)/webkit/textAreaResizeCorner.png',
413 ],
414 },
415 }],
416 ['use_x11 == 1', {
417 'copies': [{
418 'destination': '<(PRODUCT_DIR)',
419 'files': [
420 'shell/renderer/test_runner/resources/fonts/AHEM____.TTF',
421 'shell/renderer/test_runner/resources/fonts/fonts.conf',
422 ]
423 }],
424 }],
425 ['OS=="android"', {
426 'copies': [{
427 'destination': '<(PRODUCT_DIR)',
428 'files': [
429 'shell/renderer/test_runner/resources/fonts/AHEM____.TTF',
430 'shell/renderer/test_runner/resources/fonts/android_main_fonts.xml',
431 'shell/renderer/test_runner/resources/fonts/android_fallback_fonts.xml',
432 ]
433 }],
434 }],
435 ],
[email protected]4cb792f42012-03-24 03:12:42436 },
437 {
[email protected]b581eb402012-03-09 01:31:46438 'target_name': 'generate_content_shell_resources',
439 'type': 'none',
[email protected]ee75b8992012-01-27 07:53:57440 'variables': {
441 'grit_out_dir': '<(SHARED_INTERMEDIATE_DIR)/content',
442 },
443 'actions': [
444 {
445 'action_name': 'content_shell_resources',
446 'variables': {
447 'grit_grd_file': 'shell/shell_resources.grd',
448 },
449 'includes': [ '../build/grit_action.gypi' ],
450 },
451 ],
[email protected]ee75b8992012-01-27 07:53:57452 },
453 {
[email protected]81f30ce2012-01-18 22:10:33454 # We build a minimal set of resources so WebKit in content_shell has
455 # access to necessary resources.
456 'target_name': 'content_shell_pak',
457 'type': 'none',
[email protected]ee75b8992012-01-27 07:53:57458 'dependencies': [
[email protected]06c54162013-06-10 00:25:05459 'content_resources.gyp:content_resources',
[email protected]ee75b8992012-01-27 07:53:57460 'content_shell_resources',
[email protected]06c54162013-06-10 00:25:05461 '<(DEPTH)/net/net.gyp:net_resources',
462 '<(DEPTH)/ui/base/strings/ui_strings.gyp:ui_strings',
[email protected]1c0c3f42013-11-20 02:03:28463 '<(DEPTH)/ui/resources/ui_resources.gyp:ui_resources',
[email protected]d7871ac2013-07-09 21:35:41464 '<(DEPTH)/webkit/webkit_resources.gyp:webkit_resources',
465 '<(DEPTH)/webkit/webkit_resources.gyp:webkit_strings',
[email protected]ee75b8992012-01-27 07:53:57466 ],
[email protected]3df230d2013-07-03 00:44:57467 'conditions': [
468 ['OS!="android" and OS!="ios"', {
469 'dependencies': [
470 'browser/tracing/tracing_resources.gyp:tracing_resources',
471 ],
472 }],
[email protected]8dffd2c2013-12-02 14:14:38473 ['OS!="android"', {
474 'dependencies': [
475 'browser/devtools/devtools_resources.gyp:devtools_resources',
476 ],
477 }],
[email protected]3df230d2013-07-03 00:44:57478 ],
[email protected]81f30ce2012-01-18 22:10:33479 'variables': {
480 'repack_path': '<(DEPTH)/tools/grit/grit/format/repack.py',
481 },
482 'actions': [
483 {
484 'action_name': 'repack_content_shell_pack',
485 'variables': {
486 'pak_inputs': [
487 '<(SHARED_INTERMEDIATE_DIR)/content/content_resources.pak',
[email protected]479bea22013-07-02 21:46:06488 '<(SHARED_INTERMEDIATE_DIR)/content/browser/tracing/tracing_resources.pak',
[email protected]ee75b8992012-01-27 07:53:57489 '<(SHARED_INTERMEDIATE_DIR)/content/shell_resources.pak',
[email protected]81f30ce2012-01-18 22:10:33490 '<(SHARED_INTERMEDIATE_DIR)/net/net_resources.pak',
[email protected]c767d572012-07-27 10:55:58491 '<(SHARED_INTERMEDIATE_DIR)/ui/app_locale_settings/app_locale_settings_en-US.pak',
[email protected]a52c7312012-07-24 22:45:57492 '<(SHARED_INTERMEDIATE_DIR)/ui/ui_resources/ui_resources_100_percent.pak',
[email protected]e1c26ae2013-01-31 18:13:18493 '<(SHARED_INTERMEDIATE_DIR)/ui/ui_resources/webui_resources.pak',
[email protected]c767d572012-07-27 10:55:58494 '<(SHARED_INTERMEDIATE_DIR)/ui/ui_strings/ui_strings_en-US.pak',
[email protected]e5f893b2013-07-30 02:52:22495 '<(SHARED_INTERMEDIATE_DIR)/webkit/blink_resources.pak',
[email protected]30c8f542012-09-01 01:02:29496 '<(SHARED_INTERMEDIATE_DIR)/webkit/webkit_resources_100_percent.pak',
[email protected]af551a62012-07-31 16:44:03497 '<(SHARED_INTERMEDIATE_DIR)/webkit/webkit_strings_en-US.pak',
[email protected]81f30ce2012-01-18 22:10:33498 ],
[email protected]81f30ce2012-01-18 22:10:33499 },
500 'inputs': [
501 '<(repack_path)',
502 '<@(pak_inputs)',
503 ],
[email protected]81f30ce2012-01-18 22:10:33504 'action': ['python', '<(repack_path)', '<@(_outputs)',
505 '<@(pak_inputs)'],
[email protected]a08029b42012-04-25 03:18:46506 'conditions': [
507 ['OS!="android"', {
[email protected]8dffd2c2013-12-02 14:14:38508 'variables': {
509 'pak_inputs': [
510 '<(SHARED_INTERMEDIATE_DIR)/webkit/devtools_resources.pak',
511 ],
512 },
[email protected]a08029b42012-04-25 03:18:46513 'outputs': [
514 '<(PRODUCT_DIR)/content_shell.pak',
515 ],
516 }, {
517 'outputs': [
518 '<(PRODUCT_DIR)/content_shell/assets/content_shell.pak',
519 ],
520 }],
521 ],
[email protected]81f30ce2012-01-18 22:10:33522 },
523 ],
524 },
525 {
[email protected]c1f87b22011-10-05 21:59:33526 'target_name': 'content_shell',
527 'type': 'executable',
[email protected]85ff16042012-03-06 23:46:34528 'mac_bundle': 1,
[email protected]c1f87b22011-10-05 21:59:33529 'variables': {
530 'chromium_code': 1,
531 },
532 'dependencies': [
533 'content_shell_lib',
[email protected]81f30ce2012-01-18 22:10:33534 'content_shell_pak',
[email protected]bb5d2d92012-10-15 07:45:42535 '../third_party/mesa/mesa.gyp:osmesa',
[email protected]331d1692013-07-25 20:40:13536 '../tools/imagediff/image_diff.gyp:image_diff',
[email protected]c1f87b22011-10-05 21:59:33537 ],
538 'include_dirs': [
539 '..',
540 ],
541 'sources': [
[email protected]711f428e2012-06-22 02:18:23542 'app/startup_helper_win.cc',
[email protected]993951d2013-05-08 21:37:02543 'shell/app/shell_main.cc',
[email protected]c1f87b22011-10-05 21:59:33544 ],
[email protected]85ff16042012-03-06 23:46:34545 'mac_bundle_resources': [
[email protected]993951d2013-05-08 21:37:02546 'shell/app/app.icns',
547 'shell/app/app-Info.plist',
[email protected]85ff16042012-03-06 23:46:34548 ],
549 # TODO(mark): Come up with a fancier way to do this. It should only
550 # be necessary to list app-Info.plist once, not the three times it is
551 # listed here.
552 'mac_bundle_resources!': [
[email protected]993951d2013-05-08 21:37:02553 'shell/app/app-Info.plist',
[email protected]85ff16042012-03-06 23:46:34554 ],
555 'xcode_settings': {
[email protected]993951d2013-05-08 21:37:02556 'INFOPLIST_FILE': 'shell/app/app-Info.plist',
[email protected]85ff16042012-03-06 23:46:34557 },
[email protected]c1f87b22011-10-05 21:59:33558 'msvs_settings': {
559 'VCLinkerTool': {
560 'SubSystem': '2', # Set /SUBSYSTEM:WINDOWS
561 },
[email protected]30624922013-06-04 10:40:10562 'VCManifestTool': {
[email protected]5d60b0b2013-07-30 20:24:30563 'AdditionalManifestFiles': [
564 'shell/app/shell.exe.manifest',
565 ],
[email protected]30624922013-06-04 10:40:10566 },
[email protected]c1f87b22011-10-05 21:59:33567 },
568 'conditions': [
569 ['OS=="win" and win_use_allocator_shim==1', {
570 'dependencies': [
571 '../base/allocator/allocator.gyp:allocator',
572 ],
573 }],
574 ['OS=="win"', {
[email protected]7fc83822012-03-30 19:53:29575 'sources': [
[email protected]993951d2013-05-08 21:37:02576 'shell/app/shell.rc',
[email protected]7fc83822012-03-30 19:53:29577 ],
[email protected]c1f87b22011-10-05 21:59:33578 'configurations': {
579 'Debug_Base': {
580 'msvs_settings': {
581 'VCLinkerTool': {
582 'LinkIncremental': '<(msvs_large_module_debug_link_mode)',
583 },
584 },
585 },
586 },
[email protected]89a50152014-03-18 20:24:56587 'msvs_large_pdb': 1,
[email protected]85ff16042012-03-06 23:46:34588 }], # OS=="win"
[email protected]5d9bc782013-05-17 17:22:14589 ['OS == "win" or toolkit_uses_gtk == 1', {
[email protected]27315ce42011-10-14 01:25:12590 'dependencies': [
591 '../sandbox/sandbox.gyp:sandbox',
592 ],
[email protected]5d9bc782013-05-17 17:22:14593 }], # OS=="win" or toolkit_uses_gtk == 1
[email protected]398990892012-01-20 03:25:58594 ['toolkit_uses_gtk == 1', {
595 'dependencies': [
596 '<(DEPTH)/build/linux/system.gyp:gtk',
597 ],
[email protected]85ff16042012-03-06 23:46:34598 }], # toolkit_uses_gtk
599 ['OS=="mac"', {
600 'product_name': '<(content_shell_product_name)',
601 'dependencies!': [
602 'content_shell_lib',
603 ],
604 'dependencies': [
605 'content_shell_framework',
[email protected]180df8f2012-03-09 22:36:10606 'content_shell_helper_app',
607 ],
608 'copies': [
609 {
610 'destination': '<(PRODUCT_DIR)/<(content_shell_product_name).app/Contents/Frameworks',
611 'files': [
612 '<(PRODUCT_DIR)/<(content_shell_product_name) Helper.app',
613 ],
614 },
[email protected]85ff16042012-03-06 23:46:34615 ],
616 'postbuilds': [
617 {
618 'postbuild_name': 'Copy <(content_shell_product_name) Framework.framework',
619 'action': [
620 '../build/mac/copy_framework_unversioned.sh',
621 '${BUILT_PRODUCTS_DIR}/<(content_shell_product_name) Framework.framework',
622 '${BUILT_PRODUCTS_DIR}/${CONTENTS_FOLDER_PATH}/Frameworks',
623 ],
624 },
625 {
[email protected]85ff16042012-03-06 23:46:34626 # Modify the Info.plist as needed.
627 'postbuild_name': 'Tweak Info.plist',
628 'action': ['../build/mac/tweak_info_plist.py',
[email protected]6d302912012-11-05 21:57:28629 '--scm=1',
630 '--version=<(content_shell_version)'],
[email protected]85ff16042012-03-06 23:46:34631 },
632 {
[email protected]180df8f2012-03-09 22:36:10633 # This postbuid step is responsible for creating the following
634 # helpers:
635 #
636 # Content Shell Helper EH.app and Content Shell Helper NP.app are
637 # created from Content Shell Helper.app.
638 #
639 # The EH helper is marked for an executable heap. The NP helper
640 # is marked for no PIE (ASLR).
641 'postbuild_name': 'Make More Helpers',
642 'action': [
643 '../build/mac/make_more_helpers.sh',
644 'Frameworks',
645 '<(content_shell_product_name)',
646 ],
647 },
648 {
[email protected]85ff16042012-03-06 23:46:34649 # Make sure there isn't any Objective-C in the shell's
650 # executable.
651 'postbuild_name': 'Verify No Objective-C',
652 'action': [
653 '../build/mac/verify_no_objc.sh',
654 ],
655 },
656 ],
657 }], # OS=="mac"
[email protected]331d1692013-07-25 20:40:13658 ['OS=="android"', {
659 'dependencies!': [
660 '../tools/imagediff/image_diff.gyp:image_diff',
661 ],
662 }], # OS=="android"
663 ['OS=="android" and android_webview_build==0', {
664 'dependencies': [
665 '../tools/imagediff/image_diff.gyp:image_diff#host',
666 ],
667 }], # OS=="android" and android_webview_build==0
[email protected]c1f87b22011-10-05 21:59:33668 ],
669 },
[email protected]fe2420d2012-08-21 07:28:33670 {
671 'target_name': 'content_shell_builder',
672 'type': 'none',
673 'dependencies': [
674 'content_shell',
[email protected]fe2420d2012-08-21 07:28:33675 ],
676 },
[email protected]d76ff4162014-01-05 19:04:43677 {
678 'target_name': 'layout_test_helper',
679 'type': 'executable',
680 'sources': [
681 'shell/renderer/test_runner/helper/layout_test_helper_mac.mm',
682 'shell/renderer/test_runner/helper/layout_test_helper_win.cc',
683 ],
684 'conditions': [
685 ['OS=="mac"', {
686 'link_settings': {
687 'libraries': [
688 '$(SDKROOT)/System/Library/Frameworks/AppKit.framework',
689 ],
690 },
691 }],
692 ],
693 },
[email protected]de28fed2e2014-02-01 14:36:32694 {
695 'target_name': 'test_netscape_plugin',
696 'type': 'loadable_module',
697 'sources': [
698 'shell/tools/plugin/PluginObject.cpp',
699 'shell/tools/plugin/PluginObject.h',
700 'shell/tools/plugin/PluginObjectMac.mm',
701 'shell/tools/plugin/PluginTest.cpp',
702 'shell/tools/plugin/PluginTest.h',
703 'shell/tools/plugin/TestObject.cpp',
[email protected]de28fed2e2014-02-01 14:36:32704 'shell/tools/plugin/Tests/DocumentOpenInDestroyStream.cpp',
705 'shell/tools/plugin/Tests/EvaluateJSAfterRemovingPluginElement.cpp',
706 'shell/tools/plugin/Tests/FormValue.cpp',
707 'shell/tools/plugin/Tests/GetURLNotifyWithURLThatFailsToLoad.cpp',
708 'shell/tools/plugin/Tests/GetURLWithJavaScriptURL.cpp',
709 'shell/tools/plugin/Tests/GetURLWithJavaScriptURLDestroyingPlugin.cpp',
710 'shell/tools/plugin/Tests/GetUserAgentWithNullNPPFromNPPNew.cpp',
711 'shell/tools/plugin/Tests/LeakWindowScriptableObject.cpp',
712 'shell/tools/plugin/Tests/LogNPPSetWindow.cpp',
713 'shell/tools/plugin/Tests/NPDeallocateCalledBeforeNPShutdown.cpp',
714 'shell/tools/plugin/Tests/NPPNewFails.cpp',
715 'shell/tools/plugin/Tests/NPRuntimeCallsWithNullNPP.cpp',
716 'shell/tools/plugin/Tests/NPRuntimeObjectFromDestroyedPlugin.cpp',
717 'shell/tools/plugin/Tests/NPRuntimeRemoveProperty.cpp',
718 'shell/tools/plugin/Tests/NullNPPGetValuePointer.cpp',
719 'shell/tools/plugin/Tests/PassDifferentNPPStruct.cpp',
720 'shell/tools/plugin/Tests/PluginScriptableNPObjectInvokeDefault.cpp',
721 'shell/tools/plugin/Tests/PluginScriptableObjectOverridesAllProperties.cpp',
722 'shell/tools/plugin/main.cpp',
[email protected]0516a592014-02-13 00:10:04723 'shell/tools/plugin/test_object.h',
[email protected]de28fed2e2014-02-01 14:36:32724 ],
725 'include_dirs': [
726 '<(DEPTH)',
727 '<(DEPTH)/content/shell/tools/plugin/',
728 ],
729 'dependencies': [
730 '../base/base.gyp:base',
731 '../third_party/npapi/npapi.gyp:npapi',
732 ],
733 'conditions': [
734 ['OS=="mac"', {
735 'mac_bundle': 1,
736 'product_extension': 'plugin',
737 'link_settings': {
738 'libraries': [
739 '$(SDKROOT)/System/Library/Frameworks/Carbon.framework',
740 '$(SDKROOT)/System/Library/Frameworks/Cocoa.framework',
741 '$(SDKROOT)/System/Library/Frameworks/QuartzCore.framework',
742 ]
743 },
744 'xcode_settings': {
745 'GCC_SYMBOLS_PRIVATE_EXTERN': 'NO',
746 'INFOPLIST_FILE': 'shell/tools/plugin/mac/Info.plist',
747 },
748 }],
749 ['os_posix == 1 and OS != "mac"', {
750 'cflags': [
751 '-fvisibility=default',
752 ],
753 }],
754 ['OS=="win"', {
755 'defines': [
756 # This seems like a hack, but this is what Safari Win does.
757 'snprintf=_snprintf',
758 ],
759 'sources': [
760 'shell/tools/plugin/win/TestNetscapePlugin.def',
761 'shell/tools/plugin/win/TestNetscapePlugin.rc',
762 ],
763 # The .rc file requires that the name of the dll is np_test_netscape_plugin.dll.
764 'product_name': 'np_test_netscape_plugin',
765 # Disable c4267 warnings until we fix size_t to int truncations.
766 'msvs_disabled_warnings': [ 4267, ],
767 }],
768 ],
769 },
770 {
771 'target_name': 'copy_test_netscape_plugin',
772 'type': 'none',
773 'dependencies': [
774 'test_netscape_plugin',
775 ],
776 'conditions': [
777 ['OS=="win"', {
778 'copies': [{
779 'destination': '<(PRODUCT_DIR)/plugins',
780 'files': ['<(PRODUCT_DIR)/np_test_netscape_plugin.dll'],
781 }],
782 }],
783 ['OS=="mac"', {
784 'copies': [{
785 'destination': '<(PRODUCT_DIR)/plugins/',
786 'files': ['<(PRODUCT_DIR)/test_netscape_plugin.plugin/'],
787 }],
788 }],
789 ['os_posix == 1 and OS != "mac"', {
790 'copies': [{
791 'destination': '<(PRODUCT_DIR)/plugins',
792 'files': ['<(PRODUCT_DIR)/libtest_netscape_plugin.so'],
793 }],
794 }],
795 ],
796 }
[email protected]5629e0c2011-09-12 22:07:36797 ],
[email protected]85ff16042012-03-06 23:46:34798 'conditions': [
799 ['OS=="mac"', {
800 'targets': [
801 {
802 'target_name': 'content_shell_framework',
803 'type': 'shared_library',
804 'product_name': '<(content_shell_product_name) Framework',
805 'mac_bundle': 1,
806 'mac_bundle_resources': [
[email protected]993951d2013-05-08 21:37:02807 'shell/app/English.lproj/HttpAuth.xib',
808 'shell/app/English.lproj/MainMenu.xib',
[email protected]a7aa8ab2013-10-24 07:21:48809 '<(PRODUCT_DIR)/content_shell.pak',
810 'shell/app/framework-Info.plist',
[email protected]85ff16042012-03-06 23:46:34811 ],
[email protected]a7aa8ab2013-10-24 07:21:48812 'mac_bundle_resources!': [
813 'shell/app/framework-Info.plist',
814 ],
815 'xcode_settings': {
[email protected]6efed472013-11-01 02:09:34816 # The framework is placed within the .app's Framework
817 # directory. DYLIB_INSTALL_NAME_BASE and
818 # LD_DYLIB_INSTALL_NAME affect -install_name.
819 'DYLIB_INSTALL_NAME_BASE':
820 '@executable_path/../Frameworks',
821 # See /build/mac/copy_framework_unversioned.sh for
822 # information on LD_DYLIB_INSTALL_NAME.
823 'LD_DYLIB_INSTALL_NAME':
824 '$(DYLIB_INSTALL_NAME_BASE:standardizepath)/$(WRAPPER_NAME)/$(PRODUCT_NAME)',
825
[email protected]a7aa8ab2013-10-24 07:21:48826 'INFOPLIST_FILE': 'shell/app/framework-Info.plist',
827 },
[email protected]85ff16042012-03-06 23:46:34828 'dependencies': [
829 'content_shell_lib',
830 ],
831 'include_dirs': [
832 '..',
833 ],
834 'sources': [
[email protected]4642f5b2013-07-03 21:43:31835 'shell/app/shell_content_main.cc',
[email protected]216161f2013-07-02 16:23:20836 'shell/app/shell_content_main.h',
[email protected]85ff16042012-03-06 23:46:34837 ],
[email protected]30c246bc2014-01-28 06:00:04838 'postbuilds': [
839 {
840 # Modify the Info.plist as needed. The script explains why
841 # this is needed. This is also done in the chrome target.
842 # The framework needs the Breakpad keys if this feature is
843 # enabled. It does not need the Keystone keys; these always
844 # come from the outer application bundle. The framework
845 # doesn't currently use the SCM keys for anything,
846 # but this seems like a really good place to store them.
847 'postbuild_name': 'Tweak Info.plist',
848 'action': ['../build/mac/tweak_info_plist.py',
849 '--breakpad=1',
850 '--keystone=0',
851 '--scm=1',
852 '--version=<(content_shell_version)',
853 '--branding=<(content_shell_product_name)'],
854 },
855 ],
[email protected]5d96bbe2012-07-25 17:13:23856 'copies': [
857 {
858 # Copy FFmpeg binaries for audio/video support.
859 'destination': '<(PRODUCT_DIR)/$(CONTENTS_FOLDER_PATH)/Libraries',
860 'files': [
861 '<(PRODUCT_DIR)/ffmpegsumo.so',
862 ],
863 },
[email protected]a7aa8ab2013-10-24 07:21:48864 {
865 'destination': '<(PRODUCT_DIR)/$(CONTENTS_FOLDER_PATH)/Resources',
866 'files': [
867 '<(PRODUCT_DIR)/crash_inspector',
868 '<(PRODUCT_DIR)/crash_report_sender.app'
869 ],
870 },
[email protected]5d96bbe2012-07-25 17:13:23871 ],
[email protected]fda1c6c82013-04-09 16:10:12872 'conditions': [
873 ['enable_webrtc==1', {
874 'variables': {
875 'libpeer_target_type%': 'static_library',
876 },
877 'conditions': [
[email protected]e4aa290b2013-05-01 18:54:19878 ['libpeer_target_type!="static_library"', {
[email protected]fda1c6c82013-04-09 16:10:12879 'copies': [{
880 'destination': '<(PRODUCT_DIR)/$(CONTENTS_FOLDER_PATH)/Libraries',
881 'files': [
[email protected]62461b72013-05-02 12:27:12882 '<(PRODUCT_DIR)/libpeerconnection.so',
[email protected]fda1c6c82013-04-09 16:10:12883 ],
884 }],
885 }],
886 ],
887 }],
[email protected]30c246bc2014-01-28 06:00:04888 ['icu_use_data_file_flag==1', {
889 'mac_bundle_resources': [
890 '<(PRODUCT_DIR)/icudtl.dat',
891 ],
892 }],
[email protected]fda1c6c82013-04-09 16:10:12893 ],
[email protected]180df8f2012-03-09 22:36:10894 }, # target content_shell_framework
895 {
896 'target_name': 'content_shell_helper_app',
897 'type': 'executable',
898 'variables': { 'enable_wexit_time_destructors': 1, },
899 'product_name': '<(content_shell_product_name) Helper',
900 'mac_bundle': 1,
901 'dependencies': [
902 'content_shell_framework',
903 ],
904 'sources': [
[email protected]993951d2013-05-08 21:37:02905 'shell/app/shell_main.cc',
906 'shell/app/helper-Info.plist',
[email protected]180df8f2012-03-09 22:36:10907 ],
908 # TODO(mark): Come up with a fancier way to do this. It should only
909 # be necessary to list helper-Info.plist once, not the three times it
910 # is listed here.
911 'mac_bundle_resources!': [
[email protected]993951d2013-05-08 21:37:02912 'shell/app/helper-Info.plist',
[email protected]180df8f2012-03-09 22:36:10913 ],
914 # TODO(mark): For now, don't put any resources into this app. Its
915 # resources directory will be a symbolic link to the browser app's
916 # resources directory.
917 'mac_bundle_resources/': [
918 ['exclude', '.*'],
919 ],
920 'xcode_settings': {
[email protected]993951d2013-05-08 21:37:02921 'INFOPLIST_FILE': 'shell/app/helper-Info.plist',
[email protected]180df8f2012-03-09 22:36:10922 },
923 'postbuilds': [
924 {
925 # The framework defines its load-time path
926 # (DYLIB_INSTALL_NAME_BASE) relative to the main executable
927 # (chrome). A different relative path needs to be used in
928 # content_shell_helper_app.
929 'postbuild_name': 'Fix Framework Link',
930 'action': [
931 'install_name_tool',
932 '-change',
[email protected]6efed472013-11-01 02:09:34933 '@executable_path/../Frameworks/<(content_shell_product_name) Framework.framework/<(content_shell_product_name) Framework',
934 '@executable_path/../../../<(content_shell_product_name) Framework.framework/<(content_shell_product_name) Framework',
[email protected]180df8f2012-03-09 22:36:10935 '${BUILT_PRODUCTS_DIR}/${EXECUTABLE_PATH}'
936 ],
937 },
938 {
939 # Modify the Info.plist as needed. The script explains why this
940 # is needed. This is also done in the chrome and chrome_dll
[email protected]bbf52442012-08-23 22:53:18941 # targets. In this case, --breakpad=0, --keystone=0, and --scm=0
942 # are used because Breakpad, Keystone, and SCM keys are
[email protected]180df8f2012-03-09 22:36:10943 # never placed into the helper.
944 'postbuild_name': 'Tweak Info.plist',
945 'action': ['../build/mac/tweak_info_plist.py',
946 '--breakpad=0',
947 '--keystone=0',
[email protected]6d302912012-11-05 21:57:28948 '--scm=0',
949 '--version=<(content_shell_version)'],
[email protected]180df8f2012-03-09 22:36:10950 },
951 {
952 # Make sure there isn't any Objective-C in the helper app's
953 # executable.
954 'postbuild_name': 'Verify No Objective-C',
955 'action': [
956 '../build/mac/verify_no_objc.sh',
957 ],
958 },
959 ],
[email protected]ec40c38f2012-06-28 16:37:49960 'conditions': [
961 ['component=="shared_library"', {
962 'xcode_settings': {
963 'LD_RUNPATH_SEARCH_PATHS': [
964 # Get back from Content Shell.app/Contents/Frameworks/
965 # Helper.app/Contents/MacOS
966 '@loader_path/../../../../../..',
967 ],
968 },
969 }],
970 ],
[email protected]180df8f2012-03-09 22:36:10971 }, # target content_shell_helper_app
[email protected]85ff16042012-03-06 23:46:34972 ],
973 }], # OS=="mac"
[email protected]cc66d282012-03-30 11:44:06974 ['OS=="android"', {
975 'targets': [
976 {
[email protected]a08029b42012-04-25 03:18:46977 # TODO(jrg): Update this action and other jni generators to only
978 # require specifying the java directory and generate the rest.
979 'target_name': 'content_shell_jni_headers',
980 'type': 'none',
[email protected]e46f66152012-07-19 20:02:55981 'sources': [
[email protected]4d4eb5b2013-01-29 21:55:55982 'shell/android/browsertests_apk/src/org/chromium/content_browsertests_apk/ContentBrowserTestsActivity.java',
[email protected]eadcff0f2013-06-20 21:08:10983 'shell/android/java/src/org/chromium/content_shell/ShellLayoutTestUtils.java',
[email protected]e46f66152012-07-19 20:02:55984 'shell/android/java/src/org/chromium/content_shell/ShellManager.java',
985 'shell/android/java/src/org/chromium/content_shell/Shell.java',
986 ],
[email protected]a08029b42012-04-25 03:18:46987 'variables': {
[email protected]521cd942013-03-07 22:34:05988 'jni_gen_package': 'content/shell',
[email protected]8ef3318fe2014-01-10 15:23:54989 'jni_generator_ptr_type': 'long',
[email protected]a08029b42012-04-25 03:18:46990 },
991 'includes': [ '../build/jni_generator.gypi' ],
992 },
993 {
[email protected]c1101582012-06-25 17:07:18994 'target_name': 'libcontent_shell_content_view',
[email protected]a08029b42012-04-25 03:18:46995 'type': 'shared_library',
996 'dependencies': [
997 'content_shell_jni_headers',
998 'content_shell_lib',
999 'content_shell_pak',
1000 # Skia is necessary to ensure the dependencies needed by
1001 # WebContents are included.
1002 '../skia/skia.gyp:skia',
1003 '<(DEPTH)/media/media.gyp:player_android',
1004 ],
[email protected]a08029b42012-04-25 03:18:461005 'sources': [
1006 'shell/android/shell_library_loader.cc',
1007 'shell/android/shell_library_loader.h',
[email protected]f83a47392012-07-12 22:15:041008 ],
[email protected]7abcaa82012-06-27 17:09:481009 'conditions': [
[email protected]d999c3cb2013-03-12 10:22:361010 ['android_webview_build==1', {
[email protected]7abcaa82012-06-27 17:09:481011 'ldflags': [
1012 '-lgabi++', # For rtti
1013 ],
1014 }],
1015 ],
[email protected]a08029b42012-04-25 03:18:461016 },
1017 {
[email protected]4d4eb5b2013-01-29 21:55:551018 'target_name': 'content_shell_java',
1019 'type': 'none',
1020 'dependencies': [
[email protected]ba42b1e2013-10-19 22:13:171021 'content.gyp:content_java',
[email protected]4d4eb5b2013-01-29 21:55:551022 ],
1023 'variables': {
[email protected]4d4eb5b2013-01-29 21:55:551024 'java_in_dir': '../content/shell/android/java',
1025 'has_java_resources': 1,
1026 'R_package': 'org.chromium.content_shell',
1027 'R_package_relpath': 'org/chromium/content_shell',
1028 },
1029 'includes': [ '../build/java.gypi' ],
1030 },
1031 {
[email protected]319d6a82012-09-20 22:52:281032 # content_shell_apk creates a .jar as a side effect. Any java targets
1033 # that need that .jar in their classpath should depend on this target,
[email protected]4d4eb5b2013-01-29 21:55:551034 # content_shell_apk_java. Dependents of content_shell_apk receive its
1035 # jar path in the variable 'apk_output_jar_path'. This target should
1036 # only be used by targets which instrument content_shell_apk.
1037 'target_name': 'content_shell_apk_java',
[email protected]319d6a82012-09-20 22:52:281038 'type': 'none',
[email protected]319d6a82012-09-20 22:52:281039 'dependencies': [
[email protected]319d6a82012-09-20 22:52:281040 'content_shell_apk',
[email protected]319d6a82012-09-20 22:52:281041 ],
[email protected]b13f73e2013-03-27 23:31:271042 'includes': [ '../build/apk_fake_jar.gypi' ],
[email protected]319d6a82012-09-20 22:52:281043 },
[email protected]75c86a22012-09-26 03:50:371044 {
1045 'target_name': 'content_shell_apk',
1046 'type': 'none',
1047 'dependencies': [
[email protected]c8e8781e2014-03-08 12:02:261048 'content.gyp:content_icudata',
[email protected]ba42b1e2013-10-19 22:13:171049 'content.gyp:content_java',
[email protected]c48fece02013-06-19 12:01:421050 'content_java_test_support',
[email protected]4d4eb5b2013-01-29 21:55:551051 'content_shell_java',
1052 'libcontent_shell_content_view',
[email protected]75c86a22012-09-26 03:50:371053 '../base/base.gyp:base_java',
1054 '../media/media.gyp:media_java',
1055 '../net/net.gyp:net_java',
[email protected]abeda1f2014-02-21 17:08:341056 '../third_party/mesa/mesa.gyp:osmesa_in_lib_dir',
[email protected]4e384052013-08-14 20:46:301057 '../tools/android/forwarder/forwarder.gyp:forwarder',
[email protected]f450287d2013-11-15 17:52:541058 '../ui/android/ui_android.gyp:ui_java',
[email protected]75c86a22012-09-26 03:50:371059 ],
1060 'variables': {
[email protected]75c86a22012-09-26 03:50:371061 'apk_name': 'ContentShell',
[email protected]4d4eb5b2013-01-29 21:55:551062 'manifest_package_name': 'org.chromium.content_shell_apk',
1063 'java_in_dir': 'shell/android/shell_apk',
[email protected]bd6ab3db2013-03-26 17:35:211064 'resource_dir': 'shell/android/shell_apk/res',
[email protected]e4865252013-04-04 09:15:591065 'native_lib_target': 'libcontent_shell_content_view',
[email protected]75c86a22012-09-26 03:50:371066 'additional_input_paths': ['<(PRODUCT_DIR)/content_shell/assets/content_shell.pak'],
[email protected]0437c502013-11-28 05:17:331067 'asset_location': '<(PRODUCT_DIR)/content_shell/assets',
[email protected]abeda1f2014-02-21 17:08:341068 'extra_native_libs': ['<(SHARED_LIB_DIR)/libosmesa.so'],
[email protected]c8e8781e2014-03-08 12:02:261069 'conditions': [
1070 ['icu_use_data_file_flag==1', {
1071 'additional_input_paths': [
1072 '<(PRODUCT_DIR)/icudtl.dat',
1073 ],
1074 }],
1075 ],
[email protected]75c86a22012-09-26 03:50:371076 },
[email protected]5b0095b72013-08-01 17:44:221077 'conditions': [
1078 ['android_webview_build==0', {
1079 'dependencies': [
1080 '../tools/imagediff/image_diff.gyp:image_diff#host',
1081 ],
1082 }],
1083 ],
[email protected]75c86a22012-09-26 03:50:371084 'includes': [ '../build/java_apk.gypi' ],
1085 },
[email protected]cc66d282012-03-30 11:44:061086 ],
1087 }], # OS=="android"
[email protected]369205f2013-10-29 04:35:051088 ['OS=="win"', {
1089 'targets': [
1090 {
1091 'target_name': 'content_shell_crash_service',
1092 'type': 'executable',
1093 'dependencies': [
1094 '../base/base.gyp:base',
1095 '../components/components.gyp:breakpad_crash_service',
1096 ],
1097 'include_dirs': [
1098 '..',
1099 ],
1100 'sources': [
1101 'shell/tools/content_shell_crash_service.cc',
1102 ],
1103 'msvs_settings': {
1104 'VCLinkerTool': {
1105 'SubSystem': '2', # Set /SUBSYSTEM:WINDOWS
1106 },
1107 },
1108 },
1109 ],
1110 }], # OS=="win"
[email protected]c8250d42013-10-01 05:17:461111 ['OS=="win" and fastbuild==0 and target_arch=="ia32"', {
1112 'variables': {
1113 'dest_dir': '<(PRODUCT_DIR)/syzygy',
1114 },
1115 'targets': [
1116 {
1117 'target_name': 'content_shell_syzyasan',
1118 'type': 'none',
1119 'sources' : [],
1120 # Instrument content_shell with SyzyAsan.
1121 'actions': [
1122 {
1123 'action_name': 'Instrument content_shell with SyzyAsan',
[email protected]c8250d42013-10-01 05:17:461124 'inputs': [
1125 '<(PRODUCT_DIR)/content_shell.exe',
1126 ],
1127 'outputs': [
1128 '<(dest_dir)/content_shell.exe',
1129 '<(dest_dir)/content_shell.exe.pdb',
1130 ],
1131 'action': [
1132 'python',
1133 '<(DEPTH)/chrome/tools/build/win/syzygy_instrument.py',
1134 '--mode', 'asan',
1135 '--input_executable', '<(PRODUCT_DIR)/content_shell.exe',
1136 '--input_symbol', '<(PRODUCT_DIR)/content_shell.exe.pdb',
1137 '--destination_dir', '<(dest_dir)',
1138 ],
1139 },
1140 ],
1141 },
1142 ],
1143 }], # OS=="win" and fastbuild==0 and target_arch=="ia32"
[email protected]cc66d282012-03-30 11:44:061144 ]
[email protected]5629e0c2011-09-12 22:07:361145}