blob: 44e0995eb6d1f37924ebc19b18f5871c088eefd3 [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',
161 'shell/renderer/shell_render_process_observer.cc',
162 'shell/renderer/shell_render_process_observer.h',
[email protected]81914ad2013-07-02 18:54:25163 'shell/renderer/shell_render_view_observer.cc',
164 'shell/renderer/shell_render_view_observer.h',
[email protected]f7a4e3b92013-05-03 15:29:58165 'shell/renderer/webkit_test_runner.cc',
166 'shell/renderer/webkit_test_runner.h',
[email protected]5629e0c2011-09-12 22:07:36167 ],
168 'msvs_settings': {
169 'VCLinkerTool': {
170 'SubSystem': '2', # Set /SUBSYSTEM:WINDOWS
171 },
172 },
173 'conditions': [
174 ['OS=="win" and win_use_allocator_shim==1', {
175 'dependencies': [
176 '../base/allocator/allocator.gyp:allocator',
177 ],
178 }],
[email protected]9fbd3f862011-09-20 23:31:34179 ['OS=="win"', {
180 'resource_include_dirs': [
181 '<(SHARED_INTERMEDIATE_DIR)/webkit',
182 ],
[email protected]9fbd3f862011-09-20 23:31:34183 'dependencies': [
[email protected]d7871ac2013-07-09 21:35:41184 '<(DEPTH)/webkit/webkit_resources.gyp:webkit_strings',
[email protected]9fbd3f862011-09-20 23:31:34185 ],
186 'configurations': {
187 'Debug_Base': {
188 'msvs_settings': {
189 'VCLinkerTool': {
190 'LinkIncremental': '<(msvs_large_module_debug_link_mode)',
191 },
192 },
193 },
194 },
[email protected]3bed5302013-02-15 19:31:41195 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
196 'msvs_disabled_warnings': [ 4267, ],
[email protected]85ff16042012-03-06 23:46:34197 }], # OS=="win"
[email protected]6eb6bb62012-11-10 06:30:59198 ['OS=="linux"', {
199 'dependencies': [
200 '../build/linux/system.gyp:fontconfig',
201 ],
202 }],
[email protected]689266d2012-08-07 12:52:20203 ['OS=="android"', {
[email protected]82e9e2b12012-07-19 00:32:01204 'dependencies': [
205 'content_shell_jni_headers',
206 ],
[email protected]689266d2012-08-07 12:52:20207 }, { # else: OS!="android"
208 'dependencies': [
209 # This dependency is for running DRT against the content shell, and
210 # this combination is not yet supported on Android.
[email protected]3469ea22013-09-14 01:24:47211 'test_support_content',
[email protected]689266d2012-08-07 12:52:20212 ],
[email protected]82e9e2b12012-07-19 00:32:01213 }], # OS=="android"
[email protected]a7aa8ab2013-10-24 07:21:48214 ['os_posix == 1 and OS != "mac" and android_webview_build != 1', {
215 'dependencies': [
216 '../components/components.gyp:breakpad_host',
217 ],
218 }],
[email protected]3c8fe5482013-05-22 15:17:03219 ['(os_posix==1 and use_aura==1 and linux_use_tcmalloc==1) or (android_use_tcmalloc==1)', {
[email protected]c767d572012-07-27 10:55:58220 'dependencies': [
221 # This is needed by content/app/content_main_runner.cc
222 '../base/allocator/allocator.gyp:allocator',
223 ],
224 }],
[email protected]fa4a45832012-04-12 21:32:48225 ['use_aura==1', {
[email protected]c767d572012-07-27 10:55:58226 'dependencies': [
227 '../ui/aura/aura.gyp:aura',
228 '../ui/base/strings/ui_strings.gyp:ui_strings',
[email protected]c767d572012-07-27 10:55:58229 ],
[email protected]fa4a45832012-04-12 21:32:48230 'sources/': [
[email protected]de7d61ff2013-08-20 11:30:41231 ['exclude', 'shell/browser/shell_gtk.cc'],
232 ['exclude', 'shell/browser/shell_win.cc'],
[email protected]fa4a45832012-04-12 21:32:48233 ],
[email protected]a896e1e2013-10-20 19:10:30234 'conditions': [
235 ['toolkit_views==1', {
236 'dependencies': [
[email protected]dae78442013-11-26 16:57:02237 '../ui/resources/ui_resources.gyp:ui_resources',
[email protected]a896e1e2013-10-20 19:10:30238 '../ui/views/controls/webview/webview.gyp:webview',
239 '../ui/views/views.gyp:views',
240 '../ui/views/views.gyp:views_test_support',
[email protected]a896e1e2013-10-20 19:10:30241 ],
242 'sources/': [
243 ['exclude', 'shell/browser/shell_aura.cc'],
244 ],
245 }, {
246 'sources/': [
247 ['exclude', 'shell/browser/shell_views.cc'],
248 ],
249 }],
250 ],
251 }, {
252 'sources/': [
253 ['exclude', 'shell/browser/shell_aura.cc'],
254 ['exclude', 'shell/browser/shell_views.cc'],
255 ],
[email protected]96b80b472012-07-03 19:41:56256 }], # use_aura==1
[email protected]c767d572012-07-27 10:55:58257 ['chromeos==1', {
258 'dependencies': [
259 '../chromeos/chromeos.gyp:chromeos',
[email protected]de6831b2013-11-16 01:04:30260 '../ui/wm/wm.gyp:wm_test_support',
[email protected]c767d572012-07-27 10:55:58261 ],
262 }], # chromeos==1
[email protected]929246a2013-02-28 13:55:20263 ['use_custom_freetype==1', {
264 'dependencies': [
265 '../third_party/freetype2/freetype2.gyp:freetype2',
266 ],
267 }],
[email protected]dfb9360192013-05-27 09:42:34268 ['enable_plugins==0', {
269 'sources/': [
[email protected]de7d61ff2013-08-20 11:30:41270 ['exclude', 'shell/browser/shell_plugin_service_filter.cc'],
271 ['exclude', 'shell/browser/shell_plugin_service_filter.h'],
[email protected]dfb9360192013-05-27 09:42:34272 ],
273 }]
[email protected]5629e0c2011-09-12 22:07:36274 ],
275 },
[email protected]c1f87b22011-10-05 21:59:33276 {
[email protected]ee75b8992012-01-27 07:53:57277 'target_name': 'content_shell_resources',
278 'type': 'none',
[email protected]b581eb402012-03-09 01:31:46279 'dependencies': [
280 'generate_content_shell_resources',
281 ],
282 'variables': {
283 'grit_out_dir': '<(SHARED_INTERMEDIATE_DIR)/content',
284 },
285 'includes': [ '../build/grit_target.gypi' ],
286 'copies': [
287 {
288 'destination': '<(PRODUCT_DIR)',
289 'files': [
290 '<(SHARED_INTERMEDIATE_DIR)/content/shell_resources.pak'
291 ],
292 },
293 ],
[email protected]4cb792f42012-03-24 03:12:42294 },
295 {
[email protected]b581eb402012-03-09 01:31:46296 'target_name': 'generate_content_shell_resources',
297 'type': 'none',
[email protected]ee75b8992012-01-27 07:53:57298 'variables': {
299 'grit_out_dir': '<(SHARED_INTERMEDIATE_DIR)/content',
300 },
301 'actions': [
302 {
303 'action_name': 'content_shell_resources',
304 'variables': {
305 'grit_grd_file': 'shell/shell_resources.grd',
306 },
307 'includes': [ '../build/grit_action.gypi' ],
308 },
309 ],
[email protected]ee75b8992012-01-27 07:53:57310 },
311 {
[email protected]81f30ce2012-01-18 22:10:33312 # We build a minimal set of resources so WebKit in content_shell has
313 # access to necessary resources.
314 'target_name': 'content_shell_pak',
315 'type': 'none',
[email protected]ee75b8992012-01-27 07:53:57316 'dependencies': [
[email protected]70019152012-12-19 11:44:19317 'browser/devtools/devtools_resources.gyp:devtools_resources',
[email protected]06c54162013-06-10 00:25:05318 'content_resources.gyp:content_resources',
[email protected]ee75b8992012-01-27 07:53:57319 'content_shell_resources',
[email protected]06c54162013-06-10 00:25:05320 '<(DEPTH)/net/net.gyp:net_resources',
321 '<(DEPTH)/ui/base/strings/ui_strings.gyp:ui_strings',
[email protected]1c0c3f42013-11-20 02:03:28322 '<(DEPTH)/ui/resources/ui_resources.gyp:ui_resources',
[email protected]d7871ac2013-07-09 21:35:41323 '<(DEPTH)/webkit/webkit_resources.gyp:webkit_resources',
324 '<(DEPTH)/webkit/webkit_resources.gyp:webkit_strings',
[email protected]ee75b8992012-01-27 07:53:57325 ],
[email protected]3df230d2013-07-03 00:44:57326 'conditions': [
327 ['OS!="android" and OS!="ios"', {
328 'dependencies': [
329 'browser/tracing/tracing_resources.gyp:tracing_resources',
330 ],
331 }],
332 ],
[email protected]81f30ce2012-01-18 22:10:33333 'variables': {
334 'repack_path': '<(DEPTH)/tools/grit/grit/format/repack.py',
335 },
336 'actions': [
337 {
338 'action_name': 'repack_content_shell_pack',
339 'variables': {
340 'pak_inputs': [
341 '<(SHARED_INTERMEDIATE_DIR)/content/content_resources.pak',
[email protected]479bea22013-07-02 21:46:06342 '<(SHARED_INTERMEDIATE_DIR)/content/browser/tracing/tracing_resources.pak',
[email protected]ee75b8992012-01-27 07:53:57343 '<(SHARED_INTERMEDIATE_DIR)/content/shell_resources.pak',
[email protected]81f30ce2012-01-18 22:10:33344 '<(SHARED_INTERMEDIATE_DIR)/net/net_resources.pak',
[email protected]c767d572012-07-27 10:55:58345 '<(SHARED_INTERMEDIATE_DIR)/ui/app_locale_settings/app_locale_settings_en-US.pak',
[email protected]a52c7312012-07-24 22:45:57346 '<(SHARED_INTERMEDIATE_DIR)/ui/ui_resources/ui_resources_100_percent.pak',
[email protected]e1c26ae2013-01-31 18:13:18347 '<(SHARED_INTERMEDIATE_DIR)/ui/ui_resources/webui_resources.pak',
[email protected]c767d572012-07-27 10:55:58348 '<(SHARED_INTERMEDIATE_DIR)/ui/ui_strings/ui_strings_en-US.pak',
[email protected]ee75b8992012-01-27 07:53:57349 '<(SHARED_INTERMEDIATE_DIR)/webkit/devtools_resources.pak',
[email protected]e5f893b2013-07-30 02:52:22350 '<(SHARED_INTERMEDIATE_DIR)/webkit/blink_resources.pak',
[email protected]30c8f542012-09-01 01:02:29351 '<(SHARED_INTERMEDIATE_DIR)/webkit/webkit_resources_100_percent.pak',
[email protected]af551a62012-07-31 16:44:03352 '<(SHARED_INTERMEDIATE_DIR)/webkit/webkit_strings_en-US.pak',
[email protected]81f30ce2012-01-18 22:10:33353 ],
[email protected]81f30ce2012-01-18 22:10:33354 },
355 'inputs': [
356 '<(repack_path)',
357 '<@(pak_inputs)',
358 ],
[email protected]81f30ce2012-01-18 22:10:33359 'action': ['python', '<(repack_path)', '<@(_outputs)',
360 '<@(pak_inputs)'],
[email protected]a08029b42012-04-25 03:18:46361 'conditions': [
362 ['OS!="android"', {
363 'outputs': [
364 '<(PRODUCT_DIR)/content_shell.pak',
365 ],
366 }, {
367 'outputs': [
368 '<(PRODUCT_DIR)/content_shell/assets/content_shell.pak',
369 ],
370 }],
371 ],
[email protected]81f30ce2012-01-18 22:10:33372 },
373 ],
374 },
375 {
[email protected]c1f87b22011-10-05 21:59:33376 'target_name': 'content_shell',
377 'type': 'executable',
[email protected]85ff16042012-03-06 23:46:34378 'mac_bundle': 1,
[email protected]c1f87b22011-10-05 21:59:33379 'variables': {
380 'chromium_code': 1,
381 },
382 'dependencies': [
383 'content_shell_lib',
[email protected]81f30ce2012-01-18 22:10:33384 'content_shell_pak',
[email protected]bb5d2d92012-10-15 07:45:42385 '../third_party/mesa/mesa.gyp:osmesa',
[email protected]331d1692013-07-25 20:40:13386 '../tools/imagediff/image_diff.gyp:image_diff',
[email protected]c1f87b22011-10-05 21:59:33387 ],
388 'include_dirs': [
389 '..',
390 ],
391 'sources': [
[email protected]711f428e2012-06-22 02:18:23392 'app/startup_helper_win.cc',
[email protected]993951d2013-05-08 21:37:02393 'shell/app/shell_main.cc',
[email protected]c1f87b22011-10-05 21:59:33394 ],
[email protected]85ff16042012-03-06 23:46:34395 'mac_bundle_resources': [
[email protected]993951d2013-05-08 21:37:02396 'shell/app/app.icns',
397 'shell/app/app-Info.plist',
[email protected]85ff16042012-03-06 23:46:34398 ],
399 # TODO(mark): Come up with a fancier way to do this. It should only
400 # be necessary to list app-Info.plist once, not the three times it is
401 # listed here.
402 'mac_bundle_resources!': [
[email protected]993951d2013-05-08 21:37:02403 'shell/app/app-Info.plist',
[email protected]85ff16042012-03-06 23:46:34404 ],
405 'xcode_settings': {
[email protected]993951d2013-05-08 21:37:02406 'INFOPLIST_FILE': 'shell/app/app-Info.plist',
[email protected]85ff16042012-03-06 23:46:34407 },
[email protected]c1f87b22011-10-05 21:59:33408 'msvs_settings': {
409 'VCLinkerTool': {
410 'SubSystem': '2', # Set /SUBSYSTEM:WINDOWS
411 },
[email protected]30624922013-06-04 10:40:10412 'VCManifestTool': {
[email protected]5d60b0b2013-07-30 20:24:30413 'AdditionalManifestFiles': [
414 'shell/app/shell.exe.manifest',
415 ],
[email protected]30624922013-06-04 10:40:10416 },
[email protected]c1f87b22011-10-05 21:59:33417 },
418 'conditions': [
419 ['OS=="win" and win_use_allocator_shim==1', {
420 'dependencies': [
421 '../base/allocator/allocator.gyp:allocator',
422 ],
423 }],
424 ['OS=="win"', {
[email protected]7fc83822012-03-30 19:53:29425 'sources': [
[email protected]993951d2013-05-08 21:37:02426 'shell/app/shell.rc',
[email protected]7fc83822012-03-30 19:53:29427 ],
[email protected]c1f87b22011-10-05 21:59:33428 'configurations': {
429 'Debug_Base': {
430 'msvs_settings': {
431 'VCLinkerTool': {
432 'LinkIncremental': '<(msvs_large_module_debug_link_mode)',
433 },
434 },
435 },
436 },
[email protected]85ff16042012-03-06 23:46:34437 }], # OS=="win"
[email protected]5d9bc782013-05-17 17:22:14438 ['OS == "win" or toolkit_uses_gtk == 1', {
[email protected]27315ce42011-10-14 01:25:12439 'dependencies': [
440 '../sandbox/sandbox.gyp:sandbox',
441 ],
[email protected]5d9bc782013-05-17 17:22:14442 }], # OS=="win" or toolkit_uses_gtk == 1
[email protected]398990892012-01-20 03:25:58443 ['toolkit_uses_gtk == 1', {
444 'dependencies': [
445 '<(DEPTH)/build/linux/system.gyp:gtk',
446 ],
[email protected]85ff16042012-03-06 23:46:34447 }], # toolkit_uses_gtk
448 ['OS=="mac"', {
449 'product_name': '<(content_shell_product_name)',
450 'dependencies!': [
451 'content_shell_lib',
452 ],
453 'dependencies': [
454 'content_shell_framework',
[email protected]180df8f2012-03-09 22:36:10455 'content_shell_helper_app',
456 ],
457 'copies': [
458 {
459 'destination': '<(PRODUCT_DIR)/<(content_shell_product_name).app/Contents/Frameworks',
460 'files': [
461 '<(PRODUCT_DIR)/<(content_shell_product_name) Helper.app',
462 ],
463 },
[email protected]85ff16042012-03-06 23:46:34464 ],
465 'postbuilds': [
466 {
467 'postbuild_name': 'Copy <(content_shell_product_name) Framework.framework',
468 'action': [
469 '../build/mac/copy_framework_unversioned.sh',
470 '${BUILT_PRODUCTS_DIR}/<(content_shell_product_name) Framework.framework',
471 '${BUILT_PRODUCTS_DIR}/${CONTENTS_FOLDER_PATH}/Frameworks',
472 ],
473 },
474 {
[email protected]85ff16042012-03-06 23:46:34475 # Modify the Info.plist as needed.
476 'postbuild_name': 'Tweak Info.plist',
477 'action': ['../build/mac/tweak_info_plist.py',
[email protected]6d302912012-11-05 21:57:28478 '--scm=1',
479 '--version=<(content_shell_version)'],
[email protected]85ff16042012-03-06 23:46:34480 },
481 {
[email protected]180df8f2012-03-09 22:36:10482 # This postbuid step is responsible for creating the following
483 # helpers:
484 #
485 # Content Shell Helper EH.app and Content Shell Helper NP.app are
486 # created from Content Shell Helper.app.
487 #
488 # The EH helper is marked for an executable heap. The NP helper
489 # is marked for no PIE (ASLR).
490 'postbuild_name': 'Make More Helpers',
491 'action': [
492 '../build/mac/make_more_helpers.sh',
493 'Frameworks',
494 '<(content_shell_product_name)',
495 ],
496 },
497 {
[email protected]85ff16042012-03-06 23:46:34498 # Make sure there isn't any Objective-C in the shell's
499 # executable.
500 'postbuild_name': 'Verify No Objective-C',
501 'action': [
502 '../build/mac/verify_no_objc.sh',
503 ],
504 },
505 ],
506 }], # OS=="mac"
[email protected]331d1692013-07-25 20:40:13507 ['OS=="android"', {
508 'dependencies!': [
509 '../tools/imagediff/image_diff.gyp:image_diff',
510 ],
511 }], # OS=="android"
512 ['OS=="android" and android_webview_build==0', {
513 'dependencies': [
514 '../tools/imagediff/image_diff.gyp:image_diff#host',
515 ],
516 }], # OS=="android" and android_webview_build==0
[email protected]c1f87b22011-10-05 21:59:33517 ],
518 },
[email protected]fe2420d2012-08-21 07:28:33519 {
520 'target_name': 'content_shell_builder',
521 'type': 'none',
522 'dependencies': [
523 'content_shell',
[email protected]fe2420d2012-08-21 07:28:33524 ],
525 },
[email protected]5629e0c2011-09-12 22:07:36526 ],
[email protected]85ff16042012-03-06 23:46:34527 'conditions': [
528 ['OS=="mac"', {
529 'targets': [
530 {
531 'target_name': 'content_shell_framework',
532 'type': 'shared_library',
533 'product_name': '<(content_shell_product_name) Framework',
534 'mac_bundle': 1,
535 'mac_bundle_resources': [
[email protected]993951d2013-05-08 21:37:02536 'shell/app/English.lproj/HttpAuth.xib',
537 'shell/app/English.lproj/MainMenu.xib',
[email protected]a7aa8ab2013-10-24 07:21:48538 '<(PRODUCT_DIR)/content_shell.pak',
539 'shell/app/framework-Info.plist',
[email protected]85ff16042012-03-06 23:46:34540 ],
[email protected]a7aa8ab2013-10-24 07:21:48541 'mac_bundle_resources!': [
542 'shell/app/framework-Info.plist',
543 ],
544 'xcode_settings': {
[email protected]6efed472013-11-01 02:09:34545 # The framework is placed within the .app's Framework
546 # directory. DYLIB_INSTALL_NAME_BASE and
547 # LD_DYLIB_INSTALL_NAME affect -install_name.
548 'DYLIB_INSTALL_NAME_BASE':
549 '@executable_path/../Frameworks',
550 # See /build/mac/copy_framework_unversioned.sh for
551 # information on LD_DYLIB_INSTALL_NAME.
552 'LD_DYLIB_INSTALL_NAME':
553 '$(DYLIB_INSTALL_NAME_BASE:standardizepath)/$(WRAPPER_NAME)/$(PRODUCT_NAME)',
554
[email protected]a7aa8ab2013-10-24 07:21:48555 'INFOPLIST_FILE': 'shell/app/framework-Info.plist',
556 },
[email protected]85ff16042012-03-06 23:46:34557 'dependencies': [
558 'content_shell_lib',
559 ],
560 'include_dirs': [
561 '..',
562 ],
563 'sources': [
[email protected]4642f5b2013-07-03 21:43:31564 'shell/app/shell_content_main.cc',
[email protected]216161f2013-07-02 16:23:20565 'shell/app/shell_content_main.h',
[email protected]85ff16042012-03-06 23:46:34566 ],
[email protected]a7aa8ab2013-10-24 07:21:48567 'postbuilds': [
568 {
569 # Modify the Info.plist as needed. The script explains why
570 # this is needed. This is also done in the chrome target.
571 # The framework needs the Breakpad keys if this feature is
572 # enabled. It does not need the Keystone keys; these always
573 # come from the outer application bundle. The framework
574 # doesn't currently use the SCM keys for anything,
575 # but this seems like a really good place to store them.
576 'postbuild_name': 'Tweak Info.plist',
577 'action': ['../build/mac/tweak_info_plist.py',
578 '--breakpad=1',
579 '--keystone=0',
580 '--scm=1',
581 '--version=<(content_shell_version)',
582 '--branding=<(content_shell_product_name)'],
583 },
584 ],
[email protected]5d96bbe2012-07-25 17:13:23585 'copies': [
586 {
587 # Copy FFmpeg binaries for audio/video support.
588 'destination': '<(PRODUCT_DIR)/$(CONTENTS_FOLDER_PATH)/Libraries',
589 'files': [
590 '<(PRODUCT_DIR)/ffmpegsumo.so',
591 ],
592 },
[email protected]a7aa8ab2013-10-24 07:21:48593 {
594 'destination': '<(PRODUCT_DIR)/$(CONTENTS_FOLDER_PATH)/Resources',
595 'files': [
596 '<(PRODUCT_DIR)/crash_inspector',
597 '<(PRODUCT_DIR)/crash_report_sender.app'
598 ],
599 },
[email protected]5d96bbe2012-07-25 17:13:23600 ],
[email protected]fda1c6c82013-04-09 16:10:12601 'conditions': [
602 ['enable_webrtc==1', {
603 'variables': {
604 'libpeer_target_type%': 'static_library',
605 },
606 'conditions': [
[email protected]e4aa290b2013-05-01 18:54:19607 ['libpeer_target_type!="static_library"', {
[email protected]fda1c6c82013-04-09 16:10:12608 'copies': [{
609 'destination': '<(PRODUCT_DIR)/$(CONTENTS_FOLDER_PATH)/Libraries',
610 'files': [
[email protected]62461b72013-05-02 12:27:12611 '<(PRODUCT_DIR)/libpeerconnection.so',
[email protected]fda1c6c82013-04-09 16:10:12612 ],
613 }],
614 }],
615 ],
616 }],
617 ],
[email protected]180df8f2012-03-09 22:36:10618 }, # target content_shell_framework
619 {
620 'target_name': 'content_shell_helper_app',
621 'type': 'executable',
622 'variables': { 'enable_wexit_time_destructors': 1, },
623 'product_name': '<(content_shell_product_name) Helper',
624 'mac_bundle': 1,
625 'dependencies': [
626 'content_shell_framework',
627 ],
628 'sources': [
[email protected]993951d2013-05-08 21:37:02629 'shell/app/shell_main.cc',
630 'shell/app/helper-Info.plist',
[email protected]180df8f2012-03-09 22:36:10631 ],
632 # TODO(mark): Come up with a fancier way to do this. It should only
633 # be necessary to list helper-Info.plist once, not the three times it
634 # is listed here.
635 'mac_bundle_resources!': [
[email protected]993951d2013-05-08 21:37:02636 'shell/app/helper-Info.plist',
[email protected]180df8f2012-03-09 22:36:10637 ],
638 # TODO(mark): For now, don't put any resources into this app. Its
639 # resources directory will be a symbolic link to the browser app's
640 # resources directory.
641 'mac_bundle_resources/': [
642 ['exclude', '.*'],
643 ],
644 'xcode_settings': {
[email protected]993951d2013-05-08 21:37:02645 'INFOPLIST_FILE': 'shell/app/helper-Info.plist',
[email protected]180df8f2012-03-09 22:36:10646 },
647 'postbuilds': [
648 {
649 # The framework defines its load-time path
650 # (DYLIB_INSTALL_NAME_BASE) relative to the main executable
651 # (chrome). A different relative path needs to be used in
652 # content_shell_helper_app.
653 'postbuild_name': 'Fix Framework Link',
654 'action': [
655 'install_name_tool',
656 '-change',
[email protected]6efed472013-11-01 02:09:34657 '@executable_path/../Frameworks/<(content_shell_product_name) Framework.framework/<(content_shell_product_name) Framework',
658 '@executable_path/../../../<(content_shell_product_name) Framework.framework/<(content_shell_product_name) Framework',
[email protected]180df8f2012-03-09 22:36:10659 '${BUILT_PRODUCTS_DIR}/${EXECUTABLE_PATH}'
660 ],
661 },
662 {
663 # Modify the Info.plist as needed. The script explains why this
664 # is needed. This is also done in the chrome and chrome_dll
[email protected]bbf52442012-08-23 22:53:18665 # targets. In this case, --breakpad=0, --keystone=0, and --scm=0
666 # are used because Breakpad, Keystone, and SCM keys are
[email protected]180df8f2012-03-09 22:36:10667 # never placed into the helper.
668 'postbuild_name': 'Tweak Info.plist',
669 'action': ['../build/mac/tweak_info_plist.py',
670 '--breakpad=0',
671 '--keystone=0',
[email protected]6d302912012-11-05 21:57:28672 '--scm=0',
673 '--version=<(content_shell_version)'],
[email protected]180df8f2012-03-09 22:36:10674 },
675 {
676 # Make sure there isn't any Objective-C in the helper app's
677 # executable.
678 'postbuild_name': 'Verify No Objective-C',
679 'action': [
680 '../build/mac/verify_no_objc.sh',
681 ],
682 },
683 ],
[email protected]ec40c38f2012-06-28 16:37:49684 'conditions': [
685 ['component=="shared_library"', {
686 'xcode_settings': {
687 'LD_RUNPATH_SEARCH_PATHS': [
688 # Get back from Content Shell.app/Contents/Frameworks/
689 # Helper.app/Contents/MacOS
690 '@loader_path/../../../../../..',
691 ],
692 },
693 }],
694 ],
[email protected]180df8f2012-03-09 22:36:10695 }, # target content_shell_helper_app
[email protected]85ff16042012-03-06 23:46:34696 ],
697 }], # OS=="mac"
[email protected]cc66d282012-03-30 11:44:06698 ['OS=="android"', {
699 'targets': [
700 {
[email protected]a08029b42012-04-25 03:18:46701 # TODO(jrg): Update this action and other jni generators to only
702 # require specifying the java directory and generate the rest.
703 'target_name': 'content_shell_jni_headers',
704 'type': 'none',
[email protected]e46f66152012-07-19 20:02:55705 'sources': [
[email protected]4d4eb5b2013-01-29 21:55:55706 'shell/android/browsertests_apk/src/org/chromium/content_browsertests_apk/ContentBrowserTestsActivity.java',
[email protected]eadcff0f2013-06-20 21:08:10707 'shell/android/java/src/org/chromium/content_shell/ShellLayoutTestUtils.java',
[email protected]e46f66152012-07-19 20:02:55708 'shell/android/java/src/org/chromium/content_shell/ShellManager.java',
709 'shell/android/java/src/org/chromium/content_shell/Shell.java',
710 ],
[email protected]029a7712013-01-15 08:11:42711 'direct_dependent_settings': {
712 'include_dirs': [
713 '<(SHARED_INTERMEDIATE_DIR)/content/shell',
714 ],
715 },
[email protected]a08029b42012-04-25 03:18:46716 'variables': {
[email protected]521cd942013-03-07 22:34:05717 'jni_gen_package': 'content/shell',
[email protected]a08029b42012-04-25 03:18:46718 },
719 'includes': [ '../build/jni_generator.gypi' ],
720 },
721 {
[email protected]c1101582012-06-25 17:07:18722 'target_name': 'libcontent_shell_content_view',
[email protected]a08029b42012-04-25 03:18:46723 'type': 'shared_library',
724 'dependencies': [
725 'content_shell_jni_headers',
726 'content_shell_lib',
727 'content_shell_pak',
728 # Skia is necessary to ensure the dependencies needed by
729 # WebContents are included.
730 '../skia/skia.gyp:skia',
731 '<(DEPTH)/media/media.gyp:player_android',
732 ],
[email protected]a08029b42012-04-25 03:18:46733 'sources': [
734 'shell/android/shell_library_loader.cc',
735 'shell/android/shell_library_loader.h',
[email protected]f83a47392012-07-12 22:15:04736 ],
[email protected]7abcaa82012-06-27 17:09:48737 'conditions': [
[email protected]d999c3cb2013-03-12 10:22:36738 ['android_webview_build==1', {
[email protected]7abcaa82012-06-27 17:09:48739 'ldflags': [
740 '-lgabi++', # For rtti
741 ],
742 }],
743 ],
[email protected]a08029b42012-04-25 03:18:46744 },
745 {
[email protected]4d4eb5b2013-01-29 21:55:55746 'target_name': 'content_shell_java',
747 'type': 'none',
748 'dependencies': [
[email protected]ba42b1e2013-10-19 22:13:17749 'content.gyp:content_java',
[email protected]4d4eb5b2013-01-29 21:55:55750 ],
751 'variables': {
[email protected]4d4eb5b2013-01-29 21:55:55752 'java_in_dir': '../content/shell/android/java',
753 'has_java_resources': 1,
754 'R_package': 'org.chromium.content_shell',
755 'R_package_relpath': 'org/chromium/content_shell',
756 },
757 'includes': [ '../build/java.gypi' ],
758 },
759 {
[email protected]319d6a82012-09-20 22:52:28760 # content_shell_apk creates a .jar as a side effect. Any java targets
761 # that need that .jar in their classpath should depend on this target,
[email protected]4d4eb5b2013-01-29 21:55:55762 # content_shell_apk_java. Dependents of content_shell_apk receive its
763 # jar path in the variable 'apk_output_jar_path'. This target should
764 # only be used by targets which instrument content_shell_apk.
765 'target_name': 'content_shell_apk_java',
[email protected]319d6a82012-09-20 22:52:28766 'type': 'none',
[email protected]319d6a82012-09-20 22:52:28767 'dependencies': [
[email protected]319d6a82012-09-20 22:52:28768 'content_shell_apk',
[email protected]319d6a82012-09-20 22:52:28769 ],
[email protected]b13f73e2013-03-27 23:31:27770 'includes': [ '../build/apk_fake_jar.gypi' ],
[email protected]319d6a82012-09-20 22:52:28771 },
[email protected]75c86a22012-09-26 03:50:37772 {
773 'target_name': 'content_shell_apk',
774 'type': 'none',
775 'dependencies': [
[email protected]ba42b1e2013-10-19 22:13:17776 'content.gyp:content_java',
[email protected]c48fece02013-06-19 12:01:42777 'content_java_test_support',
[email protected]4d4eb5b2013-01-29 21:55:55778 'content_shell_java',
779 'libcontent_shell_content_view',
[email protected]75c86a22012-09-26 03:50:37780 '../base/base.gyp:base_java',
781 '../media/media.gyp:media_java',
782 '../net/net.gyp:net_java',
[email protected]4e384052013-08-14 20:46:30783 '../tools/android/forwarder/forwarder.gyp:forwarder',
[email protected]f450287d2013-11-15 17:52:54784 '../ui/android/ui_android.gyp:ui_java',
[email protected]75c86a22012-09-26 03:50:37785 ],
786 'variables': {
[email protected]75c86a22012-09-26 03:50:37787 'apk_name': 'ContentShell',
[email protected]4d4eb5b2013-01-29 21:55:55788 'manifest_package_name': 'org.chromium.content_shell_apk',
789 'java_in_dir': 'shell/android/shell_apk',
[email protected]bd6ab3db2013-03-26 17:35:21790 'resource_dir': 'shell/android/shell_apk/res',
[email protected]e4865252013-04-04 09:15:59791 'native_lib_target': 'libcontent_shell_content_view',
[email protected]75c86a22012-09-26 03:50:37792 'additional_input_paths': ['<(PRODUCT_DIR)/content_shell/assets/content_shell.pak'],
[email protected]0437c502013-11-28 05:17:33793 'asset_location': '<(PRODUCT_DIR)/content_shell/assets',
[email protected]75c86a22012-09-26 03:50:37794 },
[email protected]5b0095b72013-08-01 17:44:22795 'conditions': [
796 ['android_webview_build==0', {
797 'dependencies': [
798 '../tools/imagediff/image_diff.gyp:image_diff#host',
799 ],
800 }],
801 ],
[email protected]75c86a22012-09-26 03:50:37802 'includes': [ '../build/java_apk.gypi' ],
803 },
[email protected]cc66d282012-03-30 11:44:06804 ],
805 }], # OS=="android"
[email protected]369205f2013-10-29 04:35:05806 ['OS=="win"', {
807 'targets': [
808 {
809 'target_name': 'content_shell_crash_service',
810 'type': 'executable',
811 'dependencies': [
812 '../base/base.gyp:base',
813 '../components/components.gyp:breakpad_crash_service',
814 ],
815 'include_dirs': [
816 '..',
817 ],
818 'sources': [
819 'shell/tools/content_shell_crash_service.cc',
820 ],
821 'msvs_settings': {
822 'VCLinkerTool': {
823 'SubSystem': '2', # Set /SUBSYSTEM:WINDOWS
824 },
825 },
826 },
827 ],
828 }], # OS=="win"
[email protected]c8250d42013-10-01 05:17:46829 ['OS=="win" and fastbuild==0 and target_arch=="ia32"', {
830 'variables': {
831 'dest_dir': '<(PRODUCT_DIR)/syzygy',
832 },
833 'targets': [
834 {
835 'target_name': 'content_shell_syzyasan',
836 'type': 'none',
837 'sources' : [],
838 # Instrument content_shell with SyzyAsan.
839 'actions': [
840 {
841 'action_name': 'Instrument content_shell with SyzyAsan',
842 'msvs_cygwin_shell': 0,
843 'inputs': [
844 '<(PRODUCT_DIR)/content_shell.exe',
845 ],
846 'outputs': [
847 '<(dest_dir)/content_shell.exe',
848 '<(dest_dir)/content_shell.exe.pdb',
849 ],
850 'action': [
851 'python',
852 '<(DEPTH)/chrome/tools/build/win/syzygy_instrument.py',
853 '--mode', 'asan',
854 '--input_executable', '<(PRODUCT_DIR)/content_shell.exe',
855 '--input_symbol', '<(PRODUCT_DIR)/content_shell.exe.pdb',
856 '--destination_dir', '<(dest_dir)',
857 ],
858 },
859 ],
860 },
861 ],
862 }], # OS=="win" and fastbuild==0 and target_arch=="ia32"
[email protected]cc66d282012-03-30 11:44:06863 ]
[email protected]5629e0c2011-09-12 22:07:36864}