blob: e11cd62e8906bb527e6734919b02923b2732e197 [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]a20f6e82013-07-01 13:38:4138 'content_shell_resources',
39 'test_support_content',
[email protected]73a759772013-07-02 20:47:4540 'content_resources.gyp:content_resources',
[email protected]aa6e79762011-09-29 20:53:5241 '../base/base.gyp:base',
42 '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations',
[email protected]d6d06a352013-10-23 07:04:0043 '../components/components.gyp:breakpad_component',
[email protected]aa6e79762011-09-29 20:53:5244 '../ipc/ipc.gyp:ipc',
[email protected]433df472012-03-07 20:33:3945 '../media/media.gyp:media',
[email protected]aa6e79762011-09-29 20:53:5246 '../net/net.gyp:net',
[email protected]24f80692012-08-13 15:15:5047 '../net/net.gyp:net_resources',
[email protected]5629e0c2011-09-12 22:07:3648 '../skia/skia.gyp:skia',
[email protected]f422d6c32013-07-17 23:52:4249 '../third_party/WebKit/public/blink_test_runner.gyp:blink_test_runner',
[email protected]114efae2013-11-06 20:37:5750 '../ui/events/events.gyp:events_base',
[email protected]529a3cf2013-09-30 02:47:4851 '../ui/gfx/gfx.gyp:gfx',
[email protected]8350f16f2012-11-30 00:25:3252 '../ui/gl/gl.gyp:gl',
[email protected]5629e0c2011-09-12 22:07:3653 '../ui/ui.gyp:ui',
[email protected]002cc08f2013-06-03 05:40:2954 '../url/url.gyp:url_lib',
[email protected]12bc28fcb2011-09-21 15:53:5055 '../v8/tools/gyp/v8.gyp:v8',
[email protected]3469ea22013-09-14 01:24:4756 '../webkit/common/user_agent/webkit_user_agent.gyp:user_agent',
[email protected]a356e5cc2013-09-24 02:54:4657 '../webkit/common/webkit_common.gyp:webkit_common',
58 '../webkit/glue/webkit_glue.gyp:glue',
59 '../webkit/webkit_resources.gyp:webkit_resources',
[email protected]5629e0c2011-09-12 22:07:3660 ],
61 'include_dirs': [
62 '..',
63 ],
64 'sources': [
[email protected]4d4eb5b2013-01-29 21:55:5565 'shell/android/shell_jni_registrar.cc',
66 'shell/android/shell_jni_registrar.h',
67 'shell/android/shell_manager.cc',
68 'shell/android/shell_manager.h',
[email protected]2a94e812013-07-12 15:31:0269 'shell/app/paths_mac.h',
70 'shell/app/paths_mac.mm',
[email protected]d6d06a352013-10-23 07:04:0071 'shell/app/shell_breakpad_client.cc',
72 'shell/app/shell_breakpad_client.h',
[email protected]993951d2013-05-08 21:37:0273 'shell/app/shell_main_delegate.cc',
74 'shell/app/shell_main_delegate.h',
[email protected]2a94e812013-07-12 15:31:0275 'shell/app/shell_main_delegate_mac.h',
76 'shell/app/shell_main_delegate_mac.mm',
[email protected]216161f2013-07-02 16:23:2077 'shell/app/webkit_test_platform_support_android.cc',
[email protected]de7d61ff2013-08-20 11:30:4178 'shell/app/webkit_test_platform_support.h',
[email protected]216161f2013-07-02 16:23:2079 'shell/app/webkit_test_platform_support_linux.cc',
80 'shell/app/webkit_test_platform_support_mac.mm',
81 'shell/app/webkit_test_platform_support_win.cc',
[email protected]de7d61ff2013-08-20 11:30:4182 'shell/browser/notify_done_forwarder.cc',
83 'shell/browser/notify_done_forwarder.h',
84 'shell/browser/shell_android.cc',
85 'shell/browser/shell_application_mac.h',
86 'shell/browser/shell_application_mac.mm',
87 'shell/browser/shell_aura.cc',
88 'shell/browser/shell_browser_context.cc',
89 'shell/browser/shell_browser_context.h',
90 'shell/browser/shell_browser_main.cc',
91 'shell/browser/shell_browser_main.h',
92 'shell/browser/shell_browser_main_parts.cc',
93 'shell/browser/shell_browser_main_parts.h',
94 'shell/browser/shell_browser_main_parts_mac.mm',
95 'shell/browser/shell.cc',
96 'shell/browser/shell_content_browser_client.cc',
97 'shell/browser/shell_content_browser_client.h',
98 'shell/browser/shell_devtools_delegate.cc',
99 'shell/browser/shell_devtools_delegate.h',
100 'shell/browser/shell_devtools_frontend.cc',
101 'shell/browser/shell_devtools_frontend.h',
102 'shell/browser/shell_download_manager_delegate.cc',
103 'shell/browser/shell_download_manager_delegate.h',
104 'shell/browser/shell_gtk.cc',
105 'shell/browser/shell.h',
106 'shell/browser/shell_javascript_dialog_gtk.cc',
107 'shell/browser/shell_javascript_dialog.h',
108 'shell/browser/shell_javascript_dialog_mac.mm',
109 'shell/browser/shell_javascript_dialog_manager.cc',
110 'shell/browser/shell_javascript_dialog_manager.h',
111 'shell/browser/shell_javascript_dialog_win.cc',
112 'shell/browser/shell_layout_tests_android.cc',
113 'shell/browser/shell_layout_tests_android.h',
114 'shell/browser/shell_login_dialog.cc',
115 'shell/browser/shell_login_dialog_gtk.cc',
116 'shell/browser/shell_login_dialog.h',
117 'shell/browser/shell_login_dialog_mac.mm',
118 'shell/browser/shell_mac.mm',
119 'shell/browser/shell_message_filter.cc',
120 'shell/browser/shell_message_filter.h',
121 'shell/browser/shell_net_log.cc',
122 'shell/browser/shell_net_log.h',
123 'shell/browser/shell_network_delegate.cc',
124 'shell/browser/shell_network_delegate.h',
125 'shell/browser/shell_plugin_service_filter.cc',
126 'shell/browser/shell_plugin_service_filter.h',
127 'shell/browser/shell_quota_permission_context.cc',
128 'shell/browser/shell_quota_permission_context.h',
129 'shell/browser/shell_resource_dispatcher_host_delegate.cc',
130 'shell/browser/shell_resource_dispatcher_host_delegate.h',
[email protected]9896c552013-08-29 19:03:20131 'shell/browser/shell_speech_recognition_manager_delegate.cc',
132 'shell/browser/shell_speech_recognition_manager_delegate.h',
[email protected]de7d61ff2013-08-20 11:30:41133 'shell/browser/shell_url_request_context_getter.cc',
134 'shell/browser/shell_url_request_context_getter.h',
[email protected]a896e1e2013-10-20 19:10:30135 'shell/browser/shell_views.cc',
[email protected]de7d61ff2013-08-20 11:30:41136 'shell/browser/shell_web_contents_view_delegate_android.cc',
137 'shell/browser/shell_web_contents_view_delegate_creator.h',
138 'shell/browser/shell_web_contents_view_delegate_gtk.cc',
139 'shell/browser/shell_web_contents_view_delegate.h',
140 'shell/browser/shell_web_contents_view_delegate_mac.mm',
141 'shell/browser/shell_web_contents_view_delegate_win.cc',
142 'shell/browser/shell_win.cc',
143 'shell/browser/webkit_test_controller.cc',
144 'shell/browser/webkit_test_controller.h',
[email protected]b7c504c2013-05-07 14:42:12145 'shell/common/shell_content_client.cc',
146 'shell/common/shell_content_client.h',
147 'shell/common/shell_messages.cc',
148 'shell/common/shell_messages.h',
149 'shell/common/shell_switches.cc',
150 'shell/common/shell_switches.h',
151 'shell/common/shell_test_configuration.cc',
152 'shell/common/shell_test_configuration.h',
153 'shell/common/webkit_test_helpers.cc',
154 'shell/common/webkit_test_helpers.h',
[email protected]6cfccd12012-06-28 12:14:05155 'shell/geolocation/shell_access_token_store.cc',
156 'shell/geolocation/shell_access_token_store.h',
[email protected]82f541a2013-08-12 19:39:50157 'shell/renderer/gc_extension.cc',
158 'shell/renderer/gc_extension.h',
[email protected]f7a4e3b92013-05-03 15:29:58159 'shell/renderer/shell_content_renderer_client.cc',
160 'shell/renderer/shell_content_renderer_client.h',
[email protected]a86c0e962013-12-17 17:10:39161 'shell/renderer/shell_render_frame_observer.cc',
162 'shell/renderer/shell_render_frame_observer.h',
[email protected]f7a4e3b92013-05-03 15:29:58163 'shell/renderer/shell_render_process_observer.cc',
164 'shell/renderer/shell_render_process_observer.h',
[email protected]81914ad2013-07-02 18:54:25165 'shell/renderer/shell_render_view_observer.cc',
166 'shell/renderer/shell_render_view_observer.h',
[email protected]f7a4e3b92013-05-03 15:29:58167 'shell/renderer/webkit_test_runner.cc',
168 'shell/renderer/webkit_test_runner.h',
[email protected]5629e0c2011-09-12 22:07:36169 ],
170 'msvs_settings': {
171 'VCLinkerTool': {
172 'SubSystem': '2', # Set /SUBSYSTEM:WINDOWS
173 },
174 },
175 'conditions': [
176 ['OS=="win" and win_use_allocator_shim==1', {
177 'dependencies': [
178 '../base/allocator/allocator.gyp:allocator',
179 ],
180 }],
[email protected]9fbd3f862011-09-20 23:31:34181 ['OS=="win"', {
182 'resource_include_dirs': [
183 '<(SHARED_INTERMEDIATE_DIR)/webkit',
184 ],
[email protected]9fbd3f862011-09-20 23:31:34185 'dependencies': [
[email protected]d7871ac2013-07-09 21:35:41186 '<(DEPTH)/webkit/webkit_resources.gyp:webkit_strings',
[email protected]9fbd3f862011-09-20 23:31:34187 ],
188 'configurations': {
189 'Debug_Base': {
190 'msvs_settings': {
191 'VCLinkerTool': {
192 'LinkIncremental': '<(msvs_large_module_debug_link_mode)',
193 },
194 },
195 },
196 },
[email protected]3bed5302013-02-15 19:31:41197 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
198 'msvs_disabled_warnings': [ 4267, ],
[email protected]85ff16042012-03-06 23:46:34199 }], # OS=="win"
[email protected]6eb6bb62012-11-10 06:30:59200 ['OS=="linux"', {
201 'dependencies': [
202 '../build/linux/system.gyp:fontconfig',
203 ],
204 }],
[email protected]689266d2012-08-07 12:52:20205 ['OS=="android"', {
[email protected]82e9e2b12012-07-19 00:32:01206 'dependencies': [
207 'content_shell_jni_headers',
208 ],
[email protected]689266d2012-08-07 12:52:20209 }, { # else: OS!="android"
210 'dependencies': [
211 # This dependency is for running DRT against the content shell, and
212 # this combination is not yet supported on Android.
[email protected]3469ea22013-09-14 01:24:47213 'test_support_content',
[email protected]689266d2012-08-07 12:52:20214 ],
[email protected]82e9e2b12012-07-19 00:32:01215 }], # OS=="android"
[email protected]a7aa8ab2013-10-24 07:21:48216 ['os_posix == 1 and OS != "mac" and android_webview_build != 1', {
217 'dependencies': [
218 '../components/components.gyp:breakpad_host',
219 ],
220 }],
[email protected]3c8fe5482013-05-22 15:17:03221 ['(os_posix==1 and use_aura==1 and linux_use_tcmalloc==1) or (android_use_tcmalloc==1)', {
[email protected]c767d572012-07-27 10:55:58222 'dependencies': [
223 # This is needed by content/app/content_main_runner.cc
224 '../base/allocator/allocator.gyp:allocator',
225 ],
226 }],
[email protected]fa4a45832012-04-12 21:32:48227 ['use_aura==1', {
[email protected]c767d572012-07-27 10:55:58228 'dependencies': [
229 '../ui/aura/aura.gyp:aura',
230 '../ui/base/strings/ui_strings.gyp:ui_strings',
[email protected]c767d572012-07-27 10:55:58231 ],
[email protected]fa4a45832012-04-12 21:32:48232 'sources/': [
[email protected]de7d61ff2013-08-20 11:30:41233 ['exclude', 'shell/browser/shell_gtk.cc'],
234 ['exclude', 'shell/browser/shell_win.cc'],
[email protected]fa4a45832012-04-12 21:32:48235 ],
[email protected]a896e1e2013-10-20 19:10:30236 'conditions': [
237 ['toolkit_views==1', {
238 'dependencies': [
[email protected]dae78442013-11-26 16:57:02239 '../ui/resources/ui_resources.gyp:ui_resources',
[email protected]a896e1e2013-10-20 19:10:30240 '../ui/views/controls/webview/webview.gyp:webview',
241 '../ui/views/views.gyp:views',
242 '../ui/views/views.gyp:views_test_support',
[email protected]a896e1e2013-10-20 19:10:30243 ],
244 'sources/': [
245 ['exclude', 'shell/browser/shell_aura.cc'],
246 ],
247 }, {
248 'sources/': [
249 ['exclude', 'shell/browser/shell_views.cc'],
250 ],
251 }],
252 ],
253 }, {
254 'sources/': [
255 ['exclude', 'shell/browser/shell_aura.cc'],
256 ['exclude', 'shell/browser/shell_views.cc'],
257 ],
[email protected]96b80b472012-07-03 19:41:56258 }], # use_aura==1
[email protected]c767d572012-07-27 10:55:58259 ['chromeos==1', {
260 'dependencies': [
261 '../chromeos/chromeos.gyp:chromeos',
[email protected]de6831b2013-11-16 01:04:30262 '../ui/wm/wm.gyp:wm_test_support',
[email protected]c767d572012-07-27 10:55:58263 ],
264 }], # chromeos==1
[email protected]929246a2013-02-28 13:55:20265 ['use_custom_freetype==1', {
266 'dependencies': [
267 '../third_party/freetype2/freetype2.gyp:freetype2',
268 ],
269 }],
[email protected]dfb9360192013-05-27 09:42:34270 ['enable_plugins==0', {
271 'sources/': [
[email protected]de7d61ff2013-08-20 11:30:41272 ['exclude', 'shell/browser/shell_plugin_service_filter.cc'],
273 ['exclude', 'shell/browser/shell_plugin_service_filter.h'],
[email protected]dfb9360192013-05-27 09:42:34274 ],
275 }]
[email protected]5629e0c2011-09-12 22:07:36276 ],
277 },
[email protected]c1f87b22011-10-05 21:59:33278 {
[email protected]ee75b8992012-01-27 07:53:57279 'target_name': 'content_shell_resources',
280 'type': 'none',
[email protected]b581eb402012-03-09 01:31:46281 'dependencies': [
282 'generate_content_shell_resources',
283 ],
284 'variables': {
285 'grit_out_dir': '<(SHARED_INTERMEDIATE_DIR)/content',
286 },
287 'includes': [ '../build/grit_target.gypi' ],
288 'copies': [
289 {
290 'destination': '<(PRODUCT_DIR)',
291 'files': [
292 '<(SHARED_INTERMEDIATE_DIR)/content/shell_resources.pak'
293 ],
294 },
295 ],
[email protected]4cb792f42012-03-24 03:12:42296 },
297 {
[email protected]b581eb402012-03-09 01:31:46298 'target_name': 'generate_content_shell_resources',
299 'type': 'none',
[email protected]ee75b8992012-01-27 07:53:57300 'variables': {
301 'grit_out_dir': '<(SHARED_INTERMEDIATE_DIR)/content',
302 },
303 'actions': [
304 {
305 'action_name': 'content_shell_resources',
306 'variables': {
307 'grit_grd_file': 'shell/shell_resources.grd',
308 },
309 'includes': [ '../build/grit_action.gypi' ],
310 },
311 ],
[email protected]ee75b8992012-01-27 07:53:57312 },
313 {
[email protected]81f30ce2012-01-18 22:10:33314 # We build a minimal set of resources so WebKit in content_shell has
315 # access to necessary resources.
316 'target_name': 'content_shell_pak',
317 'type': 'none',
[email protected]ee75b8992012-01-27 07:53:57318 'dependencies': [
[email protected]06c54162013-06-10 00:25:05319 'content_resources.gyp:content_resources',
[email protected]ee75b8992012-01-27 07:53:57320 'content_shell_resources',
[email protected]06c54162013-06-10 00:25:05321 '<(DEPTH)/net/net.gyp:net_resources',
322 '<(DEPTH)/ui/base/strings/ui_strings.gyp:ui_strings',
[email protected]1c0c3f42013-11-20 02:03:28323 '<(DEPTH)/ui/resources/ui_resources.gyp:ui_resources',
[email protected]d7871ac2013-07-09 21:35:41324 '<(DEPTH)/webkit/webkit_resources.gyp:webkit_resources',
325 '<(DEPTH)/webkit/webkit_resources.gyp:webkit_strings',
[email protected]ee75b8992012-01-27 07:53:57326 ],
[email protected]3df230d2013-07-03 00:44:57327 'conditions': [
328 ['OS!="android" and OS!="ios"', {
329 'dependencies': [
330 'browser/tracing/tracing_resources.gyp:tracing_resources',
331 ],
332 }],
[email protected]8dffd2c2013-12-02 14:14:38333 ['OS!="android"', {
334 'dependencies': [
335 'browser/devtools/devtools_resources.gyp:devtools_resources',
336 ],
337 }],
[email protected]3df230d2013-07-03 00:44:57338 ],
[email protected]81f30ce2012-01-18 22:10:33339 'variables': {
340 'repack_path': '<(DEPTH)/tools/grit/grit/format/repack.py',
341 },
342 'actions': [
343 {
344 'action_name': 'repack_content_shell_pack',
345 'variables': {
346 'pak_inputs': [
347 '<(SHARED_INTERMEDIATE_DIR)/content/content_resources.pak',
[email protected]479bea22013-07-02 21:46:06348 '<(SHARED_INTERMEDIATE_DIR)/content/browser/tracing/tracing_resources.pak',
[email protected]ee75b8992012-01-27 07:53:57349 '<(SHARED_INTERMEDIATE_DIR)/content/shell_resources.pak',
[email protected]81f30ce2012-01-18 22:10:33350 '<(SHARED_INTERMEDIATE_DIR)/net/net_resources.pak',
[email protected]c767d572012-07-27 10:55:58351 '<(SHARED_INTERMEDIATE_DIR)/ui/app_locale_settings/app_locale_settings_en-US.pak',
[email protected]a52c7312012-07-24 22:45:57352 '<(SHARED_INTERMEDIATE_DIR)/ui/ui_resources/ui_resources_100_percent.pak',
[email protected]e1c26ae2013-01-31 18:13:18353 '<(SHARED_INTERMEDIATE_DIR)/ui/ui_resources/webui_resources.pak',
[email protected]c767d572012-07-27 10:55:58354 '<(SHARED_INTERMEDIATE_DIR)/ui/ui_strings/ui_strings_en-US.pak',
[email protected]e5f893b2013-07-30 02:52:22355 '<(SHARED_INTERMEDIATE_DIR)/webkit/blink_resources.pak',
[email protected]30c8f542012-09-01 01:02:29356 '<(SHARED_INTERMEDIATE_DIR)/webkit/webkit_resources_100_percent.pak',
[email protected]af551a62012-07-31 16:44:03357 '<(SHARED_INTERMEDIATE_DIR)/webkit/webkit_strings_en-US.pak',
[email protected]81f30ce2012-01-18 22:10:33358 ],
[email protected]81f30ce2012-01-18 22:10:33359 },
360 'inputs': [
361 '<(repack_path)',
362 '<@(pak_inputs)',
363 ],
[email protected]81f30ce2012-01-18 22:10:33364 'action': ['python', '<(repack_path)', '<@(_outputs)',
365 '<@(pak_inputs)'],
[email protected]a08029b42012-04-25 03:18:46366 'conditions': [
367 ['OS!="android"', {
[email protected]8dffd2c2013-12-02 14:14:38368 'variables': {
369 'pak_inputs': [
370 '<(SHARED_INTERMEDIATE_DIR)/webkit/devtools_resources.pak',
371 ],
372 },
[email protected]a08029b42012-04-25 03:18:46373 'outputs': [
374 '<(PRODUCT_DIR)/content_shell.pak',
375 ],
376 }, {
377 'outputs': [
378 '<(PRODUCT_DIR)/content_shell/assets/content_shell.pak',
379 ],
380 }],
381 ],
[email protected]81f30ce2012-01-18 22:10:33382 },
383 ],
384 },
385 {
[email protected]c1f87b22011-10-05 21:59:33386 'target_name': 'content_shell',
387 'type': 'executable',
[email protected]85ff16042012-03-06 23:46:34388 'mac_bundle': 1,
[email protected]c1f87b22011-10-05 21:59:33389 'variables': {
390 'chromium_code': 1,
391 },
392 'dependencies': [
393 'content_shell_lib',
[email protected]81f30ce2012-01-18 22:10:33394 'content_shell_pak',
[email protected]bb5d2d92012-10-15 07:45:42395 '../third_party/mesa/mesa.gyp:osmesa',
[email protected]331d1692013-07-25 20:40:13396 '../tools/imagediff/image_diff.gyp:image_diff',
[email protected]c1f87b22011-10-05 21:59:33397 ],
398 'include_dirs': [
399 '..',
400 ],
401 'sources': [
[email protected]711f428e2012-06-22 02:18:23402 'app/startup_helper_win.cc',
[email protected]993951d2013-05-08 21:37:02403 'shell/app/shell_main.cc',
[email protected]c1f87b22011-10-05 21:59:33404 ],
[email protected]85ff16042012-03-06 23:46:34405 'mac_bundle_resources': [
[email protected]993951d2013-05-08 21:37:02406 'shell/app/app.icns',
407 'shell/app/app-Info.plist',
[email protected]85ff16042012-03-06 23:46:34408 ],
409 # TODO(mark): Come up with a fancier way to do this. It should only
410 # be necessary to list app-Info.plist once, not the three times it is
411 # listed here.
412 'mac_bundle_resources!': [
[email protected]993951d2013-05-08 21:37:02413 'shell/app/app-Info.plist',
[email protected]85ff16042012-03-06 23:46:34414 ],
415 'xcode_settings': {
[email protected]993951d2013-05-08 21:37:02416 'INFOPLIST_FILE': 'shell/app/app-Info.plist',
[email protected]85ff16042012-03-06 23:46:34417 },
[email protected]c1f87b22011-10-05 21:59:33418 'msvs_settings': {
419 'VCLinkerTool': {
420 'SubSystem': '2', # Set /SUBSYSTEM:WINDOWS
421 },
[email protected]30624922013-06-04 10:40:10422 'VCManifestTool': {
[email protected]5d60b0b2013-07-30 20:24:30423 'AdditionalManifestFiles': [
424 'shell/app/shell.exe.manifest',
425 ],
[email protected]30624922013-06-04 10:40:10426 },
[email protected]c1f87b22011-10-05 21:59:33427 },
428 'conditions': [
429 ['OS=="win" and win_use_allocator_shim==1', {
430 'dependencies': [
431 '../base/allocator/allocator.gyp:allocator',
432 ],
433 }],
434 ['OS=="win"', {
[email protected]7fc83822012-03-30 19:53:29435 'sources': [
[email protected]993951d2013-05-08 21:37:02436 'shell/app/shell.rc',
[email protected]7fc83822012-03-30 19:53:29437 ],
[email protected]c1f87b22011-10-05 21:59:33438 'configurations': {
439 'Debug_Base': {
440 'msvs_settings': {
441 'VCLinkerTool': {
442 'LinkIncremental': '<(msvs_large_module_debug_link_mode)',
443 },
444 },
445 },
446 },
[email protected]85ff16042012-03-06 23:46:34447 }], # OS=="win"
[email protected]5d9bc782013-05-17 17:22:14448 ['OS == "win" or toolkit_uses_gtk == 1', {
[email protected]27315ce42011-10-14 01:25:12449 'dependencies': [
450 '../sandbox/sandbox.gyp:sandbox',
451 ],
[email protected]5d9bc782013-05-17 17:22:14452 }], # OS=="win" or toolkit_uses_gtk == 1
[email protected]398990892012-01-20 03:25:58453 ['toolkit_uses_gtk == 1', {
454 'dependencies': [
455 '<(DEPTH)/build/linux/system.gyp:gtk',
456 ],
[email protected]85ff16042012-03-06 23:46:34457 }], # toolkit_uses_gtk
458 ['OS=="mac"', {
459 'product_name': '<(content_shell_product_name)',
460 'dependencies!': [
461 'content_shell_lib',
462 ],
463 'dependencies': [
464 'content_shell_framework',
[email protected]180df8f2012-03-09 22:36:10465 'content_shell_helper_app',
466 ],
467 'copies': [
468 {
469 'destination': '<(PRODUCT_DIR)/<(content_shell_product_name).app/Contents/Frameworks',
470 'files': [
471 '<(PRODUCT_DIR)/<(content_shell_product_name) Helper.app',
472 ],
473 },
[email protected]85ff16042012-03-06 23:46:34474 ],
475 'postbuilds': [
476 {
477 'postbuild_name': 'Copy <(content_shell_product_name) Framework.framework',
478 'action': [
479 '../build/mac/copy_framework_unversioned.sh',
480 '${BUILT_PRODUCTS_DIR}/<(content_shell_product_name) Framework.framework',
481 '${BUILT_PRODUCTS_DIR}/${CONTENTS_FOLDER_PATH}/Frameworks',
482 ],
483 },
484 {
[email protected]85ff16042012-03-06 23:46:34485 # Modify the Info.plist as needed.
486 'postbuild_name': 'Tweak Info.plist',
487 'action': ['../build/mac/tweak_info_plist.py',
[email protected]6d302912012-11-05 21:57:28488 '--scm=1',
489 '--version=<(content_shell_version)'],
[email protected]85ff16042012-03-06 23:46:34490 },
491 {
[email protected]180df8f2012-03-09 22:36:10492 # This postbuid step is responsible for creating the following
493 # helpers:
494 #
495 # Content Shell Helper EH.app and Content Shell Helper NP.app are
496 # created from Content Shell Helper.app.
497 #
498 # The EH helper is marked for an executable heap. The NP helper
499 # is marked for no PIE (ASLR).
500 'postbuild_name': 'Make More Helpers',
501 'action': [
502 '../build/mac/make_more_helpers.sh',
503 'Frameworks',
504 '<(content_shell_product_name)',
505 ],
506 },
507 {
[email protected]85ff16042012-03-06 23:46:34508 # Make sure there isn't any Objective-C in the shell's
509 # executable.
510 'postbuild_name': 'Verify No Objective-C',
511 'action': [
512 '../build/mac/verify_no_objc.sh',
513 ],
514 },
515 ],
516 }], # OS=="mac"
[email protected]331d1692013-07-25 20:40:13517 ['OS=="android"', {
518 'dependencies!': [
519 '../tools/imagediff/image_diff.gyp:image_diff',
520 ],
521 }], # OS=="android"
522 ['OS=="android" and android_webview_build==0', {
523 'dependencies': [
524 '../tools/imagediff/image_diff.gyp:image_diff#host',
525 ],
526 }], # OS=="android" and android_webview_build==0
[email protected]c1f87b22011-10-05 21:59:33527 ],
528 },
[email protected]fe2420d2012-08-21 07:28:33529 {
530 'target_name': 'content_shell_builder',
531 'type': 'none',
532 'dependencies': [
533 'content_shell',
[email protected]fe2420d2012-08-21 07:28:33534 ],
535 },
[email protected]5629e0c2011-09-12 22:07:36536 ],
[email protected]85ff16042012-03-06 23:46:34537 'conditions': [
538 ['OS=="mac"', {
539 'targets': [
540 {
541 'target_name': 'content_shell_framework',
542 'type': 'shared_library',
543 'product_name': '<(content_shell_product_name) Framework',
544 'mac_bundle': 1,
545 'mac_bundle_resources': [
[email protected]993951d2013-05-08 21:37:02546 'shell/app/English.lproj/HttpAuth.xib',
547 'shell/app/English.lproj/MainMenu.xib',
[email protected]a7aa8ab2013-10-24 07:21:48548 '<(PRODUCT_DIR)/content_shell.pak',
549 'shell/app/framework-Info.plist',
[email protected]85ff16042012-03-06 23:46:34550 ],
[email protected]a7aa8ab2013-10-24 07:21:48551 'mac_bundle_resources!': [
552 'shell/app/framework-Info.plist',
553 ],
554 'xcode_settings': {
[email protected]6efed472013-11-01 02:09:34555 # The framework is placed within the .app's Framework
556 # directory. DYLIB_INSTALL_NAME_BASE and
557 # LD_DYLIB_INSTALL_NAME affect -install_name.
558 'DYLIB_INSTALL_NAME_BASE':
559 '@executable_path/../Frameworks',
560 # See /build/mac/copy_framework_unversioned.sh for
561 # information on LD_DYLIB_INSTALL_NAME.
562 'LD_DYLIB_INSTALL_NAME':
563 '$(DYLIB_INSTALL_NAME_BASE:standardizepath)/$(WRAPPER_NAME)/$(PRODUCT_NAME)',
564
[email protected]a7aa8ab2013-10-24 07:21:48565 'INFOPLIST_FILE': 'shell/app/framework-Info.plist',
566 },
[email protected]85ff16042012-03-06 23:46:34567 'dependencies': [
568 'content_shell_lib',
569 ],
570 'include_dirs': [
571 '..',
572 ],
573 'sources': [
[email protected]4642f5b2013-07-03 21:43:31574 'shell/app/shell_content_main.cc',
[email protected]216161f2013-07-02 16:23:20575 'shell/app/shell_content_main.h',
[email protected]85ff16042012-03-06 23:46:34576 ],
[email protected]a7aa8ab2013-10-24 07:21:48577 'postbuilds': [
578 {
579 # Modify the Info.plist as needed. The script explains why
580 # this is needed. This is also done in the chrome target.
581 # The framework needs the Breakpad keys if this feature is
582 # enabled. It does not need the Keystone keys; these always
583 # come from the outer application bundle. The framework
584 # doesn't currently use the SCM keys for anything,
585 # but this seems like a really good place to store them.
586 'postbuild_name': 'Tweak Info.plist',
587 'action': ['../build/mac/tweak_info_plist.py',
588 '--breakpad=1',
589 '--keystone=0',
590 '--scm=1',
591 '--version=<(content_shell_version)',
592 '--branding=<(content_shell_product_name)'],
593 },
594 ],
[email protected]5d96bbe2012-07-25 17:13:23595 'copies': [
596 {
597 # Copy FFmpeg binaries for audio/video support.
598 'destination': '<(PRODUCT_DIR)/$(CONTENTS_FOLDER_PATH)/Libraries',
599 'files': [
600 '<(PRODUCT_DIR)/ffmpegsumo.so',
601 ],
602 },
[email protected]a7aa8ab2013-10-24 07:21:48603 {
604 'destination': '<(PRODUCT_DIR)/$(CONTENTS_FOLDER_PATH)/Resources',
605 'files': [
606 '<(PRODUCT_DIR)/crash_inspector',
607 '<(PRODUCT_DIR)/crash_report_sender.app'
608 ],
609 },
[email protected]5d96bbe2012-07-25 17:13:23610 ],
[email protected]fda1c6c82013-04-09 16:10:12611 'conditions': [
612 ['enable_webrtc==1', {
613 'variables': {
614 'libpeer_target_type%': 'static_library',
615 },
616 'conditions': [
[email protected]e4aa290b2013-05-01 18:54:19617 ['libpeer_target_type!="static_library"', {
[email protected]fda1c6c82013-04-09 16:10:12618 'copies': [{
619 'destination': '<(PRODUCT_DIR)/$(CONTENTS_FOLDER_PATH)/Libraries',
620 'files': [
[email protected]62461b72013-05-02 12:27:12621 '<(PRODUCT_DIR)/libpeerconnection.so',
[email protected]fda1c6c82013-04-09 16:10:12622 ],
623 }],
624 }],
625 ],
626 }],
627 ],
[email protected]180df8f2012-03-09 22:36:10628 }, # target content_shell_framework
629 {
630 'target_name': 'content_shell_helper_app',
631 'type': 'executable',
632 'variables': { 'enable_wexit_time_destructors': 1, },
633 'product_name': '<(content_shell_product_name) Helper',
634 'mac_bundle': 1,
635 'dependencies': [
636 'content_shell_framework',
637 ],
638 'sources': [
[email protected]993951d2013-05-08 21:37:02639 'shell/app/shell_main.cc',
640 'shell/app/helper-Info.plist',
[email protected]180df8f2012-03-09 22:36:10641 ],
642 # TODO(mark): Come up with a fancier way to do this. It should only
643 # be necessary to list helper-Info.plist once, not the three times it
644 # is listed here.
645 'mac_bundle_resources!': [
[email protected]993951d2013-05-08 21:37:02646 'shell/app/helper-Info.plist',
[email protected]180df8f2012-03-09 22:36:10647 ],
648 # TODO(mark): For now, don't put any resources into this app. Its
649 # resources directory will be a symbolic link to the browser app's
650 # resources directory.
651 'mac_bundle_resources/': [
652 ['exclude', '.*'],
653 ],
654 'xcode_settings': {
[email protected]993951d2013-05-08 21:37:02655 'INFOPLIST_FILE': 'shell/app/helper-Info.plist',
[email protected]180df8f2012-03-09 22:36:10656 },
657 'postbuilds': [
658 {
659 # The framework defines its load-time path
660 # (DYLIB_INSTALL_NAME_BASE) relative to the main executable
661 # (chrome). A different relative path needs to be used in
662 # content_shell_helper_app.
663 'postbuild_name': 'Fix Framework Link',
664 'action': [
665 'install_name_tool',
666 '-change',
[email protected]6efed472013-11-01 02:09:34667 '@executable_path/../Frameworks/<(content_shell_product_name) Framework.framework/<(content_shell_product_name) Framework',
668 '@executable_path/../../../<(content_shell_product_name) Framework.framework/<(content_shell_product_name) Framework',
[email protected]180df8f2012-03-09 22:36:10669 '${BUILT_PRODUCTS_DIR}/${EXECUTABLE_PATH}'
670 ],
671 },
672 {
673 # Modify the Info.plist as needed. The script explains why this
674 # is needed. This is also done in the chrome and chrome_dll
[email protected]bbf52442012-08-23 22:53:18675 # targets. In this case, --breakpad=0, --keystone=0, and --scm=0
676 # are used because Breakpad, Keystone, and SCM keys are
[email protected]180df8f2012-03-09 22:36:10677 # never placed into the helper.
678 'postbuild_name': 'Tweak Info.plist',
679 'action': ['../build/mac/tweak_info_plist.py',
680 '--breakpad=0',
681 '--keystone=0',
[email protected]6d302912012-11-05 21:57:28682 '--scm=0',
683 '--version=<(content_shell_version)'],
[email protected]180df8f2012-03-09 22:36:10684 },
685 {
686 # Make sure there isn't any Objective-C in the helper app's
687 # executable.
688 'postbuild_name': 'Verify No Objective-C',
689 'action': [
690 '../build/mac/verify_no_objc.sh',
691 ],
692 },
693 ],
[email protected]ec40c38f2012-06-28 16:37:49694 'conditions': [
695 ['component=="shared_library"', {
696 'xcode_settings': {
697 'LD_RUNPATH_SEARCH_PATHS': [
698 # Get back from Content Shell.app/Contents/Frameworks/
699 # Helper.app/Contents/MacOS
700 '@loader_path/../../../../../..',
701 ],
702 },
703 }],
704 ],
[email protected]180df8f2012-03-09 22:36:10705 }, # target content_shell_helper_app
[email protected]85ff16042012-03-06 23:46:34706 ],
707 }], # OS=="mac"
[email protected]cc66d282012-03-30 11:44:06708 ['OS=="android"', {
709 'targets': [
710 {
[email protected]a08029b42012-04-25 03:18:46711 # TODO(jrg): Update this action and other jni generators to only
712 # require specifying the java directory and generate the rest.
713 'target_name': 'content_shell_jni_headers',
714 'type': 'none',
[email protected]e46f66152012-07-19 20:02:55715 'sources': [
[email protected]4d4eb5b2013-01-29 21:55:55716 'shell/android/browsertests_apk/src/org/chromium/content_browsertests_apk/ContentBrowserTestsActivity.java',
[email protected]eadcff0f2013-06-20 21:08:10717 'shell/android/java/src/org/chromium/content_shell/ShellLayoutTestUtils.java',
[email protected]e46f66152012-07-19 20:02:55718 'shell/android/java/src/org/chromium/content_shell/ShellManager.java',
719 'shell/android/java/src/org/chromium/content_shell/Shell.java',
720 ],
[email protected]a08029b42012-04-25 03:18:46721 'variables': {
[email protected]521cd942013-03-07 22:34:05722 'jni_gen_package': 'content/shell',
[email protected]a08029b42012-04-25 03:18:46723 },
724 'includes': [ '../build/jni_generator.gypi' ],
725 },
726 {
[email protected]c1101582012-06-25 17:07:18727 'target_name': 'libcontent_shell_content_view',
[email protected]a08029b42012-04-25 03:18:46728 'type': 'shared_library',
729 'dependencies': [
730 'content_shell_jni_headers',
731 'content_shell_lib',
732 'content_shell_pak',
733 # Skia is necessary to ensure the dependencies needed by
734 # WebContents are included.
735 '../skia/skia.gyp:skia',
736 '<(DEPTH)/media/media.gyp:player_android',
737 ],
[email protected]a08029b42012-04-25 03:18:46738 'sources': [
739 'shell/android/shell_library_loader.cc',
740 'shell/android/shell_library_loader.h',
[email protected]f83a47392012-07-12 22:15:04741 ],
[email protected]7abcaa82012-06-27 17:09:48742 'conditions': [
[email protected]d999c3cb2013-03-12 10:22:36743 ['android_webview_build==1', {
[email protected]7abcaa82012-06-27 17:09:48744 'ldflags': [
745 '-lgabi++', # For rtti
746 ],
747 }],
748 ],
[email protected]a08029b42012-04-25 03:18:46749 },
750 {
[email protected]4d4eb5b2013-01-29 21:55:55751 'target_name': 'content_shell_java',
752 'type': 'none',
753 'dependencies': [
[email protected]ba42b1e2013-10-19 22:13:17754 'content.gyp:content_java',
[email protected]4d4eb5b2013-01-29 21:55:55755 ],
756 'variables': {
[email protected]4d4eb5b2013-01-29 21:55:55757 'java_in_dir': '../content/shell/android/java',
758 'has_java_resources': 1,
759 'R_package': 'org.chromium.content_shell',
760 'R_package_relpath': 'org/chromium/content_shell',
761 },
762 'includes': [ '../build/java.gypi' ],
763 },
764 {
[email protected]319d6a82012-09-20 22:52:28765 # content_shell_apk creates a .jar as a side effect. Any java targets
766 # that need that .jar in their classpath should depend on this target,
[email protected]4d4eb5b2013-01-29 21:55:55767 # content_shell_apk_java. Dependents of content_shell_apk receive its
768 # jar path in the variable 'apk_output_jar_path'. This target should
769 # only be used by targets which instrument content_shell_apk.
770 'target_name': 'content_shell_apk_java',
[email protected]319d6a82012-09-20 22:52:28771 'type': 'none',
[email protected]319d6a82012-09-20 22:52:28772 'dependencies': [
[email protected]319d6a82012-09-20 22:52:28773 'content_shell_apk',
[email protected]319d6a82012-09-20 22:52:28774 ],
[email protected]b13f73e2013-03-27 23:31:27775 'includes': [ '../build/apk_fake_jar.gypi' ],
[email protected]319d6a82012-09-20 22:52:28776 },
[email protected]75c86a22012-09-26 03:50:37777 {
778 'target_name': 'content_shell_apk',
779 'type': 'none',
780 'dependencies': [
[email protected]ba42b1e2013-10-19 22:13:17781 'content.gyp:content_java',
[email protected]c48fece02013-06-19 12:01:42782 'content_java_test_support',
[email protected]4d4eb5b2013-01-29 21:55:55783 'content_shell_java',
784 'libcontent_shell_content_view',
[email protected]75c86a22012-09-26 03:50:37785 '../base/base.gyp:base_java',
786 '../media/media.gyp:media_java',
787 '../net/net.gyp:net_java',
[email protected]4e384052013-08-14 20:46:30788 '../tools/android/forwarder/forwarder.gyp:forwarder',
[email protected]f450287d2013-11-15 17:52:54789 '../ui/android/ui_android.gyp:ui_java',
[email protected]75c86a22012-09-26 03:50:37790 ],
791 'variables': {
[email protected]75c86a22012-09-26 03:50:37792 'apk_name': 'ContentShell',
[email protected]4d4eb5b2013-01-29 21:55:55793 'manifest_package_name': 'org.chromium.content_shell_apk',
794 'java_in_dir': 'shell/android/shell_apk',
[email protected]bd6ab3db2013-03-26 17:35:21795 'resource_dir': 'shell/android/shell_apk/res',
[email protected]e4865252013-04-04 09:15:59796 'native_lib_target': 'libcontent_shell_content_view',
[email protected]75c86a22012-09-26 03:50:37797 'additional_input_paths': ['<(PRODUCT_DIR)/content_shell/assets/content_shell.pak'],
[email protected]0437c502013-11-28 05:17:33798 'asset_location': '<(PRODUCT_DIR)/content_shell/assets',
[email protected]75c86a22012-09-26 03:50:37799 },
[email protected]5b0095b72013-08-01 17:44:22800 'conditions': [
801 ['android_webview_build==0', {
802 'dependencies': [
803 '../tools/imagediff/image_diff.gyp:image_diff#host',
804 ],
805 }],
806 ],
[email protected]75c86a22012-09-26 03:50:37807 'includes': [ '../build/java_apk.gypi' ],
808 },
[email protected]cc66d282012-03-30 11:44:06809 ],
810 }], # OS=="android"
[email protected]369205f2013-10-29 04:35:05811 ['OS=="win"', {
812 'targets': [
813 {
814 'target_name': 'content_shell_crash_service',
815 'type': 'executable',
816 'dependencies': [
817 '../base/base.gyp:base',
818 '../components/components.gyp:breakpad_crash_service',
819 ],
820 'include_dirs': [
821 '..',
822 ],
823 'sources': [
824 'shell/tools/content_shell_crash_service.cc',
825 ],
826 'msvs_settings': {
827 'VCLinkerTool': {
828 'SubSystem': '2', # Set /SUBSYSTEM:WINDOWS
829 },
830 },
831 },
832 ],
833 }], # OS=="win"
[email protected]c8250d42013-10-01 05:17:46834 ['OS=="win" and fastbuild==0 and target_arch=="ia32"', {
835 'variables': {
836 'dest_dir': '<(PRODUCT_DIR)/syzygy',
837 },
838 'targets': [
839 {
840 'target_name': 'content_shell_syzyasan',
841 'type': 'none',
842 'sources' : [],
843 # Instrument content_shell with SyzyAsan.
844 'actions': [
845 {
846 'action_name': 'Instrument content_shell with SyzyAsan',
847 'msvs_cygwin_shell': 0,
848 'inputs': [
849 '<(PRODUCT_DIR)/content_shell.exe',
850 ],
851 'outputs': [
852 '<(dest_dir)/content_shell.exe',
853 '<(dest_dir)/content_shell.exe.pdb',
854 ],
855 'action': [
856 'python',
857 '<(DEPTH)/chrome/tools/build/win/syzygy_instrument.py',
858 '--mode', 'asan',
859 '--input_executable', '<(PRODUCT_DIR)/content_shell.exe',
860 '--input_symbol', '<(PRODUCT_DIR)/content_shell.exe.pdb',
861 '--destination_dir', '<(dest_dir)',
862 ],
863 },
864 ],
865 },
866 ],
867 }], # OS=="win" and fastbuild==0 and target_arch=="ia32"
[email protected]cc66d282012-03-30 11:44:06868 ]
[email protected]5629e0c2011-09-12 22:07:36869}