1 # Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file.
7 'content_shell_product_name': 'Content Shell',
8 # 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
11 'content_shell_version': '19.77.34.5',
14 'use_custom_freetype%': 1,
16 'use_custom_freetype%': 0,
22 # GN version: //content/shell:content_shell_lib
23 'target_name': 'content_shell_lib',
24 'type': 'static_library',
25 'defines': ['CONTENT_SHELL_VERSION="<(content_shell_version)"'],
30 'app/resources/content_resources.gyp:content_resources',
31 'app/strings/content_strings.gyp:content_strings',
32 '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',
39 'content.gyp:content_resources',
40 'content.gyp:content_utility',
41 'content_shell_resources',
42 'copy_test_netscape_plugin',
43 'layouttest_support_content',
44 '../base/base.gyp:base',
45 '../base/base.gyp:base_static',
46 '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations',
47 '../cc/blink/cc_blink.gyp:cc_blink',
49 '../components/components.gyp:crash_component_breakpad_mac_to_be_deleted',
50 '../components/components.gyp:web_cache_renderer',
51 '../device/bluetooth/bluetooth.gyp:device_bluetooth',
55 '../media/blink/media_blink.gyp:media_blink',
56 '../media/media.gyp:media',
58 '../net/net.gyp:net_resources',
59 '../skia/skia.gyp:skia',
60 '../storage/storage_browser.gyp:storage',
61 '../third_party/WebKit/public/blink.gyp:blink',
62 '../third_party/WebKit/public/blink.gyp:blink_test_support',
63 '../ui/base/ime/ui_base_ime.gyp:ui_base_ime',
64 '../ui/base/ui_base.gyp:ui_base',
65 '../ui/events/events.gyp:events_base',
66 '../ui/gfx/gfx.gyp:gfx',
67 '../ui/gfx/gfx.gyp:gfx_geometry',
68 '../ui/gfx/ipc/gfx_ipc.gyp:gfx_ipc',
70 '../url/url.gyp:url_lib',
71 '../v8/tools/gyp/v8.gyp:v8',
77 # Note: sources list duplicated in GN build.
78 'shell/android/shell_jni_registrar.cc',
79 'shell/android/shell_jni_registrar.h',
80 'shell/android/shell_manager.cc',
81 'shell/android/shell_manager.h',
82 'shell/app/blink_test_platform_support.h',
83 'shell/app/blink_test_platform_support_android.cc',
84 'shell/app/blink_test_platform_support_linux.cc',
85 'shell/app/blink_test_platform_support_mac.mm',
86 'shell/app/blink_test_platform_support_win.cc',
87 'shell/app/paths_mac.h',
88 'shell/app/paths_mac.mm',
89 'shell/app/shell_crash_reporter_client.cc',
90 'shell/app/shell_crash_reporter_client.h',
91 'shell/app/shell_main_delegate.cc',
92 'shell/app/shell_main_delegate.h',
93 'shell/app/shell_main_delegate_mac.h',
94 'shell/app/shell_main_delegate_mac.mm',
95 'shell/browser/ipc_echo_message_filter.cc',
96 'shell/browser/ipc_echo_message_filter.h',
97 'shell/browser/layout_test/layout_test_android.cc',
98 'shell/browser/layout_test/layout_test_android.h',
99 'shell/browser/layout_test/layout_test_browser_context.cc',
100 'shell/browser/layout_test/layout_test_browser_context.h',
101 'shell/browser/layout_test/layout_test_browser_main.cc',
102 'shell/browser/layout_test/layout_test_browser_main.h',
103 'shell/browser/layout_test/layout_test_browser_main_parts.cc',
104 'shell/browser/layout_test/layout_test_browser_main_parts.h',
105 'shell/browser/layout_test/layout_test_content_browser_client.cc',
106 'shell/browser/layout_test/layout_test_content_browser_client.h',
107 'shell/browser/layout_test/layout_test_devtools_frontend.cc',
108 'shell/browser/layout_test/layout_test_devtools_frontend.h',
109 'shell/browser/layout_test/layout_test_download_manager_delegate.cc',
110 'shell/browser/layout_test/layout_test_download_manager_delegate.h',
111 'shell/browser/layout_test/layout_test_javascript_dialog_manager.cc',
112 'shell/browser/layout_test/layout_test_javascript_dialog_manager.h',
113 'shell/browser/layout_test/layout_test_message_filter.cc',
114 'shell/browser/layout_test/layout_test_message_filter.h',
115 'shell/browser/layout_test/layout_test_navigator_connect_service_factory.cc',
116 'shell/browser/layout_test/layout_test_navigator_connect_service_factory.h',
117 'shell/browser/layout_test/layout_test_notification_manager.cc',
118 'shell/browser/layout_test/layout_test_notification_manager.h',
119 'shell/browser/layout_test/layout_test_push_messaging_service.cc',
120 'shell/browser/layout_test/layout_test_push_messaging_service.h',
121 'shell/browser/layout_test/layout_test_resource_dispatcher_host_delegate.cc',
122 'shell/browser/layout_test/layout_test_resource_dispatcher_host_delegate.h',
123 'shell/browser/layout_test/layout_test_url_request_context_getter.cc',
124 'shell/browser/layout_test/layout_test_url_request_context_getter.h',
125 'shell/browser/notify_done_forwarder.cc',
126 'shell/browser/notify_done_forwarder.h',
127 'shell/browser/shell.cc',
128 'shell/browser/shell.h',
129 'shell/browser/shell_access_token_store.cc',
130 'shell/browser/shell_access_token_store.h',
131 'shell/browser/shell_android.cc',
132 'shell/browser/shell_application_mac.h',
133 'shell/browser/shell_application_mac.mm',
134 'shell/browser/shell_aura.cc',
135 'shell/browser/shell_browser_context.cc',
136 'shell/browser/shell_browser_context.h',
137 'shell/browser/shell_browser_main.cc',
138 'shell/browser/shell_browser_main.h',
139 'shell/browser/shell_browser_main_parts.cc',
140 'shell/browser/shell_browser_main_parts.h',
141 'shell/browser/shell_browser_main_parts_mac.mm',
142 'shell/browser/shell_content_browser_client.cc',
143 'shell/browser/shell_content_browser_client.h',
144 'shell/browser/shell_devtools_frontend.cc',
145 'shell/browser/shell_devtools_frontend.h',
146 'shell/browser/shell_devtools_manager_delegate.cc',
147 'shell/browser/shell_devtools_manager_delegate.h',
148 'shell/browser/shell_download_manager_delegate.cc',
149 'shell/browser/shell_download_manager_delegate.h',
150 'shell/browser/shell_javascript_dialog.h',
151 'shell/browser/shell_javascript_dialog_mac.mm',
152 'shell/browser/shell_javascript_dialog_manager.cc',
153 'shell/browser/shell_javascript_dialog_manager.h',
154 'shell/browser/shell_javascript_dialog_win.cc',
155 'shell/browser/shell_login_dialog.cc',
156 'shell/browser/shell_login_dialog.h',
157 'shell/browser/shell_login_dialog_mac.mm',
158 'shell/browser/shell_mac.mm',
159 'shell/browser/shell_mojo_test_utils_android.cc',
160 'shell/browser/shell_mojo_test_utils_android.h',
161 'shell/browser/shell_net_log.cc',
162 'shell/browser/shell_net_log.h',
163 'shell/browser/shell_network_delegate.cc',
164 'shell/browser/shell_network_delegate.h',
165 'shell/browser/shell_platform_data_aura.cc',
166 'shell/browser/shell_platform_data_aura.h',
167 'shell/browser/shell_plugin_service_filter.cc',
168 'shell/browser/shell_plugin_service_filter.h',
169 'shell/browser/shell_quota_permission_context.cc',
170 'shell/browser/shell_quota_permission_context.h',
171 'shell/browser/shell_resource_dispatcher_host_delegate.cc',
172 'shell/browser/shell_resource_dispatcher_host_delegate.h',
173 'shell/browser/shell_speech_recognition_manager_delegate.cc',
174 'shell/browser/shell_speech_recognition_manager_delegate.h',
175 'shell/browser/shell_url_request_context_getter.cc',
176 'shell/browser/shell_url_request_context_getter.h',
177 'shell/browser/shell_views.cc',
178 'shell/browser/shell_web_contents_view_delegate.h',
179 'shell/browser/shell_web_contents_view_delegate_android.cc',
180 'shell/browser/shell_web_contents_view_delegate_creator.h',
181 'shell/browser/shell_web_contents_view_delegate_mac.mm',
182 'shell/browser/shell_web_contents_view_delegate_win.cc',
183 'shell/browser/webkit_test_controller.cc',
184 'shell/browser/webkit_test_controller.h',
185 'shell/common/layout_test/layout_test_messages.cc',
186 'shell/common/layout_test/layout_test_messages.h',
187 'shell/common/leak_detection_result.h',
188 'shell/common/shell_content_client.cc',
189 'shell/common/shell_content_client.h',
190 'shell/common/shell_messages.cc',
191 'shell/common/shell_messages.h',
192 'shell/common/shell_switches.cc',
193 'shell/common/shell_switches.h',
194 'shell/common/shell_test_configuration.cc',
195 'shell/common/shell_test_configuration.h',
196 'shell/common/test_runner/test_preferences.cc',
197 'shell/common/test_runner/test_preferences.h',
198 'shell/common/v8_breakpad_support_win.cc',
199 'shell/common/v8_breakpad_support_win.h',
200 'shell/common/webkit_test_helpers.cc',
201 'shell/common/webkit_test_helpers.h',
202 'shell/renderer/ipc_echo.cc',
203 'shell/renderer/ipc_echo.h',
204 'shell/renderer/layout_test/gc_controller.cc',
205 'shell/renderer/layout_test/gc_controller.h',
206 'shell/renderer/layout_test/layout_test_content_renderer_client.cc',
207 'shell/renderer/layout_test/layout_test_content_renderer_client.h',
208 'shell/renderer/layout_test/layout_test_render_frame_observer.cc',
209 'shell/renderer/layout_test/layout_test_render_frame_observer.h',
210 'shell/renderer/layout_test/layout_test_render_process_observer.cc',
211 'shell/renderer/layout_test/layout_test_render_process_observer.h',
212 'shell/renderer/layout_test/leak_detector.cc',
213 'shell/renderer/layout_test/leak_detector.h',
214 'shell/renderer/layout_test/webkit_test_runner.cc',
215 'shell/renderer/layout_test/webkit_test_runner.h',
216 'shell/renderer/shell_content_renderer_client.cc',
217 'shell/renderer/shell_content_renderer_client.h',
218 'shell/renderer/shell_render_view_observer.cc',
219 'shell/renderer/shell_render_view_observer.h',
220 'shell/renderer/test_runner/accessibility_controller.cc',
221 'shell/renderer/test_runner/accessibility_controller.h',
222 'shell/renderer/test_runner/event_sender.cc',
223 'shell/renderer/test_runner/event_sender.h',
224 'shell/renderer/test_runner/gamepad_controller.cc',
225 'shell/renderer/test_runner/gamepad_controller.h',
226 'shell/renderer/test_runner/mock_color_chooser.cc',
227 'shell/renderer/test_runner/mock_color_chooser.h',
228 'shell/renderer/test_runner/mock_constraints.cc',
229 'shell/renderer/test_runner/mock_constraints.h',
230 'shell/renderer/test_runner/mock_credential_manager_client.cc',
231 'shell/renderer/test_runner/mock_credential_manager_client.h',
232 'shell/renderer/test_runner/mock_grammar_check.cc',
233 'shell/renderer/test_runner/mock_grammar_check.h',
234 'shell/renderer/test_runner/mock_screen_orientation_client.cc',
235 'shell/renderer/test_runner/mock_screen_orientation_client.h',
236 'shell/renderer/test_runner/mock_spell_check.cc',
237 'shell/renderer/test_runner/mock_spell_check.h',
238 'shell/renderer/test_runner/mock_web_audio_device.cc',
239 'shell/renderer/test_runner/mock_web_audio_device.h',
240 'shell/renderer/test_runner/mock_web_media_stream_center.cc',
241 'shell/renderer/test_runner/mock_web_media_stream_center.h',
242 'shell/renderer/test_runner/mock_web_midi_accessor.cc',
243 'shell/renderer/test_runner/mock_web_midi_accessor.h',
244 'shell/renderer/test_runner/mock_web_speech_recognizer.cc',
245 'shell/renderer/test_runner/mock_web_speech_recognizer.h',
246 'shell/renderer/test_runner/mock_web_theme_engine.cc',
247 'shell/renderer/test_runner/mock_web_theme_engine.h',
248 'shell/renderer/test_runner/mock_web_user_media_client.cc',
249 'shell/renderer/test_runner/mock_web_user_media_client.h',
250 'shell/renderer/test_runner/mock_webrtc_data_channel_handler.cc',
251 'shell/renderer/test_runner/mock_webrtc_data_channel_handler.h',
252 'shell/renderer/test_runner/mock_webrtc_dtmf_sender_handler.cc',
253 'shell/renderer/test_runner/mock_webrtc_dtmf_sender_handler.h',
254 'shell/renderer/test_runner/mock_webrtc_peer_connection_handler.cc',
255 'shell/renderer/test_runner/mock_webrtc_peer_connection_handler.h',
256 'shell/renderer/test_runner/spell_check_client.cc',
257 'shell/renderer/test_runner/spell_check_client.h',
258 'shell/renderer/test_runner/test_common.cc',
259 'shell/renderer/test_runner/test_common.h',
260 'shell/renderer/test_runner/test_interfaces.cc',
261 'shell/renderer/test_runner/test_interfaces.h',
262 'shell/renderer/test_runner/test_plugin.cc',
263 'shell/renderer/test_runner/test_plugin.h',
264 'shell/renderer/test_runner/test_runner.cc',
265 'shell/renderer/test_runner/test_runner.h',
266 'shell/renderer/test_runner/text_input_controller.cc',
267 'shell/renderer/test_runner/text_input_controller.h',
268 'shell/renderer/test_runner/web_ax_object_proxy.cc',
269 'shell/renderer/test_runner/web_ax_object_proxy.h',
270 'shell/renderer/test_runner/web_content_settings.cc',
271 'shell/renderer/test_runner/web_content_settings.h',
272 'shell/renderer/test_runner/web_frame_test_proxy.h',
273 'shell/renderer/test_runner/web_task.cc',
274 'shell/renderer/test_runner/web_task.h',
275 'shell/renderer/test_runner/web_test_delegate.h',
276 'shell/renderer/test_runner/web_test_interfaces.cc',
277 'shell/renderer/test_runner/web_test_interfaces.h',
278 'shell/renderer/test_runner/web_test_proxy.cc',
279 'shell/renderer/test_runner/web_test_proxy.h',
280 'shell/renderer/test_runner/web_test_runner.h',
284 'SubSystem': '2', # Set /SUBSYSTEM:WINDOWS
288 ['OS=="win" and win_use_allocator_shim==1', {
290 '../base/allocator/allocator.gyp:allocator',
294 'resource_include_dirs': [
295 '<(SHARED_INTERMEDIATE_DIR)/content/app/strings',
298 '<(DEPTH)/content/app/strings/content_strings.gyp:content_strings',
304 'LinkIncremental': '<(msvs_large_module_debug_link_mode)',
309 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
310 'msvs_disabled_warnings': [ 4267, ],
314 '../build/linux/system.gyp:fontconfig',
319 '../ui/events/devices/events_devices.gyp:events_devices',
320 '../tools/xdisplaycheck/xdisplaycheck.gyp:xdisplaycheck',
325 '../mojo/mojo_base.gyp:libmojo_system_java',
326 'content_shell_jni_headers',
329 'copy_test_netscape_plugin',
332 ['os_posix == 1 and OS != "mac" and android_webview_build != 1', {
334 '../components/components.gyp:breakpad_host',
337 ['(OS=="linux" or OS=="android") and use_allocator!="none"', {
339 # This is needed by content/app/content_main_runner.cc
340 '../base/allocator/allocator.gyp:allocator',
345 '../ui/aura/aura.gyp:aura',
346 '../ui/aura/aura.gyp:aura_test_support',
347 '../ui/events/events.gyp:events',
348 '../ui/strings/ui_strings.gyp:ui_strings',
349 '../ui/wm/wm.gyp:wm',
352 ['toolkit_views==1', {
354 '../ui/resources/ui_resources.gyp:ui_resources',
355 '../ui/views/controls/webview/webview.gyp:webview',
356 '../ui/views/views.gyp:views',
357 '../ui/views/views.gyp:views_test_support',
360 ['exclude', 'shell/browser/shell_aura.cc'],
364 ['exclude', 'shell/browser/shell_views.cc'],
370 ['exclude', 'shell/browser/shell_aura.cc'],
371 ['exclude', 'shell/browser/shell_views.cc'],
374 # The test plugin relies on X11.
375 ['OS=="linux" and use_x11==0', {
377 'copy_test_netscape_plugin',
382 '../chromeos/chromeos.gyp:chromeos',
383 '../ui/wm/wm.gyp:wm_test_support',
386 ['use_custom_freetype==1', {
388 '../third_party/freetype2/freetype2.gyp:freetype2',
391 ['enable_plugins==0', {
393 'shell/browser/shell_plugin_service_filter.cc',
394 'shell/browser/shell_plugin_service_filter.h',
400 # GN version: //content/shell:resources
401 'target_name': 'content_shell_resources',
404 'grit_out_dir': '<(SHARED_INTERMEDIATE_DIR)/content',
408 'action_name': 'generate_content_shell_resources',
410 'grit_grd_file': 'shell/shell_resources.grd',
412 'includes': [ '../build/grit_action.gypi' ],
415 'includes': [ '../build/grit_target.gypi' ],
418 'destination': '<(PRODUCT_DIR)',
420 '<(SHARED_INTERMEDIATE_DIR)/content/shell_resources.pak'
427 'destination': '<(PRODUCT_DIR)',
428 'files': ['shell/renderer/test_runner/resources/fonts/AHEM____.TTF'],
432 'all_dependent_settings': {
433 'mac_bundle_resources': [
434 'shell/renderer/test_runner/resources/fonts/AHEM____.TTF',
435 'shell/renderer/test_runner/resources/fonts/ChromiumAATTest.ttf',
436 '<(SHARED_INTERMEDIATE_DIR)/webkit/missingImage.png',
437 '<(SHARED_INTERMEDIATE_DIR)/webkit/textAreaResizeCorner.png',
443 'destination': '<(PRODUCT_DIR)',
445 'shell/renderer/test_runner/resources/fonts/AHEM____.TTF',
446 'shell/renderer/test_runner/resources/fonts/fonts.conf',
447 '../third_party/gardiner_mod/GardinerModBug.ttf',
448 '../third_party/gardiner_mod/GardinerModCat.ttf',
454 'destination': '<(PRODUCT_DIR)',
456 'shell/renderer/test_runner/resources/fonts/AHEM____.TTF',
457 'shell/renderer/test_runner/resources/fonts/android_main_fonts.xml',
458 'shell/renderer/test_runner/resources/fonts/android_fallback_fonts.xml',
465 # We build a minimal set of resources so WebKit in content_shell has
466 # access to necessary resources.
467 # GN version: //content/shell:pak
468 'target_name': 'content_shell_pak',
471 'app/resources/content_resources.gyp:content_resources',
472 'app/strings/content_strings.gyp:content_strings',
473 'browser/tracing/tracing_resources.gyp:tracing_resources',
474 'content.gyp:content_resources',
475 'content_shell_resources',
476 '<(DEPTH)/net/net.gyp:net_resources',
477 '<(DEPTH)/third_party/WebKit/public/blink_resources.gyp:blink_resources',
478 '<(DEPTH)/ui/resources/ui_resources.gyp:ui_resources',
479 '<(DEPTH)/ui/strings/ui_strings.gyp:ui_strings',
484 'browser/devtools/devtools_resources.gyp:devtools_resources',
490 'destination': '<(PRODUCT_DIR)',
492 '<(PRODUCT_DIR)/content_shell/assets/content_shell.pak'
500 'action_name': 'repack_content_shell_pack',
503 '<(SHARED_INTERMEDIATE_DIR)/blink/public/resources/blink_resources_100_percent.pak',
504 '<(SHARED_INTERMEDIATE_DIR)/content/app/resources/content_resources_100_percent.pak',
505 '<(SHARED_INTERMEDIATE_DIR)/content/app/strings/content_strings_en-US.pak',
506 '<(SHARED_INTERMEDIATE_DIR)/content/browser/tracing/tracing_resources.pak',
507 '<(SHARED_INTERMEDIATE_DIR)/content/content_resources.pak',
508 '<(SHARED_INTERMEDIATE_DIR)/content/shell_resources.pak',
509 '<(SHARED_INTERMEDIATE_DIR)/net/net_resources.pak',
510 '<(SHARED_INTERMEDIATE_DIR)/ui/resources/ui_resources_100_percent.pak',
511 '<(SHARED_INTERMEDIATE_DIR)/ui/resources/webui_resources.pak',
512 '<(SHARED_INTERMEDIATE_DIR)/ui/strings/app_locale_settings_en-US.pak',
513 '<(SHARED_INTERMEDIATE_DIR)/ui/strings/ui_strings_en-US.pak',
517 'pak_inputs': ['<(SHARED_INTERMEDIATE_DIR)/blink/devtools_resources.pak',],
518 'pak_output': '<(PRODUCT_DIR)/content_shell.pak',
520 'pak_output': '<(PRODUCT_DIR)/content_shell/assets/content_shell.pak',
524 'includes': [ '../build/repack_action.gypi' ],
529 # GN version: //content/shell:content_shell
530 'target_name': 'content_shell',
531 'type': 'executable',
539 '../third_party/mesa/mesa.gyp:osmesa',
540 '../tools/imagediff/image_diff.gyp:image_diff',
546 'shell/app/shell_main.cc',
548 'mac_bundle_resources': [
549 'shell/app/app.icns',
550 'shell/app/app-Info.plist',
552 # TODO(mark): Come up with a fancier way to do this. It should only
553 # be necessary to list app-Info.plist once, not the three times it is
555 'mac_bundle_resources!': [
556 'shell/app/app-Info.plist',
559 'INFOPLIST_FILE': 'shell/app/app-Info.plist',
563 'AdditionalManifestFiles': [
564 'shell/app/shell.exe.manifest',
569 ['OS=="win" and win_use_allocator_shim==1', {
571 '../base/allocator/allocator.gyp:allocator',
576 'shell/app/shell.rc',
582 'LinkIncremental': '<(msvs_large_module_debug_link_mode)',
590 '../sandbox/sandbox.gyp:sandbox',
593 ['OS=="win" and asan==0', {
596 'SubSystem': '2', # Set /SUBSYSTEM:WINDOWS
599 }], # OS=="win" and asan==0
601 'product_name': '<(content_shell_product_name)',
606 'content_shell_framework',
607 'content_shell_helper_app',
611 'destination': '<(PRODUCT_DIR)/<(content_shell_product_name).app/Contents/Frameworks',
613 '<(PRODUCT_DIR)/<(content_shell_product_name) Helper.app',
619 'postbuild_name': 'Copy <(content_shell_product_name) Framework.framework',
621 '../build/mac/copy_framework_unversioned.sh',
622 '${BUILT_PRODUCTS_DIR}/<(content_shell_product_name) Framework.framework',
623 '${BUILT_PRODUCTS_DIR}/${CONTENTS_FOLDER_PATH}/Frameworks',
627 # Modify the Info.plist as needed.
628 'postbuild_name': 'Tweak Info.plist',
629 'action': ['../build/mac/tweak_info_plist.py',
631 '--version=<(content_shell_version)'],
634 # This postbuid step is responsible for creating the following
637 # Content Shell Helper EH.app and Content Shell Helper NP.app are
638 # created from Content Shell Helper.app.
640 # The EH helper is marked for an executable heap. The NP helper
641 # is marked for no PIE (ASLR).
642 'postbuild_name': 'Make More Helpers',
644 '../build/mac/make_more_helpers.sh',
646 '<(content_shell_product_name)',
650 # Make sure there isn't any Objective-C in the shell's
652 'postbuild_name': 'Verify No Objective-C',
654 '../build/mac/verify_no_objc.sh',
661 '../tools/imagediff/image_diff.gyp:image_diff',
664 ['OS=="android" and android_webview_build==0', {
666 '../tools/imagediff/image_diff.gyp:image_diff#host',
668 }], # OS=="android" and android_webview_build==0
672 'target_name': 'content_shell_builder',
680 'target_name': 'test_netscape_plugin',
681 'type': 'loadable_module',
683 'shell/tools/plugin/PluginObject.cpp',
684 'shell/tools/plugin/PluginObject.h',
685 'shell/tools/plugin/PluginObjectMac.mm',
686 'shell/tools/plugin/PluginTest.cpp',
687 'shell/tools/plugin/PluginTest.h',
688 'shell/tools/plugin/TestObject.cpp',
689 'shell/tools/plugin/Tests/DocumentOpenInDestroyStream.cpp',
690 'shell/tools/plugin/Tests/EvaluateJSAfterRemovingPluginElement.cpp',
691 'shell/tools/plugin/Tests/FormValue.cpp',
692 'shell/tools/plugin/Tests/GetURLNotifyWithURLThatFailsToLoad.cpp',
693 'shell/tools/plugin/Tests/GetURLWithJavaScriptURL.cpp',
694 'shell/tools/plugin/Tests/GetURLWithJavaScriptURLDestroyingPlugin.cpp',
695 'shell/tools/plugin/Tests/GetUserAgentWithNullNPPFromNPPNew.cpp',
696 'shell/tools/plugin/Tests/LeakWindowScriptableObject.cpp',
697 'shell/tools/plugin/Tests/LogNPPSetWindow.cpp',
698 'shell/tools/plugin/Tests/NPDeallocateCalledBeforeNPShutdown.cpp',
699 'shell/tools/plugin/Tests/NPPNewFails.cpp',
700 'shell/tools/plugin/Tests/NPRuntimeCallsWithNullNPP.cpp',
701 'shell/tools/plugin/Tests/NPRuntimeObjectFromDestroyedPlugin.cpp',
702 'shell/tools/plugin/Tests/NPRuntimeRemoveProperty.cpp',
703 'shell/tools/plugin/Tests/NullNPPGetValuePointer.cpp',
704 'shell/tools/plugin/Tests/PassDifferentNPPStruct.cpp',
705 'shell/tools/plugin/Tests/PluginScriptableNPObjectInvokeDefault.cpp',
706 'shell/tools/plugin/Tests/PluginScriptableObjectOverridesAllProperties.cpp',
707 'shell/tools/plugin/main.cpp',
708 'shell/tools/plugin/test_object.h',
712 '<(DEPTH)/content/shell/tools/plugin/',
715 '../base/base.gyp:base',
716 '../third_party/npapi/npapi.gyp:npapi',
721 'product_extension': 'plugin',
724 '$(SDKROOT)/System/Library/Frameworks/Carbon.framework',
725 '$(SDKROOT)/System/Library/Frameworks/Cocoa.framework',
726 '$(SDKROOT)/System/Library/Frameworks/QuartzCore.framework',
730 'GCC_SYMBOLS_PRIVATE_EXTERN': 'NO',
731 'INFOPLIST_FILE': 'shell/tools/plugin/mac/Info.plist',
734 ['os_posix == 1 and OS != "mac"', {
736 '-fvisibility=default',
740 'dependencies': [ '../build/linux/system.gyp:x11' ],
744 # This seems like a hack, but this is what Safari Win does.
745 'snprintf=_snprintf',
748 'shell/tools/plugin/win/TestNetscapePlugin.def',
749 'shell/tools/plugin/win/TestNetscapePlugin.rc',
751 # The .rc file requires that the name of the dll is np_test_netscape_plugin.dll.
752 'product_name': 'np_test_netscape_plugin',
753 # Disable c4267 warnings until we fix size_t to int truncations.
754 'msvs_disabled_warnings': [ 4267, ],
759 'target_name': 'copy_test_netscape_plugin',
762 'test_netscape_plugin',
767 'destination': '<(PRODUCT_DIR)/plugins',
768 'files': ['<(PRODUCT_DIR)/np_test_netscape_plugin.dll'],
773 'destination': '<(PRODUCT_DIR)/plugins/',
774 'files': ['<(PRODUCT_DIR)/test_netscape_plugin.plugin/'],
777 ['os_posix == 1 and OS != "mac"', {
779 'destination': '<(PRODUCT_DIR)/plugins',
780 'files': ['<(PRODUCT_DIR)/libtest_netscape_plugin.so'],
787 ['OS=="mac" or OS=="win"', {
790 'target_name': 'layout_test_helper',
791 'type': 'executable',
793 'shell/renderer/test_runner/helper/layout_test_helper_mac.mm',
794 'shell/renderer/test_runner/helper/layout_test_helper_win.cc',
800 '$(SDKROOT)/System/Library/Frameworks/AppKit.framework',
807 }], # OS=="mac" or OS=="win"
811 'target_name': 'content_shell_framework',
812 'type': 'shared_library',
813 'product_name': '<(content_shell_product_name) Framework',
815 'mac_bundle_resources': [
816 'shell/app/English.lproj/HttpAuth.xib',
817 'shell/app/English.lproj/MainMenu.xib',
818 '<(PRODUCT_DIR)/content_shell.pak',
819 'shell/app/framework-Info.plist',
821 'mac_bundle_resources!': [
822 'shell/app/framework-Info.plist',
825 # The framework is placed within the .app's Framework
826 # directory. DYLIB_INSTALL_NAME_BASE and
827 # LD_DYLIB_INSTALL_NAME affect -install_name.
828 'DYLIB_INSTALL_NAME_BASE':
829 '@executable_path/../Frameworks',
830 # See /build/mac/copy_framework_unversioned.sh for
831 # information on LD_DYLIB_INSTALL_NAME.
832 'LD_DYLIB_INSTALL_NAME':
833 '$(DYLIB_INSTALL_NAME_BASE:standardizepath)/$(WRAPPER_NAME)/$(PRODUCT_NAME)',
835 'INFOPLIST_FILE': 'shell/app/framework-Info.plist',
844 'shell/app/shell_content_main.cc',
845 'shell/app/shell_content_main.h',
849 # Modify the Info.plist as needed. The script explains why
850 # this is needed. This is also done in the chrome target.
851 # The framework needs the Breakpad keys if this feature is
852 # enabled. It does not need the Keystone keys; these always
853 # come from the outer application bundle. The framework
854 # doesn't currently use the SCM keys for anything,
855 # but this seems like a really good place to store them.
856 'postbuild_name': 'Tweak Info.plist',
857 'action': ['../build/mac/tweak_info_plist.py',
861 '--version=<(content_shell_version)',
862 '--branding=<(content_shell_product_name)'],
867 # Copy FFmpeg binaries for audio/video support.
868 'destination': '<(PRODUCT_DIR)/$(CONTENTS_FOLDER_PATH)/Libraries',
870 '<(PRODUCT_DIR)/ffmpegsumo.so',
874 'destination': '<(PRODUCT_DIR)/$(CONTENTS_FOLDER_PATH)/Resources',
876 '<(PRODUCT_DIR)/crash_inspector',
877 '<(PRODUCT_DIR)/crash_report_sender.app'
882 ['enable_webrtc==1', {
884 'libpeer_target_type%': 'static_library',
887 ['libpeer_target_type!="static_library"', {
889 'destination': '<(PRODUCT_DIR)/$(CONTENTS_FOLDER_PATH)/Libraries',
891 '<(PRODUCT_DIR)/libpeerconnection.so',
897 ['icu_use_data_file_flag==1', {
898 'mac_bundle_resources': [
899 '<(PRODUCT_DIR)/icudtl.dat',
902 ['v8_use_external_startup_data==1', {
903 'mac_bundle_resources': [
904 '<(PRODUCT_DIR)/natives_blob.bin',
905 '<(PRODUCT_DIR)/snapshot_blob.bin',
909 }, # target content_shell_framework
911 'target_name': 'content_shell_helper_app',
912 'type': 'executable',
913 'variables': { 'enable_wexit_time_destructors': 1, },
914 'product_name': '<(content_shell_product_name) Helper',
917 'content_shell_framework',
920 'shell/app/shell_main.cc',
921 'shell/app/helper-Info.plist',
923 # TODO(mark): Come up with a fancier way to do this. It should only
924 # be necessary to list helper-Info.plist once, not the three times it
926 'mac_bundle_resources!': [
927 'shell/app/helper-Info.plist',
929 # TODO(mark): For now, don't put any resources into this app. Its
930 # resources directory will be a symbolic link to the browser app's
931 # resources directory.
932 'mac_bundle_resources/': [
936 'INFOPLIST_FILE': 'shell/app/helper-Info.plist',
940 # The framework defines its load-time path
941 # (DYLIB_INSTALL_NAME_BASE) relative to the main executable
942 # (chrome). A different relative path needs to be used in
943 # content_shell_helper_app.
944 'postbuild_name': 'Fix Framework Link',
948 '@executable_path/../Frameworks/<(content_shell_product_name) Framework.framework/<(content_shell_product_name) Framework',
949 '@executable_path/../../../<(content_shell_product_name) Framework.framework/<(content_shell_product_name) Framework',
950 '${BUILT_PRODUCTS_DIR}/${EXECUTABLE_PATH}'
954 # Modify the Info.plist as needed. The script explains why this
955 # is needed. This is also done in the chrome and chrome_dll
956 # targets. In this case, --breakpad=0, --keystone=0, and --scm=0
957 # are used because Breakpad, Keystone, and SCM keys are
958 # never placed into the helper.
959 'postbuild_name': 'Tweak Info.plist',
960 'action': ['../build/mac/tweak_info_plist.py',
964 '--version=<(content_shell_version)'],
967 # Make sure there isn't any Objective-C in the helper app's
969 'postbuild_name': 'Verify No Objective-C',
971 '../build/mac/verify_no_objc.sh',
976 ['component=="shared_library"', {
978 'LD_RUNPATH_SEARCH_PATHS': [
979 # Get back from Content Shell.app/Contents/Frameworks/
980 # Helper.app/Contents/MacOS
981 '@loader_path/../../../../../..',
986 }, # target content_shell_helper_app
992 # TODO(jrg): Update this action and other jni generators to only
993 # require specifying the java directory and generate the rest.
994 'target_name': 'content_shell_jni_headers',
997 'shell/android/browsertests_apk/src/org/chromium/content_browsertests_apk/ContentBrowserTestsActivity.java',
998 'shell/android/java/src/org/chromium/content_shell/ShellLayoutTestUtils.java',
999 'shell/android/java/src/org/chromium/content_shell/ShellMojoTestUtils.java',
1000 'shell/android/java/src/org/chromium/content_shell/ShellManager.java',
1001 'shell/android/java/src/org/chromium/content_shell/Shell.java',
1004 'jni_gen_package': 'content/shell',
1006 'includes': [ '../build/jni_generator.gypi' ],
1009 'target_name': 'libcontent_shell_content_view',
1010 'type': 'shared_library',
1012 'content_shell_jni_headers',
1013 'content_shell_lib',
1014 'content_shell_pak',
1015 # Skia is necessary to ensure the dependencies needed by
1016 # WebContents are included.
1017 '../skia/skia.gyp:skia',
1018 '<(DEPTH)/media/media.gyp:player_android',
1021 'shell/android/shell_library_loader.cc',
1024 ['android_webview_build==1', {
1026 '-lgabi++', # For rtti
1032 'target_name': 'content_shell_java',
1035 'content.gyp:content_java',
1038 'java_in_dir': '../content/shell/android/java',
1039 'has_java_resources': 1,
1040 'R_package': 'org.chromium.content_shell',
1041 'R_package_relpath': 'org/chromium/content_shell',
1043 'includes': [ '../build/java.gypi' ],
1046 # content_shell_apk creates a .jar as a side effect. Any java targets
1047 # that need that .jar in their classpath should depend on this target,
1048 # content_shell_apk_java. Dependents of content_shell_apk receive its
1049 # jar path in the variable 'apk_output_jar_path'. This target should
1050 # only be used by targets which instrument content_shell_apk.
1051 'target_name': 'content_shell_apk_java',
1054 'content_shell_apk',
1056 'includes': [ '../build/apk_fake_jar.gypi' ],
1059 # GN version: //content/shell/android:content_shell_manifest
1060 'target_name': 'content_shell_manifest',
1063 'jinja_inputs': ['shell/android/shell_apk/AndroidManifest.xml.jinja2'],
1064 'jinja_output': '<(SHARED_INTERMEDIATE_DIR)/content_shell_manifest/AndroidManifest.xml',
1066 'includes': [ '../build/android/jinja_template.gypi' ],
1069 # GN version: //content/shell/android:content_shell_apk
1070 'target_name': 'content_shell_apk',
1073 'content.gyp:content_icudata',
1074 'content.gyp:content_java',
1075 'content.gyp:content_v8_external_data',
1076 'content_java_test_support',
1077 'content_shell_java',
1078 'libcontent_shell_content_view',
1079 '../base/base.gyp:base_java',
1080 '../media/media.gyp:media_java',
1081 '../net/net.gyp:net_java',
1082 '../third_party/mesa/mesa.gyp:osmesa_in_lib_dir',
1083 '../tools/android/forwarder/forwarder.gyp:forwarder',
1084 '../ui/android/ui_android.gyp:ui_java',
1087 'apk_name': 'ContentShell',
1088 'manifest_package_name': 'org.chromium.content_shell_apk',
1089 'android_manifest_path': '<(SHARED_INTERMEDIATE_DIR)/content_shell_manifest/AndroidManifest.xml',
1090 'java_in_dir': 'shell/android/shell_apk',
1091 'resource_dir': 'shell/android/shell_apk/res',
1092 'native_lib_target': 'libcontent_shell_content_view',
1093 'additional_input_paths': ['<(PRODUCT_DIR)/content_shell/assets/content_shell.pak'],
1094 'asset_location': '<(PRODUCT_DIR)/content_shell/assets',
1095 'extra_native_libs': ['<(SHARED_LIB_DIR)/libosmesa.so'],
1097 ['icu_use_data_file_flag==1', {
1098 'additional_input_paths': [
1099 '<(PRODUCT_DIR)/icudtl.dat',
1102 ['v8_use_external_startup_data==1', {
1103 'additional_input_paths': [
1104 '<(PRODUCT_DIR)/natives_blob.bin',
1105 '<(PRODUCT_DIR)/snapshot_blob.bin',
1111 ['android_webview_build==0', {
1113 '../tools/imagediff/image_diff.gyp:image_diff#host',
1117 'includes': [ '../build/java_apk.gypi' ],
1124 'target_name': 'content_shell_crash_service',
1125 'type': 'executable',
1127 '../base/base.gyp:base',
1128 '../components/components.gyp:breakpad_crash_service',
1134 'shell/tools/content_shell_crash_service.cc',
1138 'SubSystem': '2', # Set /SUBSYSTEM:WINDOWS
1144 ['OS=="win" and fastbuild==0 and target_arch=="ia32" and syzyasan==1', {
1146 'dest_dir': '<(PRODUCT_DIR)/syzygy',
1150 'target_name': 'content_shell_syzyasan',
1153 # Instrument content_shell with SyzyAsan.
1156 'action_name': 'Instrument content_shell with SyzyAsan',
1158 '<(PRODUCT_DIR)/content_shell.exe',
1161 '<(dest_dir)/content_shell.exe',
1162 '<(dest_dir)/content_shell.exe.pdb',
1166 '<(DEPTH)/chrome/tools/build/win/syzygy/instrument.py',
1168 '--input_executable', '<(PRODUCT_DIR)/content_shell.exe',
1169 '--input_symbol', '<(PRODUCT_DIR)/content_shell.exe.pdb',
1170 '--destination_dir', '<(dest_dir)',
1176 }], # OS=="win" and fastbuild==0 and target_arch=="ia32"