blob: bb385ae3d5a74de9419f48647894ffad0ef2794e [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',
[email protected]5326cd2f2014-04-07 13:35:5841 'layouttest_support_content',
[email protected]aa6e79762011-09-29 20:53:5242 '../base/base.gyp:base',
[email protected]5326cd2f2014-04-07 13:35:5843 '../base/base.gyp:base_static',
[email protected]aa6e79762011-09-29 20:53:5244 '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations',
[email protected]5326cd2f2014-04-07 13:35:5845 '../cc/cc.gyp:cc',
[email protected]d6d06a352013-10-23 07:04:0046 '../components/components.gyp:breakpad_component',
[email protected]41fba0e2014-01-16 18:19:4247 '../gin/gin.gyp:gin',
[email protected]5326cd2f2014-04-07 13:35:5848 '../gpu/gpu.gyp:gpu',
[email protected]aa6e79762011-09-29 20:53:5249 '../ipc/ipc.gyp:ipc',
[email protected]433df472012-03-07 20:33:3950 '../media/media.gyp:media',
[email protected]aa6e79762011-09-29 20:53:5251 '../net/net.gyp:net',
[email protected]24f80692012-08-13 15:15:5052 '../net/net.gyp:net_resources',
[email protected]5629e0c2011-09-12 22:07:3653 '../skia/skia.gyp:skia',
[email protected]3de922f2013-12-20 13:27:3854 '../third_party/WebKit/public/blink.gyp:blink',
[email protected]95f8a142014-04-24 00:23:5855 '../third_party/WebKit/public/blink.gyp:blink_test_support',
[email protected]ed8fd9152014-03-13 10:20:3756 '../ui/base/ui_base.gyp:ui_base',
[email protected]114efae2013-11-06 20:37:5757 '../ui/events/events.gyp:events_base',
[email protected]529a3cf2013-09-30 02:47:4858 '../ui/gfx/gfx.gyp:gfx',
[email protected]b5e2d782013-12-18 21:01:1559 '../ui/gfx/gfx.gyp:gfx_geometry',
[email protected]8350f16f2012-11-30 00:25:3260 '../ui/gl/gl.gyp:gl',
[email protected]002cc08f2013-06-03 05:40:2961 '../url/url.gyp:url_lib',
[email protected]12bc28fcb2011-09-21 15:53:5062 '../v8/tools/gyp/v8.gyp:v8',
[email protected]a356e5cc2013-09-24 02:54:4663 '../webkit/common/webkit_common.gyp:webkit_common',
[email protected]5326cd2f2014-04-07 13:35:5864 '../webkit/renderer/compositor_bindings/compositor_bindings.gyp:webkit_compositor_bindings',
65 '../webkit/storage_browser.gyp:webkit_storage_browser',
[email protected]a356e5cc2013-09-24 02:54:4666 '../webkit/webkit_resources.gyp:webkit_resources',
[email protected]5629e0c2011-09-12 22:07:3667 ],
68 'include_dirs': [
69 '..',
70 ],
71 'sources': [
[email protected]4d4eb5b2013-01-29 21:55:5572 'shell/android/shell_jni_registrar.cc',
73 'shell/android/shell_jni_registrar.h',
74 'shell/android/shell_manager.cc',
75 'shell/android/shell_manager.h',
[email protected]2a94e812013-07-12 15:31:0276 'shell/app/paths_mac.h',
77 'shell/app/paths_mac.mm',
[email protected]d6d06a352013-10-23 07:04:0078 'shell/app/shell_breakpad_client.cc',
79 'shell/app/shell_breakpad_client.h',
[email protected]993951d2013-05-08 21:37:0280 'shell/app/shell_main_delegate.cc',
81 'shell/app/shell_main_delegate.h',
[email protected]2a94e812013-07-12 15:31:0282 'shell/app/shell_main_delegate_mac.h',
83 'shell/app/shell_main_delegate_mac.mm',
[email protected]216161f2013-07-02 16:23:2084 'shell/app/webkit_test_platform_support_android.cc',
[email protected]de7d61ff2013-08-20 11:30:4185 'shell/app/webkit_test_platform_support.h',
[email protected]216161f2013-07-02 16:23:2086 'shell/app/webkit_test_platform_support_linux.cc',
87 'shell/app/webkit_test_platform_support_mac.mm',
88 'shell/app/webkit_test_platform_support_win.cc',
[email protected]de7d61ff2013-08-20 11:30:4189 'shell/browser/notify_done_forwarder.cc',
90 'shell/browser/notify_done_forwarder.h',
91 'shell/browser/shell_android.cc',
92 'shell/browser/shell_application_mac.h',
93 'shell/browser/shell_application_mac.mm',
94 'shell/browser/shell_aura.cc',
95 'shell/browser/shell_browser_context.cc',
96 'shell/browser/shell_browser_context.h',
97 'shell/browser/shell_browser_main.cc',
98 'shell/browser/shell_browser_main.h',
99 'shell/browser/shell_browser_main_parts.cc',
100 'shell/browser/shell_browser_main_parts.h',
101 'shell/browser/shell_browser_main_parts_mac.mm',
102 'shell/browser/shell.cc',
103 'shell/browser/shell_content_browser_client.cc',
104 'shell/browser/shell_content_browser_client.h',
105 'shell/browser/shell_devtools_delegate.cc',
106 'shell/browser/shell_devtools_delegate.h',
107 'shell/browser/shell_devtools_frontend.cc',
108 'shell/browser/shell_devtools_frontend.h',
109 'shell/browser/shell_download_manager_delegate.cc',
110 'shell/browser/shell_download_manager_delegate.h',
[email protected]de7d61ff2013-08-20 11:30:41111 'shell/browser/shell.h',
[email protected]de7d61ff2013-08-20 11:30:41112 'shell/browser/shell_javascript_dialog.h',
113 'shell/browser/shell_javascript_dialog_mac.mm',
114 'shell/browser/shell_javascript_dialog_manager.cc',
115 'shell/browser/shell_javascript_dialog_manager.h',
116 'shell/browser/shell_javascript_dialog_win.cc',
117 'shell/browser/shell_layout_tests_android.cc',
118 'shell/browser/shell_layout_tests_android.h',
119 'shell/browser/shell_login_dialog.cc',
[email protected]de7d61ff2013-08-20 11:30:41120 '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',
[email protected]de7d61ff2013-08-20 11:30:41144 '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]1f70cfa42014-04-04 21:35:01158 'shell/common/test_runner/test_preferences.cc',
159 'shell/common/test_runner/test_preferences.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/MockColorChooser.cpp',
177 'shell/renderer/test_runner/MockColorChooser.h',
178 'shell/renderer/test_runner/MockConstraints.cpp',
179 'shell/renderer/test_runner/MockConstraints.h',
180 'shell/renderer/test_runner/MockGrammarCheck.cpp',
181 'shell/renderer/test_runner/MockGrammarCheck.h',
182 'shell/renderer/test_runner/MockSpellCheck.cpp',
183 'shell/renderer/test_runner/MockSpellCheck.h',
184 'shell/renderer/test_runner/MockWebAudioDevice.cpp',
185 'shell/renderer/test_runner/MockWebAudioDevice.h',
[email protected]3de922f2013-12-20 13:27:38186 'shell/renderer/test_runner/MockWebMIDIAccessor.cpp',
187 'shell/renderer/test_runner/MockWebMIDIAccessor.h',
[email protected]d76ff4162014-01-05 19:04:43188 'shell/renderer/test_runner/MockWebMediaStreamCenter.cpp',
189 'shell/renderer/test_runner/MockWebMediaStreamCenter.h',
[email protected]3de922f2013-12-20 13:27:38190 'shell/renderer/test_runner/MockWebRTCDTMFSenderHandler.cpp',
191 'shell/renderer/test_runner/MockWebRTCDTMFSenderHandler.h',
[email protected]d76ff4162014-01-05 19:04:43192 'shell/renderer/test_runner/MockWebRTCDataChannelHandler.cpp',
193 'shell/renderer/test_runner/MockWebRTCDataChannelHandler.h',
[email protected]3de922f2013-12-20 13:27:38194 'shell/renderer/test_runner/MockWebRTCPeerConnectionHandler.cpp',
195 'shell/renderer/test_runner/MockWebRTCPeerConnectionHandler.h',
[email protected]3de922f2013-12-20 13:27:38196 'shell/renderer/test_runner/MockWebSpeechRecognizer.cpp',
197 'shell/renderer/test_runner/MockWebSpeechRecognizer.h',
[email protected]3de922f2013-12-20 13:27:38198 'shell/renderer/test_runner/SpellCheckClient.cpp',
199 'shell/renderer/test_runner/SpellCheckClient.h',
200 'shell/renderer/test_runner/TestCommon.cpp',
201 'shell/renderer/test_runner/TestCommon.h',
202 'shell/renderer/test_runner/TestInterfaces.cpp',
203 'shell/renderer/test_runner/TestInterfaces.h',
204 'shell/renderer/test_runner/TestPlugin.cpp',
205 'shell/renderer/test_runner/TestPlugin.h',
[email protected]3de922f2013-12-20 13:27:38206 'shell/renderer/test_runner/WebFrameTestProxy.h',
207 'shell/renderer/test_runner/WebPermissions.cpp',
208 'shell/renderer/test_runner/WebPermissions.h',
[email protected]3de922f2013-12-20 13:27:38209 'shell/renderer/test_runner/WebTask.cpp',
210 'shell/renderer/test_runner/WebTask.h',
211 'shell/renderer/test_runner/WebTestDelegate.h',
212 'shell/renderer/test_runner/WebTestInterfaces.cpp',
213 'shell/renderer/test_runner/WebTestInterfaces.h',
214 'shell/renderer/test_runner/WebTestProxy.cpp',
215 'shell/renderer/test_runner/WebTestProxy.h',
216 'shell/renderer/test_runner/WebTestRunner.h',
[email protected]3de922f2013-12-20 13:27:38217 'shell/renderer/test_runner/WebTestThemeEngineMac.h',
218 'shell/renderer/test_runner/WebTestThemeEngineMac.mm',
219 'shell/renderer/test_runner/WebTestThemeEngineMock.cpp',
220 'shell/renderer/test_runner/WebTestThemeEngineMock.h',
[email protected]3de922f2013-12-20 13:27:38221 'shell/renderer/test_runner/WebUserMediaClientMock.cpp',
222 'shell/renderer/test_runner/WebUserMediaClientMock.h',
[email protected]fa6a8f42014-03-06 14:20:18223 'shell/renderer/test_runner/accessibility_controller.cc',
224 'shell/renderer/test_runner/accessibility_controller.h',
[email protected]3db130e2014-03-27 08:14:48225 'shell/renderer/test_runner/event_sender.cc',
226 'shell/renderer/test_runner/event_sender.h',
[email protected]cf786002014-02-11 02:05:54227 'shell/renderer/test_runner/gamepad_controller.cc',
228 'shell/renderer/test_runner/gamepad_controller.h',
[email protected]dc0a9762014-02-28 18:41:54229 'shell/renderer/test_runner/notification_presenter.cc',
230 'shell/renderer/test_runner/notification_presenter.h',
[email protected]97f9a7952014-03-14 11:50:33231 'shell/renderer/test_runner/test_runner.cc',
232 'shell/renderer/test_runner/test_runner.h',
[email protected]f751653a92014-02-18 16:32:55233 'shell/renderer/test_runner/text_input_controller.cc',
234 'shell/renderer/test_runner/text_input_controller.h',
[email protected]fa6a8f42014-03-06 14:20:18235 'shell/renderer/test_runner/web_ax_object_proxy.cc',
236 'shell/renderer/test_runner/web_ax_object_proxy.h',
[email protected]f7a4e3b92013-05-03 15:29:58237 'shell/renderer/webkit_test_runner.cc',
238 'shell/renderer/webkit_test_runner.h',
[email protected]5629e0c2011-09-12 22:07:36239 ],
240 'msvs_settings': {
241 'VCLinkerTool': {
242 'SubSystem': '2', # Set /SUBSYSTEM:WINDOWS
243 },
244 },
245 'conditions': [
[email protected]099d14a2014-02-06 09:49:46246 ['OS=="mac"', {
247 'sources/': [
248 ['exclude', 'WebTestThemeEngineMock.cpp'],
249 ],
250 }],
[email protected]5629e0c2011-09-12 22:07:36251 ['OS=="win" and win_use_allocator_shim==1', {
252 'dependencies': [
253 '../base/allocator/allocator.gyp:allocator',
254 ],
255 }],
[email protected]9fbd3f862011-09-20 23:31:34256 ['OS=="win"', {
257 'resource_include_dirs': [
258 '<(SHARED_INTERMEDIATE_DIR)/webkit',
259 ],
[email protected]9fbd3f862011-09-20 23:31:34260 'dependencies': [
[email protected]d7871ac2013-07-09 21:35:41261 '<(DEPTH)/webkit/webkit_resources.gyp:webkit_strings',
[email protected]9fbd3f862011-09-20 23:31:34262 ],
263 'configurations': {
264 'Debug_Base': {
265 'msvs_settings': {
266 'VCLinkerTool': {
267 'LinkIncremental': '<(msvs_large_module_debug_link_mode)',
268 },
269 },
270 },
271 },
[email protected]3bed5302013-02-15 19:31:41272 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
273 'msvs_disabled_warnings': [ 4267, ],
[email protected]3de922f2013-12-20 13:27:38274 }, { # OS!="win"
275 'sources/': [
276 ['exclude', 'Win\\.cpp$'],
277 ],
[email protected]85ff16042012-03-06 23:46:34278 }], # OS=="win"
[email protected]6eb6bb62012-11-10 06:30:59279 ['OS=="linux"', {
280 'dependencies': [
281 '../build/linux/system.gyp:fontconfig',
282 ],
283 }],
[email protected]6b911a32014-01-10 02:34:53284 ['use_x11 == 1', {
285 'dependencies': [
286 '../tools/xdisplaycheck/xdisplaycheck.gyp:xdisplaycheck',
287 ],
288 }],
[email protected]689266d2012-08-07 12:52:20289 ['OS=="android"', {
[email protected]82e9e2b12012-07-19 00:32:01290 'dependencies': [
291 'content_shell_jni_headers',
292 ],
[email protected]6b911a32014-01-10 02:34:53293 'dependencies!': [
[email protected]de28fed2e2014-02-01 14:36:32294 'copy_test_netscape_plugin',
[email protected]6b911a32014-01-10 02:34:53295 ],
[email protected]82e9e2b12012-07-19 00:32:01296 }], # OS=="android"
[email protected]a7aa8ab2013-10-24 07:21:48297 ['os_posix == 1 and OS != "mac" and android_webview_build != 1', {
298 'dependencies': [
299 '../components/components.gyp:breakpad_host',
300 ],
301 }],
[email protected]8d24f8d82014-03-27 16:05:44302 # TODO(dmikurube): Kill {linux|android}_use_tcmalloc. http://crbug.com/345554
[email protected]da9039d2014-04-08 11:16:36303 ['(use_allocator!="none" and use_allocator!="see_use_tcmalloc") or (use_allocator=="see_use_tcmalloc" and ((OS=="linux" and linux_use_tcmalloc==1) or (OS=="android" and android_use_tcmalloc==1)))', {
[email protected]c767d572012-07-27 10:55:58304 'dependencies': [
305 # This is needed by content/app/content_main_runner.cc
306 '../base/allocator/allocator.gyp:allocator',
307 ],
308 }],
[email protected]fa4a45832012-04-12 21:32:48309 ['use_aura==1', {
[email protected]c767d572012-07-27 10:55:58310 'dependencies': [
311 '../ui/aura/aura.gyp:aura',
[email protected]72fed232014-04-07 20:21:46312 '../ui/aura/aura.gyp:aura_test_support',
[email protected]c767d572012-07-27 10:55:58313 '../ui/base/strings/ui_strings.gyp:ui_strings',
[email protected]72fed232014-04-07 20:21:46314 '../ui/events/events.gyp:events',
[email protected]884dac5b2014-04-30 15:10:10315 '../ui/wm/wm.gyp:wm',
[email protected]c767d572012-07-27 10:55:58316 ],
[email protected]a896e1e2013-10-20 19:10:30317 'conditions': [
318 ['toolkit_views==1', {
319 'dependencies': [
[email protected]dae78442013-11-26 16:57:02320 '../ui/resources/ui_resources.gyp:ui_resources',
[email protected]a896e1e2013-10-20 19:10:30321 '../ui/views/controls/webview/webview.gyp:webview',
322 '../ui/views/views.gyp:views',
323 '../ui/views/views.gyp:views_test_support',
[email protected]a896e1e2013-10-20 19:10:30324 ],
325 'sources/': [
326 ['exclude', 'shell/browser/shell_aura.cc'],
327 ],
328 }, {
329 'sources/': [
330 ['exclude', 'shell/browser/shell_views.cc'],
331 ],
332 }],
333 ],
334 }, {
335 'sources/': [
336 ['exclude', 'shell/browser/shell_aura.cc'],
337 ['exclude', 'shell/browser/shell_views.cc'],
338 ],
[email protected]96b80b472012-07-03 19:41:56339 }], # use_aura==1
[email protected]6b911a32014-01-10 02:34:53340 # The test plugin relies on X11.
341 ['OS=="linux" and use_x11==0', {
342 'dependencies!': [
[email protected]de28fed2e2014-02-01 14:36:32343 'copy_test_netscape_plugin',
[email protected]6b911a32014-01-10 02:34:53344 ],
345 }],
[email protected]c767d572012-07-27 10:55:58346 ['chromeos==1', {
347 'dependencies': [
348 '../chromeos/chromeos.gyp:chromeos',
[email protected]de6831b2013-11-16 01:04:30349 '../ui/wm/wm.gyp:wm_test_support',
[email protected]c767d572012-07-27 10:55:58350 ],
351 }], # chromeos==1
[email protected]929246a2013-02-28 13:55:20352 ['use_custom_freetype==1', {
353 'dependencies': [
354 '../third_party/freetype2/freetype2.gyp:freetype2',
355 ],
356 }],
[email protected]dfb9360192013-05-27 09:42:34357 ['enable_plugins==0', {
358 'sources/': [
[email protected]de7d61ff2013-08-20 11:30:41359 ['exclude', 'shell/browser/shell_plugin_service_filter.cc'],
360 ['exclude', 'shell/browser/shell_plugin_service_filter.h'],
[email protected]dfb9360192013-05-27 09:42:34361 ],
362 }]
[email protected]5629e0c2011-09-12 22:07:36363 ],
364 },
[email protected]c1f87b22011-10-05 21:59:33365 {
[email protected]ee75b8992012-01-27 07:53:57366 'target_name': 'content_shell_resources',
367 'type': 'none',
[email protected]b581eb402012-03-09 01:31:46368 'dependencies': [
369 'generate_content_shell_resources',
370 ],
371 'variables': {
372 'grit_out_dir': '<(SHARED_INTERMEDIATE_DIR)/content',
373 },
374 'includes': [ '../build/grit_target.gypi' ],
375 'copies': [
376 {
377 'destination': '<(PRODUCT_DIR)',
378 'files': [
379 '<(SHARED_INTERMEDIATE_DIR)/content/shell_resources.pak'
380 ],
381 },
382 ],
[email protected]6b911a32014-01-10 02:34:53383 'conditions': [
384 ['OS=="win"', {
385 'copies': [{
386 'destination': '<(PRODUCT_DIR)',
387 'files': ['shell/renderer/test_runner/resources/fonts/AHEM____.TTF'],
388 }],
389 }],
390 ['OS=="mac"', {
391 'all_dependent_settings': {
392 'mac_bundle_resources': [
393 'shell/renderer/test_runner/resources/fonts/AHEM____.TTF',
[email protected]24687802014-03-20 22:04:47394 'shell/renderer/test_runner/resources/fonts/ChromiumAATTest.ttf',
[email protected]6b911a32014-01-10 02:34:53395 '<(SHARED_INTERMEDIATE_DIR)/webkit/missingImage.png',
396 '<(SHARED_INTERMEDIATE_DIR)/webkit/textAreaResizeCorner.png',
397 ],
398 },
399 }],
400 ['use_x11 == 1', {
401 'copies': [{
402 'destination': '<(PRODUCT_DIR)',
403 'files': [
404 'shell/renderer/test_runner/resources/fonts/AHEM____.TTF',
405 'shell/renderer/test_runner/resources/fonts/fonts.conf',
406 ]
407 }],
408 }],
409 ['OS=="android"', {
410 'copies': [{
411 'destination': '<(PRODUCT_DIR)',
412 'files': [
413 'shell/renderer/test_runner/resources/fonts/AHEM____.TTF',
414 'shell/renderer/test_runner/resources/fonts/android_main_fonts.xml',
415 'shell/renderer/test_runner/resources/fonts/android_fallback_fonts.xml',
416 ]
417 }],
418 }],
419 ],
[email protected]4cb792f42012-03-24 03:12:42420 },
421 {
[email protected]b581eb402012-03-09 01:31:46422 'target_name': 'generate_content_shell_resources',
423 'type': 'none',
[email protected]ee75b8992012-01-27 07:53:57424 'variables': {
425 'grit_out_dir': '<(SHARED_INTERMEDIATE_DIR)/content',
426 },
427 'actions': [
428 {
429 'action_name': 'content_shell_resources',
430 'variables': {
431 'grit_grd_file': 'shell/shell_resources.grd',
432 },
433 'includes': [ '../build/grit_action.gypi' ],
434 },
435 ],
[email protected]ee75b8992012-01-27 07:53:57436 },
437 {
[email protected]81f30ce2012-01-18 22:10:33438 # We build a minimal set of resources so WebKit in content_shell has
439 # access to necessary resources.
440 'target_name': 'content_shell_pak',
441 'type': 'none',
[email protected]ee75b8992012-01-27 07:53:57442 'dependencies': [
[email protected]06c54162013-06-10 00:25:05443 'content_resources.gyp:content_resources',
[email protected]ee75b8992012-01-27 07:53:57444 'content_shell_resources',
[email protected]06c54162013-06-10 00:25:05445 '<(DEPTH)/net/net.gyp:net_resources',
446 '<(DEPTH)/ui/base/strings/ui_strings.gyp:ui_strings',
[email protected]1c0c3f42013-11-20 02:03:28447 '<(DEPTH)/ui/resources/ui_resources.gyp:ui_resources',
[email protected]d7871ac2013-07-09 21:35:41448 '<(DEPTH)/webkit/webkit_resources.gyp:webkit_resources',
449 '<(DEPTH)/webkit/webkit_resources.gyp:webkit_strings',
[email protected]ee75b8992012-01-27 07:53:57450 ],
[email protected]3df230d2013-07-03 00:44:57451 'conditions': [
452 ['OS!="android" and OS!="ios"', {
453 'dependencies': [
454 'browser/tracing/tracing_resources.gyp:tracing_resources',
455 ],
456 }],
[email protected]8dffd2c2013-12-02 14:14:38457 ['OS!="android"', {
458 'dependencies': [
459 'browser/devtools/devtools_resources.gyp:devtools_resources',
460 ],
461 }],
[email protected]3df230d2013-07-03 00:44:57462 ],
[email protected]81f30ce2012-01-18 22:10:33463 'actions': [
464 {
465 'action_name': 'repack_content_shell_pack',
466 'variables': {
467 'pak_inputs': [
468 '<(SHARED_INTERMEDIATE_DIR)/content/content_resources.pak',
[email protected]479bea22013-07-02 21:46:06469 '<(SHARED_INTERMEDIATE_DIR)/content/browser/tracing/tracing_resources.pak',
[email protected]ee75b8992012-01-27 07:53:57470 '<(SHARED_INTERMEDIATE_DIR)/content/shell_resources.pak',
[email protected]81f30ce2012-01-18 22:10:33471 '<(SHARED_INTERMEDIATE_DIR)/net/net_resources.pak',
[email protected]c767d572012-07-27 10:55:58472 '<(SHARED_INTERMEDIATE_DIR)/ui/app_locale_settings/app_locale_settings_en-US.pak',
[email protected]a52c7312012-07-24 22:45:57473 '<(SHARED_INTERMEDIATE_DIR)/ui/ui_resources/ui_resources_100_percent.pak',
[email protected]e1c26ae2013-01-31 18:13:18474 '<(SHARED_INTERMEDIATE_DIR)/ui/ui_resources/webui_resources.pak',
[email protected]c767d572012-07-27 10:55:58475 '<(SHARED_INTERMEDIATE_DIR)/ui/ui_strings/ui_strings_en-US.pak',
[email protected]e5f893b2013-07-30 02:52:22476 '<(SHARED_INTERMEDIATE_DIR)/webkit/blink_resources.pak',
[email protected]30c8f542012-09-01 01:02:29477 '<(SHARED_INTERMEDIATE_DIR)/webkit/webkit_resources_100_percent.pak',
[email protected]af551a62012-07-31 16:44:03478 '<(SHARED_INTERMEDIATE_DIR)/webkit/webkit_strings_en-US.pak',
[email protected]81f30ce2012-01-18 22:10:33479 ],
[email protected]01bdc9202014-03-28 21:11:20480 'conditions': [
481 ['OS!="android"', {
[email protected]4ede5b412014-04-09 13:08:02482 'pak_inputs': ['<(SHARED_INTERMEDIATE_DIR)/webkit/devtools_resources.pak',],
[email protected]01bdc9202014-03-28 21:11:20483 'pak_output': '<(PRODUCT_DIR)/content_shell.pak',
484 }, {
485 'pak_output': '<(PRODUCT_DIR)/content_shell/assets/content_shell.pak',
486 }],
487 ],
[email protected]81f30ce2012-01-18 22:10:33488 },
[email protected]01bdc9202014-03-28 21:11:20489 'includes': [ '../build/repack_action.gypi' ],
[email protected]81f30ce2012-01-18 22:10:33490 },
491 ],
492 },
493 {
[email protected]c1f87b22011-10-05 21:59:33494 'target_name': 'content_shell',
495 'type': 'executable',
[email protected]85ff16042012-03-06 23:46:34496 'mac_bundle': 1,
[email protected]c1f87b22011-10-05 21:59:33497 'variables': {
498 'chromium_code': 1,
499 },
500 'dependencies': [
501 'content_shell_lib',
[email protected]81f30ce2012-01-18 22:10:33502 'content_shell_pak',
[email protected]bb5d2d92012-10-15 07:45:42503 '../third_party/mesa/mesa.gyp:osmesa',
[email protected]331d1692013-07-25 20:40:13504 '../tools/imagediff/image_diff.gyp:image_diff',
[email protected]c1f87b22011-10-05 21:59:33505 ],
506 'include_dirs': [
507 '..',
508 ],
509 'sources': [
[email protected]711f428e2012-06-22 02:18:23510 'app/startup_helper_win.cc',
[email protected]993951d2013-05-08 21:37:02511 'shell/app/shell_main.cc',
[email protected]c1f87b22011-10-05 21:59:33512 ],
[email protected]85ff16042012-03-06 23:46:34513 'mac_bundle_resources': [
[email protected]993951d2013-05-08 21:37:02514 'shell/app/app.icns',
515 'shell/app/app-Info.plist',
[email protected]85ff16042012-03-06 23:46:34516 ],
517 # TODO(mark): Come up with a fancier way to do this. It should only
518 # be necessary to list app-Info.plist once, not the three times it is
519 # listed here.
520 'mac_bundle_resources!': [
[email protected]993951d2013-05-08 21:37:02521 'shell/app/app-Info.plist',
[email protected]85ff16042012-03-06 23:46:34522 ],
523 'xcode_settings': {
[email protected]993951d2013-05-08 21:37:02524 'INFOPLIST_FILE': 'shell/app/app-Info.plist',
[email protected]85ff16042012-03-06 23:46:34525 },
[email protected]c1f87b22011-10-05 21:59:33526 'msvs_settings': {
527 'VCLinkerTool': {
528 'SubSystem': '2', # Set /SUBSYSTEM:WINDOWS
529 },
[email protected]30624922013-06-04 10:40:10530 'VCManifestTool': {
[email protected]5d60b0b2013-07-30 20:24:30531 'AdditionalManifestFiles': [
532 'shell/app/shell.exe.manifest',
533 ],
[email protected]30624922013-06-04 10:40:10534 },
[email protected]c1f87b22011-10-05 21:59:33535 },
536 'conditions': [
537 ['OS=="win" and win_use_allocator_shim==1', {
538 'dependencies': [
539 '../base/allocator/allocator.gyp:allocator',
540 ],
541 }],
542 ['OS=="win"', {
[email protected]7fc83822012-03-30 19:53:29543 'sources': [
[email protected]993951d2013-05-08 21:37:02544 'shell/app/shell.rc',
[email protected]7fc83822012-03-30 19:53:29545 ],
[email protected]c1f87b22011-10-05 21:59:33546 'configurations': {
547 'Debug_Base': {
548 'msvs_settings': {
549 'VCLinkerTool': {
550 'LinkIncremental': '<(msvs_large_module_debug_link_mode)',
551 },
552 },
553 },
554 },
[email protected]89a50152014-03-18 20:24:56555 'msvs_large_pdb': 1,
[email protected]85ff16042012-03-06 23:46:34556 }], # OS=="win"
[email protected]c997bc42014-04-11 18:25:58557 ['OS == "win"', {
[email protected]27315ce42011-10-14 01:25:12558 'dependencies': [
559 '../sandbox/sandbox.gyp:sandbox',
560 ],
[email protected]c997bc42014-04-11 18:25:58561 }], # OS=="win"
[email protected]85ff16042012-03-06 23:46:34562 ['OS=="mac"', {
563 'product_name': '<(content_shell_product_name)',
564 'dependencies!': [
565 'content_shell_lib',
566 ],
567 'dependencies': [
568 'content_shell_framework',
[email protected]180df8f2012-03-09 22:36:10569 'content_shell_helper_app',
570 ],
571 'copies': [
572 {
573 'destination': '<(PRODUCT_DIR)/<(content_shell_product_name).app/Contents/Frameworks',
574 'files': [
575 '<(PRODUCT_DIR)/<(content_shell_product_name) Helper.app',
576 ],
577 },
[email protected]85ff16042012-03-06 23:46:34578 ],
579 'postbuilds': [
580 {
581 'postbuild_name': 'Copy <(content_shell_product_name) Framework.framework',
582 'action': [
583 '../build/mac/copy_framework_unversioned.sh',
584 '${BUILT_PRODUCTS_DIR}/<(content_shell_product_name) Framework.framework',
585 '${BUILT_PRODUCTS_DIR}/${CONTENTS_FOLDER_PATH}/Frameworks',
586 ],
587 },
588 {
[email protected]85ff16042012-03-06 23:46:34589 # Modify the Info.plist as needed.
590 'postbuild_name': 'Tweak Info.plist',
591 'action': ['../build/mac/tweak_info_plist.py',
[email protected]6d302912012-11-05 21:57:28592 '--scm=1',
593 '--version=<(content_shell_version)'],
[email protected]85ff16042012-03-06 23:46:34594 },
595 {
[email protected]180df8f2012-03-09 22:36:10596 # This postbuid step is responsible for creating the following
597 # helpers:
598 #
599 # Content Shell Helper EH.app and Content Shell Helper NP.app are
600 # created from Content Shell Helper.app.
601 #
602 # The EH helper is marked for an executable heap. The NP helper
603 # is marked for no PIE (ASLR).
604 'postbuild_name': 'Make More Helpers',
605 'action': [
606 '../build/mac/make_more_helpers.sh',
607 'Frameworks',
608 '<(content_shell_product_name)',
609 ],
610 },
611 {
[email protected]85ff16042012-03-06 23:46:34612 # Make sure there isn't any Objective-C in the shell's
613 # executable.
614 'postbuild_name': 'Verify No Objective-C',
615 'action': [
616 '../build/mac/verify_no_objc.sh',
617 ],
618 },
619 ],
620 }], # OS=="mac"
[email protected]331d1692013-07-25 20:40:13621 ['OS=="android"', {
622 'dependencies!': [
623 '../tools/imagediff/image_diff.gyp:image_diff',
624 ],
625 }], # OS=="android"
626 ['OS=="android" and android_webview_build==0', {
627 'dependencies': [
628 '../tools/imagediff/image_diff.gyp:image_diff#host',
629 ],
630 }], # OS=="android" and android_webview_build==0
[email protected]c1f87b22011-10-05 21:59:33631 ],
632 },
[email protected]fe2420d2012-08-21 07:28:33633 {
634 'target_name': 'content_shell_builder',
635 'type': 'none',
636 'dependencies': [
637 'content_shell',
[email protected]fe2420d2012-08-21 07:28:33638 ],
639 },
[email protected]9f3ecf42014-05-07 18:21:06640
[email protected]de28fed2e2014-02-01 14:36:32641 {
642 'target_name': 'test_netscape_plugin',
643 'type': 'loadable_module',
644 'sources': [
645 'shell/tools/plugin/PluginObject.cpp',
646 'shell/tools/plugin/PluginObject.h',
647 'shell/tools/plugin/PluginObjectMac.mm',
648 'shell/tools/plugin/PluginTest.cpp',
649 'shell/tools/plugin/PluginTest.h',
650 'shell/tools/plugin/TestObject.cpp',
[email protected]de28fed2e2014-02-01 14:36:32651 'shell/tools/plugin/Tests/DocumentOpenInDestroyStream.cpp',
652 'shell/tools/plugin/Tests/EvaluateJSAfterRemovingPluginElement.cpp',
653 'shell/tools/plugin/Tests/FormValue.cpp',
654 'shell/tools/plugin/Tests/GetURLNotifyWithURLThatFailsToLoad.cpp',
655 'shell/tools/plugin/Tests/GetURLWithJavaScriptURL.cpp',
656 'shell/tools/plugin/Tests/GetURLWithJavaScriptURLDestroyingPlugin.cpp',
657 'shell/tools/plugin/Tests/GetUserAgentWithNullNPPFromNPPNew.cpp',
658 'shell/tools/plugin/Tests/LeakWindowScriptableObject.cpp',
659 'shell/tools/plugin/Tests/LogNPPSetWindow.cpp',
660 'shell/tools/plugin/Tests/NPDeallocateCalledBeforeNPShutdown.cpp',
661 'shell/tools/plugin/Tests/NPPNewFails.cpp',
662 'shell/tools/plugin/Tests/NPRuntimeCallsWithNullNPP.cpp',
663 'shell/tools/plugin/Tests/NPRuntimeObjectFromDestroyedPlugin.cpp',
664 'shell/tools/plugin/Tests/NPRuntimeRemoveProperty.cpp',
665 'shell/tools/plugin/Tests/NullNPPGetValuePointer.cpp',
666 'shell/tools/plugin/Tests/PassDifferentNPPStruct.cpp',
667 'shell/tools/plugin/Tests/PluginScriptableNPObjectInvokeDefault.cpp',
668 'shell/tools/plugin/Tests/PluginScriptableObjectOverridesAllProperties.cpp',
669 'shell/tools/plugin/main.cpp',
[email protected]0516a592014-02-13 00:10:04670 'shell/tools/plugin/test_object.h',
[email protected]de28fed2e2014-02-01 14:36:32671 ],
672 'include_dirs': [
673 '<(DEPTH)',
674 '<(DEPTH)/content/shell/tools/plugin/',
675 ],
676 'dependencies': [
677 '../base/base.gyp:base',
678 '../third_party/npapi/npapi.gyp:npapi',
679 ],
680 'conditions': [
681 ['OS=="mac"', {
682 'mac_bundle': 1,
683 'product_extension': 'plugin',
684 'link_settings': {
685 'libraries': [
686 '$(SDKROOT)/System/Library/Frameworks/Carbon.framework',
687 '$(SDKROOT)/System/Library/Frameworks/Cocoa.framework',
688 '$(SDKROOT)/System/Library/Frameworks/QuartzCore.framework',
689 ]
690 },
691 'xcode_settings': {
692 'GCC_SYMBOLS_PRIVATE_EXTERN': 'NO',
693 'INFOPLIST_FILE': 'shell/tools/plugin/mac/Info.plist',
694 },
695 }],
696 ['os_posix == 1 and OS != "mac"', {
697 'cflags': [
698 '-fvisibility=default',
699 ],
700 }],
701 ['OS=="win"', {
702 'defines': [
703 # This seems like a hack, but this is what Safari Win does.
704 'snprintf=_snprintf',
705 ],
706 'sources': [
707 'shell/tools/plugin/win/TestNetscapePlugin.def',
708 'shell/tools/plugin/win/TestNetscapePlugin.rc',
709 ],
710 # The .rc file requires that the name of the dll is np_test_netscape_plugin.dll.
711 'product_name': 'np_test_netscape_plugin',
712 # Disable c4267 warnings until we fix size_t to int truncations.
713 'msvs_disabled_warnings': [ 4267, ],
714 }],
715 ],
716 },
717 {
718 'target_name': 'copy_test_netscape_plugin',
719 'type': 'none',
720 'dependencies': [
721 'test_netscape_plugin',
722 ],
723 'conditions': [
724 ['OS=="win"', {
725 'copies': [{
726 'destination': '<(PRODUCT_DIR)/plugins',
727 'files': ['<(PRODUCT_DIR)/np_test_netscape_plugin.dll'],
728 }],
729 }],
730 ['OS=="mac"', {
731 'copies': [{
732 'destination': '<(PRODUCT_DIR)/plugins/',
733 'files': ['<(PRODUCT_DIR)/test_netscape_plugin.plugin/'],
734 }],
735 }],
736 ['os_posix == 1 and OS != "mac"', {
737 'copies': [{
738 'destination': '<(PRODUCT_DIR)/plugins',
739 'files': ['<(PRODUCT_DIR)/libtest_netscape_plugin.so'],
740 }],
741 }],
742 ],
743 }
[email protected]5629e0c2011-09-12 22:07:36744 ],
[email protected]85ff16042012-03-06 23:46:34745 'conditions': [
[email protected]9f3ecf42014-05-07 18:21:06746 ['OS=="mac" or OS=="win"', {
747 'targets': [
748 {
749 'target_name': 'layout_test_helper',
750 'type': 'executable',
751 'sources': [
752 'shell/renderer/test_runner/helper/layout_test_helper_mac.mm',
753 'shell/renderer/test_runner/helper/layout_test_helper_win.cc',
754 ],
755 'conditions': [
756 ['OS=="mac"', {
757 'link_settings': {
758 'libraries': [
759 '$(SDKROOT)/System/Library/Frameworks/AppKit.framework',
760 ],
761 },
762 }],
763 ],
764 },
765 ],
766 }], # OS=="mac" or OS=="win"
[email protected]85ff16042012-03-06 23:46:34767 ['OS=="mac"', {
768 'targets': [
769 {
770 'target_name': 'content_shell_framework',
771 'type': 'shared_library',
772 'product_name': '<(content_shell_product_name) Framework',
773 'mac_bundle': 1,
774 'mac_bundle_resources': [
[email protected]993951d2013-05-08 21:37:02775 'shell/app/English.lproj/HttpAuth.xib',
776 'shell/app/English.lproj/MainMenu.xib',
[email protected]a7aa8ab2013-10-24 07:21:48777 '<(PRODUCT_DIR)/content_shell.pak',
778 'shell/app/framework-Info.plist',
[email protected]85ff16042012-03-06 23:46:34779 ],
[email protected]a7aa8ab2013-10-24 07:21:48780 'mac_bundle_resources!': [
781 'shell/app/framework-Info.plist',
782 ],
783 'xcode_settings': {
[email protected]6efed472013-11-01 02:09:34784 # The framework is placed within the .app's Framework
785 # directory. DYLIB_INSTALL_NAME_BASE and
786 # LD_DYLIB_INSTALL_NAME affect -install_name.
787 'DYLIB_INSTALL_NAME_BASE':
788 '@executable_path/../Frameworks',
789 # See /build/mac/copy_framework_unversioned.sh for
790 # information on LD_DYLIB_INSTALL_NAME.
791 'LD_DYLIB_INSTALL_NAME':
792 '$(DYLIB_INSTALL_NAME_BASE:standardizepath)/$(WRAPPER_NAME)/$(PRODUCT_NAME)',
793
[email protected]a7aa8ab2013-10-24 07:21:48794 'INFOPLIST_FILE': 'shell/app/framework-Info.plist',
795 },
[email protected]85ff16042012-03-06 23:46:34796 'dependencies': [
797 'content_shell_lib',
798 ],
799 'include_dirs': [
800 '..',
801 ],
802 'sources': [
[email protected]4642f5b2013-07-03 21:43:31803 'shell/app/shell_content_main.cc',
[email protected]216161f2013-07-02 16:23:20804 'shell/app/shell_content_main.h',
[email protected]85ff16042012-03-06 23:46:34805 ],
[email protected]30c246bc2014-01-28 06:00:04806 'postbuilds': [
807 {
808 # Modify the Info.plist as needed. The script explains why
809 # this is needed. This is also done in the chrome target.
810 # The framework needs the Breakpad keys if this feature is
811 # enabled. It does not need the Keystone keys; these always
812 # come from the outer application bundle. The framework
813 # doesn't currently use the SCM keys for anything,
814 # but this seems like a really good place to store them.
815 'postbuild_name': 'Tweak Info.plist',
816 'action': ['../build/mac/tweak_info_plist.py',
817 '--breakpad=1',
818 '--keystone=0',
819 '--scm=1',
820 '--version=<(content_shell_version)',
821 '--branding=<(content_shell_product_name)'],
822 },
823 ],
[email protected]5d96bbe2012-07-25 17:13:23824 'copies': [
825 {
[email protected]f77f0cab2014-03-28 17:19:30826 # Copy FFmpeg binaries for audio/video support.
[email protected]5d96bbe2012-07-25 17:13:23827 'destination': '<(PRODUCT_DIR)/$(CONTENTS_FOLDER_PATH)/Libraries',
828 'files': [
829 '<(PRODUCT_DIR)/ffmpegsumo.so',
830 ],
831 },
[email protected]a7aa8ab2013-10-24 07:21:48832 {
833 'destination': '<(PRODUCT_DIR)/$(CONTENTS_FOLDER_PATH)/Resources',
834 'files': [
835 '<(PRODUCT_DIR)/crash_inspector',
836 '<(PRODUCT_DIR)/crash_report_sender.app'
837 ],
838 },
[email protected]5d96bbe2012-07-25 17:13:23839 ],
[email protected]fda1c6c82013-04-09 16:10:12840 'conditions': [
841 ['enable_webrtc==1', {
842 'variables': {
843 'libpeer_target_type%': 'static_library',
844 },
845 'conditions': [
[email protected]e4aa290b2013-05-01 18:54:19846 ['libpeer_target_type!="static_library"', {
[email protected]fda1c6c82013-04-09 16:10:12847 'copies': [{
848 'destination': '<(PRODUCT_DIR)/$(CONTENTS_FOLDER_PATH)/Libraries',
849 'files': [
[email protected]62461b72013-05-02 12:27:12850 '<(PRODUCT_DIR)/libpeerconnection.so',
[email protected]fda1c6c82013-04-09 16:10:12851 ],
852 }],
853 }],
854 ],
855 }],
[email protected]30c246bc2014-01-28 06:00:04856 ['icu_use_data_file_flag==1', {
857 'mac_bundle_resources': [
858 '<(PRODUCT_DIR)/icudtl.dat',
859 ],
860 }],
[email protected]fda1c6c82013-04-09 16:10:12861 ],
[email protected]180df8f2012-03-09 22:36:10862 }, # target content_shell_framework
863 {
864 'target_name': 'content_shell_helper_app',
865 'type': 'executable',
866 'variables': { 'enable_wexit_time_destructors': 1, },
867 'product_name': '<(content_shell_product_name) Helper',
868 'mac_bundle': 1,
869 'dependencies': [
870 'content_shell_framework',
871 ],
872 'sources': [
[email protected]993951d2013-05-08 21:37:02873 'shell/app/shell_main.cc',
874 'shell/app/helper-Info.plist',
[email protected]180df8f2012-03-09 22:36:10875 ],
876 # TODO(mark): Come up with a fancier way to do this. It should only
877 # be necessary to list helper-Info.plist once, not the three times it
878 # is listed here.
879 'mac_bundle_resources!': [
[email protected]993951d2013-05-08 21:37:02880 'shell/app/helper-Info.plist',
[email protected]180df8f2012-03-09 22:36:10881 ],
882 # TODO(mark): For now, don't put any resources into this app. Its
883 # resources directory will be a symbolic link to the browser app's
884 # resources directory.
885 'mac_bundle_resources/': [
886 ['exclude', '.*'],
887 ],
888 'xcode_settings': {
[email protected]993951d2013-05-08 21:37:02889 'INFOPLIST_FILE': 'shell/app/helper-Info.plist',
[email protected]180df8f2012-03-09 22:36:10890 },
891 'postbuilds': [
892 {
893 # The framework defines its load-time path
894 # (DYLIB_INSTALL_NAME_BASE) relative to the main executable
895 # (chrome). A different relative path needs to be used in
896 # content_shell_helper_app.
897 'postbuild_name': 'Fix Framework Link',
898 'action': [
899 'install_name_tool',
900 '-change',
[email protected]6efed472013-11-01 02:09:34901 '@executable_path/../Frameworks/<(content_shell_product_name) Framework.framework/<(content_shell_product_name) Framework',
902 '@executable_path/../../../<(content_shell_product_name) Framework.framework/<(content_shell_product_name) Framework',
[email protected]180df8f2012-03-09 22:36:10903 '${BUILT_PRODUCTS_DIR}/${EXECUTABLE_PATH}'
904 ],
905 },
906 {
907 # Modify the Info.plist as needed. The script explains why this
908 # is needed. This is also done in the chrome and chrome_dll
[email protected]bbf52442012-08-23 22:53:18909 # targets. In this case, --breakpad=0, --keystone=0, and --scm=0
910 # are used because Breakpad, Keystone, and SCM keys are
[email protected]180df8f2012-03-09 22:36:10911 # never placed into the helper.
912 'postbuild_name': 'Tweak Info.plist',
913 'action': ['../build/mac/tweak_info_plist.py',
914 '--breakpad=0',
915 '--keystone=0',
[email protected]6d302912012-11-05 21:57:28916 '--scm=0',
917 '--version=<(content_shell_version)'],
[email protected]180df8f2012-03-09 22:36:10918 },
919 {
920 # Make sure there isn't any Objective-C in the helper app's
921 # executable.
922 'postbuild_name': 'Verify No Objective-C',
923 'action': [
924 '../build/mac/verify_no_objc.sh',
925 ],
926 },
927 ],
[email protected]ec40c38f2012-06-28 16:37:49928 'conditions': [
929 ['component=="shared_library"', {
930 'xcode_settings': {
931 'LD_RUNPATH_SEARCH_PATHS': [
932 # Get back from Content Shell.app/Contents/Frameworks/
933 # Helper.app/Contents/MacOS
934 '@loader_path/../../../../../..',
935 ],
936 },
937 }],
938 ],
[email protected]180df8f2012-03-09 22:36:10939 }, # target content_shell_helper_app
[email protected]85ff16042012-03-06 23:46:34940 ],
941 }], # OS=="mac"
[email protected]cc66d282012-03-30 11:44:06942 ['OS=="android"', {
943 'targets': [
944 {
[email protected]a08029b42012-04-25 03:18:46945 # TODO(jrg): Update this action and other jni generators to only
946 # require specifying the java directory and generate the rest.
947 'target_name': 'content_shell_jni_headers',
948 'type': 'none',
[email protected]e46f66152012-07-19 20:02:55949 'sources': [
[email protected]4d4eb5b2013-01-29 21:55:55950 'shell/android/browsertests_apk/src/org/chromium/content_browsertests_apk/ContentBrowserTestsActivity.java',
[email protected]eadcff0f2013-06-20 21:08:10951 'shell/android/java/src/org/chromium/content_shell/ShellLayoutTestUtils.java',
[email protected]e46f66152012-07-19 20:02:55952 'shell/android/java/src/org/chromium/content_shell/ShellManager.java',
953 'shell/android/java/src/org/chromium/content_shell/Shell.java',
954 ],
[email protected]a08029b42012-04-25 03:18:46955 'variables': {
[email protected]521cd942013-03-07 22:34:05956 'jni_gen_package': 'content/shell',
[email protected]8ef3318fe2014-01-10 15:23:54957 'jni_generator_ptr_type': 'long',
[email protected]a08029b42012-04-25 03:18:46958 },
959 'includes': [ '../build/jni_generator.gypi' ],
960 },
961 {
[email protected]c1101582012-06-25 17:07:18962 'target_name': 'libcontent_shell_content_view',
[email protected]a08029b42012-04-25 03:18:46963 'type': 'shared_library',
964 'dependencies': [
965 'content_shell_jni_headers',
966 'content_shell_lib',
967 'content_shell_pak',
968 # Skia is necessary to ensure the dependencies needed by
969 # WebContents are included.
970 '../skia/skia.gyp:skia',
971 '<(DEPTH)/media/media.gyp:player_android',
972 ],
[email protected]a08029b42012-04-25 03:18:46973 'sources': [
974 'shell/android/shell_library_loader.cc',
975 'shell/android/shell_library_loader.h',
[email protected]f83a47392012-07-12 22:15:04976 ],
[email protected]7abcaa82012-06-27 17:09:48977 'conditions': [
[email protected]d999c3cb2013-03-12 10:22:36978 ['android_webview_build==1', {
[email protected]7abcaa82012-06-27 17:09:48979 'ldflags': [
980 '-lgabi++', # For rtti
981 ],
982 }],
983 ],
[email protected]a08029b42012-04-25 03:18:46984 },
985 {
[email protected]4d4eb5b2013-01-29 21:55:55986 'target_name': 'content_shell_java',
987 'type': 'none',
988 'dependencies': [
[email protected]ba42b1e2013-10-19 22:13:17989 'content.gyp:content_java',
[email protected]4d4eb5b2013-01-29 21:55:55990 ],
991 'variables': {
[email protected]4d4eb5b2013-01-29 21:55:55992 'java_in_dir': '../content/shell/android/java',
993 'has_java_resources': 1,
994 'R_package': 'org.chromium.content_shell',
995 'R_package_relpath': 'org/chromium/content_shell',
996 },
997 'includes': [ '../build/java.gypi' ],
998 },
999 {
[email protected]319d6a82012-09-20 22:52:281000 # content_shell_apk creates a .jar as a side effect. Any java targets
1001 # that need that .jar in their classpath should depend on this target,
[email protected]4d4eb5b2013-01-29 21:55:551002 # content_shell_apk_java. Dependents of content_shell_apk receive its
1003 # jar path in the variable 'apk_output_jar_path'. This target should
1004 # only be used by targets which instrument content_shell_apk.
1005 'target_name': 'content_shell_apk_java',
[email protected]319d6a82012-09-20 22:52:281006 'type': 'none',
[email protected]319d6a82012-09-20 22:52:281007 'dependencies': [
[email protected]319d6a82012-09-20 22:52:281008 'content_shell_apk',
[email protected]319d6a82012-09-20 22:52:281009 ],
[email protected]b13f73e2013-03-27 23:31:271010 'includes': [ '../build/apk_fake_jar.gypi' ],
[email protected]319d6a82012-09-20 22:52:281011 },
[email protected]75c86a22012-09-26 03:50:371012 {
1013 'target_name': 'content_shell_apk',
1014 'type': 'none',
1015 'dependencies': [
[email protected]c8e8781e2014-03-08 12:02:261016 'content.gyp:content_icudata',
[email protected]ba42b1e2013-10-19 22:13:171017 'content.gyp:content_java',
[email protected]c48fece02013-06-19 12:01:421018 'content_java_test_support',
[email protected]4d4eb5b2013-01-29 21:55:551019 'content_shell_java',
1020 'libcontent_shell_content_view',
[email protected]75c86a22012-09-26 03:50:371021 '../base/base.gyp:base_java',
1022 '../media/media.gyp:media_java',
1023 '../net/net.gyp:net_java',
[email protected]abeda1f2014-02-21 17:08:341024 '../third_party/mesa/mesa.gyp:osmesa_in_lib_dir',
[email protected]4e384052013-08-14 20:46:301025 '../tools/android/forwarder/forwarder.gyp:forwarder',
[email protected]f450287d2013-11-15 17:52:541026 '../ui/android/ui_android.gyp:ui_java',
[email protected]75c86a22012-09-26 03:50:371027 ],
1028 'variables': {
[email protected]75c86a22012-09-26 03:50:371029 'apk_name': 'ContentShell',
[email protected]4d4eb5b2013-01-29 21:55:551030 'manifest_package_name': 'org.chromium.content_shell_apk',
1031 'java_in_dir': 'shell/android/shell_apk',
[email protected]bd6ab3db2013-03-26 17:35:211032 'resource_dir': 'shell/android/shell_apk/res',
[email protected]e4865252013-04-04 09:15:591033 'native_lib_target': 'libcontent_shell_content_view',
[email protected]75c86a22012-09-26 03:50:371034 'additional_input_paths': ['<(PRODUCT_DIR)/content_shell/assets/content_shell.pak'],
[email protected]0437c502013-11-28 05:17:331035 'asset_location': '<(PRODUCT_DIR)/content_shell/assets',
[email protected]abeda1f2014-02-21 17:08:341036 'extra_native_libs': ['<(SHARED_LIB_DIR)/libosmesa.so'],
[email protected]c8e8781e2014-03-08 12:02:261037 'conditions': [
1038 ['icu_use_data_file_flag==1', {
1039 'additional_input_paths': [
1040 '<(PRODUCT_DIR)/icudtl.dat',
1041 ],
1042 }],
1043 ],
[email protected]75c86a22012-09-26 03:50:371044 },
[email protected]5b0095b72013-08-01 17:44:221045 'conditions': [
1046 ['android_webview_build==0', {
1047 'dependencies': [
1048 '../tools/imagediff/image_diff.gyp:image_diff#host',
1049 ],
1050 }],
1051 ],
[email protected]75c86a22012-09-26 03:50:371052 'includes': [ '../build/java_apk.gypi' ],
1053 },
[email protected]cc66d282012-03-30 11:44:061054 ],
1055 }], # OS=="android"
[email protected]369205f2013-10-29 04:35:051056 ['OS=="win"', {
1057 'targets': [
1058 {
1059 'target_name': 'content_shell_crash_service',
1060 'type': 'executable',
1061 'dependencies': [
1062 '../base/base.gyp:base',
1063 '../components/components.gyp:breakpad_crash_service',
1064 ],
1065 'include_dirs': [
1066 '..',
1067 ],
1068 'sources': [
1069 'shell/tools/content_shell_crash_service.cc',
1070 ],
1071 'msvs_settings': {
1072 'VCLinkerTool': {
1073 'SubSystem': '2', # Set /SUBSYSTEM:WINDOWS
1074 },
1075 },
1076 },
1077 ],
1078 }], # OS=="win"
[email protected]004703a2014-05-05 23:23:001079 ['OS=="win" and fastbuild==0 and target_arch=="ia32" and syzyasan==1', {
[email protected]c8250d42013-10-01 05:17:461080 'variables': {
1081 'dest_dir': '<(PRODUCT_DIR)/syzygy',
1082 },
1083 'targets': [
1084 {
1085 'target_name': 'content_shell_syzyasan',
1086 'type': 'none',
1087 'sources' : [],
1088 # Instrument content_shell with SyzyAsan.
1089 'actions': [
1090 {
1091 'action_name': 'Instrument content_shell with SyzyAsan',
[email protected]c8250d42013-10-01 05:17:461092 'inputs': [
1093 '<(PRODUCT_DIR)/content_shell.exe',
1094 ],
1095 'outputs': [
1096 '<(dest_dir)/content_shell.exe',
1097 '<(dest_dir)/content_shell.exe.pdb',
1098 ],
1099 'action': [
1100 'python',
1101 '<(DEPTH)/chrome/tools/build/win/syzygy_instrument.py',
1102 '--mode', 'asan',
1103 '--input_executable', '<(PRODUCT_DIR)/content_shell.exe',
1104 '--input_symbol', '<(PRODUCT_DIR)/content_shell.exe.pdb',
1105 '--destination_dir', '<(dest_dir)',
1106 ],
1107 },
1108 ],
1109 },
1110 ],
1111 }], # OS=="win" and fastbuild==0 and target_arch=="ia32"
[email protected]cc66d282012-03-30 11:44:061112 ]
[email protected]5629e0c2011-09-12 22:07:361113}