blob: e619b1c8fec47caf7c50da9b0d3a0a45525eadb1 [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]03ff5e52011-09-30 00:28:1424 'defines!': ['CONTENT_IMPLEMENTATION'],
[email protected]6d302912012-11-05 21:57:2825 'defines': ['CONTENT_SHELL_VERSION="<(content_shell_version)"'],
[email protected]9fbd3f862011-09-20 23:31:3426 'variables': {
27 'chromium_code': 1,
28 },
[email protected]5629e0c2011-09-12 22:07:3629 'dependencies': [
[email protected]a20f6e82013-07-01 13:38:4130 'content.gyp:content_app',
31 'content.gyp:content_browser',
32 'content.gyp:content_common',
33 'content.gyp:content_gpu',
34 'content.gyp:content_plugin',
35 'content.gyp:content_ppapi_plugin',
36 'content.gyp:content_renderer',
37 'content.gyp:content_utility',
38 'content.gyp:content_worker',
[email protected]0faa0a2b2011-11-15 18:03:1439 'content_resources.gyp:content_resources',
[email protected]a20f6e82013-07-01 13:38:4140 'content_shell_resources',
41 'test_support_content',
[email protected]aa6e79762011-09-29 20:53:5242 '../base/base.gyp:base',
43 '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations',
[email protected]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]4ded0abe2013-06-26 17:51:4849 '../third_party/WebKit/public/all.gyp:blink_testing',
[email protected]8350f16f2012-11-30 00:25:3250 '../ui/gl/gl.gyp:gl',
[email protected]5629e0c2011-09-12 22:07:3651 '../ui/ui.gyp:ui',
[email protected]002cc08f2013-06-03 05:40:2952 '../url/url.gyp:url_lib',
[email protected]12bc28fcb2011-09-21 15:53:5053 '../v8/tools/gyp/v8.gyp:v8',
[email protected]024b2f22013-01-17 13:56:1054 '../webkit/support/webkit_support.gyp:webkit_resources',
[email protected]01048712012-07-09 23:26:2755 '../webkit/support/webkit_support.gyp:webkit_support',
[email protected]5629e0c2011-09-12 22:07:3656 ],
57 'include_dirs': [
58 '..',
59 ],
60 'sources': [
[email protected]4d4eb5b2013-01-29 21:55:5561 'shell/android/shell_jni_registrar.cc',
62 'shell/android/shell_jni_registrar.h',
63 'shell/android/shell_manager.cc',
64 'shell/android/shell_manager.h',
[email protected]993951d2013-05-08 21:37:0265 'shell/app/shell_main_delegate.cc',
66 'shell/app/shell_main_delegate.h',
[email protected]216161f2013-07-02 16:23:2067 'shell/app/webkit_test_platform_support.h',
68 'shell/app/webkit_test_platform_support_android.cc',
69 'shell/app/webkit_test_platform_support_linux.cc',
70 'shell/app/webkit_test_platform_support_mac.mm',
71 'shell/app/webkit_test_platform_support_win.cc',
[email protected]b7c504c2013-05-07 14:42:1272 'shell/common/shell_content_client.cc',
73 'shell/common/shell_content_client.h',
74 'shell/common/shell_messages.cc',
75 'shell/common/shell_messages.h',
76 'shell/common/shell_switches.cc',
77 'shell/common/shell_switches.h',
78 'shell/common/shell_test_configuration.cc',
79 'shell/common/shell_test_configuration.h',
80 'shell/common/webkit_test_helpers.cc',
81 'shell/common/webkit_test_helpers.h',
[email protected]6cfccd12012-06-28 12:14:0582 'shell/geolocation/shell_access_token_store.cc',
83 'shell/geolocation/shell_access_token_store.h',
[email protected]2a2caa02013-01-22 20:50:3684 'shell/minimal_ash.cc',
85 'shell/minimal_ash.h',
[email protected]1ca4fac2013-04-08 14:15:1186 'shell/notify_done_forwarder.cc',
87 'shell/notify_done_forwarder.h',
[email protected]e1aff172012-03-22 22:41:1788 'shell/paths_mac.h',
89 'shell/paths_mac.mm',
[email protected]f7a4e3b92013-05-03 15:29:5890 'shell/renderer/shell_content_renderer_client.cc',
91 'shell/renderer/shell_content_renderer_client.h',
[email protected]99902de2013-06-20 23:04:0992 'shell/renderer/shell_media_stream_client.cc',
93 'shell/renderer/shell_media_stream_client.h',
[email protected]f7a4e3b92013-05-03 15:29:5894 'shell/renderer/shell_render_process_observer.cc',
95 'shell/renderer/shell_render_process_observer.h',
96 'shell/renderer/webkit_test_runner.cc',
97 'shell/renderer/webkit_test_runner.h',
[email protected]9fbd3f862011-09-20 23:31:3498 'shell/shell.cc',
99 'shell/shell.h',
[email protected]a08029b42012-04-25 03:18:46100 'shell/shell_android.cc',
[email protected]fa4a45832012-04-12 21:32:48101 'shell/shell_aura.cc',
[email protected]9fbd3f862011-09-20 23:31:34102 'shell/shell_gtk.cc',
103 'shell/shell_mac.mm',
104 'shell/shell_win.cc',
[email protected]c4e78d72012-03-24 22:55:41105 'shell/shell_application_mac.h',
106 'shell/shell_application_mac.mm',
[email protected]b0f146f2011-09-15 22:14:25107 'shell/shell_browser_context.cc',
108 'shell/shell_browser_context.h',
[email protected]5629e0c2011-09-12 22:07:36109 'shell/shell_browser_main.cc',
110 'shell/shell_browser_main.h',
[email protected]147f8092012-03-21 11:47:45111 'shell/shell_browser_main_parts.cc',
112 'shell/shell_browser_main_parts.h',
113 'shell/shell_browser_main_parts_mac.mm',
[email protected]5629e0c2011-09-12 22:07:36114 'shell/shell_content_browser_client.cc',
115 'shell/shell_content_browser_client.h',
[email protected]ee75b8992012-01-27 07:53:57116 'shell/shell_devtools_delegate.cc',
117 'shell/shell_devtools_delegate.h',
[email protected]0773e0c2013-01-25 15:57:57118 'shell/shell_devtools_frontend.cc',
119 'shell/shell_devtools_frontend.h',
[email protected]98d6f152011-09-29 19:35:51120 'shell/shell_download_manager_delegate.cc',
121 'shell/shell_download_manager_delegate.h',
[email protected]71a88bb2013-02-01 22:05:15122 'shell/shell_javascript_dialog_manager.cc',
123 'shell/shell_javascript_dialog_manager.h',
[email protected]fc4f4dd42012-07-30 20:52:48124 'shell/shell_javascript_dialog_gtk.cc',
[email protected]f2210022012-03-29 00:36:08125 'shell/shell_javascript_dialog_mac.mm',
[email protected]7fc83822012-03-30 19:53:29126 'shell/shell_javascript_dialog_win.cc',
[email protected]f2210022012-03-29 00:36:08127 'shell/shell_javascript_dialog.h',
[email protected]eadcff0f2013-06-20 21:08:10128 'shell/shell_layout_tests_android.cc',
129 'shell/shell_layout_tests_android.h',
[email protected]e6fbecf22012-08-01 10:11:03130 'shell/shell_login_dialog_gtk.cc',
[email protected]e3503ac2012-04-05 15:01:36131 'shell/shell_login_dialog_mac.mm',
132 'shell/shell_login_dialog.cc',
133 'shell/shell_login_dialog.h',
[email protected]5a3c3f32013-01-23 12:23:39134 'shell/shell_message_filter.cc',
135 'shell/shell_message_filter.h',
[email protected]33bc2832012-03-29 08:18:17136 'shell/shell_network_delegate.cc',
137 'shell/shell_network_delegate.h',
[email protected]7886b622013-05-27 09:24:09138 'shell/shell_plugin_service_filter.cc',
139 'shell/shell_plugin_service_filter.h',
[email protected]fc41b212013-03-25 16:04:23140 'shell/shell_quota_permission_context.cc',
141 'shell/shell_quota_permission_context.h',
[email protected]e3503ac2012-04-05 15:01:36142 'shell/shell_resource_dispatcher_host_delegate.cc',
143 'shell/shell_resource_dispatcher_host_delegate.h',
[email protected]c5f1e332011-09-27 01:08:03144 'shell/shell_url_request_context_getter.cc',
145 'shell/shell_url_request_context_getter.h',
[email protected]0d978ef2013-02-27 15:32:54146 'shell/shell_web_contents_view_delegate_android.cc',
[email protected]4c2aa392012-09-03 01:29:42147 'shell/shell_web_contents_view_delegate_creator.h',
148 'shell/shell_web_contents_view_delegate_gtk.cc',
[email protected]dcbe5fe32012-09-10 10:18:32149 'shell/shell_web_contents_view_delegate_mac.mm',
[email protected]4c9bf3482012-09-12 14:35:35150 'shell/shell_web_contents_view_delegate_win.cc',
[email protected]4c2aa392012-09-03 01:29:42151 'shell/shell_web_contents_view_delegate.h',
[email protected]8dafad32012-12-10 14:11:45152 'shell/webkit_test_controller.cc',
153 'shell/webkit_test_controller.h',
[email protected]5629e0c2011-09-12 22:07:36154 ],
155 'msvs_settings': {
156 'VCLinkerTool': {
157 'SubSystem': '2', # Set /SUBSYSTEM:WINDOWS
158 },
159 },
160 'conditions': [
161 ['OS=="win" and win_use_allocator_shim==1', {
162 'dependencies': [
163 '../base/allocator/allocator.gyp:allocator',
164 ],
165 }],
[email protected]9fbd3f862011-09-20 23:31:34166 ['OS=="win"', {
167 'resource_include_dirs': [
168 '<(SHARED_INTERMEDIATE_DIR)/webkit',
169 ],
[email protected]9fbd3f862011-09-20 23:31:34170 'dependencies': [
[email protected]9fbd3f862011-09-20 23:31:34171 '<(DEPTH)/webkit/support/webkit_support.gyp:webkit_strings',
172 ],
173 'configurations': {
174 'Debug_Base': {
175 'msvs_settings': {
176 'VCLinkerTool': {
177 'LinkIncremental': '<(msvs_large_module_debug_link_mode)',
178 },
179 },
180 },
181 },
[email protected]3bed5302013-02-15 19:31:41182 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
183 'msvs_disabled_warnings': [ 4267, ],
[email protected]85ff16042012-03-06 23:46:34184 }], # OS=="win"
[email protected]6eb6bb62012-11-10 06:30:59185 ['OS=="linux"', {
186 'dependencies': [
187 '../build/linux/system.gyp:fontconfig',
188 ],
189 }],
[email protected]689266d2012-08-07 12:52:20190 ['OS=="android"', {
[email protected]82e9e2b12012-07-19 00:32:01191 'dependencies': [
192 'content_shell_jni_headers',
193 ],
[email protected]689266d2012-08-07 12:52:20194 }, { # else: OS!="android"
195 'dependencies': [
196 # This dependency is for running DRT against the content shell, and
197 # this combination is not yet supported on Android.
198 '../webkit/support/webkit_support.gyp:webkit_support',
199 ],
[email protected]82e9e2b12012-07-19 00:32:01200 }], # OS=="android"
[email protected]3c8fe5482013-05-22 15:17:03201 ['(os_posix==1 and use_aura==1 and linux_use_tcmalloc==1) or (android_use_tcmalloc==1)', {
[email protected]c767d572012-07-27 10:55:58202 'dependencies': [
203 # This is needed by content/app/content_main_runner.cc
204 '../base/allocator/allocator.gyp:allocator',
205 ],
206 }],
[email protected]fa4a45832012-04-12 21:32:48207 ['use_aura==1', {
[email protected]c767d572012-07-27 10:55:58208 'dependencies': [
209 '../ui/aura/aura.gyp:aura',
210 '../ui/base/strings/ui_strings.gyp:ui_strings',
[email protected]9e7fca802012-09-01 18:53:05211 '../ui/views/controls/webview/webview.gyp:webview',
[email protected]c767d572012-07-27 10:55:58212 '../ui/views/views.gyp:views',
[email protected]0aa76932012-10-14 19:11:10213 '../ui/views/views.gyp:views_test_support',
[email protected]c767d572012-07-27 10:55:58214 '../ui/ui.gyp:ui_resources',
215 ],
[email protected]fa4a45832012-04-12 21:32:48216 'sources/': [
217 ['exclude', 'shell/shell_gtk.cc'],
218 ['exclude', 'shell/shell_win.cc'],
219 ],
[email protected]96b80b472012-07-03 19:41:56220 }], # use_aura==1
[email protected]c767d572012-07-27 10:55:58221 ['chromeos==1', {
222 'dependencies': [
223 '../chromeos/chromeos.gyp:chromeos',
224 ],
225 }], # chromeos==1
[email protected]2d2f60d2013-05-14 04:42:01226 ['use_ash==1', {
227 'dependencies': [
228 '../ash/ash.gyp:ash',
229 ],
230 }],
[email protected]929246a2013-02-28 13:55:20231 ['use_custom_freetype==1', {
232 'dependencies': [
233 '../third_party/freetype2/freetype2.gyp:freetype2',
234 ],
235 }],
[email protected]dfb9360192013-05-27 09:42:34236 ['enable_plugins==0', {
237 'sources/': [
238 ['exclude', 'shell/shell_plugin_service_filter.cc'],
239 ['exclude', 'shell/shell_plugin_service_filter.h'],
240 ],
241 }]
[email protected]5629e0c2011-09-12 22:07:36242 ],
243 },
[email protected]c1f87b22011-10-05 21:59:33244 {
[email protected]ee75b8992012-01-27 07:53:57245 'target_name': 'content_shell_resources',
246 'type': 'none',
[email protected]b581eb402012-03-09 01:31:46247 'dependencies': [
248 'generate_content_shell_resources',
249 ],
250 'variables': {
251 'grit_out_dir': '<(SHARED_INTERMEDIATE_DIR)/content',
252 },
253 'includes': [ '../build/grit_target.gypi' ],
254 'copies': [
255 {
256 'destination': '<(PRODUCT_DIR)',
257 'files': [
258 '<(SHARED_INTERMEDIATE_DIR)/content/shell_resources.pak'
259 ],
260 },
261 ],
[email protected]4cb792f42012-03-24 03:12:42262 },
263 {
[email protected]b581eb402012-03-09 01:31:46264 'target_name': 'generate_content_shell_resources',
265 'type': 'none',
[email protected]ee75b8992012-01-27 07:53:57266 'variables': {
267 'grit_out_dir': '<(SHARED_INTERMEDIATE_DIR)/content',
268 },
269 'actions': [
270 {
271 'action_name': 'content_shell_resources',
272 'variables': {
273 'grit_grd_file': 'shell/shell_resources.grd',
274 },
275 'includes': [ '../build/grit_action.gypi' ],
276 },
277 ],
[email protected]ee75b8992012-01-27 07:53:57278 },
279 {
[email protected]81f30ce2012-01-18 22:10:33280 # We build a minimal set of resources so WebKit in content_shell has
281 # access to necessary resources.
282 'target_name': 'content_shell_pak',
283 'type': 'none',
[email protected]ee75b8992012-01-27 07:53:57284 'dependencies': [
[email protected]70019152012-12-19 11:44:19285 'browser/devtools/devtools_resources.gyp:devtools_resources',
[email protected]06c54162013-06-10 00:25:05286 'content_resources.gyp:content_resources',
[email protected]ee75b8992012-01-27 07:53:57287 'content_shell_resources',
[email protected]06c54162013-06-10 00:25:05288 '<(DEPTH)/net/net.gyp:net_resources',
289 '<(DEPTH)/ui/base/strings/ui_strings.gyp:ui_strings',
[email protected]6c3e6492012-02-27 17:07:45290 '<(DEPTH)/ui/ui.gyp:ui_resources',
[email protected]06c54162013-06-10 00:25:05291 '<(DEPTH)/webkit/support/webkit_support.gyp:webkit_resources',
292 '<(DEPTH)/webkit/support/webkit_support.gyp:webkit_strings',
[email protected]ee75b8992012-01-27 07:53:57293 ],
[email protected]81f30ce2012-01-18 22:10:33294 'variables': {
295 'repack_path': '<(DEPTH)/tools/grit/grit/format/repack.py',
296 },
297 'actions': [
298 {
299 'action_name': 'repack_content_shell_pack',
300 'variables': {
301 'pak_inputs': [
302 '<(SHARED_INTERMEDIATE_DIR)/content/content_resources.pak',
[email protected]ee75b8992012-01-27 07:53:57303 '<(SHARED_INTERMEDIATE_DIR)/content/shell_resources.pak',
[email protected]81f30ce2012-01-18 22:10:33304 '<(SHARED_INTERMEDIATE_DIR)/net/net_resources.pak',
[email protected]c767d572012-07-27 10:55:58305 '<(SHARED_INTERMEDIATE_DIR)/ui/app_locale_settings/app_locale_settings_en-US.pak',
[email protected]a52c7312012-07-24 22:45:57306 '<(SHARED_INTERMEDIATE_DIR)/ui/ui_resources/ui_resources_100_percent.pak',
[email protected]e1c26ae2013-01-31 18:13:18307 '<(SHARED_INTERMEDIATE_DIR)/ui/ui_resources/webui_resources.pak',
[email protected]c767d572012-07-27 10:55:58308 '<(SHARED_INTERMEDIATE_DIR)/ui/ui_strings/ui_strings_en-US.pak',
[email protected]ee75b8992012-01-27 07:53:57309 '<(SHARED_INTERMEDIATE_DIR)/webkit/devtools_resources.pak',
[email protected]81f30ce2012-01-18 22:10:33310 '<(SHARED_INTERMEDIATE_DIR)/webkit/webkit_chromium_resources.pak',
[email protected]30c8f542012-09-01 01:02:29311 '<(SHARED_INTERMEDIATE_DIR)/webkit/webkit_resources_100_percent.pak',
[email protected]af551a62012-07-31 16:44:03312 '<(SHARED_INTERMEDIATE_DIR)/webkit/webkit_strings_en-US.pak',
[email protected]81f30ce2012-01-18 22:10:33313 ],
[email protected]81f30ce2012-01-18 22:10:33314 },
315 'inputs': [
316 '<(repack_path)',
317 '<@(pak_inputs)',
318 ],
[email protected]81f30ce2012-01-18 22:10:33319 'action': ['python', '<(repack_path)', '<@(_outputs)',
320 '<@(pak_inputs)'],
[email protected]a08029b42012-04-25 03:18:46321 'conditions': [
322 ['OS!="android"', {
323 'outputs': [
324 '<(PRODUCT_DIR)/content_shell.pak',
325 ],
326 }, {
327 'outputs': [
328 '<(PRODUCT_DIR)/content_shell/assets/content_shell.pak',
329 ],
330 }],
331 ],
[email protected]81f30ce2012-01-18 22:10:33332 },
333 ],
334 },
335 {
[email protected]c1f87b22011-10-05 21:59:33336 'target_name': 'content_shell',
337 'type': 'executable',
[email protected]85ff16042012-03-06 23:46:34338 'mac_bundle': 1,
[email protected]c1f87b22011-10-05 21:59:33339 'defines!': ['CONTENT_IMPLEMENTATION'],
340 'variables': {
341 'chromium_code': 1,
342 },
343 'dependencies': [
344 'content_shell_lib',
[email protected]81f30ce2012-01-18 22:10:33345 'content_shell_pak',
[email protected]bb5d2d92012-10-15 07:45:42346 '../third_party/mesa/mesa.gyp:osmesa',
[email protected]c1f87b22011-10-05 21:59:33347 ],
348 'include_dirs': [
349 '..',
350 ],
351 'sources': [
[email protected]711f428e2012-06-22 02:18:23352 'app/startup_helper_win.cc',
[email protected]993951d2013-05-08 21:37:02353 'shell/app/shell_main.cc',
[email protected]c1f87b22011-10-05 21:59:33354 ],
[email protected]85ff16042012-03-06 23:46:34355 'mac_bundle_resources': [
[email protected]993951d2013-05-08 21:37:02356 'shell/app/app.icns',
357 'shell/app/app-Info.plist',
[email protected]85ff16042012-03-06 23:46:34358 ],
359 # TODO(mark): Come up with a fancier way to do this. It should only
360 # be necessary to list app-Info.plist once, not the three times it is
361 # listed here.
362 'mac_bundle_resources!': [
[email protected]993951d2013-05-08 21:37:02363 'shell/app/app-Info.plist',
[email protected]85ff16042012-03-06 23:46:34364 ],
365 'xcode_settings': {
[email protected]993951d2013-05-08 21:37:02366 'INFOPLIST_FILE': 'shell/app/app-Info.plist',
[email protected]85ff16042012-03-06 23:46:34367 },
[email protected]c1f87b22011-10-05 21:59:33368 'msvs_settings': {
369 'VCLinkerTool': {
370 'SubSystem': '2', # Set /SUBSYSTEM:WINDOWS
371 },
[email protected]30624922013-06-04 10:40:10372 'VCManifestTool': {
373 'AdditionalManifestFiles': 'shell/app/shell.exe.manifest',
374 },
[email protected]c1f87b22011-10-05 21:59:33375 },
376 'conditions': [
377 ['OS=="win" and win_use_allocator_shim==1', {
378 'dependencies': [
379 '../base/allocator/allocator.gyp:allocator',
380 ],
381 }],
382 ['OS=="win"', {
[email protected]7fc83822012-03-30 19:53:29383 'sources': [
[email protected]993951d2013-05-08 21:37:02384 'shell/app/shell.rc',
[email protected]7fc83822012-03-30 19:53:29385 ],
[email protected]c1f87b22011-10-05 21:59:33386 'configurations': {
387 'Debug_Base': {
388 'msvs_settings': {
389 'VCLinkerTool': {
390 'LinkIncremental': '<(msvs_large_module_debug_link_mode)',
391 },
392 },
393 },
394 },
[email protected]85ff16042012-03-06 23:46:34395 }], # OS=="win"
[email protected]5d9bc782013-05-17 17:22:14396 ['OS == "win" or toolkit_uses_gtk == 1', {
[email protected]27315ce42011-10-14 01:25:12397 'dependencies': [
398 '../sandbox/sandbox.gyp:sandbox',
399 ],
[email protected]5d9bc782013-05-17 17:22:14400 }], # OS=="win" or toolkit_uses_gtk == 1
[email protected]398990892012-01-20 03:25:58401 ['toolkit_uses_gtk == 1', {
402 'dependencies': [
403 '<(DEPTH)/build/linux/system.gyp:gtk',
404 ],
[email protected]85ff16042012-03-06 23:46:34405 }], # toolkit_uses_gtk
406 ['OS=="mac"', {
407 'product_name': '<(content_shell_product_name)',
408 'dependencies!': [
409 'content_shell_lib',
410 ],
411 'dependencies': [
412 'content_shell_framework',
[email protected]180df8f2012-03-09 22:36:10413 'content_shell_helper_app',
414 ],
415 'copies': [
416 {
417 'destination': '<(PRODUCT_DIR)/<(content_shell_product_name).app/Contents/Frameworks',
418 'files': [
419 '<(PRODUCT_DIR)/<(content_shell_product_name) Helper.app',
420 ],
421 },
[email protected]85ff16042012-03-06 23:46:34422 ],
423 'postbuilds': [
424 {
425 'postbuild_name': 'Copy <(content_shell_product_name) Framework.framework',
426 'action': [
427 '../build/mac/copy_framework_unversioned.sh',
428 '${BUILT_PRODUCTS_DIR}/<(content_shell_product_name) Framework.framework',
429 '${BUILT_PRODUCTS_DIR}/${CONTENTS_FOLDER_PATH}/Frameworks',
430 ],
431 },
432 {
433 'postbuild_name': 'Fix Framework Link',
434 'action': [
435 'install_name_tool',
436 '-change',
437 '/Library/Frameworks/<(content_shell_product_name) Framework.framework/Versions/A/<(content_shell_product_name) Framework',
438 '@executable_path/../Frameworks/<(content_shell_product_name) Framework.framework/<(content_shell_product_name) Framework',
439 '${BUILT_PRODUCTS_DIR}/${EXECUTABLE_PATH}'
440 ],
441 },
442 {
443 # Modify the Info.plist as needed.
444 'postbuild_name': 'Tweak Info.plist',
445 'action': ['../build/mac/tweak_info_plist.py',
[email protected]6d302912012-11-05 21:57:28446 '--scm=1',
447 '--version=<(content_shell_version)'],
[email protected]85ff16042012-03-06 23:46:34448 },
449 {
[email protected]180df8f2012-03-09 22:36:10450 # This postbuid step is responsible for creating the following
451 # helpers:
452 #
453 # Content Shell Helper EH.app and Content Shell Helper NP.app are
454 # created from Content Shell Helper.app.
455 #
456 # The EH helper is marked for an executable heap. The NP helper
457 # is marked for no PIE (ASLR).
458 'postbuild_name': 'Make More Helpers',
459 'action': [
460 '../build/mac/make_more_helpers.sh',
461 'Frameworks',
462 '<(content_shell_product_name)',
463 ],
464 },
465 {
[email protected]85ff16042012-03-06 23:46:34466 # Make sure there isn't any Objective-C in the shell's
467 # executable.
468 'postbuild_name': 'Verify No Objective-C',
469 'action': [
470 '../build/mac/verify_no_objc.sh',
471 ],
472 },
473 ],
474 }], # OS=="mac"
[email protected]c1f87b22011-10-05 21:59:33475 ],
476 },
[email protected]fe2420d2012-08-21 07:28:33477 {
478 'target_name': 'content_shell_builder',
479 'type': 'none',
480 'dependencies': [
481 'content_shell',
[email protected]fe2420d2012-08-21 07:28:33482 ],
483 },
[email protected]5629e0c2011-09-12 22:07:36484 ],
[email protected]85ff16042012-03-06 23:46:34485 'conditions': [
486 ['OS=="mac"', {
487 'targets': [
488 {
489 'target_name': 'content_shell_framework',
490 'type': 'shared_library',
491 'product_name': '<(content_shell_product_name) Framework',
492 'mac_bundle': 1,
493 'mac_bundle_resources': [
[email protected]993951d2013-05-08 21:37:02494 'shell/app/English.lproj/HttpAuth.xib',
495 'shell/app/English.lproj/MainMenu.xib',
[email protected]4cb792f42012-03-24 03:12:42496 '<(PRODUCT_DIR)/content_shell.pak'
[email protected]85ff16042012-03-06 23:46:34497 ],
498 'dependencies': [
499 'content_shell_lib',
500 ],
501 'include_dirs': [
502 '..',
503 ],
504 'sources': [
[email protected]216161f2013-07-02 16:23:20505 'shell/app/shell_content_main.cc',
506 'shell/app/shell_content_main.h',
[email protected]85ff16042012-03-06 23:46:34507 ],
[email protected]5d96bbe2012-07-25 17:13:23508 'copies': [
509 {
510 # Copy FFmpeg binaries for audio/video support.
511 'destination': '<(PRODUCT_DIR)/$(CONTENTS_FOLDER_PATH)/Libraries',
512 'files': [
513 '<(PRODUCT_DIR)/ffmpegsumo.so',
514 ],
515 },
516 ],
[email protected]fda1c6c82013-04-09 16:10:12517 'conditions': [
518 ['enable_webrtc==1', {
519 'variables': {
520 'libpeer_target_type%': 'static_library',
521 },
522 'conditions': [
[email protected]e4aa290b2013-05-01 18:54:19523 ['libpeer_target_type!="static_library"', {
[email protected]fda1c6c82013-04-09 16:10:12524 'copies': [{
525 'destination': '<(PRODUCT_DIR)/$(CONTENTS_FOLDER_PATH)/Libraries',
526 'files': [
[email protected]62461b72013-05-02 12:27:12527 '<(PRODUCT_DIR)/libpeerconnection.so',
[email protected]fda1c6c82013-04-09 16:10:12528 ],
529 }],
530 }],
531 ],
532 }],
533 ],
[email protected]180df8f2012-03-09 22:36:10534 }, # target content_shell_framework
535 {
536 'target_name': 'content_shell_helper_app',
537 'type': 'executable',
538 'variables': { 'enable_wexit_time_destructors': 1, },
539 'product_name': '<(content_shell_product_name) Helper',
540 'mac_bundle': 1,
541 'dependencies': [
542 'content_shell_framework',
543 ],
544 'sources': [
[email protected]993951d2013-05-08 21:37:02545 'shell/app/shell_main.cc',
546 'shell/app/helper-Info.plist',
[email protected]180df8f2012-03-09 22:36:10547 ],
548 # TODO(mark): Come up with a fancier way to do this. It should only
549 # be necessary to list helper-Info.plist once, not the three times it
550 # is listed here.
551 'mac_bundle_resources!': [
[email protected]993951d2013-05-08 21:37:02552 'shell/app/helper-Info.plist',
[email protected]180df8f2012-03-09 22:36:10553 ],
554 # TODO(mark): For now, don't put any resources into this app. Its
555 # resources directory will be a symbolic link to the browser app's
556 # resources directory.
557 'mac_bundle_resources/': [
558 ['exclude', '.*'],
559 ],
560 'xcode_settings': {
[email protected]993951d2013-05-08 21:37:02561 'INFOPLIST_FILE': 'shell/app/helper-Info.plist',
[email protected]180df8f2012-03-09 22:36:10562 },
563 'postbuilds': [
564 {
565 # The framework defines its load-time path
566 # (DYLIB_INSTALL_NAME_BASE) relative to the main executable
567 # (chrome). A different relative path needs to be used in
568 # content_shell_helper_app.
569 'postbuild_name': 'Fix Framework Link',
570 'action': [
571 'install_name_tool',
572 '-change',
573 '/Library/Frameworks/<(content_shell_product_name) Framework.framework/Versions/A/<(content_shell_product_name) Framework',
574 '@executable_path/../../../../Frameworks/<(content_shell_product_name) Framework.framework/<(content_shell_product_name) Framework',
575 '${BUILT_PRODUCTS_DIR}/${EXECUTABLE_PATH}'
576 ],
577 },
578 {
579 # Modify the Info.plist as needed. The script explains why this
580 # is needed. This is also done in the chrome and chrome_dll
[email protected]bbf52442012-08-23 22:53:18581 # targets. In this case, --breakpad=0, --keystone=0, and --scm=0
582 # are used because Breakpad, Keystone, and SCM keys are
[email protected]180df8f2012-03-09 22:36:10583 # never placed into the helper.
584 'postbuild_name': 'Tweak Info.plist',
585 'action': ['../build/mac/tweak_info_plist.py',
586 '--breakpad=0',
587 '--keystone=0',
[email protected]6d302912012-11-05 21:57:28588 '--scm=0',
589 '--version=<(content_shell_version)'],
[email protected]180df8f2012-03-09 22:36:10590 },
591 {
592 # Make sure there isn't any Objective-C in the helper app's
593 # executable.
594 'postbuild_name': 'Verify No Objective-C',
595 'action': [
596 '../build/mac/verify_no_objc.sh',
597 ],
598 },
599 ],
[email protected]ec40c38f2012-06-28 16:37:49600 'conditions': [
601 ['component=="shared_library"', {
602 'xcode_settings': {
603 'LD_RUNPATH_SEARCH_PATHS': [
604 # Get back from Content Shell.app/Contents/Frameworks/
605 # Helper.app/Contents/MacOS
606 '@loader_path/../../../../../..',
607 ],
608 },
609 }],
610 ],
[email protected]180df8f2012-03-09 22:36:10611 }, # target content_shell_helper_app
[email protected]85ff16042012-03-06 23:46:34612 ],
613 }], # OS=="mac"
[email protected]cc66d282012-03-30 11:44:06614 ['OS=="android"', {
615 'targets': [
616 {
[email protected]a08029b42012-04-25 03:18:46617 # TODO(jrg): Update this action and other jni generators to only
618 # require specifying the java directory and generate the rest.
619 'target_name': 'content_shell_jni_headers',
620 'type': 'none',
[email protected]e46f66152012-07-19 20:02:55621 'sources': [
[email protected]4d4eb5b2013-01-29 21:55:55622 'shell/android/browsertests_apk/src/org/chromium/content_browsertests_apk/ContentBrowserTestsActivity.java',
[email protected]eadcff0f2013-06-20 21:08:10623 'shell/android/java/src/org/chromium/content_shell/ShellLayoutTestUtils.java',
[email protected]e46f66152012-07-19 20:02:55624 'shell/android/java/src/org/chromium/content_shell/ShellManager.java',
625 'shell/android/java/src/org/chromium/content_shell/Shell.java',
626 ],
[email protected]029a7712013-01-15 08:11:42627 'direct_dependent_settings': {
628 'include_dirs': [
629 '<(SHARED_INTERMEDIATE_DIR)/content/shell',
630 ],
631 },
[email protected]a08029b42012-04-25 03:18:46632 'variables': {
[email protected]521cd942013-03-07 22:34:05633 'jni_gen_package': 'content/shell',
[email protected]a08029b42012-04-25 03:18:46634 },
635 'includes': [ '../build/jni_generator.gypi' ],
636 },
637 {
[email protected]c1101582012-06-25 17:07:18638 'target_name': 'libcontent_shell_content_view',
[email protected]a08029b42012-04-25 03:18:46639 'type': 'shared_library',
640 'dependencies': [
641 'content_shell_jni_headers',
642 'content_shell_lib',
643 'content_shell_pak',
644 # Skia is necessary to ensure the dependencies needed by
645 # WebContents are included.
646 '../skia/skia.gyp:skia',
647 '<(DEPTH)/media/media.gyp:player_android',
648 ],
[email protected]a08029b42012-04-25 03:18:46649 'sources': [
650 'shell/android/shell_library_loader.cc',
651 'shell/android/shell_library_loader.h',
[email protected]f83a47392012-07-12 22:15:04652 ],
[email protected]7abcaa82012-06-27 17:09:48653 'conditions': [
[email protected]d999c3cb2013-03-12 10:22:36654 ['android_webview_build==1', {
[email protected]7abcaa82012-06-27 17:09:48655 'ldflags': [
656 '-lgabi++', # For rtti
657 ],
658 }],
659 ],
[email protected]a08029b42012-04-25 03:18:46660 },
661 {
[email protected]4d4eb5b2013-01-29 21:55:55662 'target_name': 'content_shell_java',
663 'type': 'none',
664 'dependencies': [
[email protected]a20f6e82013-07-01 13:38:41665 'content.gyp:content_java',
[email protected]4d4eb5b2013-01-29 21:55:55666 ],
667 'variables': {
[email protected]4d4eb5b2013-01-29 21:55:55668 'java_in_dir': '../content/shell/android/java',
669 'has_java_resources': 1,
670 'R_package': 'org.chromium.content_shell',
671 'R_package_relpath': 'org/chromium/content_shell',
672 },
673 'includes': [ '../build/java.gypi' ],
674 },
675 {
[email protected]319d6a82012-09-20 22:52:28676 # content_shell_apk creates a .jar as a side effect. Any java targets
677 # that need that .jar in their classpath should depend on this target,
[email protected]4d4eb5b2013-01-29 21:55:55678 # content_shell_apk_java. Dependents of content_shell_apk receive its
679 # jar path in the variable 'apk_output_jar_path'. This target should
680 # only be used by targets which instrument content_shell_apk.
681 'target_name': 'content_shell_apk_java',
[email protected]319d6a82012-09-20 22:52:28682 'type': 'none',
[email protected]319d6a82012-09-20 22:52:28683 'dependencies': [
[email protected]319d6a82012-09-20 22:52:28684 'content_shell_apk',
[email protected]319d6a82012-09-20 22:52:28685 ],
[email protected]b13f73e2013-03-27 23:31:27686 'includes': [ '../build/apk_fake_jar.gypi' ],
[email protected]319d6a82012-09-20 22:52:28687 },
[email protected]75c86a22012-09-26 03:50:37688 {
689 'target_name': 'content_shell_apk',
690 'type': 'none',
691 'dependencies': [
[email protected]a20f6e82013-07-01 13:38:41692 'content.gyp:content_java',
[email protected]c48fece02013-06-19 12:01:42693 'content_java_test_support',
[email protected]4d4eb5b2013-01-29 21:55:55694 'content_shell_java',
695 'libcontent_shell_content_view',
[email protected]75c86a22012-09-26 03:50:37696 '../base/base.gyp:base_java',
697 '../media/media.gyp:media_java',
698 '../net/net.gyp:net_java',
699 '../ui/ui.gyp:ui_java',
700 ],
701 'variables': {
[email protected]75c86a22012-09-26 03:50:37702 'apk_name': 'ContentShell',
[email protected]4d4eb5b2013-01-29 21:55:55703 'manifest_package_name': 'org.chromium.content_shell_apk',
704 'java_in_dir': 'shell/android/shell_apk',
[email protected]bd6ab3db2013-03-26 17:35:21705 'resource_dir': 'shell/android/shell_apk/res',
[email protected]e4865252013-04-04 09:15:59706 'native_lib_target': 'libcontent_shell_content_view',
[email protected]75c86a22012-09-26 03:50:37707 'additional_input_paths': ['<(PRODUCT_DIR)/content_shell/assets/content_shell.pak'],
[email protected]4d4eb5b2013-01-29 21:55:55708 'asset_location': '<(ant_build_out)/content_shell/assets',
[email protected]75c86a22012-09-26 03:50:37709 },
[email protected]75c86a22012-09-26 03:50:37710 'includes': [ '../build/java_apk.gypi' ],
711 },
[email protected]cc66d282012-03-30 11:44:06712 ],
713 }], # OS=="android"
714 ]
[email protected]5629e0c2011-09-12 22:07:36715}