blob: da2ec9027ab7718690de895c6849a9b4f2d6a87a [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]ffff5b32014-06-25 21:31:0860 '../ui/gfx/ipc/gfx_ipc.gyp:gfx_ipc',
[email protected]8350f16f2012-11-30 00:25:3261 '../ui/gl/gl.gyp:gl',
[email protected]002cc08f2013-06-03 05:40:2962 '../url/url.gyp:url_lib',
[email protected]12bc28fcb2011-09-21 15:53:5063 '../v8/tools/gyp/v8.gyp:v8',
[email protected]5326cd2f2014-04-07 13:35:5864 '../webkit/storage_browser.gyp:webkit_storage_browser',
[email protected]a356e5cc2013-09-24 02:54:4665 '../webkit/webkit_resources.gyp:webkit_resources',
[email protected]5629e0c2011-09-12 22:07:3666 ],
67 'include_dirs': [
68 '..',
69 ],
70 'sources': [
[email protected]4d4eb5b2013-01-29 21:55:5571 'shell/android/shell_jni_registrar.cc',
72 'shell/android/shell_jni_registrar.h',
73 'shell/android/shell_manager.cc',
74 'shell/android/shell_manager.h',
[email protected]2a94e812013-07-12 15:31:0275 'shell/app/paths_mac.h',
76 'shell/app/paths_mac.mm',
[email protected]d6d06a352013-10-23 07:04:0077 'shell/app/shell_breakpad_client.cc',
78 'shell/app/shell_breakpad_client.h',
[email protected]993951d2013-05-08 21:37:0279 'shell/app/shell_main_delegate.cc',
80 'shell/app/shell_main_delegate.h',
[email protected]2a94e812013-07-12 15:31:0281 'shell/app/shell_main_delegate_mac.h',
82 'shell/app/shell_main_delegate_mac.mm',
[email protected]216161f2013-07-02 16:23:2083 'shell/app/webkit_test_platform_support_android.cc',
[email protected]de7d61ff2013-08-20 11:30:4184 'shell/app/webkit_test_platform_support.h',
[email protected]216161f2013-07-02 16:23:2085 'shell/app/webkit_test_platform_support_linux.cc',
86 'shell/app/webkit_test_platform_support_mac.mm',
87 'shell/app/webkit_test_platform_support_win.cc',
[email protected]de7d61ff2013-08-20 11:30:4188 'shell/browser/notify_done_forwarder.cc',
89 'shell/browser/notify_done_forwarder.h',
90 'shell/browser/shell_android.cc',
91 'shell/browser/shell_application_mac.h',
92 'shell/browser/shell_application_mac.mm',
93 'shell/browser/shell_aura.cc',
94 'shell/browser/shell_browser_context.cc',
95 'shell/browser/shell_browser_context.h',
96 'shell/browser/shell_browser_main.cc',
97 'shell/browser/shell_browser_main.h',
98 'shell/browser/shell_browser_main_parts.cc',
99 'shell/browser/shell_browser_main_parts.h',
100 'shell/browser/shell_browser_main_parts_mac.mm',
101 'shell/browser/shell.cc',
102 'shell/browser/shell_content_browser_client.cc',
103 'shell/browser/shell_content_browser_client.h',
104 'shell/browser/shell_devtools_delegate.cc',
105 'shell/browser/shell_devtools_delegate.h',
106 'shell/browser/shell_devtools_frontend.cc',
107 'shell/browser/shell_devtools_frontend.h',
108 'shell/browser/shell_download_manager_delegate.cc',
109 'shell/browser/shell_download_manager_delegate.h',
[email protected]de7d61ff2013-08-20 11:30:41110 'shell/browser/shell.h',
[email protected]de7d61ff2013-08-20 11:30:41111 'shell/browser/shell_javascript_dialog.h',
112 'shell/browser/shell_javascript_dialog_mac.mm',
113 'shell/browser/shell_javascript_dialog_manager.cc',
114 'shell/browser/shell_javascript_dialog_manager.h',
115 'shell/browser/shell_javascript_dialog_win.cc',
116 'shell/browser/shell_layout_tests_android.cc',
117 'shell/browser/shell_layout_tests_android.h',
118 'shell/browser/shell_login_dialog.cc',
[email protected]de7d61ff2013-08-20 11:30:41119 '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',
[email protected]de7d61ff2013-08-20 11:30:41143 'shell/browser/shell_web_contents_view_delegate.h',
144 'shell/browser/shell_web_contents_view_delegate_mac.mm',
145 'shell/browser/shell_web_contents_view_delegate_win.cc',
[email protected]de7d61ff2013-08-20 11:30:41146 'shell/browser/webkit_test_controller.cc',
147 'shell/browser/webkit_test_controller.h',
[email protected]4562cf72014-01-27 10:10:13148 'shell/common/leak_detection_result.h',
[email protected]b7c504c2013-05-07 14:42:12149 'shell/common/shell_content_client.cc',
150 'shell/common/shell_content_client.h',
151 'shell/common/shell_messages.cc',
152 'shell/common/shell_messages.h',
153 'shell/common/shell_switches.cc',
154 'shell/common/shell_switches.h',
155 'shell/common/shell_test_configuration.cc',
156 'shell/common/shell_test_configuration.h',
[email protected]1f70cfa42014-04-04 21:35:01157 'shell/common/test_runner/test_preferences.cc',
158 'shell/common/test_runner/test_preferences.h',
[email protected]b7c504c2013-05-07 14:42:12159 'shell/common/webkit_test_helpers.cc',
160 'shell/common/webkit_test_helpers.h',
[email protected]6cfccd12012-06-28 12:14:05161 'shell/geolocation/shell_access_token_store.cc',
162 'shell/geolocation/shell_access_token_store.h',
[email protected]41fba0e2014-01-16 18:19:42163 'shell/renderer/gc_controller.cc',
164 'shell/renderer/gc_controller.h',
[email protected]4562cf72014-01-27 10:10:13165 'shell/renderer/leak_detector.cc',
166 'shell/renderer/leak_detector.h',
[email protected]f7a4e3b92013-05-03 15:29:58167 'shell/renderer/shell_content_renderer_client.cc',
168 'shell/renderer/shell_content_renderer_client.h',
[email protected]a86c0e962013-12-17 17:10:39169 'shell/renderer/shell_render_frame_observer.cc',
170 'shell/renderer/shell_render_frame_observer.h',
[email protected]f7a4e3b92013-05-03 15:29:58171 'shell/renderer/shell_render_process_observer.cc',
172 'shell/renderer/shell_render_process_observer.h',
[email protected]81914ad2013-07-02 18:54:25173 'shell/renderer/shell_render_view_observer.cc',
174 'shell/renderer/shell_render_view_observer.h',
[email protected]3de922f2013-12-20 13:27:38175 'shell/renderer/test_runner/MockColorChooser.cpp',
176 'shell/renderer/test_runner/MockColorChooser.h',
[email protected]3de922f2013-12-20 13:27:38177 'shell/renderer/test_runner/MockSpellCheck.cpp',
178 'shell/renderer/test_runner/MockSpellCheck.h',
[email protected]3de922f2013-12-20 13:27:38179 'shell/renderer/test_runner/MockWebMIDIAccessor.cpp',
180 'shell/renderer/test_runner/MockWebMIDIAccessor.h',
[email protected]d76ff4162014-01-05 19:04:43181 'shell/renderer/test_runner/MockWebMediaStreamCenter.cpp',
182 'shell/renderer/test_runner/MockWebMediaStreamCenter.h',
[email protected]3de922f2013-12-20 13:27:38183 'shell/renderer/test_runner/MockWebSpeechRecognizer.cpp',
184 'shell/renderer/test_runner/MockWebSpeechRecognizer.h',
[email protected]3de922f2013-12-20 13:27:38185 'shell/renderer/test_runner/SpellCheckClient.cpp',
186 'shell/renderer/test_runner/SpellCheckClient.h',
187 'shell/renderer/test_runner/TestCommon.cpp',
188 'shell/renderer/test_runner/TestCommon.h',
189 'shell/renderer/test_runner/TestInterfaces.cpp',
190 'shell/renderer/test_runner/TestInterfaces.h',
191 'shell/renderer/test_runner/TestPlugin.cpp',
192 'shell/renderer/test_runner/TestPlugin.h',
[email protected]3de922f2013-12-20 13:27:38193 'shell/renderer/test_runner/WebTask.cpp',
194 'shell/renderer/test_runner/WebTask.h',
195 'shell/renderer/test_runner/WebTestDelegate.h',
196 'shell/renderer/test_runner/WebTestInterfaces.cpp',
197 'shell/renderer/test_runner/WebTestInterfaces.h',
[email protected]3de922f2013-12-20 13:27:38198 'shell/renderer/test_runner/WebTestThemeEngineMac.h',
199 'shell/renderer/test_runner/WebTestThemeEngineMac.mm',
200 'shell/renderer/test_runner/WebTestThemeEngineMock.cpp',
201 'shell/renderer/test_runner/WebTestThemeEngineMock.h',
[email protected]fa6a8f42014-03-06 14:20:18202 'shell/renderer/test_runner/accessibility_controller.cc',
203 'shell/renderer/test_runner/accessibility_controller.h',
[email protected]3db130e2014-03-27 08:14:48204 'shell/renderer/test_runner/event_sender.cc',
205 'shell/renderer/test_runner/event_sender.h',
[email protected]cf786002014-02-11 02:05:54206 'shell/renderer/test_runner/gamepad_controller.cc',
207 'shell/renderer/test_runner/gamepad_controller.h',
[email protected]35c3197b2014-05-22 18:12:39208 'shell/renderer/test_runner/mock_constraints.cc',
209 'shell/renderer/test_runner/mock_constraints.h',
[email protected]f82478792014-05-14 17:50:57210 'shell/renderer/test_runner/mock_grammar_check.cc',
211 'shell/renderer/test_runner/mock_grammar_check.h',
[email protected]a2ca0032014-06-27 02:28:08212 'shell/renderer/test_runner/mock_screen_orientation_client.cc',
213 'shell/renderer/test_runner/mock_screen_orientation_client.h',
[email protected]5d6534d2014-06-06 13:21:32214 'shell/renderer/test_runner/mock_web_audio_device.cc',
215 'shell/renderer/test_runner/mock_web_audio_device.h',
[email protected]150f2152014-06-16 12:27:23216 'shell/renderer/test_runner/mock_web_push_client.cc',
217 'shell/renderer/test_runner/mock_web_push_client.h',
[email protected]7948a422014-06-02 05:43:02218 'shell/renderer/test_runner/mock_web_user_media_client.cc',
219 'shell/renderer/test_runner/mock_web_user_media_client.h',
[email protected]edffa7a2014-05-31 04:27:11220 'shell/renderer/test_runner/mock_webrtc_data_channel_handler.cc',
221 'shell/renderer/test_runner/mock_webrtc_data_channel_handler.h',
[email protected]358847f2014-06-04 13:29:14222 'shell/renderer/test_runner/mock_webrtc_dtmf_sender_handler.cc',
223 'shell/renderer/test_runner/mock_webrtc_dtmf_sender_handler.h',
[email protected]af605832014-06-05 15:09:08224 'shell/renderer/test_runner/mock_webrtc_peer_connection_handler.cc',
225 'shell/renderer/test_runner/mock_webrtc_peer_connection_handler.h',
[email protected]dc0a9762014-02-28 18:41:54226 'shell/renderer/test_runner/notification_presenter.cc',
227 'shell/renderer/test_runner/notification_presenter.h',
[email protected]97f9a7952014-03-14 11:50:33228 'shell/renderer/test_runner/test_runner.cc',
229 'shell/renderer/test_runner/test_runner.h',
[email protected]f751653a92014-02-18 16:32:55230 'shell/renderer/test_runner/text_input_controller.cc',
231 'shell/renderer/test_runner/text_input_controller.h',
[email protected]fa6a8f42014-03-06 14:20:18232 'shell/renderer/test_runner/web_ax_object_proxy.cc',
233 'shell/renderer/test_runner/web_ax_object_proxy.h',
[email protected]a1640e42014-05-14 13:43:32234 'shell/renderer/test_runner/web_frame_test_proxy.h',
[email protected]111f14f2014-06-18 08:24:06235 'shell/renderer/test_runner/web_permissions.cc',
236 'shell/renderer/test_runner/web_permissions.h',
[email protected]a1640e42014-05-14 13:43:32237 'shell/renderer/test_runner/web_test_proxy.cc',
238 'shell/renderer/test_runner/web_test_proxy.h',
[email protected]8deba6ca2014-05-26 16:37:03239 'shell/renderer/test_runner/web_test_runner.h',
[email protected]f7a4e3b92013-05-03 15:29:58240 'shell/renderer/webkit_test_runner.cc',
241 'shell/renderer/webkit_test_runner.h',
[email protected]5629e0c2011-09-12 22:07:36242 ],
243 'msvs_settings': {
244 'VCLinkerTool': {
245 'SubSystem': '2', # Set /SUBSYSTEM:WINDOWS
246 },
247 },
248 'conditions': [
[email protected]099d14a2014-02-06 09:49:46249 ['OS=="mac"', {
250 'sources/': [
251 ['exclude', 'WebTestThemeEngineMock.cpp'],
252 ],
253 }],
[email protected]5629e0c2011-09-12 22:07:36254 ['OS=="win" and win_use_allocator_shim==1', {
255 'dependencies': [
256 '../base/allocator/allocator.gyp:allocator',
257 ],
258 }],
[email protected]9fbd3f862011-09-20 23:31:34259 ['OS=="win"', {
260 'resource_include_dirs': [
261 '<(SHARED_INTERMEDIATE_DIR)/webkit',
262 ],
[email protected]9fbd3f862011-09-20 23:31:34263 'dependencies': [
[email protected]d7871ac2013-07-09 21:35:41264 '<(DEPTH)/webkit/webkit_resources.gyp:webkit_strings',
[email protected]9fbd3f862011-09-20 23:31:34265 ],
266 'configurations': {
267 'Debug_Base': {
268 'msvs_settings': {
269 'VCLinkerTool': {
270 'LinkIncremental': '<(msvs_large_module_debug_link_mode)',
271 },
272 },
273 },
274 },
[email protected]3bed5302013-02-15 19:31:41275 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
276 'msvs_disabled_warnings': [ 4267, ],
[email protected]3de922f2013-12-20 13:27:38277 }, { # OS!="win"
278 'sources/': [
279 ['exclude', 'Win\\.cpp$'],
280 ],
[email protected]85ff16042012-03-06 23:46:34281 }], # OS=="win"
[email protected]6eb6bb62012-11-10 06:30:59282 ['OS=="linux"', {
283 'dependencies': [
284 '../build/linux/system.gyp:fontconfig',
285 ],
286 }],
[email protected]6b911a32014-01-10 02:34:53287 ['use_x11 == 1', {
288 'dependencies': [
289 '../tools/xdisplaycheck/xdisplaycheck.gyp:xdisplaycheck',
290 ],
291 }],
[email protected]689266d2012-08-07 12:52:20292 ['OS=="android"', {
[email protected]82e9e2b12012-07-19 00:32:01293 'dependencies': [
294 'content_shell_jni_headers',
295 ],
[email protected]6b911a32014-01-10 02:34:53296 'dependencies!': [
[email protected]de28fed2e2014-02-01 14:36:32297 'copy_test_netscape_plugin',
[email protected]6b911a32014-01-10 02:34:53298 ],
[email protected]82e9e2b12012-07-19 00:32:01299 }], # OS=="android"
[email protected]a7aa8ab2013-10-24 07:21:48300 ['os_posix == 1 and OS != "mac" and android_webview_build != 1', {
301 'dependencies': [
302 '../components/components.gyp:breakpad_host',
303 ],
304 }],
[email protected]2fa89ef2014-05-07 18:45:59305 ['(OS=="linux" or OS=="android") and use_allocator!="none"', {
[email protected]c767d572012-07-27 10:55:58306 'dependencies': [
307 # This is needed by content/app/content_main_runner.cc
308 '../base/allocator/allocator.gyp:allocator',
309 ],
310 }],
[email protected]fa4a45832012-04-12 21:32:48311 ['use_aura==1', {
[email protected]c767d572012-07-27 10:55:58312 'dependencies': [
313 '../ui/aura/aura.gyp:aura',
[email protected]72fed232014-04-07 20:21:46314 '../ui/aura/aura.gyp:aura_test_support',
[email protected]72fed232014-04-07 20:21:46315 '../ui/events/events.gyp:events',
[email protected]e3d74862014-05-18 14:12:27316 '../ui/strings/ui_strings.gyp:ui_strings',
[email protected]884dac5b2014-04-30 15:10:10317 '../ui/wm/wm.gyp:wm',
[email protected]c767d572012-07-27 10:55:58318 ],
[email protected]a896e1e2013-10-20 19:10:30319 'conditions': [
320 ['toolkit_views==1', {
321 'dependencies': [
[email protected]dae78442013-11-26 16:57:02322 '../ui/resources/ui_resources.gyp:ui_resources',
[email protected]a896e1e2013-10-20 19:10:30323 '../ui/views/controls/webview/webview.gyp:webview',
324 '../ui/views/views.gyp:views',
325 '../ui/views/views.gyp:views_test_support',
[email protected]a896e1e2013-10-20 19:10:30326 ],
327 'sources/': [
328 ['exclude', 'shell/browser/shell_aura.cc'],
329 ],
330 }, {
331 'sources/': [
332 ['exclude', 'shell/browser/shell_views.cc'],
333 ],
334 }],
335 ],
336 }, {
337 'sources/': [
338 ['exclude', 'shell/browser/shell_aura.cc'],
339 ['exclude', 'shell/browser/shell_views.cc'],
340 ],
[email protected]96b80b472012-07-03 19:41:56341 }], # use_aura==1
[email protected]6b911a32014-01-10 02:34:53342 # The test plugin relies on X11.
343 ['OS=="linux" and use_x11==0', {
344 'dependencies!': [
[email protected]de28fed2e2014-02-01 14:36:32345 'copy_test_netscape_plugin',
[email protected]6b911a32014-01-10 02:34:53346 ],
347 }],
[email protected]c767d572012-07-27 10:55:58348 ['chromeos==1', {
349 'dependencies': [
350 '../chromeos/chromeos.gyp:chromeos',
[email protected]de6831b2013-11-16 01:04:30351 '../ui/wm/wm.gyp:wm_test_support',
[email protected]c767d572012-07-27 10:55:58352 ],
353 }], # chromeos==1
[email protected]929246a2013-02-28 13:55:20354 ['use_custom_freetype==1', {
355 'dependencies': [
356 '../third_party/freetype2/freetype2.gyp:freetype2',
357 ],
358 }],
[email protected]dfb9360192013-05-27 09:42:34359 ['enable_plugins==0', {
360 'sources/': [
[email protected]de7d61ff2013-08-20 11:30:41361 ['exclude', 'shell/browser/shell_plugin_service_filter.cc'],
362 ['exclude', 'shell/browser/shell_plugin_service_filter.h'],
[email protected]dfb9360192013-05-27 09:42:34363 ],
364 }]
[email protected]5629e0c2011-09-12 22:07:36365 ],
366 },
[email protected]c1f87b22011-10-05 21:59:33367 {
[email protected]ee75b8992012-01-27 07:53:57368 'target_name': 'content_shell_resources',
369 'type': 'none',
[email protected]b581eb402012-03-09 01:31:46370 'variables': {
371 'grit_out_dir': '<(SHARED_INTERMEDIATE_DIR)/content',
372 },
[email protected]5c94e992014-05-11 14:22:06373 'actions': [
374 {
375 'action_name': 'generate_content_shell_resources',
376 'variables': {
377 'grit_grd_file': 'shell/shell_resources.grd',
378 },
379 'includes': [ '../build/grit_action.gypi' ],
380 },
381 ],
[email protected]b581eb402012-03-09 01:31:46382 'includes': [ '../build/grit_target.gypi' ],
383 'copies': [
384 {
385 'destination': '<(PRODUCT_DIR)',
386 'files': [
387 '<(SHARED_INTERMEDIATE_DIR)/content/shell_resources.pak'
388 ],
389 },
390 ],
[email protected]6b911a32014-01-10 02:34:53391 'conditions': [
392 ['OS=="win"', {
393 'copies': [{
394 'destination': '<(PRODUCT_DIR)',
395 'files': ['shell/renderer/test_runner/resources/fonts/AHEM____.TTF'],
396 }],
397 }],
398 ['OS=="mac"', {
399 'all_dependent_settings': {
400 'mac_bundle_resources': [
401 'shell/renderer/test_runner/resources/fonts/AHEM____.TTF',
[email protected]24687802014-03-20 22:04:47402 'shell/renderer/test_runner/resources/fonts/ChromiumAATTest.ttf',
[email protected]6b911a32014-01-10 02:34:53403 '<(SHARED_INTERMEDIATE_DIR)/webkit/missingImage.png',
404 '<(SHARED_INTERMEDIATE_DIR)/webkit/textAreaResizeCorner.png',
405 ],
406 },
407 }],
408 ['use_x11 == 1', {
409 'copies': [{
410 'destination': '<(PRODUCT_DIR)',
411 'files': [
412 'shell/renderer/test_runner/resources/fonts/AHEM____.TTF',
413 'shell/renderer/test_runner/resources/fonts/fonts.conf',
[email protected]209984992014-07-08 13:32:09414 '../third_party/gardiner_mod/GardinerModBug.ttf',
415 '../third_party/gardiner_mod/GardinerModCat.ttf',
[email protected]6b911a32014-01-10 02:34:53416 ]
417 }],
418 }],
419 ['OS=="android"', {
420 'copies': [{
421 'destination': '<(PRODUCT_DIR)',
422 'files': [
423 'shell/renderer/test_runner/resources/fonts/AHEM____.TTF',
424 'shell/renderer/test_runner/resources/fonts/android_main_fonts.xml',
425 'shell/renderer/test_runner/resources/fonts/android_fallback_fonts.xml',
426 ]
427 }],
428 }],
429 ],
[email protected]4cb792f42012-03-24 03:12:42430 },
431 {
[email protected]81f30ce2012-01-18 22:10:33432 # We build a minimal set of resources so WebKit in content_shell has
433 # access to necessary resources.
434 'target_name': 'content_shell_pak',
435 'type': 'none',
[email protected]ee75b8992012-01-27 07:53:57436 'dependencies': [
[email protected]06c54162013-06-10 00:25:05437 'content_resources.gyp:content_resources',
[email protected]ee75b8992012-01-27 07:53:57438 'content_shell_resources',
[email protected]06c54162013-06-10 00:25:05439 '<(DEPTH)/net/net.gyp:net_resources',
[email protected]1c0c3f42013-11-20 02:03:28440 '<(DEPTH)/ui/resources/ui_resources.gyp:ui_resources',
[email protected]e3d74862014-05-18 14:12:27441 '<(DEPTH)/ui/strings/ui_strings.gyp:ui_strings',
[email protected]d7871ac2013-07-09 21:35:41442 '<(DEPTH)/webkit/webkit_resources.gyp:webkit_resources',
443 '<(DEPTH)/webkit/webkit_resources.gyp:webkit_strings',
[email protected]ee75b8992012-01-27 07:53:57444 ],
[email protected]3df230d2013-07-03 00:44:57445 'conditions': [
446 ['OS!="android" and OS!="ios"', {
447 'dependencies': [
448 'browser/tracing/tracing_resources.gyp:tracing_resources',
449 ],
450 }],
[email protected]8dffd2c2013-12-02 14:14:38451 ['OS!="android"', {
452 'dependencies': [
453 'browser/devtools/devtools_resources.gyp:devtools_resources',
454 ],
455 }],
[email protected]3df230d2013-07-03 00:44:57456 ],
[email protected]81f30ce2012-01-18 22:10:33457 'actions': [
458 {
459 'action_name': 'repack_content_shell_pack',
460 'variables': {
461 'pak_inputs': [
462 '<(SHARED_INTERMEDIATE_DIR)/content/content_resources.pak',
[email protected]479bea22013-07-02 21:46:06463 '<(SHARED_INTERMEDIATE_DIR)/content/browser/tracing/tracing_resources.pak',
[email protected]ee75b8992012-01-27 07:53:57464 '<(SHARED_INTERMEDIATE_DIR)/content/shell_resources.pak',
[email protected]81f30ce2012-01-18 22:10:33465 '<(SHARED_INTERMEDIATE_DIR)/net/net_resources.pak',
[email protected]a3c134352014-07-11 19:23:19466 '<(SHARED_INTERMEDIATE_DIR)/ui/resources/ui_resources_100_percent.pak',
467 '<(SHARED_INTERMEDIATE_DIR)/ui/resources/webui_resources.pak',
[email protected]d2329222014-07-18 07:14:22468 '<(SHARED_INTERMEDIATE_DIR)/ui/strings/app_locale_settings_en-US.pak',
[email protected]a3c134352014-07-11 19:23:19469 '<(SHARED_INTERMEDIATE_DIR)/ui/strings/ui_strings_en-US.pak',
[email protected]e5f893b2013-07-30 02:52:22470 '<(SHARED_INTERMEDIATE_DIR)/webkit/blink_resources.pak',
[email protected]30c8f542012-09-01 01:02:29471 '<(SHARED_INTERMEDIATE_DIR)/webkit/webkit_resources_100_percent.pak',
[email protected]af551a62012-07-31 16:44:03472 '<(SHARED_INTERMEDIATE_DIR)/webkit/webkit_strings_en-US.pak',
[email protected]81f30ce2012-01-18 22:10:33473 ],
[email protected]01bdc9202014-03-28 21:11:20474 'conditions': [
475 ['OS!="android"', {
[email protected]4ede5b412014-04-09 13:08:02476 'pak_inputs': ['<(SHARED_INTERMEDIATE_DIR)/webkit/devtools_resources.pak',],
[email protected]01bdc9202014-03-28 21:11:20477 'pak_output': '<(PRODUCT_DIR)/content_shell.pak',
478 }, {
479 'pak_output': '<(PRODUCT_DIR)/content_shell/assets/content_shell.pak',
480 }],
481 ],
[email protected]81f30ce2012-01-18 22:10:33482 },
[email protected]01bdc9202014-03-28 21:11:20483 'includes': [ '../build/repack_action.gypi' ],
[email protected]81f30ce2012-01-18 22:10:33484 },
485 ],
486 },
487 {
[email protected]c1f87b22011-10-05 21:59:33488 'target_name': 'content_shell',
489 'type': 'executable',
[email protected]85ff16042012-03-06 23:46:34490 'mac_bundle': 1,
[email protected]c1f87b22011-10-05 21:59:33491 'variables': {
492 'chromium_code': 1,
493 },
494 'dependencies': [
495 'content_shell_lib',
[email protected]81f30ce2012-01-18 22:10:33496 'content_shell_pak',
[email protected]bb5d2d92012-10-15 07:45:42497 '../third_party/mesa/mesa.gyp:osmesa',
[email protected]331d1692013-07-25 20:40:13498 '../tools/imagediff/image_diff.gyp:image_diff',
[email protected]c1f87b22011-10-05 21:59:33499 ],
500 'include_dirs': [
501 '..',
502 ],
503 'sources': [
[email protected]711f428e2012-06-22 02:18:23504 'app/startup_helper_win.cc',
[email protected]993951d2013-05-08 21:37:02505 'shell/app/shell_main.cc',
[email protected]c1f87b22011-10-05 21:59:33506 ],
[email protected]85ff16042012-03-06 23:46:34507 'mac_bundle_resources': [
[email protected]993951d2013-05-08 21:37:02508 'shell/app/app.icns',
509 'shell/app/app-Info.plist',
[email protected]85ff16042012-03-06 23:46:34510 ],
511 # TODO(mark): Come up with a fancier way to do this. It should only
512 # be necessary to list app-Info.plist once, not the three times it is
513 # listed here.
514 'mac_bundle_resources!': [
[email protected]993951d2013-05-08 21:37:02515 'shell/app/app-Info.plist',
[email protected]85ff16042012-03-06 23:46:34516 ],
517 'xcode_settings': {
[email protected]993951d2013-05-08 21:37:02518 'INFOPLIST_FILE': 'shell/app/app-Info.plist',
[email protected]85ff16042012-03-06 23:46:34519 },
[email protected]c1f87b22011-10-05 21:59:33520 'msvs_settings': {
[email protected]30624922013-06-04 10:40:10521 'VCManifestTool': {
[email protected]5d60b0b2013-07-30 20:24:30522 'AdditionalManifestFiles': [
523 'shell/app/shell.exe.manifest',
524 ],
[email protected]30624922013-06-04 10:40:10525 },
[email protected]c1f87b22011-10-05 21:59:33526 },
527 'conditions': [
528 ['OS=="win" and win_use_allocator_shim==1', {
529 'dependencies': [
530 '../base/allocator/allocator.gyp:allocator',
531 ],
532 }],
533 ['OS=="win"', {
[email protected]7fc83822012-03-30 19:53:29534 'sources': [
[email protected]993951d2013-05-08 21:37:02535 'shell/app/shell.rc',
[email protected]7fc83822012-03-30 19:53:29536 ],
[email protected]c1f87b22011-10-05 21:59:33537 'configurations': {
538 'Debug_Base': {
539 'msvs_settings': {
540 'VCLinkerTool': {
541 'LinkIncremental': '<(msvs_large_module_debug_link_mode)',
542 },
543 },
544 },
545 },
[email protected]85ff16042012-03-06 23:46:34546 }], # OS=="win"
[email protected]c997bc42014-04-11 18:25:58547 ['OS == "win"', {
[email protected]27315ce42011-10-14 01:25:12548 'dependencies': [
549 '../sandbox/sandbox.gyp:sandbox',
550 ],
[email protected]c997bc42014-04-11 18:25:58551 }], # OS=="win"
[email protected]78539df2014-07-16 22:34:22552 ['OS=="win" and asan==0', {
553 'msvs_settings': {
554 'VCLinkerTool': {
555 'SubSystem': '2', # Set /SUBSYSTEM:WINDOWS
556 },
557 },
558 }], # OS=="win" and asan==0
[email protected]85ff16042012-03-06 23:46:34559 ['OS=="mac"', {
560 'product_name': '<(content_shell_product_name)',
561 'dependencies!': [
562 'content_shell_lib',
563 ],
564 'dependencies': [
565 'content_shell_framework',
[email protected]180df8f2012-03-09 22:36:10566 'content_shell_helper_app',
567 ],
568 'copies': [
569 {
570 'destination': '<(PRODUCT_DIR)/<(content_shell_product_name).app/Contents/Frameworks',
571 'files': [
572 '<(PRODUCT_DIR)/<(content_shell_product_name) Helper.app',
573 ],
574 },
[email protected]85ff16042012-03-06 23:46:34575 ],
576 'postbuilds': [
577 {
578 'postbuild_name': 'Copy <(content_shell_product_name) Framework.framework',
579 'action': [
580 '../build/mac/copy_framework_unversioned.sh',
581 '${BUILT_PRODUCTS_DIR}/<(content_shell_product_name) Framework.framework',
582 '${BUILT_PRODUCTS_DIR}/${CONTENTS_FOLDER_PATH}/Frameworks',
583 ],
584 },
585 {
[email protected]85ff16042012-03-06 23:46:34586 # Modify the Info.plist as needed.
587 'postbuild_name': 'Tweak Info.plist',
588 'action': ['../build/mac/tweak_info_plist.py',
[email protected]6d302912012-11-05 21:57:28589 '--scm=1',
590 '--version=<(content_shell_version)'],
[email protected]85ff16042012-03-06 23:46:34591 },
592 {
[email protected]180df8f2012-03-09 22:36:10593 # This postbuid step is responsible for creating the following
594 # helpers:
595 #
596 # Content Shell Helper EH.app and Content Shell Helper NP.app are
597 # created from Content Shell Helper.app.
598 #
599 # The EH helper is marked for an executable heap. The NP helper
600 # is marked for no PIE (ASLR).
601 'postbuild_name': 'Make More Helpers',
602 'action': [
603 '../build/mac/make_more_helpers.sh',
604 'Frameworks',
605 '<(content_shell_product_name)',
606 ],
607 },
608 {
[email protected]85ff16042012-03-06 23:46:34609 # Make sure there isn't any Objective-C in the shell's
610 # executable.
611 'postbuild_name': 'Verify No Objective-C',
612 'action': [
613 '../build/mac/verify_no_objc.sh',
614 ],
615 },
616 ],
617 }], # OS=="mac"
[email protected]331d1692013-07-25 20:40:13618 ['OS=="android"', {
619 'dependencies!': [
620 '../tools/imagediff/image_diff.gyp:image_diff',
621 ],
622 }], # OS=="android"
623 ['OS=="android" and android_webview_build==0', {
624 'dependencies': [
625 '../tools/imagediff/image_diff.gyp:image_diff#host',
626 ],
627 }], # OS=="android" and android_webview_build==0
[email protected]c1f87b22011-10-05 21:59:33628 ],
629 },
[email protected]fe2420d2012-08-21 07:28:33630 {
631 'target_name': 'content_shell_builder',
632 'type': 'none',
633 'dependencies': [
634 'content_shell',
[email protected]fe2420d2012-08-21 07:28:33635 ],
636 },
[email protected]9f3ecf42014-05-07 18:21:06637
[email protected]de28fed2e2014-02-01 14:36:32638 {
639 'target_name': 'test_netscape_plugin',
640 'type': 'loadable_module',
641 'sources': [
642 'shell/tools/plugin/PluginObject.cpp',
643 'shell/tools/plugin/PluginObject.h',
644 'shell/tools/plugin/PluginObjectMac.mm',
645 'shell/tools/plugin/PluginTest.cpp',
646 'shell/tools/plugin/PluginTest.h',
647 'shell/tools/plugin/TestObject.cpp',
[email protected]de28fed2e2014-02-01 14:36:32648 'shell/tools/plugin/Tests/DocumentOpenInDestroyStream.cpp',
649 'shell/tools/plugin/Tests/EvaluateJSAfterRemovingPluginElement.cpp',
650 'shell/tools/plugin/Tests/FormValue.cpp',
651 'shell/tools/plugin/Tests/GetURLNotifyWithURLThatFailsToLoad.cpp',
652 'shell/tools/plugin/Tests/GetURLWithJavaScriptURL.cpp',
653 'shell/tools/plugin/Tests/GetURLWithJavaScriptURLDestroyingPlugin.cpp',
654 'shell/tools/plugin/Tests/GetUserAgentWithNullNPPFromNPPNew.cpp',
655 'shell/tools/plugin/Tests/LeakWindowScriptableObject.cpp',
656 'shell/tools/plugin/Tests/LogNPPSetWindow.cpp',
657 'shell/tools/plugin/Tests/NPDeallocateCalledBeforeNPShutdown.cpp',
658 'shell/tools/plugin/Tests/NPPNewFails.cpp',
659 'shell/tools/plugin/Tests/NPRuntimeCallsWithNullNPP.cpp',
660 'shell/tools/plugin/Tests/NPRuntimeObjectFromDestroyedPlugin.cpp',
661 'shell/tools/plugin/Tests/NPRuntimeRemoveProperty.cpp',
662 'shell/tools/plugin/Tests/NullNPPGetValuePointer.cpp',
663 'shell/tools/plugin/Tests/PassDifferentNPPStruct.cpp',
664 'shell/tools/plugin/Tests/PluginScriptableNPObjectInvokeDefault.cpp',
665 'shell/tools/plugin/Tests/PluginScriptableObjectOverridesAllProperties.cpp',
666 'shell/tools/plugin/main.cpp',
[email protected]0516a592014-02-13 00:10:04667 'shell/tools/plugin/test_object.h',
[email protected]de28fed2e2014-02-01 14:36:32668 ],
669 'include_dirs': [
670 '<(DEPTH)',
671 '<(DEPTH)/content/shell/tools/plugin/',
672 ],
673 'dependencies': [
674 '../base/base.gyp:base',
675 '../third_party/npapi/npapi.gyp:npapi',
676 ],
677 'conditions': [
678 ['OS=="mac"', {
679 'mac_bundle': 1,
680 'product_extension': 'plugin',
681 'link_settings': {
682 'libraries': [
683 '$(SDKROOT)/System/Library/Frameworks/Carbon.framework',
684 '$(SDKROOT)/System/Library/Frameworks/Cocoa.framework',
685 '$(SDKROOT)/System/Library/Frameworks/QuartzCore.framework',
686 ]
687 },
688 'xcode_settings': {
689 'GCC_SYMBOLS_PRIVATE_EXTERN': 'NO',
690 'INFOPLIST_FILE': 'shell/tools/plugin/mac/Info.plist',
691 },
692 }],
693 ['os_posix == 1 and OS != "mac"', {
694 'cflags': [
695 '-fvisibility=default',
696 ],
697 }],
698 ['OS=="win"', {
699 'defines': [
700 # This seems like a hack, but this is what Safari Win does.
701 'snprintf=_snprintf',
702 ],
703 'sources': [
704 'shell/tools/plugin/win/TestNetscapePlugin.def',
705 'shell/tools/plugin/win/TestNetscapePlugin.rc',
706 ],
707 # The .rc file requires that the name of the dll is np_test_netscape_plugin.dll.
708 'product_name': 'np_test_netscape_plugin',
709 # Disable c4267 warnings until we fix size_t to int truncations.
710 'msvs_disabled_warnings': [ 4267, ],
711 }],
712 ],
713 },
714 {
715 'target_name': 'copy_test_netscape_plugin',
716 'type': 'none',
717 'dependencies': [
718 'test_netscape_plugin',
719 ],
720 'conditions': [
721 ['OS=="win"', {
722 'copies': [{
723 'destination': '<(PRODUCT_DIR)/plugins',
724 'files': ['<(PRODUCT_DIR)/np_test_netscape_plugin.dll'],
725 }],
726 }],
727 ['OS=="mac"', {
728 'copies': [{
729 'destination': '<(PRODUCT_DIR)/plugins/',
730 'files': ['<(PRODUCT_DIR)/test_netscape_plugin.plugin/'],
731 }],
732 }],
733 ['os_posix == 1 and OS != "mac"', {
734 'copies': [{
735 'destination': '<(PRODUCT_DIR)/plugins',
736 'files': ['<(PRODUCT_DIR)/libtest_netscape_plugin.so'],
737 }],
738 }],
739 ],
740 }
[email protected]5629e0c2011-09-12 22:07:36741 ],
[email protected]85ff16042012-03-06 23:46:34742 'conditions': [
[email protected]9f3ecf42014-05-07 18:21:06743 ['OS=="mac" or OS=="win"', {
744 'targets': [
745 {
746 'target_name': 'layout_test_helper',
747 'type': 'executable',
748 'sources': [
749 'shell/renderer/test_runner/helper/layout_test_helper_mac.mm',
750 'shell/renderer/test_runner/helper/layout_test_helper_win.cc',
751 ],
752 'conditions': [
753 ['OS=="mac"', {
754 'link_settings': {
755 'libraries': [
756 '$(SDKROOT)/System/Library/Frameworks/AppKit.framework',
757 ],
758 },
759 }],
760 ],
761 },
762 ],
763 }], # OS=="mac" or OS=="win"
[email protected]85ff16042012-03-06 23:46:34764 ['OS=="mac"', {
765 'targets': [
766 {
767 'target_name': 'content_shell_framework',
768 'type': 'shared_library',
769 'product_name': '<(content_shell_product_name) Framework',
770 'mac_bundle': 1,
771 'mac_bundle_resources': [
[email protected]993951d2013-05-08 21:37:02772 'shell/app/English.lproj/HttpAuth.xib',
773 'shell/app/English.lproj/MainMenu.xib',
[email protected]a7aa8ab2013-10-24 07:21:48774 '<(PRODUCT_DIR)/content_shell.pak',
775 'shell/app/framework-Info.plist',
[email protected]85ff16042012-03-06 23:46:34776 ],
[email protected]a7aa8ab2013-10-24 07:21:48777 'mac_bundle_resources!': [
778 'shell/app/framework-Info.plist',
779 ],
780 'xcode_settings': {
[email protected]6efed472013-11-01 02:09:34781 # The framework is placed within the .app's Framework
782 # directory. DYLIB_INSTALL_NAME_BASE and
783 # LD_DYLIB_INSTALL_NAME affect -install_name.
784 'DYLIB_INSTALL_NAME_BASE':
785 '@executable_path/../Frameworks',
786 # See /build/mac/copy_framework_unversioned.sh for
787 # information on LD_DYLIB_INSTALL_NAME.
788 'LD_DYLIB_INSTALL_NAME':
789 '$(DYLIB_INSTALL_NAME_BASE:standardizepath)/$(WRAPPER_NAME)/$(PRODUCT_NAME)',
790
[email protected]a7aa8ab2013-10-24 07:21:48791 'INFOPLIST_FILE': 'shell/app/framework-Info.plist',
792 },
[email protected]85ff16042012-03-06 23:46:34793 'dependencies': [
794 'content_shell_lib',
795 ],
796 'include_dirs': [
797 '..',
798 ],
799 'sources': [
[email protected]4642f5b2013-07-03 21:43:31800 'shell/app/shell_content_main.cc',
[email protected]216161f2013-07-02 16:23:20801 'shell/app/shell_content_main.h',
[email protected]85ff16042012-03-06 23:46:34802 ],
[email protected]30c246bc2014-01-28 06:00:04803 'postbuilds': [
804 {
805 # Modify the Info.plist as needed. The script explains why
806 # this is needed. This is also done in the chrome target.
807 # The framework needs the Breakpad keys if this feature is
808 # enabled. It does not need the Keystone keys; these always
809 # come from the outer application bundle. The framework
810 # doesn't currently use the SCM keys for anything,
811 # but this seems like a really good place to store them.
812 'postbuild_name': 'Tweak Info.plist',
813 'action': ['../build/mac/tweak_info_plist.py',
814 '--breakpad=1',
815 '--keystone=0',
816 '--scm=1',
817 '--version=<(content_shell_version)',
818 '--branding=<(content_shell_product_name)'],
819 },
820 ],
[email protected]5d96bbe2012-07-25 17:13:23821 'copies': [
822 {
[email protected]f77f0cab2014-03-28 17:19:30823 # Copy FFmpeg binaries for audio/video support.
[email protected]5d96bbe2012-07-25 17:13:23824 'destination': '<(PRODUCT_DIR)/$(CONTENTS_FOLDER_PATH)/Libraries',
825 'files': [
826 '<(PRODUCT_DIR)/ffmpegsumo.so',
827 ],
828 },
[email protected]a7aa8ab2013-10-24 07:21:48829 {
830 'destination': '<(PRODUCT_DIR)/$(CONTENTS_FOLDER_PATH)/Resources',
831 'files': [
832 '<(PRODUCT_DIR)/crash_inspector',
833 '<(PRODUCT_DIR)/crash_report_sender.app'
834 ],
835 },
[email protected]5d96bbe2012-07-25 17:13:23836 ],
[email protected]fda1c6c82013-04-09 16:10:12837 'conditions': [
838 ['enable_webrtc==1', {
839 'variables': {
840 'libpeer_target_type%': 'static_library',
841 },
842 'conditions': [
[email protected]e4aa290b2013-05-01 18:54:19843 ['libpeer_target_type!="static_library"', {
[email protected]fda1c6c82013-04-09 16:10:12844 'copies': [{
845 'destination': '<(PRODUCT_DIR)/$(CONTENTS_FOLDER_PATH)/Libraries',
846 'files': [
[email protected]62461b72013-05-02 12:27:12847 '<(PRODUCT_DIR)/libpeerconnection.so',
[email protected]fda1c6c82013-04-09 16:10:12848 ],
849 }],
850 }],
851 ],
852 }],
[email protected]30c246bc2014-01-28 06:00:04853 ['icu_use_data_file_flag==1', {
854 'mac_bundle_resources': [
855 '<(PRODUCT_DIR)/icudtl.dat',
856 ],
857 }],
[email protected]fda1c6c82013-04-09 16:10:12858 ],
[email protected]180df8f2012-03-09 22:36:10859 }, # target content_shell_framework
860 {
861 'target_name': 'content_shell_helper_app',
862 'type': 'executable',
863 'variables': { 'enable_wexit_time_destructors': 1, },
864 'product_name': '<(content_shell_product_name) Helper',
865 'mac_bundle': 1,
866 'dependencies': [
867 'content_shell_framework',
868 ],
869 'sources': [
[email protected]993951d2013-05-08 21:37:02870 'shell/app/shell_main.cc',
871 'shell/app/helper-Info.plist',
[email protected]180df8f2012-03-09 22:36:10872 ],
873 # TODO(mark): Come up with a fancier way to do this. It should only
874 # be necessary to list helper-Info.plist once, not the three times it
875 # is listed here.
876 'mac_bundle_resources!': [
[email protected]993951d2013-05-08 21:37:02877 'shell/app/helper-Info.plist',
[email protected]180df8f2012-03-09 22:36:10878 ],
879 # TODO(mark): For now, don't put any resources into this app. Its
880 # resources directory will be a symbolic link to the browser app's
881 # resources directory.
882 'mac_bundle_resources/': [
883 ['exclude', '.*'],
884 ],
885 'xcode_settings': {
[email protected]993951d2013-05-08 21:37:02886 'INFOPLIST_FILE': 'shell/app/helper-Info.plist',
[email protected]180df8f2012-03-09 22:36:10887 },
888 'postbuilds': [
889 {
890 # The framework defines its load-time path
891 # (DYLIB_INSTALL_NAME_BASE) relative to the main executable
892 # (chrome). A different relative path needs to be used in
893 # content_shell_helper_app.
894 'postbuild_name': 'Fix Framework Link',
895 'action': [
896 'install_name_tool',
897 '-change',
[email protected]6efed472013-11-01 02:09:34898 '@executable_path/../Frameworks/<(content_shell_product_name) Framework.framework/<(content_shell_product_name) Framework',
899 '@executable_path/../../../<(content_shell_product_name) Framework.framework/<(content_shell_product_name) Framework',
[email protected]180df8f2012-03-09 22:36:10900 '${BUILT_PRODUCTS_DIR}/${EXECUTABLE_PATH}'
901 ],
902 },
903 {
904 # Modify the Info.plist as needed. The script explains why this
905 # is needed. This is also done in the chrome and chrome_dll
[email protected]bbf52442012-08-23 22:53:18906 # targets. In this case, --breakpad=0, --keystone=0, and --scm=0
907 # are used because Breakpad, Keystone, and SCM keys are
[email protected]180df8f2012-03-09 22:36:10908 # never placed into the helper.
909 'postbuild_name': 'Tweak Info.plist',
910 'action': ['../build/mac/tweak_info_plist.py',
911 '--breakpad=0',
912 '--keystone=0',
[email protected]6d302912012-11-05 21:57:28913 '--scm=0',
914 '--version=<(content_shell_version)'],
[email protected]180df8f2012-03-09 22:36:10915 },
916 {
917 # Make sure there isn't any Objective-C in the helper app's
918 # executable.
919 'postbuild_name': 'Verify No Objective-C',
920 'action': [
921 '../build/mac/verify_no_objc.sh',
922 ],
923 },
924 ],
[email protected]ec40c38f2012-06-28 16:37:49925 'conditions': [
926 ['component=="shared_library"', {
927 'xcode_settings': {
928 'LD_RUNPATH_SEARCH_PATHS': [
929 # Get back from Content Shell.app/Contents/Frameworks/
930 # Helper.app/Contents/MacOS
931 '@loader_path/../../../../../..',
932 ],
933 },
934 }],
935 ],
[email protected]180df8f2012-03-09 22:36:10936 }, # target content_shell_helper_app
[email protected]85ff16042012-03-06 23:46:34937 ],
938 }], # OS=="mac"
[email protected]cc66d282012-03-30 11:44:06939 ['OS=="android"', {
940 'targets': [
941 {
[email protected]a08029b42012-04-25 03:18:46942 # TODO(jrg): Update this action and other jni generators to only
943 # require specifying the java directory and generate the rest.
944 'target_name': 'content_shell_jni_headers',
945 'type': 'none',
[email protected]e46f66152012-07-19 20:02:55946 'sources': [
[email protected]4d4eb5b2013-01-29 21:55:55947 'shell/android/browsertests_apk/src/org/chromium/content_browsertests_apk/ContentBrowserTestsActivity.java',
[email protected]eadcff0f2013-06-20 21:08:10948 'shell/android/java/src/org/chromium/content_shell/ShellLayoutTestUtils.java',
[email protected]e46f66152012-07-19 20:02:55949 'shell/android/java/src/org/chromium/content_shell/ShellManager.java',
950 'shell/android/java/src/org/chromium/content_shell/Shell.java',
951 ],
[email protected]a08029b42012-04-25 03:18:46952 'variables': {
[email protected]521cd942013-03-07 22:34:05953 'jni_gen_package': 'content/shell',
[email protected]a08029b42012-04-25 03:18:46954 },
955 'includes': [ '../build/jni_generator.gypi' ],
956 },
957 {
[email protected]c1101582012-06-25 17:07:18958 'target_name': 'libcontent_shell_content_view',
[email protected]a08029b42012-04-25 03:18:46959 'type': 'shared_library',
960 'dependencies': [
961 'content_shell_jni_headers',
962 'content_shell_lib',
963 'content_shell_pak',
964 # Skia is necessary to ensure the dependencies needed by
965 # WebContents are included.
966 '../skia/skia.gyp:skia',
967 '<(DEPTH)/media/media.gyp:player_android',
968 ],
[email protected]a08029b42012-04-25 03:18:46969 'sources': [
970 'shell/android/shell_library_loader.cc',
971 'shell/android/shell_library_loader.h',
[email protected]f83a47392012-07-12 22:15:04972 ],
[email protected]7abcaa82012-06-27 17:09:48973 'conditions': [
[email protected]d999c3cb2013-03-12 10:22:36974 ['android_webview_build==1', {
[email protected]7abcaa82012-06-27 17:09:48975 'ldflags': [
976 '-lgabi++', # For rtti
977 ],
978 }],
979 ],
[email protected]a08029b42012-04-25 03:18:46980 },
981 {
[email protected]4d4eb5b2013-01-29 21:55:55982 'target_name': 'content_shell_java',
983 'type': 'none',
984 'dependencies': [
[email protected]ba42b1e2013-10-19 22:13:17985 'content.gyp:content_java',
[email protected]4d4eb5b2013-01-29 21:55:55986 ],
987 'variables': {
[email protected]4d4eb5b2013-01-29 21:55:55988 'java_in_dir': '../content/shell/android/java',
989 'has_java_resources': 1,
990 'R_package': 'org.chromium.content_shell',
991 'R_package_relpath': 'org/chromium/content_shell',
992 },
993 'includes': [ '../build/java.gypi' ],
994 },
995 {
[email protected]319d6a82012-09-20 22:52:28996 # content_shell_apk creates a .jar as a side effect. Any java targets
997 # that need that .jar in their classpath should depend on this target,
[email protected]4d4eb5b2013-01-29 21:55:55998 # content_shell_apk_java. Dependents of content_shell_apk receive its
999 # jar path in the variable 'apk_output_jar_path'. This target should
1000 # only be used by targets which instrument content_shell_apk.
1001 'target_name': 'content_shell_apk_java',
[email protected]319d6a82012-09-20 22:52:281002 'type': 'none',
[email protected]319d6a82012-09-20 22:52:281003 'dependencies': [
[email protected]319d6a82012-09-20 22:52:281004 'content_shell_apk',
[email protected]319d6a82012-09-20 22:52:281005 ],
[email protected]b13f73e2013-03-27 23:31:271006 'includes': [ '../build/apk_fake_jar.gypi' ],
[email protected]319d6a82012-09-20 22:52:281007 },
[email protected]75c86a22012-09-26 03:50:371008 {
1009 'target_name': 'content_shell_apk',
1010 'type': 'none',
1011 'dependencies': [
[email protected]c8e8781e2014-03-08 12:02:261012 'content.gyp:content_icudata',
[email protected]ba42b1e2013-10-19 22:13:171013 'content.gyp:content_java',
[email protected]c48fece02013-06-19 12:01:421014 'content_java_test_support',
[email protected]4d4eb5b2013-01-29 21:55:551015 'content_shell_java',
1016 'libcontent_shell_content_view',
[email protected]75c86a22012-09-26 03:50:371017 '../base/base.gyp:base_java',
1018 '../media/media.gyp:media_java',
1019 '../net/net.gyp:net_java',
[email protected]abeda1f2014-02-21 17:08:341020 '../third_party/mesa/mesa.gyp:osmesa_in_lib_dir',
[email protected]4e384052013-08-14 20:46:301021 '../tools/android/forwarder/forwarder.gyp:forwarder',
[email protected]f450287d2013-11-15 17:52:541022 '../ui/android/ui_android.gyp:ui_java',
[email protected]75c86a22012-09-26 03:50:371023 ],
1024 'variables': {
[email protected]75c86a22012-09-26 03:50:371025 'apk_name': 'ContentShell',
[email protected]4d4eb5b2013-01-29 21:55:551026 'manifest_package_name': 'org.chromium.content_shell_apk',
1027 'java_in_dir': 'shell/android/shell_apk',
[email protected]bd6ab3db2013-03-26 17:35:211028 'resource_dir': 'shell/android/shell_apk/res',
[email protected]e4865252013-04-04 09:15:591029 'native_lib_target': 'libcontent_shell_content_view',
[email protected]75c86a22012-09-26 03:50:371030 'additional_input_paths': ['<(PRODUCT_DIR)/content_shell/assets/content_shell.pak'],
[email protected]0437c502013-11-28 05:17:331031 'asset_location': '<(PRODUCT_DIR)/content_shell/assets',
[email protected]abeda1f2014-02-21 17:08:341032 'extra_native_libs': ['<(SHARED_LIB_DIR)/libosmesa.so'],
[email protected]c8e8781e2014-03-08 12:02:261033 'conditions': [
1034 ['icu_use_data_file_flag==1', {
1035 'additional_input_paths': [
1036 '<(PRODUCT_DIR)/icudtl.dat',
1037 ],
1038 }],
1039 ],
[email protected]75c86a22012-09-26 03:50:371040 },
[email protected]5b0095b72013-08-01 17:44:221041 'conditions': [
1042 ['android_webview_build==0', {
1043 'dependencies': [
1044 '../tools/imagediff/image_diff.gyp:image_diff#host',
1045 ],
1046 }],
1047 ],
[email protected]75c86a22012-09-26 03:50:371048 'includes': [ '../build/java_apk.gypi' ],
1049 },
[email protected]cc66d282012-03-30 11:44:061050 ],
1051 }], # OS=="android"
[email protected]369205f2013-10-29 04:35:051052 ['OS=="win"', {
1053 'targets': [
1054 {
1055 'target_name': 'content_shell_crash_service',
1056 'type': 'executable',
1057 'dependencies': [
1058 '../base/base.gyp:base',
1059 '../components/components.gyp:breakpad_crash_service',
1060 ],
1061 'include_dirs': [
1062 '..',
1063 ],
1064 'sources': [
1065 'shell/tools/content_shell_crash_service.cc',
1066 ],
1067 'msvs_settings': {
1068 'VCLinkerTool': {
1069 'SubSystem': '2', # Set /SUBSYSTEM:WINDOWS
1070 },
1071 },
1072 },
1073 ],
1074 }], # OS=="win"
[email protected]004703a2014-05-05 23:23:001075 ['OS=="win" and fastbuild==0 and target_arch=="ia32" and syzyasan==1', {
[email protected]c8250d42013-10-01 05:17:461076 'variables': {
1077 'dest_dir': '<(PRODUCT_DIR)/syzygy',
1078 },
1079 'targets': [
1080 {
1081 'target_name': 'content_shell_syzyasan',
1082 'type': 'none',
1083 'sources' : [],
1084 # Instrument content_shell with SyzyAsan.
1085 'actions': [
1086 {
1087 'action_name': 'Instrument content_shell with SyzyAsan',
[email protected]c8250d42013-10-01 05:17:461088 'inputs': [
1089 '<(PRODUCT_DIR)/content_shell.exe',
1090 ],
1091 'outputs': [
1092 '<(dest_dir)/content_shell.exe',
1093 '<(dest_dir)/content_shell.exe.pdb',
1094 ],
1095 'action': [
1096 'python',
1097 '<(DEPTH)/chrome/tools/build/win/syzygy_instrument.py',
1098 '--mode', 'asan',
1099 '--input_executable', '<(PRODUCT_DIR)/content_shell.exe',
1100 '--input_symbol', '<(PRODUCT_DIR)/content_shell.exe.pdb',
1101 '--destination_dir', '<(dest_dir)',
1102 ],
1103 },
1104 ],
1105 },
1106 ],
1107 }], # OS=="win" and fastbuild==0 and target_arch=="ia32"
[email protected]cc66d282012-03-30 11:44:061108 ]
[email protected]5629e0c2011-09-12 22:07:361109}