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',
50 '../components/components.gyp:web_cache_renderer',
54 '../media/blink/media_blink.gyp:media_blink',
55 '../media/media.gyp:media',
57 '../net/net.gyp:net_resources',
58 '../skia/skia.gyp:skia',
59 '../storage/storage_browser.gyp:storage',
60 '../third_party/WebKit/public/blink.gyp:blink',
61 '../third_party/WebKit/public/blink.gyp:blink_test_support',
62 '../ui/base/ui_base.gyp:ui_base',
63 '../ui/events/events.gyp:events_base',
64 '../ui/gfx/gfx.gyp:gfx',
65 '../ui/gfx/gfx.gyp:gfx_geometry',
66 '../ui/gfx/ipc/gfx_ipc.gyp:gfx_ipc',
68 '../url/url.gyp:url_lib',
69 '../v8/tools/gyp/v8.gyp:v8',
75 # Note: sources list duplicated in GN build.
76 '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',
80 'shell/app/paths_mac.h',
81 'shell/app/paths_mac.mm',
82 'shell/app/shell_crash_reporter_client.cc',
83 'shell/app/shell_crash_reporter_client.h',
84 'shell/app/shell_main_delegate.cc',
85 'shell/app/shell_main_delegate.h',
86 'shell/app/shell_main_delegate_mac.h',
87 'shell/app/shell_main_delegate_mac.mm',
88 'shell/app/webkit_test_platform_support_android.cc',
89 'shell/app/webkit_test_platform_support.h',
90 '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',
93 'shell/browser/ipc_echo_message_filter.cc',
94 'shell/browser/ipc_echo_message_filter.h',
95 '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',
117 'shell/browser/shell.h',
118 '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',
126 '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',
135 'shell/browser/shell_notification_manager.cc',
136 'shell/browser/shell_notification_manager.h',
137 'shell/browser/shell_platform_data_aura.cc',
138 'shell/browser/shell_platform_data_aura.h',
139 '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',
145 'shell/browser/shell_speech_recognition_manager_delegate.cc',
146 'shell/browser/shell_speech_recognition_manager_delegate.h',
147 'shell/browser/shell_url_request_context_getter.cc',
148 'shell/browser/shell_url_request_context_getter.h',
149 'shell/browser/shell_views.cc',
150 'shell/browser/shell_web_contents_view_delegate_android.cc',
151 'shell/browser/shell_web_contents_view_delegate_creator.h',
152 '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',
155 'shell/browser/webkit_test_controller.cc',
156 'shell/browser/webkit_test_controller.h',
157 'shell/common/leak_detection_result.h',
158 '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',
166 'shell/common/test_runner/test_preferences.cc',
167 'shell/common/test_runner/test_preferences.h',
168 'shell/common/webkit_test_helpers.cc',
169 'shell/common/webkit_test_helpers.h',
170 'shell/geolocation/shell_access_token_store.cc',
171 'shell/geolocation/shell_access_token_store.h',
172 'shell/renderer/gc_controller.cc',
173 'shell/renderer/gc_controller.h',
174 'shell/renderer/ipc_echo.cc',
175 'shell/renderer/ipc_echo.h',
176 'shell/renderer/leak_detector.cc',
177 'shell/renderer/leak_detector.h',
178 'shell/renderer/shell_content_renderer_client.cc',
179 'shell/renderer/shell_content_renderer_client.h',
180 'shell/renderer/shell_render_frame_observer.cc',
181 'shell/renderer/shell_render_frame_observer.h',
182 'shell/renderer/shell_render_process_observer.cc',
183 'shell/renderer/shell_render_process_observer.h',
184 'shell/renderer/shell_render_view_observer.cc',
185 'shell/renderer/shell_render_view_observer.h',
186 'shell/renderer/test_runner/WebTestInterfaces.cpp',
187 'shell/renderer/test_runner/WebTestInterfaces.h',
188 'shell/renderer/test_runner/accessibility_controller.cc',
189 'shell/renderer/test_runner/accessibility_controller.h',
190 'shell/renderer/test_runner/event_sender.cc',
191 'shell/renderer/test_runner/event_sender.h',
192 'shell/renderer/test_runner/gamepad_controller.cc',
193 'shell/renderer/test_runner/gamepad_controller.h',
194 'shell/renderer/test_runner/mock_color_chooser.cc',
195 'shell/renderer/test_runner/mock_color_chooser.h',
196 'shell/renderer/test_runner/mock_credential_manager_client.cc',
197 'shell/renderer/test_runner/mock_credential_manager_client.h',
198 'shell/renderer/test_runner/mock_constraints.cc',
199 'shell/renderer/test_runner/mock_constraints.h',
200 'shell/renderer/test_runner/mock_grammar_check.cc',
201 'shell/renderer/test_runner/mock_grammar_check.h',
202 'shell/renderer/test_runner/mock_screen_orientation_client.cc',
203 'shell/renderer/test_runner/mock_screen_orientation_client.h',
204 'shell/renderer/test_runner/mock_spell_check.cc',
205 'shell/renderer/test_runner/mock_spell_check.h',
206 'shell/renderer/test_runner/mock_web_audio_device.cc',
207 'shell/renderer/test_runner/mock_web_audio_device.h',
208 'shell/renderer/test_runner/mock_web_media_stream_center.cc',
209 'shell/renderer/test_runner/mock_web_media_stream_center.h',
210 'shell/renderer/test_runner/mock_web_midi_accessor.cc',
211 'shell/renderer/test_runner/mock_web_midi_accessor.h',
212 'shell/renderer/test_runner/mock_web_push_client.cc',
213 'shell/renderer/test_runner/mock_web_push_client.h',
214 'shell/renderer/test_runner/mock_web_speech_recognizer.cc',
215 'shell/renderer/test_runner/mock_web_speech_recognizer.h',
216 'shell/renderer/test_runner/mock_web_theme_engine.cc',
217 'shell/renderer/test_runner/mock_web_theme_engine.h',
218 'shell/renderer/test_runner/mock_web_theme_engine_mac.h',
219 'shell/renderer/test_runner/mock_web_theme_engine_mac.mm',
220 'shell/renderer/test_runner/mock_web_user_media_client.cc',
221 'shell/renderer/test_runner/mock_web_user_media_client.h',
222 'shell/renderer/test_runner/mock_webrtc_data_channel_handler.cc',
223 'shell/renderer/test_runner/mock_webrtc_data_channel_handler.h',
224 'shell/renderer/test_runner/mock_webrtc_dtmf_sender_handler.cc',
225 'shell/renderer/test_runner/mock_webrtc_dtmf_sender_handler.h',
226 'shell/renderer/test_runner/mock_webrtc_peer_connection_handler.cc',
227 'shell/renderer/test_runner/mock_webrtc_peer_connection_handler.h',
228 'shell/renderer/test_runner/notification_presenter.cc',
229 'shell/renderer/test_runner/notification_presenter.h',
230 'shell/renderer/test_runner/spell_check_client.cc',
231 'shell/renderer/test_runner/spell_check_client.h',
232 'shell/renderer/test_runner/test_common.cc',
233 'shell/renderer/test_runner/test_common.h',
234 'shell/renderer/test_runner/test_interfaces.cc',
235 'shell/renderer/test_runner/test_interfaces.h',
236 'shell/renderer/test_runner/test_plugin.cc',
237 'shell/renderer/test_runner/test_plugin.h',
238 'shell/renderer/test_runner/test_runner.cc',
239 'shell/renderer/test_runner/test_runner.h',
240 'shell/renderer/test_runner/text_input_controller.cc',
241 'shell/renderer/test_runner/text_input_controller.h',
242 'shell/renderer/test_runner/web_ax_object_proxy.cc',
243 'shell/renderer/test_runner/web_ax_object_proxy.h',
244 'shell/renderer/test_runner/web_frame_test_proxy.h',
245 'shell/renderer/test_runner/web_permissions.cc',
246 'shell/renderer/test_runner/web_permissions.h',
247 'shell/renderer/test_runner/web_task.cc',
248 'shell/renderer/test_runner/web_task.h',
249 'shell/renderer/test_runner/web_test_delegate.h',
250 'shell/renderer/test_runner/web_test_proxy.cc',
251 'shell/renderer/test_runner/web_test_proxy.h',
252 'shell/renderer/test_runner/web_test_runner.h',
253 'shell/renderer/webkit_test_runner.cc',
254 'shell/renderer/webkit_test_runner.h',
258 'SubSystem': '2', # Set /SUBSYSTEM:WINDOWS
262 ['OS=="win" and win_use_allocator_shim==1', {
264 '../base/allocator/allocator.gyp:allocator',
268 'resource_include_dirs': [
269 '<(SHARED_INTERMEDIATE_DIR)/content/app/strings',
272 '<(DEPTH)/content/app/strings/content_strings.gyp:content_strings',
278 'LinkIncremental': '<(msvs_large_module_debug_link_mode)',
283 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
284 'msvs_disabled_warnings': [ 4267, ],
288 '../build/linux/system.gyp:fontconfig',
293 '../tools/xdisplaycheck/xdisplaycheck.gyp:xdisplaycheck',
298 'content_shell_jni_headers',
301 'copy_test_netscape_plugin',
304 ['os_posix == 1 and OS != "mac" and android_webview_build != 1', {
306 '../components/components.gyp:breakpad_host',
309 ['(OS=="linux" or OS=="android") and use_allocator!="none"', {
311 # This is needed by content/app/content_main_runner.cc
312 '../base/allocator/allocator.gyp:allocator',
317 '../ui/aura/aura.gyp:aura',
318 '../ui/aura/aura.gyp:aura_test_support',
319 '../ui/events/events.gyp:events',
320 '../ui/strings/ui_strings.gyp:ui_strings',
321 '../ui/wm/wm.gyp:wm',
324 ['toolkit_views==1', {
326 '../ui/resources/ui_resources.gyp:ui_resources',
327 '../ui/views/controls/webview/webview.gyp:webview',
328 '../ui/views/views.gyp:views',
329 '../ui/views/views.gyp:views_test_support',
332 ['exclude', 'shell/browser/shell_aura.cc'],
336 ['exclude', 'shell/browser/shell_views.cc'],
342 ['exclude', 'shell/browser/shell_aura.cc'],
343 ['exclude', 'shell/browser/shell_views.cc'],
346 # The test plugin relies on X11.
347 ['OS=="linux" and use_x11==0', {
349 'copy_test_netscape_plugin',
354 '../chromeos/chromeos.gyp:chromeos',
355 '../ui/wm/wm.gyp:wm_test_support',
358 ['use_custom_freetype==1', {
360 '../third_party/freetype2/freetype2.gyp:freetype2',
363 ['enable_plugins==0', {
365 'shell/browser/shell_plugin_service_filter.cc',
366 'shell/browser/shell_plugin_service_filter.h',
372 # GN version: //content/shell:resources
373 'target_name': 'content_shell_resources',
376 'grit_out_dir': '<(SHARED_INTERMEDIATE_DIR)/content',
380 'action_name': 'generate_content_shell_resources',
382 'grit_grd_file': 'shell/shell_resources.grd',
384 'includes': [ '../build/grit_action.gypi' ],
387 'includes': [ '../build/grit_target.gypi' ],
390 'destination': '<(PRODUCT_DIR)',
392 '<(SHARED_INTERMEDIATE_DIR)/content/shell_resources.pak'
399 'destination': '<(PRODUCT_DIR)',
400 'files': ['shell/renderer/test_runner/resources/fonts/AHEM____.TTF'],
404 'all_dependent_settings': {
405 'mac_bundle_resources': [
406 'shell/renderer/test_runner/resources/fonts/AHEM____.TTF',
407 'shell/renderer/test_runner/resources/fonts/ChromiumAATTest.ttf',
408 '<(SHARED_INTERMEDIATE_DIR)/webkit/missingImage.png',
409 '<(SHARED_INTERMEDIATE_DIR)/webkit/textAreaResizeCorner.png',
415 'destination': '<(PRODUCT_DIR)',
417 'shell/renderer/test_runner/resources/fonts/AHEM____.TTF',
418 'shell/renderer/test_runner/resources/fonts/fonts.conf',
419 '../third_party/gardiner_mod/GardinerModBug.ttf',
420 '../third_party/gardiner_mod/GardinerModCat.ttf',
426 'destination': '<(PRODUCT_DIR)',
428 'shell/renderer/test_runner/resources/fonts/AHEM____.TTF',
429 'shell/renderer/test_runner/resources/fonts/android_main_fonts.xml',
430 'shell/renderer/test_runner/resources/fonts/android_fallback_fonts.xml',
437 # We build a minimal set of resources so WebKit in content_shell has
438 # access to necessary resources.
439 # GN version: //content/shell:pak
440 'target_name': 'content_shell_pak',
443 'app/resources/content_resources.gyp:content_resources',
444 'app/strings/content_strings.gyp:content_strings',
445 'browser/tracing/tracing_resources.gyp:tracing_resources',
446 'content.gyp:content_resources',
447 'content_shell_resources',
448 '<(DEPTH)/net/net.gyp:net_resources',
449 '<(DEPTH)/third_party/WebKit/public/blink_resources.gyp:blink_resources',
450 '<(DEPTH)/ui/resources/ui_resources.gyp:ui_resources',
451 '<(DEPTH)/ui/strings/ui_strings.gyp:ui_strings',
456 'browser/devtools/devtools_resources.gyp:devtools_resources',
462 'destination': '<(PRODUCT_DIR)',
464 '<(PRODUCT_DIR)/content_shell/assets/content_shell.pak'
472 'action_name': 'repack_content_shell_pack',
475 '<(SHARED_INTERMEDIATE_DIR)/blink/public/resources/blink_resources.pak',
476 '<(SHARED_INTERMEDIATE_DIR)/content/app/resources/content_resources_100_percent.pak',
477 '<(SHARED_INTERMEDIATE_DIR)/content/app/strings/content_strings_en-US.pak',
478 '<(SHARED_INTERMEDIATE_DIR)/content/browser/tracing/tracing_resources.pak',
479 '<(SHARED_INTERMEDIATE_DIR)/content/content_resources.pak',
480 '<(SHARED_INTERMEDIATE_DIR)/content/shell_resources.pak',
481 '<(SHARED_INTERMEDIATE_DIR)/net/net_resources.pak',
482 '<(SHARED_INTERMEDIATE_DIR)/ui/resources/ui_resources_100_percent.pak',
483 '<(SHARED_INTERMEDIATE_DIR)/ui/resources/webui_resources.pak',
484 '<(SHARED_INTERMEDIATE_DIR)/ui/strings/app_locale_settings_en-US.pak',
485 '<(SHARED_INTERMEDIATE_DIR)/ui/strings/ui_strings_en-US.pak',
489 'pak_inputs': ['<(SHARED_INTERMEDIATE_DIR)/webkit/devtools_resources.pak',],
490 'pak_output': '<(PRODUCT_DIR)/content_shell.pak',
492 'pak_output': '<(PRODUCT_DIR)/content_shell/assets/content_shell.pak',
496 'includes': [ '../build/repack_action.gypi' ],
501 # GN version: //content/shell:content_shell
502 'target_name': 'content_shell',
503 'type': 'executable',
511 '../third_party/mesa/mesa.gyp:osmesa',
512 '../tools/imagediff/image_diff.gyp:image_diff',
518 'shell/app/shell_main.cc',
520 'mac_bundle_resources': [
521 'shell/app/app.icns',
522 'shell/app/app-Info.plist',
524 # TODO(mark): Come up with a fancier way to do this. It should only
525 # be necessary to list app-Info.plist once, not the three times it is
527 'mac_bundle_resources!': [
528 'shell/app/app-Info.plist',
531 'INFOPLIST_FILE': 'shell/app/app-Info.plist',
535 'AdditionalManifestFiles': [
536 'shell/app/shell.exe.manifest',
541 ['OS=="win" and win_use_allocator_shim==1', {
543 '../base/allocator/allocator.gyp:allocator',
548 'shell/app/shell.rc',
554 'LinkIncremental': '<(msvs_large_module_debug_link_mode)',
562 '../sandbox/sandbox.gyp:sandbox',
565 ['OS=="win" and asan==0', {
568 'SubSystem': '2', # Set /SUBSYSTEM:WINDOWS
571 }], # OS=="win" and asan==0
573 'product_name': '<(content_shell_product_name)',
578 'content_shell_framework',
579 'content_shell_helper_app',
583 'destination': '<(PRODUCT_DIR)/<(content_shell_product_name).app/Contents/Frameworks',
585 '<(PRODUCT_DIR)/<(content_shell_product_name) Helper.app',
591 'postbuild_name': 'Copy <(content_shell_product_name) Framework.framework',
593 '../build/mac/copy_framework_unversioned.sh',
594 '${BUILT_PRODUCTS_DIR}/<(content_shell_product_name) Framework.framework',
595 '${BUILT_PRODUCTS_DIR}/${CONTENTS_FOLDER_PATH}/Frameworks',
599 # Modify the Info.plist as needed.
600 'postbuild_name': 'Tweak Info.plist',
601 'action': ['../build/mac/tweak_info_plist.py',
603 '--version=<(content_shell_version)'],
606 # This postbuid step is responsible for creating the following
609 # Content Shell Helper EH.app and Content Shell Helper NP.app are
610 # created from Content Shell Helper.app.
612 # The EH helper is marked for an executable heap. The NP helper
613 # is marked for no PIE (ASLR).
614 'postbuild_name': 'Make More Helpers',
616 '../build/mac/make_more_helpers.sh',
618 '<(content_shell_product_name)',
622 # Make sure there isn't any Objective-C in the shell's
624 'postbuild_name': 'Verify No Objective-C',
626 '../build/mac/verify_no_objc.sh',
633 '../tools/imagediff/image_diff.gyp:image_diff',
636 ['OS=="android" and android_webview_build==0', {
638 '../tools/imagediff/image_diff.gyp:image_diff#host',
640 }], # OS=="android" and android_webview_build==0
644 'target_name': 'content_shell_builder',
652 'target_name': 'test_netscape_plugin',
653 'type': 'loadable_module',
655 'shell/tools/plugin/PluginObject.cpp',
656 'shell/tools/plugin/PluginObject.h',
657 'shell/tools/plugin/PluginObjectMac.mm',
658 'shell/tools/plugin/PluginTest.cpp',
659 'shell/tools/plugin/PluginTest.h',
660 'shell/tools/plugin/TestObject.cpp',
661 'shell/tools/plugin/Tests/DocumentOpenInDestroyStream.cpp',
662 'shell/tools/plugin/Tests/EvaluateJSAfterRemovingPluginElement.cpp',
663 'shell/tools/plugin/Tests/FormValue.cpp',
664 'shell/tools/plugin/Tests/GetURLNotifyWithURLThatFailsToLoad.cpp',
665 'shell/tools/plugin/Tests/GetURLWithJavaScriptURL.cpp',
666 'shell/tools/plugin/Tests/GetURLWithJavaScriptURLDestroyingPlugin.cpp',
667 'shell/tools/plugin/Tests/GetUserAgentWithNullNPPFromNPPNew.cpp',
668 'shell/tools/plugin/Tests/LeakWindowScriptableObject.cpp',
669 'shell/tools/plugin/Tests/LogNPPSetWindow.cpp',
670 'shell/tools/plugin/Tests/NPDeallocateCalledBeforeNPShutdown.cpp',
671 'shell/tools/plugin/Tests/NPPNewFails.cpp',
672 'shell/tools/plugin/Tests/NPRuntimeCallsWithNullNPP.cpp',
673 'shell/tools/plugin/Tests/NPRuntimeObjectFromDestroyedPlugin.cpp',
674 'shell/tools/plugin/Tests/NPRuntimeRemoveProperty.cpp',
675 'shell/tools/plugin/Tests/NullNPPGetValuePointer.cpp',
676 'shell/tools/plugin/Tests/PassDifferentNPPStruct.cpp',
677 'shell/tools/plugin/Tests/PluginScriptableNPObjectInvokeDefault.cpp',
678 'shell/tools/plugin/Tests/PluginScriptableObjectOverridesAllProperties.cpp',
679 'shell/tools/plugin/main.cpp',
680 'shell/tools/plugin/test_object.h',
684 '<(DEPTH)/content/shell/tools/plugin/',
687 '../base/base.gyp:base',
688 '../third_party/npapi/npapi.gyp:npapi',
693 'product_extension': 'plugin',
696 '$(SDKROOT)/System/Library/Frameworks/Carbon.framework',
697 '$(SDKROOT)/System/Library/Frameworks/Cocoa.framework',
698 '$(SDKROOT)/System/Library/Frameworks/QuartzCore.framework',
702 'GCC_SYMBOLS_PRIVATE_EXTERN': 'NO',
703 'INFOPLIST_FILE': 'shell/tools/plugin/mac/Info.plist',
706 ['os_posix == 1 and OS != "mac"', {
708 '-fvisibility=default',
713 # This seems like a hack, but this is what Safari Win does.
714 'snprintf=_snprintf',
717 'shell/tools/plugin/win/TestNetscapePlugin.def',
718 'shell/tools/plugin/win/TestNetscapePlugin.rc',
720 # The .rc file requires that the name of the dll is np_test_netscape_plugin.dll.
721 'product_name': 'np_test_netscape_plugin',
722 # Disable c4267 warnings until we fix size_t to int truncations.
723 'msvs_disabled_warnings': [ 4267, ],
728 'target_name': 'copy_test_netscape_plugin',
731 'test_netscape_plugin',
736 'destination': '<(PRODUCT_DIR)/plugins',
737 'files': ['<(PRODUCT_DIR)/np_test_netscape_plugin.dll'],
742 'destination': '<(PRODUCT_DIR)/plugins/',
743 'files': ['<(PRODUCT_DIR)/test_netscape_plugin.plugin/'],
746 ['os_posix == 1 and OS != "mac"', {
748 'destination': '<(PRODUCT_DIR)/plugins',
749 'files': ['<(PRODUCT_DIR)/libtest_netscape_plugin.so'],
756 ['OS=="mac" or OS=="win"', {
759 'target_name': 'layout_test_helper',
760 'type': 'executable',
762 'shell/renderer/test_runner/helper/layout_test_helper_mac.mm',
763 'shell/renderer/test_runner/helper/layout_test_helper_win.cc',
769 '$(SDKROOT)/System/Library/Frameworks/AppKit.framework',
776 }], # OS=="mac" or OS=="win"
780 'target_name': 'content_shell_framework',
781 'type': 'shared_library',
782 'product_name': '<(content_shell_product_name) Framework',
784 'mac_bundle_resources': [
785 'shell/app/English.lproj/HttpAuth.xib',
786 'shell/app/English.lproj/MainMenu.xib',
787 '<(PRODUCT_DIR)/content_shell.pak',
788 'shell/app/framework-Info.plist',
790 'mac_bundle_resources!': [
791 'shell/app/framework-Info.plist',
794 # The framework is placed within the .app's Framework
795 # directory. DYLIB_INSTALL_NAME_BASE and
796 # LD_DYLIB_INSTALL_NAME affect -install_name.
797 'DYLIB_INSTALL_NAME_BASE':
798 '@executable_path/../Frameworks',
799 # See /build/mac/copy_framework_unversioned.sh for
800 # information on LD_DYLIB_INSTALL_NAME.
801 'LD_DYLIB_INSTALL_NAME':
802 '$(DYLIB_INSTALL_NAME_BASE:standardizepath)/$(WRAPPER_NAME)/$(PRODUCT_NAME)',
804 'INFOPLIST_FILE': 'shell/app/framework-Info.plist',
813 'shell/app/shell_content_main.cc',
814 'shell/app/shell_content_main.h',
818 # Modify the Info.plist as needed. The script explains why
819 # this is needed. This is also done in the chrome target.
820 # The framework needs the Breakpad keys if this feature is
821 # enabled. It does not need the Keystone keys; these always
822 # come from the outer application bundle. The framework
823 # doesn't currently use the SCM keys for anything,
824 # but this seems like a really good place to store them.
825 'postbuild_name': 'Tweak Info.plist',
826 'action': ['../build/mac/tweak_info_plist.py',
830 '--version=<(content_shell_version)',
831 '--branding=<(content_shell_product_name)'],
836 # Copy FFmpeg binaries for audio/video support.
837 'destination': '<(PRODUCT_DIR)/$(CONTENTS_FOLDER_PATH)/Libraries',
839 '<(PRODUCT_DIR)/ffmpegsumo.so',
843 'destination': '<(PRODUCT_DIR)/$(CONTENTS_FOLDER_PATH)/Resources',
845 '<(PRODUCT_DIR)/crash_inspector',
846 '<(PRODUCT_DIR)/crash_report_sender.app'
851 ['enable_webrtc==1', {
853 'libpeer_target_type%': 'static_library',
856 ['libpeer_target_type!="static_library"', {
858 'destination': '<(PRODUCT_DIR)/$(CONTENTS_FOLDER_PATH)/Libraries',
860 '<(PRODUCT_DIR)/libpeerconnection.so',
866 ['icu_use_data_file_flag==1', {
867 'mac_bundle_resources': [
868 '<(PRODUCT_DIR)/icudtl.dat',
872 }, # target content_shell_framework
874 'target_name': 'content_shell_helper_app',
875 'type': 'executable',
876 'variables': { 'enable_wexit_time_destructors': 1, },
877 'product_name': '<(content_shell_product_name) Helper',
880 'content_shell_framework',
883 'shell/app/shell_main.cc',
884 'shell/app/helper-Info.plist',
886 # TODO(mark): Come up with a fancier way to do this. It should only
887 # be necessary to list helper-Info.plist once, not the three times it
889 'mac_bundle_resources!': [
890 'shell/app/helper-Info.plist',
892 # TODO(mark): For now, don't put any resources into this app. Its
893 # resources directory will be a symbolic link to the browser app's
894 # resources directory.
895 'mac_bundle_resources/': [
899 'INFOPLIST_FILE': 'shell/app/helper-Info.plist',
903 # The framework defines its load-time path
904 # (DYLIB_INSTALL_NAME_BASE) relative to the main executable
905 # (chrome). A different relative path needs to be used in
906 # content_shell_helper_app.
907 'postbuild_name': 'Fix Framework Link',
911 '@executable_path/../Frameworks/<(content_shell_product_name) Framework.framework/<(content_shell_product_name) Framework',
912 '@executable_path/../../../<(content_shell_product_name) Framework.framework/<(content_shell_product_name) Framework',
913 '${BUILT_PRODUCTS_DIR}/${EXECUTABLE_PATH}'
917 # Modify the Info.plist as needed. The script explains why this
918 # is needed. This is also done in the chrome and chrome_dll
919 # targets. In this case, --breakpad=0, --keystone=0, and --scm=0
920 # are used because Breakpad, Keystone, and SCM keys are
921 # never placed into the helper.
922 'postbuild_name': 'Tweak Info.plist',
923 'action': ['../build/mac/tweak_info_plist.py',
927 '--version=<(content_shell_version)'],
930 # Make sure there isn't any Objective-C in the helper app's
932 'postbuild_name': 'Verify No Objective-C',
934 '../build/mac/verify_no_objc.sh',
939 ['component=="shared_library"', {
941 'LD_RUNPATH_SEARCH_PATHS': [
942 # Get back from Content Shell.app/Contents/Frameworks/
943 # Helper.app/Contents/MacOS
944 '@loader_path/../../../../../..',
949 }, # target content_shell_helper_app
955 # TODO(jrg): Update this action and other jni generators to only
956 # require specifying the java directory and generate the rest.
957 'target_name': 'content_shell_jni_headers',
960 'shell/android/browsertests_apk/src/org/chromium/content_browsertests_apk/ContentBrowserTestsActivity.java',
961 'shell/android/java/src/org/chromium/content_shell/ShellLayoutTestUtils.java',
962 'shell/android/java/src/org/chromium/content_shell/ShellManager.java',
963 'shell/android/java/src/org/chromium/content_shell/Shell.java',
966 'jni_gen_package': 'content/shell',
968 'includes': [ '../build/jni_generator.gypi' ],
971 'target_name': 'libcontent_shell_content_view',
972 'type': 'shared_library',
974 'content_shell_jni_headers',
977 # Skia is necessary to ensure the dependencies needed by
978 # WebContents are included.
979 '../skia/skia.gyp:skia',
980 '<(DEPTH)/media/media.gyp:player_android',
983 'shell/android/shell_library_loader.cc',
984 'shell/android/shell_library_loader.h',
987 ['android_webview_build==1', {
989 '-lgabi++', # For rtti
995 'target_name': 'content_shell_java',
998 'content.gyp:content_java',
1001 'java_in_dir': '../content/shell/android/java',
1002 'has_java_resources': 1,
1003 'R_package': 'org.chromium.content_shell',
1004 'R_package_relpath': 'org/chromium/content_shell',
1006 'includes': [ '../build/java.gypi' ],
1009 # content_shell_apk creates a .jar as a side effect. Any java targets
1010 # that need that .jar in their classpath should depend on this target,
1011 # content_shell_apk_java. Dependents of content_shell_apk receive its
1012 # jar path in the variable 'apk_output_jar_path'. This target should
1013 # only be used by targets which instrument content_shell_apk.
1014 'target_name': 'content_shell_apk_java',
1017 'content_shell_apk',
1019 'includes': [ '../build/apk_fake_jar.gypi' ],
1022 'target_name': 'content_shell_apk',
1025 'content.gyp:content_icudata',
1026 'content.gyp:content_java',
1027 'content_java_test_support',
1028 'content_shell_java',
1029 'libcontent_shell_content_view',
1030 '../base/base.gyp:base_java',
1031 '../media/media.gyp:media_java',
1032 '../net/net.gyp:net_java',
1033 '../third_party/mesa/mesa.gyp:osmesa_in_lib_dir',
1034 '../tools/android/forwarder/forwarder.gyp:forwarder',
1035 '../ui/android/ui_android.gyp:ui_java',
1038 'apk_name': 'ContentShell',
1039 'manifest_package_name': 'org.chromium.content_shell_apk',
1040 'java_in_dir': 'shell/android/shell_apk',
1041 'resource_dir': 'shell/android/shell_apk/res',
1042 'native_lib_target': 'libcontent_shell_content_view',
1043 'additional_input_paths': ['<(PRODUCT_DIR)/content_shell/assets/content_shell.pak'],
1044 'asset_location': '<(PRODUCT_DIR)/content_shell/assets',
1045 'extra_native_libs': ['<(SHARED_LIB_DIR)/libosmesa.so'],
1047 ['icu_use_data_file_flag==1', {
1048 'additional_input_paths': [
1049 '<(PRODUCT_DIR)/icudtl.dat',
1055 ['android_webview_build==0', {
1057 '../tools/imagediff/image_diff.gyp:image_diff#host',
1061 'includes': [ '../build/java_apk.gypi' ],
1068 'target_name': 'content_shell_crash_service',
1069 'type': 'executable',
1071 '../base/base.gyp:base',
1072 '../components/components.gyp:breakpad_crash_service',
1078 'shell/tools/content_shell_crash_service.cc',
1082 'SubSystem': '2', # Set /SUBSYSTEM:WINDOWS
1088 ['OS=="win" and fastbuild==0 and target_arch=="ia32" and syzyasan==1', {
1090 'dest_dir': '<(PRODUCT_DIR)/syzygy',
1094 'target_name': 'content_shell_syzyasan',
1097 # Instrument content_shell with SyzyAsan.
1100 'action_name': 'Instrument content_shell with SyzyAsan',
1102 '<(PRODUCT_DIR)/content_shell.exe',
1105 '<(dest_dir)/content_shell.exe',
1106 '<(dest_dir)/content_shell.exe.pdb',
1110 '<(DEPTH)/chrome/tools/build/win/syzygy_instrument.py',
1112 '--input_executable', '<(PRODUCT_DIR)/content_shell.exe',
1113 '--input_symbol', '<(PRODUCT_DIR)/content_shell.exe.pdb',
1114 '--destination_dir', '<(dest_dir)',
1120 }], # OS=="win" and fastbuild==0 and target_arch=="ia32"