blob: 872eb31e2ee52f87eef6751c2749f640a45f6373 [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]6b9028ab2014-07-23 17:15:3822 # GN version: //content/shell:content_shell_lib
[email protected]c1f87b22011-10-05 21:59:3323 'target_name': 'content_shell_lib',
24 'type': 'static_library',
[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]a9ca8d52014-08-22 10:21:0830 'app/resources/content_resources.gyp:content_resources',
[email protected]6586a2e32014-08-09 19:24:1231 'app/strings/content_strings.gyp:content_strings',
[email protected]ba42b1e2013-10-19 22:13:1732 'content.gyp:content_app_both',
33 'content.gyp:content_browser',
34 'content.gyp:content_common',
35 'content.gyp:content_gpu',
36 'content.gyp:content_plugin',
37 'content.gyp:content_ppapi_plugin',
38 'content.gyp:content_renderer',
thestigbce02672014-08-26 10:01:3439 'content.gyp:content_resources',
[email protected]ba42b1e2013-10-19 22:13:1740 'content.gyp:content_utility',
[email protected]de28fed2e2014-02-01 14:36:3241 'content_shell_resources',
42 'copy_test_netscape_plugin',
[email protected]5326cd2f2014-04-07 13:35:5843 'layouttest_support_content',
[email protected]aa6e79762011-09-29 20:53:5244 '../base/base.gyp:base',
[email protected]5326cd2f2014-04-07 13:35:5845 '../base/base.gyp:base_static',
[email protected]aa6e79762011-09-29 20:53:5246 '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations',
[email protected]38564622014-08-19 02:47:1847 '../cc/blink/cc_blink.gyp:cc_blink',
[email protected]5326cd2f2014-04-07 13:35:5848 '../cc/cc.gyp:cc',
Robert Sesekabcd8102014-08-27 16:12:4449 '../components/components.gyp:crash_component',
hanxi149b92d2014-09-11 21:57:1850 '../components/components.gyp:web_cache_renderer',
[email protected]41fba0e2014-01-16 18:19:4251 '../gin/gin.gyp:gin',
[email protected]5326cd2f2014-04-07 13:35:5852 '../gpu/gpu.gyp:gpu',
[email protected]aa6e79762011-09-29 20:53:5253 '../ipc/ipc.gyp:ipc',
acolwell9e0840d2014-09-06 19:01:3254 '../media/blink/media_blink.gyp:media_blink',
[email protected]433df472012-03-07 20:33:3955 '../media/media.gyp:media',
[email protected]aa6e79762011-09-29 20:53:5256 '../net/net.gyp:net',
[email protected]24f80692012-08-13 15:15:5057 '../net/net.gyp:net_resources',
[email protected]5629e0c2011-09-12 22:07:3658 '../skia/skia.gyp:skia',
pilgrim4af8c212014-09-05 17:30:1559 '../storage/storage_browser.gyp:storage',
[email protected]3de922f2013-12-20 13:27:3860 '../third_party/WebKit/public/blink.gyp:blink',
[email protected]95f8a142014-04-24 00:23:5861 '../third_party/WebKit/public/blink.gyp:blink_test_support',
[email protected]ed8fd9152014-03-13 10:20:3762 '../ui/base/ui_base.gyp:ui_base',
[email protected]114efae2013-11-06 20:37:5763 '../ui/events/events.gyp:events_base',
[email protected]529a3cf2013-09-30 02:47:4864 '../ui/gfx/gfx.gyp:gfx',
[email protected]b5e2d782013-12-18 21:01:1565 '../ui/gfx/gfx.gyp:gfx_geometry',
[email protected]ffff5b32014-06-25 21:31:0866 '../ui/gfx/ipc/gfx_ipc.gyp:gfx_ipc',
[email protected]8350f16f2012-11-30 00:25:3267 '../ui/gl/gl.gyp:gl',
[email protected]002cc08f2013-06-03 05:40:2968 '../url/url.gyp:url_lib',
[email protected]12bc28fcb2011-09-21 15:53:5069 '../v8/tools/gyp/v8.gyp:v8',
[email protected]5629e0c2011-09-12 22:07:3670 ],
71 'include_dirs': [
72 '..',
73 ],
74 'sources': [
[email protected]6b9028ab2014-07-23 17:15:3875 # Note: sources list duplicated in GN build.
[email protected]4d4eb5b2013-01-29 21:55:5576 'shell/android/shell_jni_registrar.cc',
77 'shell/android/shell_jni_registrar.h',
78 'shell/android/shell_manager.cc',
79 'shell/android/shell_manager.h',
[email protected]2a94e812013-07-12 15:31:0280 'shell/app/paths_mac.h',
81 'shell/app/paths_mac.mm',
[email protected]d6d06a352013-10-23 07:04:0082 'shell/app/shell_breakpad_client.cc',
83 'shell/app/shell_breakpad_client.h',
[email protected]993951d2013-05-08 21:37:0284 'shell/app/shell_main_delegate.cc',
85 'shell/app/shell_main_delegate.h',
[email protected]2a94e812013-07-12 15:31:0286 'shell/app/shell_main_delegate_mac.h',
87 'shell/app/shell_main_delegate_mac.mm',
[email protected]216161f2013-07-02 16:23:2088 'shell/app/webkit_test_platform_support_android.cc',
[email protected]de7d61ff2013-08-20 11:30:4189 'shell/app/webkit_test_platform_support.h',
[email protected]216161f2013-07-02 16:23:2090 'shell/app/webkit_test_platform_support_linux.cc',
91 'shell/app/webkit_test_platform_support_mac.mm',
92 'shell/app/webkit_test_platform_support_win.cc',
[email protected]9cd36bfb2014-08-20 00:32:0093 'shell/browser/ipc_echo_message_filter.cc',
94 'shell/browser/ipc_echo_message_filter.h',
[email protected]de7d61ff2013-08-20 11:30:4195 'shell/browser/notify_done_forwarder.cc',
96 'shell/browser/notify_done_forwarder.h',
97 'shell/browser/shell_android.cc',
98 'shell/browser/shell_application_mac.h',
99 'shell/browser/shell_application_mac.mm',
100 'shell/browser/shell_aura.cc',
101 'shell/browser/shell_browser_context.cc',
102 'shell/browser/shell_browser_context.h',
103 'shell/browser/shell_browser_main.cc',
104 'shell/browser/shell_browser_main.h',
105 'shell/browser/shell_browser_main_parts.cc',
106 'shell/browser/shell_browser_main_parts.h',
107 'shell/browser/shell_browser_main_parts_mac.mm',
108 'shell/browser/shell.cc',
109 'shell/browser/shell_content_browser_client.cc',
110 'shell/browser/shell_content_browser_client.h',
111 'shell/browser/shell_devtools_delegate.cc',
112 'shell/browser/shell_devtools_delegate.h',
113 'shell/browser/shell_devtools_frontend.cc',
114 'shell/browser/shell_devtools_frontend.h',
115 'shell/browser/shell_download_manager_delegate.cc',
116 'shell/browser/shell_download_manager_delegate.h',
[email protected]de7d61ff2013-08-20 11:30:41117 'shell/browser/shell.h',
[email protected]de7d61ff2013-08-20 11:30:41118 'shell/browser/shell_javascript_dialog.h',
119 'shell/browser/shell_javascript_dialog_mac.mm',
120 'shell/browser/shell_javascript_dialog_manager.cc',
121 'shell/browser/shell_javascript_dialog_manager.h',
122 'shell/browser/shell_javascript_dialog_win.cc',
123 'shell/browser/shell_layout_tests_android.cc',
124 'shell/browser/shell_layout_tests_android.h',
125 'shell/browser/shell_login_dialog.cc',
[email protected]de7d61ff2013-08-20 11:30:41126 'shell/browser/shell_login_dialog.h',
127 'shell/browser/shell_login_dialog_mac.mm',
128 'shell/browser/shell_mac.mm',
129 'shell/browser/shell_message_filter.cc',
130 'shell/browser/shell_message_filter.h',
131 'shell/browser/shell_net_log.cc',
132 'shell/browser/shell_net_log.h',
133 'shell/browser/shell_network_delegate.cc',
134 'shell/browser/shell_network_delegate.h',
[email protected]945babb2014-07-30 14:25:32135 'shell/browser/shell_notification_manager.cc',
136 'shell/browser/shell_notification_manager.h',
[email protected]a6591142014-01-27 19:32:26137 'shell/browser/shell_platform_data_aura.cc',
138 'shell/browser/shell_platform_data_aura.h',
[email protected]de7d61ff2013-08-20 11:30:41139 'shell/browser/shell_plugin_service_filter.cc',
140 'shell/browser/shell_plugin_service_filter.h',
141 'shell/browser/shell_quota_permission_context.cc',
142 'shell/browser/shell_quota_permission_context.h',
143 'shell/browser/shell_resource_dispatcher_host_delegate.cc',
144 'shell/browser/shell_resource_dispatcher_host_delegate.h',
[email protected]9896c552013-08-29 19:03:20145 'shell/browser/shell_speech_recognition_manager_delegate.cc',
146 'shell/browser/shell_speech_recognition_manager_delegate.h',
[email protected]de7d61ff2013-08-20 11:30:41147 'shell/browser/shell_url_request_context_getter.cc',
148 'shell/browser/shell_url_request_context_getter.h',
[email protected]a896e1e2013-10-20 19:10:30149 'shell/browser/shell_views.cc',
[email protected]de7d61ff2013-08-20 11:30:41150 'shell/browser/shell_web_contents_view_delegate_android.cc',
151 'shell/browser/shell_web_contents_view_delegate_creator.h',
[email protected]de7d61ff2013-08-20 11:30:41152 'shell/browser/shell_web_contents_view_delegate.h',
153 'shell/browser/shell_web_contents_view_delegate_mac.mm',
154 'shell/browser/shell_web_contents_view_delegate_win.cc',
[email protected]de7d61ff2013-08-20 11:30:41155 'shell/browser/webkit_test_controller.cc',
156 'shell/browser/webkit_test_controller.h',
[email protected]4562cf72014-01-27 10:10:13157 'shell/common/leak_detection_result.h',
[email protected]b7c504c2013-05-07 14:42:12158 'shell/common/shell_content_client.cc',
159 'shell/common/shell_content_client.h',
160 'shell/common/shell_messages.cc',
161 'shell/common/shell_messages.h',
162 'shell/common/shell_switches.cc',
163 'shell/common/shell_switches.h',
164 'shell/common/shell_test_configuration.cc',
165 'shell/common/shell_test_configuration.h',
[email protected]1f70cfa42014-04-04 21:35:01166 'shell/common/test_runner/test_preferences.cc',
167 'shell/common/test_runner/test_preferences.h',
[email protected]b7c504c2013-05-07 14:42:12168 'shell/common/webkit_test_helpers.cc',
169 'shell/common/webkit_test_helpers.h',
[email protected]6cfccd12012-06-28 12:14:05170 'shell/geolocation/shell_access_token_store.cc',
171 'shell/geolocation/shell_access_token_store.h',
[email protected]41fba0e2014-01-16 18:19:42172 'shell/renderer/gc_controller.cc',
173 'shell/renderer/gc_controller.h',
[email protected]9cd36bfb2014-08-20 00:32:00174 'shell/renderer/ipc_echo.cc',
175 'shell/renderer/ipc_echo.h',
[email protected]4562cf72014-01-27 10:10:13176 'shell/renderer/leak_detector.cc',
177 'shell/renderer/leak_detector.h',
[email protected]f7a4e3b92013-05-03 15:29:58178 'shell/renderer/shell_content_renderer_client.cc',
179 'shell/renderer/shell_content_renderer_client.h',
[email protected]a86c0e962013-12-17 17:10:39180 'shell/renderer/shell_render_frame_observer.cc',
181 'shell/renderer/shell_render_frame_observer.h',
[email protected]f7a4e3b92013-05-03 15:29:58182 'shell/renderer/shell_render_process_observer.cc',
183 'shell/renderer/shell_render_process_observer.h',
[email protected]81914ad2013-07-02 18:54:25184 'shell/renderer/shell_render_view_observer.cc',
185 'shell/renderer/shell_render_view_observer.h',
[email protected]3de922f2013-12-20 13:27:38186 'shell/renderer/test_runner/WebTask.cpp',
187 'shell/renderer/test_runner/WebTask.h',
188 'shell/renderer/test_runner/WebTestDelegate.h',
189 'shell/renderer/test_runner/WebTestInterfaces.cpp',
190 'shell/renderer/test_runner/WebTestInterfaces.h',
[email protected]fa6a8f42014-03-06 14:20:18191 'shell/renderer/test_runner/accessibility_controller.cc',
192 'shell/renderer/test_runner/accessibility_controller.h',
[email protected]3db130e2014-03-27 08:14:48193 'shell/renderer/test_runner/event_sender.cc',
194 'shell/renderer/test_runner/event_sender.h',
[email protected]cf786002014-02-11 02:05:54195 'shell/renderer/test_runner/gamepad_controller.cc',
196 'shell/renderer/test_runner/gamepad_controller.h',
[email protected]27821fa2014-07-22 16:03:57197 'shell/renderer/test_runner/mock_color_chooser.cc',
198 'shell/renderer/test_runner/mock_color_chooser.h',
[email protected]35c3197b2014-05-22 18:12:39199 'shell/renderer/test_runner/mock_constraints.cc',
200 'shell/renderer/test_runner/mock_constraints.h',
[email protected]f82478792014-05-14 17:50:57201 'shell/renderer/test_runner/mock_grammar_check.cc',
202 'shell/renderer/test_runner/mock_grammar_check.h',
[email protected]a2ca0032014-06-27 02:28:08203 'shell/renderer/test_runner/mock_screen_orientation_client.cc',
204 'shell/renderer/test_runner/mock_screen_orientation_client.h',
[email protected]f656a652014-07-25 12:19:52205 'shell/renderer/test_runner/mock_spell_check.cc',
206 'shell/renderer/test_runner/mock_spell_check.h',
[email protected]5d6534d2014-06-06 13:21:32207 'shell/renderer/test_runner/mock_web_audio_device.cc',
208 'shell/renderer/test_runner/mock_web_audio_device.h',
[email protected]85afb6c2014-07-29 02:43:36209 'shell/renderer/test_runner/mock_web_media_stream_center.cc',
210 'shell/renderer/test_runner/mock_web_media_stream_center.h',
[email protected]6b950c32014-07-28 14:35:43211 'shell/renderer/test_runner/mock_web_midi_accessor.cc',
212 'shell/renderer/test_runner/mock_web_midi_accessor.h',
[email protected]150f2152014-06-16 12:27:23213 'shell/renderer/test_runner/mock_web_push_client.cc',
214 'shell/renderer/test_runner/mock_web_push_client.h',
[email protected]ca35ef02014-07-31 11:46:49215 'shell/renderer/test_runner/mock_web_speech_recognizer.cc',
216 'shell/renderer/test_runner/mock_web_speech_recognizer.h',
[email protected]dec09852014-07-19 21:07:52217 'shell/renderer/test_runner/mock_web_theme_engine.cc',
218 'shell/renderer/test_runner/mock_web_theme_engine.h',
[email protected]c92e06462014-07-26 21:24:22219 'shell/renderer/test_runner/mock_web_theme_engine_mac.h',
220 'shell/renderer/test_runner/mock_web_theme_engine_mac.mm',
[email protected]7948a422014-06-02 05:43:02221 'shell/renderer/test_runner/mock_web_user_media_client.cc',
222 'shell/renderer/test_runner/mock_web_user_media_client.h',
[email protected]edffa7a2014-05-31 04:27:11223 'shell/renderer/test_runner/mock_webrtc_data_channel_handler.cc',
224 'shell/renderer/test_runner/mock_webrtc_data_channel_handler.h',
[email protected]358847f2014-06-04 13:29:14225 'shell/renderer/test_runner/mock_webrtc_dtmf_sender_handler.cc',
226 'shell/renderer/test_runner/mock_webrtc_dtmf_sender_handler.h',
[email protected]af605832014-06-05 15:09:08227 'shell/renderer/test_runner/mock_webrtc_peer_connection_handler.cc',
228 'shell/renderer/test_runner/mock_webrtc_peer_connection_handler.h',
[email protected]dc0a9762014-02-28 18:41:54229 'shell/renderer/test_runner/notification_presenter.cc',
230 'shell/renderer/test_runner/notification_presenter.h',
[email protected]b38c8f312014-08-01 23:21:37231 'shell/renderer/test_runner/spell_check_client.cc',
232 'shell/renderer/test_runner/spell_check_client.h',
[email protected]f5b1ad882014-08-05 16:30:41233 'shell/renderer/test_runner/test_common.cc',
234 'shell/renderer/test_runner/test_common.h',
[email protected]8ed8bf432014-08-11 19:47:55235 'shell/renderer/test_runner/test_interfaces.cc',
236 'shell/renderer/test_runner/test_interfaces.h',
abhishek.a21dd9554f2014-09-03 17:19:12237 'shell/renderer/test_runner/test_plugin.cc',
238 'shell/renderer/test_runner/test_plugin.h',
[email protected]97f9a7952014-03-14 11:50:33239 'shell/renderer/test_runner/test_runner.cc',
240 'shell/renderer/test_runner/test_runner.h',
[email protected]f751653a92014-02-18 16:32:55241 'shell/renderer/test_runner/text_input_controller.cc',
242 'shell/renderer/test_runner/text_input_controller.h',
[email protected]fa6a8f42014-03-06 14:20:18243 'shell/renderer/test_runner/web_ax_object_proxy.cc',
244 'shell/renderer/test_runner/web_ax_object_proxy.h',
[email protected]a1640e42014-05-14 13:43:32245 'shell/renderer/test_runner/web_frame_test_proxy.h',
[email protected]111f14f2014-06-18 08:24:06246 'shell/renderer/test_runner/web_permissions.cc',
247 'shell/renderer/test_runner/web_permissions.h',
[email protected]a1640e42014-05-14 13:43:32248 'shell/renderer/test_runner/web_test_proxy.cc',
249 'shell/renderer/test_runner/web_test_proxy.h',
[email protected]8deba6ca2014-05-26 16:37:03250 'shell/renderer/test_runner/web_test_runner.h',
[email protected]f7a4e3b92013-05-03 15:29:58251 'shell/renderer/webkit_test_runner.cc',
252 'shell/renderer/webkit_test_runner.h',
[email protected]5629e0c2011-09-12 22:07:36253 ],
254 'msvs_settings': {
255 'VCLinkerTool': {
256 'SubSystem': '2', # Set /SUBSYSTEM:WINDOWS
257 },
258 },
259 'conditions': [
260 ['OS=="win" and win_use_allocator_shim==1', {
261 'dependencies': [
262 '../base/allocator/allocator.gyp:allocator',
263 ],
264 }],
[email protected]9fbd3f862011-09-20 23:31:34265 ['OS=="win"', {
266 'resource_include_dirs': [
[email protected]6586a2e32014-08-09 19:24:12267 '<(SHARED_INTERMEDIATE_DIR)/content/app/strings',
[email protected]9fbd3f862011-09-20 23:31:34268 ],
[email protected]9fbd3f862011-09-20 23:31:34269 'dependencies': [
[email protected]6586a2e32014-08-09 19:24:12270 '<(DEPTH)/content/app/strings/content_strings.gyp:content_strings',
[email protected]9fbd3f862011-09-20 23:31:34271 ],
272 'configurations': {
273 'Debug_Base': {
274 'msvs_settings': {
275 'VCLinkerTool': {
276 'LinkIncremental': '<(msvs_large_module_debug_link_mode)',
277 },
278 },
279 },
280 },
[email protected]3bed5302013-02-15 19:31:41281 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
282 'msvs_disabled_warnings': [ 4267, ],
[email protected]85ff16042012-03-06 23:46:34283 }], # OS=="win"
[email protected]6eb6bb62012-11-10 06:30:59284 ['OS=="linux"', {
285 'dependencies': [
286 '../build/linux/system.gyp:fontconfig',
287 ],
288 }],
[email protected]6b911a32014-01-10 02:34:53289 ['use_x11 == 1', {
290 'dependencies': [
291 '../tools/xdisplaycheck/xdisplaycheck.gyp:xdisplaycheck',
292 ],
293 }],
[email protected]689266d2012-08-07 12:52:20294 ['OS=="android"', {
[email protected]82e9e2b12012-07-19 00:32:01295 'dependencies': [
296 'content_shell_jni_headers',
297 ],
[email protected]6b911a32014-01-10 02:34:53298 'dependencies!': [
[email protected]de28fed2e2014-02-01 14:36:32299 'copy_test_netscape_plugin',
[email protected]6b911a32014-01-10 02:34:53300 ],
[email protected]82e9e2b12012-07-19 00:32:01301 }], # OS=="android"
[email protected]a7aa8ab2013-10-24 07:21:48302 ['os_posix == 1 and OS != "mac" and android_webview_build != 1', {
303 'dependencies': [
304 '../components/components.gyp:breakpad_host',
305 ],
306 }],
[email protected]2fa89ef2014-05-07 18:45:59307 ['(OS=="linux" or OS=="android") and use_allocator!="none"', {
[email protected]c767d572012-07-27 10:55:58308 'dependencies': [
309 # This is needed by content/app/content_main_runner.cc
310 '../base/allocator/allocator.gyp:allocator',
311 ],
312 }],
[email protected]fa4a45832012-04-12 21:32:48313 ['use_aura==1', {
[email protected]c767d572012-07-27 10:55:58314 'dependencies': [
315 '../ui/aura/aura.gyp:aura',
[email protected]72fed232014-04-07 20:21:46316 '../ui/aura/aura.gyp:aura_test_support',
[email protected]72fed232014-04-07 20:21:46317 '../ui/events/events.gyp:events',
[email protected]e3d74862014-05-18 14:12:27318 '../ui/strings/ui_strings.gyp:ui_strings',
[email protected]884dac5b2014-04-30 15:10:10319 '../ui/wm/wm.gyp:wm',
[email protected]c767d572012-07-27 10:55:58320 ],
[email protected]a896e1e2013-10-20 19:10:30321 'conditions': [
322 ['toolkit_views==1', {
323 'dependencies': [
[email protected]dae78442013-11-26 16:57:02324 '../ui/resources/ui_resources.gyp:ui_resources',
[email protected]a896e1e2013-10-20 19:10:30325 '../ui/views/controls/webview/webview.gyp:webview',
326 '../ui/views/views.gyp:views',
327 '../ui/views/views.gyp:views_test_support',
[email protected]a896e1e2013-10-20 19:10:30328 ],
329 'sources/': [
330 ['exclude', 'shell/browser/shell_aura.cc'],
331 ],
332 }, {
333 'sources/': [
334 ['exclude', 'shell/browser/shell_views.cc'],
335 ],
336 }],
337 ],
338 }, {
339 'sources/': [
340 ['exclude', 'shell/browser/shell_aura.cc'],
341 ['exclude', 'shell/browser/shell_views.cc'],
342 ],
[email protected]96b80b472012-07-03 19:41:56343 }], # use_aura==1
[email protected]6b911a32014-01-10 02:34:53344 # The test plugin relies on X11.
345 ['OS=="linux" and use_x11==0', {
346 'dependencies!': [
[email protected]de28fed2e2014-02-01 14:36:32347 'copy_test_netscape_plugin',
[email protected]6b911a32014-01-10 02:34:53348 ],
349 }],
[email protected]c767d572012-07-27 10:55:58350 ['chromeos==1', {
351 'dependencies': [
352 '../chromeos/chromeos.gyp:chromeos',
[email protected]de6831b2013-11-16 01:04:30353 '../ui/wm/wm.gyp:wm_test_support',
[email protected]c767d572012-07-27 10:55:58354 ],
355 }], # chromeos==1
[email protected]929246a2013-02-28 13:55:20356 ['use_custom_freetype==1', {
357 'dependencies': [
358 '../third_party/freetype2/freetype2.gyp:freetype2',
359 ],
360 }],
[email protected]dfb9360192013-05-27 09:42:34361 ['enable_plugins==0', {
[email protected]6b9028ab2014-07-23 17:15:38362 'sources!': [
363 'shell/browser/shell_plugin_service_filter.cc',
364 'shell/browser/shell_plugin_service_filter.h',
[email protected]dfb9360192013-05-27 09:42:34365 ],
366 }]
[email protected]5629e0c2011-09-12 22:07:36367 ],
368 },
[email protected]c1f87b22011-10-05 21:59:33369 {
[email protected]6b9028ab2014-07-23 17:15:38370 # GN version: //content/shell:resources
[email protected]ee75b8992012-01-27 07:53:57371 'target_name': 'content_shell_resources',
372 'type': 'none',
[email protected]b581eb402012-03-09 01:31:46373 'variables': {
374 'grit_out_dir': '<(SHARED_INTERMEDIATE_DIR)/content',
375 },
[email protected]5c94e992014-05-11 14:22:06376 'actions': [
377 {
378 'action_name': 'generate_content_shell_resources',
379 'variables': {
380 'grit_grd_file': 'shell/shell_resources.grd',
381 },
382 'includes': [ '../build/grit_action.gypi' ],
383 },
384 ],
[email protected]b581eb402012-03-09 01:31:46385 'includes': [ '../build/grit_target.gypi' ],
386 'copies': [
387 {
388 'destination': '<(PRODUCT_DIR)',
389 'files': [
390 '<(SHARED_INTERMEDIATE_DIR)/content/shell_resources.pak'
391 ],
392 },
393 ],
[email protected]6b911a32014-01-10 02:34:53394 'conditions': [
395 ['OS=="win"', {
396 'copies': [{
397 'destination': '<(PRODUCT_DIR)',
398 'files': ['shell/renderer/test_runner/resources/fonts/AHEM____.TTF'],
399 }],
400 }],
401 ['OS=="mac"', {
402 'all_dependent_settings': {
403 'mac_bundle_resources': [
404 'shell/renderer/test_runner/resources/fonts/AHEM____.TTF',
[email protected]24687802014-03-20 22:04:47405 'shell/renderer/test_runner/resources/fonts/ChromiumAATTest.ttf',
[email protected]6b911a32014-01-10 02:34:53406 '<(SHARED_INTERMEDIATE_DIR)/webkit/missingImage.png',
407 '<(SHARED_INTERMEDIATE_DIR)/webkit/textAreaResizeCorner.png',
408 ],
409 },
410 }],
411 ['use_x11 == 1', {
412 'copies': [{
413 'destination': '<(PRODUCT_DIR)',
414 'files': [
415 'shell/renderer/test_runner/resources/fonts/AHEM____.TTF',
416 'shell/renderer/test_runner/resources/fonts/fonts.conf',
[email protected]209984992014-07-08 13:32:09417 '../third_party/gardiner_mod/GardinerModBug.ttf',
418 '../third_party/gardiner_mod/GardinerModCat.ttf',
[email protected]6b911a32014-01-10 02:34:53419 ]
420 }],
421 }],
422 ['OS=="android"', {
423 'copies': [{
424 'destination': '<(PRODUCT_DIR)',
425 'files': [
426 'shell/renderer/test_runner/resources/fonts/AHEM____.TTF',
427 'shell/renderer/test_runner/resources/fonts/android_main_fonts.xml',
428 'shell/renderer/test_runner/resources/fonts/android_fallback_fonts.xml',
429 ]
430 }],
431 }],
432 ],
[email protected]4cb792f42012-03-24 03:12:42433 },
434 {
[email protected]81f30ce2012-01-18 22:10:33435 # We build a minimal set of resources so WebKit in content_shell has
436 # access to necessary resources.
[email protected]6b9028ab2014-07-23 17:15:38437 # GN version: //content/shell:pak
[email protected]81f30ce2012-01-18 22:10:33438 'target_name': 'content_shell_pak',
439 'type': 'none',
[email protected]ee75b8992012-01-27 07:53:57440 'dependencies': [
[email protected]a9ca8d52014-08-22 10:21:08441 'app/resources/content_resources.gyp:content_resources',
[email protected]6586a2e32014-08-09 19:24:12442 'app/strings/content_strings.gyp:content_strings',
[email protected]6b9028ab2014-07-23 17:15:38443 'browser/tracing/tracing_resources.gyp:tracing_resources',
thestigbce02672014-08-26 10:01:34444 'content.gyp:content_resources',
[email protected]ee75b8992012-01-27 07:53:57445 'content_shell_resources',
[email protected]06c54162013-06-10 00:25:05446 '<(DEPTH)/net/net.gyp:net_resources',
[email protected]1400d1d2014-07-25 07:49:59447 '<(DEPTH)/third_party/WebKit/public/blink_resources.gyp:blink_resources',
[email protected]1c0c3f42013-11-20 02:03:28448 '<(DEPTH)/ui/resources/ui_resources.gyp:ui_resources',
[email protected]e3d74862014-05-18 14:12:27449 '<(DEPTH)/ui/strings/ui_strings.gyp:ui_strings',
[email protected]ee75b8992012-01-27 07:53:57450 ],
[email protected]3df230d2013-07-03 00:44:57451 'conditions': [
[email protected]8dffd2c2013-12-02 14:14:38452 ['OS!="android"', {
453 'dependencies': [
454 'browser/devtools/devtools_resources.gyp:devtools_resources',
455 ],
456 }],
vivek.vge136a8652014-09-05 10:51:28457 ['OS=="android"', {
458 'copies': [
459 {
460 'destination': '<(PRODUCT_DIR)',
461 'files': [
462 '<(PRODUCT_DIR)/content_shell/assets/content_shell.pak'
463 ],
464 },
465 ],
466 }],
[email protected]3df230d2013-07-03 00:44:57467 ],
[email protected]81f30ce2012-01-18 22:10:33468 'actions': [
469 {
470 'action_name': 'repack_content_shell_pack',
471 'variables': {
472 'pak_inputs': [
[email protected]1400d1d2014-07-25 07:49:59473 '<(SHARED_INTERMEDIATE_DIR)/blink/public/resources/blink_resources.pak',
[email protected]a9ca8d52014-08-22 10:21:08474 '<(SHARED_INTERMEDIATE_DIR)/content/app/resources/content_resources_100_percent.pak',
[email protected]6586a2e32014-08-09 19:24:12475 '<(SHARED_INTERMEDIATE_DIR)/content/app/strings/content_strings_en-US.pak',
[email protected]479bea22013-07-02 21:46:06476 '<(SHARED_INTERMEDIATE_DIR)/content/browser/tracing/tracing_resources.pak',
[email protected]1400d1d2014-07-25 07:49:59477 '<(SHARED_INTERMEDIATE_DIR)/content/content_resources.pak',
[email protected]ee75b8992012-01-27 07:53:57478 '<(SHARED_INTERMEDIATE_DIR)/content/shell_resources.pak',
[email protected]81f30ce2012-01-18 22:10:33479 '<(SHARED_INTERMEDIATE_DIR)/net/net_resources.pak',
[email protected]a3c134352014-07-11 19:23:19480 '<(SHARED_INTERMEDIATE_DIR)/ui/resources/ui_resources_100_percent.pak',
481 '<(SHARED_INTERMEDIATE_DIR)/ui/resources/webui_resources.pak',
[email protected]d2329222014-07-18 07:14:22482 '<(SHARED_INTERMEDIATE_DIR)/ui/strings/app_locale_settings_en-US.pak',
[email protected]a3c134352014-07-11 19:23:19483 '<(SHARED_INTERMEDIATE_DIR)/ui/strings/ui_strings_en-US.pak',
[email protected]81f30ce2012-01-18 22:10:33484 ],
[email protected]01bdc9202014-03-28 21:11:20485 'conditions': [
486 ['OS!="android"', {
[email protected]4ede5b412014-04-09 13:08:02487 'pak_inputs': ['<(SHARED_INTERMEDIATE_DIR)/webkit/devtools_resources.pak',],
[email protected]01bdc9202014-03-28 21:11:20488 'pak_output': '<(PRODUCT_DIR)/content_shell.pak',
489 }, {
490 'pak_output': '<(PRODUCT_DIR)/content_shell/assets/content_shell.pak',
491 }],
492 ],
[email protected]81f30ce2012-01-18 22:10:33493 },
[email protected]01bdc9202014-03-28 21:11:20494 'includes': [ '../build/repack_action.gypi' ],
[email protected]81f30ce2012-01-18 22:10:33495 },
496 ],
497 },
498 {
[email protected]6b9028ab2014-07-23 17:15:38499 # GN version: //content/shell:content_shell
[email protected]c1f87b22011-10-05 21:59:33500 'target_name': 'content_shell',
501 'type': 'executable',
[email protected]85ff16042012-03-06 23:46:34502 'mac_bundle': 1,
[email protected]c1f87b22011-10-05 21:59:33503 'variables': {
504 'chromium_code': 1,
505 },
506 'dependencies': [
507 'content_shell_lib',
[email protected]81f30ce2012-01-18 22:10:33508 'content_shell_pak',
[email protected]bb5d2d92012-10-15 07:45:42509 '../third_party/mesa/mesa.gyp:osmesa',
[email protected]331d1692013-07-25 20:40:13510 '../tools/imagediff/image_diff.gyp:image_diff',
[email protected]c1f87b22011-10-05 21:59:33511 ],
512 'include_dirs': [
513 '..',
514 ],
515 'sources': [
[email protected]993951d2013-05-08 21:37:02516 'shell/app/shell_main.cc',
[email protected]c1f87b22011-10-05 21:59:33517 ],
[email protected]85ff16042012-03-06 23:46:34518 'mac_bundle_resources': [
[email protected]993951d2013-05-08 21:37:02519 'shell/app/app.icns',
520 'shell/app/app-Info.plist',
[email protected]85ff16042012-03-06 23:46:34521 ],
522 # TODO(mark): Come up with a fancier way to do this. It should only
523 # be necessary to list app-Info.plist once, not the three times it is
524 # listed here.
525 'mac_bundle_resources!': [
[email protected]993951d2013-05-08 21:37:02526 'shell/app/app-Info.plist',
[email protected]85ff16042012-03-06 23:46:34527 ],
528 'xcode_settings': {
[email protected]993951d2013-05-08 21:37:02529 'INFOPLIST_FILE': 'shell/app/app-Info.plist',
[email protected]85ff16042012-03-06 23:46:34530 },
[email protected]c1f87b22011-10-05 21:59:33531 'msvs_settings': {
[email protected]30624922013-06-04 10:40:10532 'VCManifestTool': {
[email protected]5d60b0b2013-07-30 20:24:30533 'AdditionalManifestFiles': [
534 'shell/app/shell.exe.manifest',
535 ],
[email protected]30624922013-06-04 10:40:10536 },
[email protected]c1f87b22011-10-05 21:59:33537 },
538 'conditions': [
539 ['OS=="win" and win_use_allocator_shim==1', {
540 'dependencies': [
541 '../base/allocator/allocator.gyp:allocator',
542 ],
543 }],
544 ['OS=="win"', {
[email protected]7fc83822012-03-30 19:53:29545 'sources': [
[email protected]993951d2013-05-08 21:37:02546 'shell/app/shell.rc',
[email protected]7fc83822012-03-30 19:53:29547 ],
[email protected]c1f87b22011-10-05 21:59:33548 'configurations': {
549 'Debug_Base': {
550 'msvs_settings': {
551 'VCLinkerTool': {
552 'LinkIncremental': '<(msvs_large_module_debug_link_mode)',
553 },
554 },
555 },
556 },
[email protected]85ff16042012-03-06 23:46:34557 }], # OS=="win"
[email protected]c997bc42014-04-11 18:25:58558 ['OS == "win"', {
[email protected]27315ce42011-10-14 01:25:12559 'dependencies': [
560 '../sandbox/sandbox.gyp:sandbox',
561 ],
[email protected]c997bc42014-04-11 18:25:58562 }], # OS=="win"
[email protected]78539df2014-07-16 22:34:22563 ['OS=="win" and asan==0', {
564 'msvs_settings': {
565 'VCLinkerTool': {
566 'SubSystem': '2', # Set /SUBSYSTEM:WINDOWS
567 },
568 },
569 }], # OS=="win" and asan==0
[email protected]85ff16042012-03-06 23:46:34570 ['OS=="mac"', {
571 'product_name': '<(content_shell_product_name)',
572 'dependencies!': [
573 'content_shell_lib',
574 ],
575 'dependencies': [
576 'content_shell_framework',
[email protected]180df8f2012-03-09 22:36:10577 'content_shell_helper_app',
578 ],
579 'copies': [
580 {
581 'destination': '<(PRODUCT_DIR)/<(content_shell_product_name).app/Contents/Frameworks',
582 'files': [
583 '<(PRODUCT_DIR)/<(content_shell_product_name) Helper.app',
584 ],
585 },
[email protected]85ff16042012-03-06 23:46:34586 ],
587 'postbuilds': [
588 {
589 'postbuild_name': 'Copy <(content_shell_product_name) Framework.framework',
590 'action': [
591 '../build/mac/copy_framework_unversioned.sh',
592 '${BUILT_PRODUCTS_DIR}/<(content_shell_product_name) Framework.framework',
593 '${BUILT_PRODUCTS_DIR}/${CONTENTS_FOLDER_PATH}/Frameworks',
594 ],
595 },
596 {
[email protected]85ff16042012-03-06 23:46:34597 # Modify the Info.plist as needed.
598 'postbuild_name': 'Tweak Info.plist',
599 'action': ['../build/mac/tweak_info_plist.py',
[email protected]6d302912012-11-05 21:57:28600 '--scm=1',
601 '--version=<(content_shell_version)'],
[email protected]85ff16042012-03-06 23:46:34602 },
603 {
[email protected]180df8f2012-03-09 22:36:10604 # This postbuid step is responsible for creating the following
605 # helpers:
606 #
607 # Content Shell Helper EH.app and Content Shell Helper NP.app are
608 # created from Content Shell Helper.app.
609 #
610 # The EH helper is marked for an executable heap. The NP helper
611 # is marked for no PIE (ASLR).
612 'postbuild_name': 'Make More Helpers',
613 'action': [
614 '../build/mac/make_more_helpers.sh',
615 'Frameworks',
616 '<(content_shell_product_name)',
617 ],
618 },
619 {
[email protected]85ff16042012-03-06 23:46:34620 # Make sure there isn't any Objective-C in the shell's
621 # executable.
622 'postbuild_name': 'Verify No Objective-C',
623 'action': [
624 '../build/mac/verify_no_objc.sh',
625 ],
626 },
627 ],
628 }], # OS=="mac"
[email protected]331d1692013-07-25 20:40:13629 ['OS=="android"', {
630 'dependencies!': [
631 '../tools/imagediff/image_diff.gyp:image_diff',
632 ],
633 }], # OS=="android"
634 ['OS=="android" and android_webview_build==0', {
635 'dependencies': [
636 '../tools/imagediff/image_diff.gyp:image_diff#host',
637 ],
638 }], # OS=="android" and android_webview_build==0
[email protected]c1f87b22011-10-05 21:59:33639 ],
640 },
[email protected]fe2420d2012-08-21 07:28:33641 {
642 'target_name': 'content_shell_builder',
643 'type': 'none',
644 'dependencies': [
645 'content_shell',
[email protected]fe2420d2012-08-21 07:28:33646 ],
647 },
[email protected]9f3ecf42014-05-07 18:21:06648
[email protected]de28fed2e2014-02-01 14:36:32649 {
650 'target_name': 'test_netscape_plugin',
651 'type': 'loadable_module',
652 'sources': [
653 'shell/tools/plugin/PluginObject.cpp',
654 'shell/tools/plugin/PluginObject.h',
655 'shell/tools/plugin/PluginObjectMac.mm',
656 'shell/tools/plugin/PluginTest.cpp',
657 'shell/tools/plugin/PluginTest.h',
658 'shell/tools/plugin/TestObject.cpp',
[email protected]de28fed2e2014-02-01 14:36:32659 'shell/tools/plugin/Tests/DocumentOpenInDestroyStream.cpp',
660 'shell/tools/plugin/Tests/EvaluateJSAfterRemovingPluginElement.cpp',
661 'shell/tools/plugin/Tests/FormValue.cpp',
662 'shell/tools/plugin/Tests/GetURLNotifyWithURLThatFailsToLoad.cpp',
663 'shell/tools/plugin/Tests/GetURLWithJavaScriptURL.cpp',
664 'shell/tools/plugin/Tests/GetURLWithJavaScriptURLDestroyingPlugin.cpp',
665 'shell/tools/plugin/Tests/GetUserAgentWithNullNPPFromNPPNew.cpp',
666 'shell/tools/plugin/Tests/LeakWindowScriptableObject.cpp',
667 'shell/tools/plugin/Tests/LogNPPSetWindow.cpp',
668 'shell/tools/plugin/Tests/NPDeallocateCalledBeforeNPShutdown.cpp',
669 'shell/tools/plugin/Tests/NPPNewFails.cpp',
670 'shell/tools/plugin/Tests/NPRuntimeCallsWithNullNPP.cpp',
671 'shell/tools/plugin/Tests/NPRuntimeObjectFromDestroyedPlugin.cpp',
672 'shell/tools/plugin/Tests/NPRuntimeRemoveProperty.cpp',
673 'shell/tools/plugin/Tests/NullNPPGetValuePointer.cpp',
674 'shell/tools/plugin/Tests/PassDifferentNPPStruct.cpp',
675 'shell/tools/plugin/Tests/PluginScriptableNPObjectInvokeDefault.cpp',
676 'shell/tools/plugin/Tests/PluginScriptableObjectOverridesAllProperties.cpp',
677 'shell/tools/plugin/main.cpp',
[email protected]0516a592014-02-13 00:10:04678 'shell/tools/plugin/test_object.h',
[email protected]de28fed2e2014-02-01 14:36:32679 ],
680 'include_dirs': [
681 '<(DEPTH)',
682 '<(DEPTH)/content/shell/tools/plugin/',
683 ],
684 'dependencies': [
685 '../base/base.gyp:base',
686 '../third_party/npapi/npapi.gyp:npapi',
687 ],
688 'conditions': [
689 ['OS=="mac"', {
690 'mac_bundle': 1,
691 'product_extension': 'plugin',
692 'link_settings': {
693 'libraries': [
694 '$(SDKROOT)/System/Library/Frameworks/Carbon.framework',
695 '$(SDKROOT)/System/Library/Frameworks/Cocoa.framework',
696 '$(SDKROOT)/System/Library/Frameworks/QuartzCore.framework',
697 ]
698 },
699 'xcode_settings': {
700 'GCC_SYMBOLS_PRIVATE_EXTERN': 'NO',
701 'INFOPLIST_FILE': 'shell/tools/plugin/mac/Info.plist',
702 },
703 }],
704 ['os_posix == 1 and OS != "mac"', {
705 'cflags': [
706 '-fvisibility=default',
707 ],
708 }],
709 ['OS=="win"', {
710 'defines': [
711 # This seems like a hack, but this is what Safari Win does.
712 'snprintf=_snprintf',
713 ],
714 'sources': [
715 'shell/tools/plugin/win/TestNetscapePlugin.def',
716 'shell/tools/plugin/win/TestNetscapePlugin.rc',
717 ],
718 # The .rc file requires that the name of the dll is np_test_netscape_plugin.dll.
719 'product_name': 'np_test_netscape_plugin',
720 # Disable c4267 warnings until we fix size_t to int truncations.
721 'msvs_disabled_warnings': [ 4267, ],
722 }],
723 ],
724 },
725 {
726 'target_name': 'copy_test_netscape_plugin',
727 'type': 'none',
728 'dependencies': [
729 'test_netscape_plugin',
730 ],
731 'conditions': [
732 ['OS=="win"', {
733 'copies': [{
734 'destination': '<(PRODUCT_DIR)/plugins',
735 'files': ['<(PRODUCT_DIR)/np_test_netscape_plugin.dll'],
736 }],
737 }],
738 ['OS=="mac"', {
739 'copies': [{
740 'destination': '<(PRODUCT_DIR)/plugins/',
741 'files': ['<(PRODUCT_DIR)/test_netscape_plugin.plugin/'],
742 }],
743 }],
744 ['os_posix == 1 and OS != "mac"', {
745 'copies': [{
746 'destination': '<(PRODUCT_DIR)/plugins',
747 'files': ['<(PRODUCT_DIR)/libtest_netscape_plugin.so'],
748 }],
749 }],
750 ],
751 }
[email protected]5629e0c2011-09-12 22:07:36752 ],
[email protected]85ff16042012-03-06 23:46:34753 'conditions': [
[email protected]9f3ecf42014-05-07 18:21:06754 ['OS=="mac" or OS=="win"', {
755 'targets': [
756 {
757 'target_name': 'layout_test_helper',
758 'type': 'executable',
759 'sources': [
760 'shell/renderer/test_runner/helper/layout_test_helper_mac.mm',
761 'shell/renderer/test_runner/helper/layout_test_helper_win.cc',
762 ],
763 'conditions': [
764 ['OS=="mac"', {
765 'link_settings': {
766 'libraries': [
767 '$(SDKROOT)/System/Library/Frameworks/AppKit.framework',
768 ],
769 },
770 }],
771 ],
772 },
773 ],
774 }], # OS=="mac" or OS=="win"
[email protected]85ff16042012-03-06 23:46:34775 ['OS=="mac"', {
776 'targets': [
777 {
778 'target_name': 'content_shell_framework',
779 'type': 'shared_library',
780 'product_name': '<(content_shell_product_name) Framework',
781 'mac_bundle': 1,
782 'mac_bundle_resources': [
[email protected]993951d2013-05-08 21:37:02783 'shell/app/English.lproj/HttpAuth.xib',
784 'shell/app/English.lproj/MainMenu.xib',
[email protected]a7aa8ab2013-10-24 07:21:48785 '<(PRODUCT_DIR)/content_shell.pak',
786 'shell/app/framework-Info.plist',
[email protected]85ff16042012-03-06 23:46:34787 ],
[email protected]a7aa8ab2013-10-24 07:21:48788 'mac_bundle_resources!': [
789 'shell/app/framework-Info.plist',
790 ],
791 'xcode_settings': {
[email protected]6efed472013-11-01 02:09:34792 # The framework is placed within the .app's Framework
793 # directory. DYLIB_INSTALL_NAME_BASE and
794 # LD_DYLIB_INSTALL_NAME affect -install_name.
795 'DYLIB_INSTALL_NAME_BASE':
796 '@executable_path/../Frameworks',
797 # See /build/mac/copy_framework_unversioned.sh for
798 # information on LD_DYLIB_INSTALL_NAME.
799 'LD_DYLIB_INSTALL_NAME':
800 '$(DYLIB_INSTALL_NAME_BASE:standardizepath)/$(WRAPPER_NAME)/$(PRODUCT_NAME)',
801
[email protected]a7aa8ab2013-10-24 07:21:48802 'INFOPLIST_FILE': 'shell/app/framework-Info.plist',
803 },
[email protected]85ff16042012-03-06 23:46:34804 'dependencies': [
805 'content_shell_lib',
806 ],
807 'include_dirs': [
808 '..',
809 ],
810 'sources': [
[email protected]4642f5b2013-07-03 21:43:31811 'shell/app/shell_content_main.cc',
[email protected]216161f2013-07-02 16:23:20812 'shell/app/shell_content_main.h',
[email protected]85ff16042012-03-06 23:46:34813 ],
[email protected]30c246bc2014-01-28 06:00:04814 'postbuilds': [
815 {
816 # Modify the Info.plist as needed. The script explains why
817 # this is needed. This is also done in the chrome target.
818 # The framework needs the Breakpad keys if this feature is
819 # enabled. It does not need the Keystone keys; these always
820 # come from the outer application bundle. The framework
821 # doesn't currently use the SCM keys for anything,
822 # but this seems like a really good place to store them.
823 'postbuild_name': 'Tweak Info.plist',
824 'action': ['../build/mac/tweak_info_plist.py',
825 '--breakpad=1',
826 '--keystone=0',
827 '--scm=1',
828 '--version=<(content_shell_version)',
829 '--branding=<(content_shell_product_name)'],
830 },
831 ],
[email protected]5d96bbe2012-07-25 17:13:23832 'copies': [
833 {
[email protected]f77f0cab2014-03-28 17:19:30834 # Copy FFmpeg binaries for audio/video support.
[email protected]5d96bbe2012-07-25 17:13:23835 'destination': '<(PRODUCT_DIR)/$(CONTENTS_FOLDER_PATH)/Libraries',
836 'files': [
837 '<(PRODUCT_DIR)/ffmpegsumo.so',
838 ],
839 },
[email protected]a7aa8ab2013-10-24 07:21:48840 {
841 'destination': '<(PRODUCT_DIR)/$(CONTENTS_FOLDER_PATH)/Resources',
842 'files': [
843 '<(PRODUCT_DIR)/crash_inspector',
844 '<(PRODUCT_DIR)/crash_report_sender.app'
845 ],
846 },
[email protected]5d96bbe2012-07-25 17:13:23847 ],
[email protected]fda1c6c82013-04-09 16:10:12848 'conditions': [
849 ['enable_webrtc==1', {
850 'variables': {
851 'libpeer_target_type%': 'static_library',
852 },
853 'conditions': [
[email protected]e4aa290b2013-05-01 18:54:19854 ['libpeer_target_type!="static_library"', {
[email protected]fda1c6c82013-04-09 16:10:12855 'copies': [{
856 'destination': '<(PRODUCT_DIR)/$(CONTENTS_FOLDER_PATH)/Libraries',
857 'files': [
[email protected]62461b72013-05-02 12:27:12858 '<(PRODUCT_DIR)/libpeerconnection.so',
[email protected]fda1c6c82013-04-09 16:10:12859 ],
860 }],
861 }],
862 ],
863 }],
[email protected]30c246bc2014-01-28 06:00:04864 ['icu_use_data_file_flag==1', {
865 'mac_bundle_resources': [
866 '<(PRODUCT_DIR)/icudtl.dat',
867 ],
868 }],
[email protected]fda1c6c82013-04-09 16:10:12869 ],
[email protected]180df8f2012-03-09 22:36:10870 }, # target content_shell_framework
871 {
872 'target_name': 'content_shell_helper_app',
873 'type': 'executable',
874 'variables': { 'enable_wexit_time_destructors': 1, },
875 'product_name': '<(content_shell_product_name) Helper',
876 'mac_bundle': 1,
877 'dependencies': [
878 'content_shell_framework',
879 ],
880 'sources': [
[email protected]993951d2013-05-08 21:37:02881 'shell/app/shell_main.cc',
882 'shell/app/helper-Info.plist',
[email protected]180df8f2012-03-09 22:36:10883 ],
884 # TODO(mark): Come up with a fancier way to do this. It should only
885 # be necessary to list helper-Info.plist once, not the three times it
886 # is listed here.
887 'mac_bundle_resources!': [
[email protected]993951d2013-05-08 21:37:02888 'shell/app/helper-Info.plist',
[email protected]180df8f2012-03-09 22:36:10889 ],
890 # TODO(mark): For now, don't put any resources into this app. Its
891 # resources directory will be a symbolic link to the browser app's
892 # resources directory.
893 'mac_bundle_resources/': [
894 ['exclude', '.*'],
895 ],
896 'xcode_settings': {
[email protected]993951d2013-05-08 21:37:02897 'INFOPLIST_FILE': 'shell/app/helper-Info.plist',
[email protected]180df8f2012-03-09 22:36:10898 },
899 'postbuilds': [
900 {
901 # The framework defines its load-time path
902 # (DYLIB_INSTALL_NAME_BASE) relative to the main executable
903 # (chrome). A different relative path needs to be used in
904 # content_shell_helper_app.
905 'postbuild_name': 'Fix Framework Link',
906 'action': [
907 'install_name_tool',
908 '-change',
[email protected]6efed472013-11-01 02:09:34909 '@executable_path/../Frameworks/<(content_shell_product_name) Framework.framework/<(content_shell_product_name) Framework',
910 '@executable_path/../../../<(content_shell_product_name) Framework.framework/<(content_shell_product_name) Framework',
[email protected]180df8f2012-03-09 22:36:10911 '${BUILT_PRODUCTS_DIR}/${EXECUTABLE_PATH}'
912 ],
913 },
914 {
915 # Modify the Info.plist as needed. The script explains why this
916 # is needed. This is also done in the chrome and chrome_dll
[email protected]bbf52442012-08-23 22:53:18917 # targets. In this case, --breakpad=0, --keystone=0, and --scm=0
918 # are used because Breakpad, Keystone, and SCM keys are
[email protected]180df8f2012-03-09 22:36:10919 # never placed into the helper.
920 'postbuild_name': 'Tweak Info.plist',
921 'action': ['../build/mac/tweak_info_plist.py',
922 '--breakpad=0',
923 '--keystone=0',
[email protected]6d302912012-11-05 21:57:28924 '--scm=0',
925 '--version=<(content_shell_version)'],
[email protected]180df8f2012-03-09 22:36:10926 },
927 {
928 # Make sure there isn't any Objective-C in the helper app's
929 # executable.
930 'postbuild_name': 'Verify No Objective-C',
931 'action': [
932 '../build/mac/verify_no_objc.sh',
933 ],
934 },
935 ],
[email protected]ec40c38f2012-06-28 16:37:49936 'conditions': [
937 ['component=="shared_library"', {
938 'xcode_settings': {
939 'LD_RUNPATH_SEARCH_PATHS': [
940 # Get back from Content Shell.app/Contents/Frameworks/
941 # Helper.app/Contents/MacOS
942 '@loader_path/../../../../../..',
943 ],
944 },
945 }],
946 ],
[email protected]180df8f2012-03-09 22:36:10947 }, # target content_shell_helper_app
[email protected]85ff16042012-03-06 23:46:34948 ],
949 }], # OS=="mac"
[email protected]cc66d282012-03-30 11:44:06950 ['OS=="android"', {
951 'targets': [
952 {
[email protected]a08029b42012-04-25 03:18:46953 # TODO(jrg): Update this action and other jni generators to only
954 # require specifying the java directory and generate the rest.
955 'target_name': 'content_shell_jni_headers',
956 'type': 'none',
[email protected]e46f66152012-07-19 20:02:55957 'sources': [
[email protected]4d4eb5b2013-01-29 21:55:55958 'shell/android/browsertests_apk/src/org/chromium/content_browsertests_apk/ContentBrowserTestsActivity.java',
[email protected]eadcff0f2013-06-20 21:08:10959 'shell/android/java/src/org/chromium/content_shell/ShellLayoutTestUtils.java',
[email protected]e46f66152012-07-19 20:02:55960 'shell/android/java/src/org/chromium/content_shell/ShellManager.java',
961 'shell/android/java/src/org/chromium/content_shell/Shell.java',
962 ],
[email protected]a08029b42012-04-25 03:18:46963 'variables': {
[email protected]521cd942013-03-07 22:34:05964 'jni_gen_package': 'content/shell',
[email protected]a08029b42012-04-25 03:18:46965 },
966 'includes': [ '../build/jni_generator.gypi' ],
967 },
968 {
[email protected]c1101582012-06-25 17:07:18969 'target_name': 'libcontent_shell_content_view',
[email protected]a08029b42012-04-25 03:18:46970 'type': 'shared_library',
971 'dependencies': [
972 'content_shell_jni_headers',
973 'content_shell_lib',
974 'content_shell_pak',
975 # Skia is necessary to ensure the dependencies needed by
976 # WebContents are included.
977 '../skia/skia.gyp:skia',
978 '<(DEPTH)/media/media.gyp:player_android',
979 ],
[email protected]a08029b42012-04-25 03:18:46980 'sources': [
981 'shell/android/shell_library_loader.cc',
982 'shell/android/shell_library_loader.h',
[email protected]f83a47392012-07-12 22:15:04983 ],
[email protected]7abcaa82012-06-27 17:09:48984 'conditions': [
[email protected]d999c3cb2013-03-12 10:22:36985 ['android_webview_build==1', {
[email protected]7abcaa82012-06-27 17:09:48986 'ldflags': [
987 '-lgabi++', # For rtti
988 ],
989 }],
990 ],
[email protected]a08029b42012-04-25 03:18:46991 },
992 {
[email protected]4d4eb5b2013-01-29 21:55:55993 'target_name': 'content_shell_java',
994 'type': 'none',
995 'dependencies': [
[email protected]ba42b1e2013-10-19 22:13:17996 'content.gyp:content_java',
[email protected]4d4eb5b2013-01-29 21:55:55997 ],
998 'variables': {
[email protected]4d4eb5b2013-01-29 21:55:55999 'java_in_dir': '../content/shell/android/java',
1000 'has_java_resources': 1,
1001 'R_package': 'org.chromium.content_shell',
1002 'R_package_relpath': 'org/chromium/content_shell',
1003 },
1004 'includes': [ '../build/java.gypi' ],
1005 },
1006 {
[email protected]319d6a82012-09-20 22:52:281007 # content_shell_apk creates a .jar as a side effect. Any java targets
1008 # that need that .jar in their classpath should depend on this target,
[email protected]4d4eb5b2013-01-29 21:55:551009 # content_shell_apk_java. Dependents of content_shell_apk receive its
1010 # jar path in the variable 'apk_output_jar_path'. This target should
1011 # only be used by targets which instrument content_shell_apk.
1012 'target_name': 'content_shell_apk_java',
[email protected]319d6a82012-09-20 22:52:281013 'type': 'none',
[email protected]319d6a82012-09-20 22:52:281014 'dependencies': [
[email protected]319d6a82012-09-20 22:52:281015 'content_shell_apk',
[email protected]319d6a82012-09-20 22:52:281016 ],
[email protected]b13f73e2013-03-27 23:31:271017 'includes': [ '../build/apk_fake_jar.gypi' ],
[email protected]319d6a82012-09-20 22:52:281018 },
[email protected]75c86a22012-09-26 03:50:371019 {
1020 'target_name': 'content_shell_apk',
1021 'type': 'none',
1022 'dependencies': [
[email protected]c8e8781e2014-03-08 12:02:261023 'content.gyp:content_icudata',
[email protected]ba42b1e2013-10-19 22:13:171024 'content.gyp:content_java',
[email protected]c48fece02013-06-19 12:01:421025 'content_java_test_support',
[email protected]4d4eb5b2013-01-29 21:55:551026 'content_shell_java',
1027 'libcontent_shell_content_view',
[email protected]75c86a22012-09-26 03:50:371028 '../base/base.gyp:base_java',
1029 '../media/media.gyp:media_java',
1030 '../net/net.gyp:net_java',
[email protected]abeda1f2014-02-21 17:08:341031 '../third_party/mesa/mesa.gyp:osmesa_in_lib_dir',
[email protected]4e384052013-08-14 20:46:301032 '../tools/android/forwarder/forwarder.gyp:forwarder',
[email protected]f450287d2013-11-15 17:52:541033 '../ui/android/ui_android.gyp:ui_java',
[email protected]75c86a22012-09-26 03:50:371034 ],
1035 'variables': {
[email protected]75c86a22012-09-26 03:50:371036 'apk_name': 'ContentShell',
[email protected]4d4eb5b2013-01-29 21:55:551037 'manifest_package_name': 'org.chromium.content_shell_apk',
1038 'java_in_dir': 'shell/android/shell_apk',
[email protected]bd6ab3db2013-03-26 17:35:211039 'resource_dir': 'shell/android/shell_apk/res',
[email protected]e4865252013-04-04 09:15:591040 'native_lib_target': 'libcontent_shell_content_view',
[email protected]75c86a22012-09-26 03:50:371041 'additional_input_paths': ['<(PRODUCT_DIR)/content_shell/assets/content_shell.pak'],
[email protected]0437c502013-11-28 05:17:331042 'asset_location': '<(PRODUCT_DIR)/content_shell/assets',
[email protected]abeda1f2014-02-21 17:08:341043 'extra_native_libs': ['<(SHARED_LIB_DIR)/libosmesa.so'],
[email protected]c8e8781e2014-03-08 12:02:261044 'conditions': [
1045 ['icu_use_data_file_flag==1', {
1046 'additional_input_paths': [
1047 '<(PRODUCT_DIR)/icudtl.dat',
1048 ],
1049 }],
1050 ],
[email protected]75c86a22012-09-26 03:50:371051 },
[email protected]5b0095b72013-08-01 17:44:221052 'conditions': [
1053 ['android_webview_build==0', {
1054 'dependencies': [
1055 '../tools/imagediff/image_diff.gyp:image_diff#host',
1056 ],
1057 }],
1058 ],
[email protected]75c86a22012-09-26 03:50:371059 'includes': [ '../build/java_apk.gypi' ],
1060 },
[email protected]cc66d282012-03-30 11:44:061061 ],
1062 }], # OS=="android"
[email protected]369205f2013-10-29 04:35:051063 ['OS=="win"', {
1064 'targets': [
1065 {
1066 'target_name': 'content_shell_crash_service',
1067 'type': 'executable',
1068 'dependencies': [
1069 '../base/base.gyp:base',
1070 '../components/components.gyp:breakpad_crash_service',
1071 ],
1072 'include_dirs': [
1073 '..',
1074 ],
1075 'sources': [
1076 'shell/tools/content_shell_crash_service.cc',
1077 ],
1078 'msvs_settings': {
1079 'VCLinkerTool': {
1080 'SubSystem': '2', # Set /SUBSYSTEM:WINDOWS
1081 },
1082 },
1083 },
1084 ],
1085 }], # OS=="win"
[email protected]004703a2014-05-05 23:23:001086 ['OS=="win" and fastbuild==0 and target_arch=="ia32" and syzyasan==1', {
[email protected]c8250d42013-10-01 05:17:461087 'variables': {
1088 'dest_dir': '<(PRODUCT_DIR)/syzygy',
1089 },
1090 'targets': [
1091 {
1092 'target_name': 'content_shell_syzyasan',
1093 'type': 'none',
1094 'sources' : [],
1095 # Instrument content_shell with SyzyAsan.
1096 'actions': [
1097 {
1098 'action_name': 'Instrument content_shell with SyzyAsan',
[email protected]c8250d42013-10-01 05:17:461099 'inputs': [
1100 '<(PRODUCT_DIR)/content_shell.exe',
1101 ],
1102 'outputs': [
1103 '<(dest_dir)/content_shell.exe',
1104 '<(dest_dir)/content_shell.exe.pdb',
1105 ],
1106 'action': [
1107 'python',
1108 '<(DEPTH)/chrome/tools/build/win/syzygy_instrument.py',
1109 '--mode', 'asan',
1110 '--input_executable', '<(PRODUCT_DIR)/content_shell.exe',
1111 '--input_symbol', '<(PRODUCT_DIR)/content_shell.exe.pdb',
1112 '--destination_dir', '<(dest_dir)',
1113 ],
1114 },
1115 ],
1116 },
1117 ],
1118 }], # OS=="win" and fastbuild==0 and target_arch=="ia32"
[email protected]cc66d282012-03-30 11:44:061119 ]
[email protected]5629e0c2011-09-12 22:07:361120}