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 'target_name': 'content_shell_lib',
23 'type': 'static_library',
24 'defines': ['CONTENT_SHELL_VERSION="<(content_shell_version)"'],
29 'content.gyp:content_app_both',
30 'content.gyp:content_browser',
31 'content.gyp:content_common',
32 'content.gyp:content_gpu',
33 'content.gyp:content_plugin',
34 'content.gyp:content_ppapi_plugin',
35 'content.gyp:content_renderer',
36 'content.gyp:content_utility',
37 'content.gyp:content_worker',
38 'content_resources.gyp:content_resources',
39 'content_shell_resources',
40 'copy_test_netscape_plugin',
41 'layouttest_support_content',
42 '../base/base.gyp:base',
43 '../base/base.gyp:base_static',
44 '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations',
46 '../components/components.gyp:breakpad_component',
50 '../media/media.gyp:media',
52 '../net/net.gyp:net_resources',
53 '../skia/skia.gyp:skia',
54 '../third_party/WebKit/public/blink.gyp:blink',
55 '../third_party/WebKit/public/blink.gyp:blink_test_support',
56 '../ui/base/ui_base.gyp:ui_base',
57 '../ui/events/events.gyp:events_base',
58 '../ui/gfx/gfx.gyp:gfx',
59 '../ui/gfx/gfx.gyp:gfx_geometry',
60 '../ui/gfx/ipc/gfx_ipc.gyp:gfx_ipc',
62 '../url/url.gyp:url_lib',
63 '../v8/tools/gyp/v8.gyp:v8',
64 '../webkit/storage_browser.gyp:webkit_storage_browser',
65 '../webkit/webkit_resources.gyp:webkit_resources',
71 'shell/android/shell_jni_registrar.cc',
72 'shell/android/shell_jni_registrar.h',
73 'shell/android/shell_manager.cc',
74 'shell/android/shell_manager.h',
75 'shell/app/paths_mac.h',
76 'shell/app/paths_mac.mm',
77 'shell/app/shell_breakpad_client.cc',
78 'shell/app/shell_breakpad_client.h',
79 'shell/app/shell_main_delegate.cc',
80 'shell/app/shell_main_delegate.h',
81 'shell/app/shell_main_delegate_mac.h',
82 'shell/app/shell_main_delegate_mac.mm',
83 'shell/app/webkit_test_platform_support_android.cc',
84 'shell/app/webkit_test_platform_support.h',
85 'shell/app/webkit_test_platform_support_linux.cc',
86 'shell/app/webkit_test_platform_support_mac.mm',
87 'shell/app/webkit_test_platform_support_win.cc',
88 'shell/browser/notify_done_forwarder.cc',
89 'shell/browser/notify_done_forwarder.h',
90 'shell/browser/shell_android.cc',
91 'shell/browser/shell_application_mac.h',
92 'shell/browser/shell_application_mac.mm',
93 'shell/browser/shell_aura.cc',
94 'shell/browser/shell_browser_context.cc',
95 'shell/browser/shell_browser_context.h',
96 'shell/browser/shell_browser_main.cc',
97 'shell/browser/shell_browser_main.h',
98 'shell/browser/shell_browser_main_parts.cc',
99 'shell/browser/shell_browser_main_parts.h',
100 'shell/browser/shell_browser_main_parts_mac.mm',
101 'shell/browser/shell.cc',
102 'shell/browser/shell_content_browser_client.cc',
103 'shell/browser/shell_content_browser_client.h',
104 'shell/browser/shell_devtools_delegate.cc',
105 'shell/browser/shell_devtools_delegate.h',
106 'shell/browser/shell_devtools_frontend.cc',
107 'shell/browser/shell_devtools_frontend.h',
108 'shell/browser/shell_download_manager_delegate.cc',
109 'shell/browser/shell_download_manager_delegate.h',
110 'shell/browser/shell.h',
111 'shell/browser/shell_javascript_dialog.h',
112 'shell/browser/shell_javascript_dialog_mac.mm',
113 'shell/browser/shell_javascript_dialog_manager.cc',
114 'shell/browser/shell_javascript_dialog_manager.h',
115 'shell/browser/shell_javascript_dialog_win.cc',
116 'shell/browser/shell_layout_tests_android.cc',
117 'shell/browser/shell_layout_tests_android.h',
118 'shell/browser/shell_login_dialog.cc',
119 'shell/browser/shell_login_dialog.h',
120 'shell/browser/shell_login_dialog_mac.mm',
121 'shell/browser/shell_mac.mm',
122 'shell/browser/shell_message_filter.cc',
123 'shell/browser/shell_message_filter.h',
124 'shell/browser/shell_net_log.cc',
125 'shell/browser/shell_net_log.h',
126 'shell/browser/shell_network_delegate.cc',
127 'shell/browser/shell_network_delegate.h',
128 'shell/browser/shell_platform_data_aura.cc',
129 'shell/browser/shell_platform_data_aura.h',
130 'shell/browser/shell_plugin_service_filter.cc',
131 'shell/browser/shell_plugin_service_filter.h',
132 'shell/browser/shell_quota_permission_context.cc',
133 'shell/browser/shell_quota_permission_context.h',
134 'shell/browser/shell_resource_dispatcher_host_delegate.cc',
135 'shell/browser/shell_resource_dispatcher_host_delegate.h',
136 'shell/browser/shell_speech_recognition_manager_delegate.cc',
137 'shell/browser/shell_speech_recognition_manager_delegate.h',
138 'shell/browser/shell_url_request_context_getter.cc',
139 'shell/browser/shell_url_request_context_getter.h',
140 'shell/browser/shell_views.cc',
141 'shell/browser/shell_web_contents_view_delegate_android.cc',
142 'shell/browser/shell_web_contents_view_delegate_creator.h',
143 'shell/browser/shell_web_contents_view_delegate.h',
144 'shell/browser/shell_web_contents_view_delegate_mac.mm',
145 'shell/browser/shell_web_contents_view_delegate_win.cc',
146 'shell/browser/webkit_test_controller.cc',
147 'shell/browser/webkit_test_controller.h',
148 'shell/common/leak_detection_result.h',
149 'shell/common/shell_content_client.cc',
150 'shell/common/shell_content_client.h',
151 'shell/common/shell_messages.cc',
152 'shell/common/shell_messages.h',
153 'shell/common/shell_switches.cc',
154 'shell/common/shell_switches.h',
155 'shell/common/shell_test_configuration.cc',
156 'shell/common/shell_test_configuration.h',
157 'shell/common/test_runner/test_preferences.cc',
158 'shell/common/test_runner/test_preferences.h',
159 'shell/common/webkit_test_helpers.cc',
160 'shell/common/webkit_test_helpers.h',
161 'shell/geolocation/shell_access_token_store.cc',
162 'shell/geolocation/shell_access_token_store.h',
163 'shell/renderer/gc_controller.cc',
164 'shell/renderer/gc_controller.h',
165 'shell/renderer/leak_detector.cc',
166 'shell/renderer/leak_detector.h',
167 'shell/renderer/shell_content_renderer_client.cc',
168 'shell/renderer/shell_content_renderer_client.h',
169 'shell/renderer/shell_render_frame_observer.cc',
170 'shell/renderer/shell_render_frame_observer.h',
171 'shell/renderer/shell_render_process_observer.cc',
172 'shell/renderer/shell_render_process_observer.h',
173 'shell/renderer/shell_render_view_observer.cc',
174 'shell/renderer/shell_render_view_observer.h',
175 'shell/renderer/test_runner/MockColorChooser.cpp',
176 'shell/renderer/test_runner/MockColorChooser.h',
177 'shell/renderer/test_runner/MockSpellCheck.cpp',
178 'shell/renderer/test_runner/MockSpellCheck.h',
179 'shell/renderer/test_runner/MockWebMIDIAccessor.cpp',
180 'shell/renderer/test_runner/MockWebMIDIAccessor.h',
181 'shell/renderer/test_runner/MockWebMediaStreamCenter.cpp',
182 'shell/renderer/test_runner/MockWebMediaStreamCenter.h',
183 'shell/renderer/test_runner/MockWebSpeechRecognizer.cpp',
184 'shell/renderer/test_runner/MockWebSpeechRecognizer.h',
185 'shell/renderer/test_runner/SpellCheckClient.cpp',
186 'shell/renderer/test_runner/SpellCheckClient.h',
187 'shell/renderer/test_runner/TestCommon.cpp',
188 'shell/renderer/test_runner/TestCommon.h',
189 'shell/renderer/test_runner/TestInterfaces.cpp',
190 'shell/renderer/test_runner/TestInterfaces.h',
191 'shell/renderer/test_runner/TestPlugin.cpp',
192 'shell/renderer/test_runner/TestPlugin.h',
193 'shell/renderer/test_runner/WebTask.cpp',
194 'shell/renderer/test_runner/WebTask.h',
195 'shell/renderer/test_runner/WebTestDelegate.h',
196 'shell/renderer/test_runner/WebTestInterfaces.cpp',
197 'shell/renderer/test_runner/WebTestInterfaces.h',
198 'shell/renderer/test_runner/WebTestThemeEngineMac.h',
199 'shell/renderer/test_runner/WebTestThemeEngineMac.mm',
200 'shell/renderer/test_runner/WebTestThemeEngineMock.cpp',
201 'shell/renderer/test_runner/WebTestThemeEngineMock.h',
202 'shell/renderer/test_runner/accessibility_controller.cc',
203 'shell/renderer/test_runner/accessibility_controller.h',
204 'shell/renderer/test_runner/event_sender.cc',
205 'shell/renderer/test_runner/event_sender.h',
206 'shell/renderer/test_runner/gamepad_controller.cc',
207 'shell/renderer/test_runner/gamepad_controller.h',
208 'shell/renderer/test_runner/mock_constraints.cc',
209 'shell/renderer/test_runner/mock_constraints.h',
210 'shell/renderer/test_runner/mock_grammar_check.cc',
211 'shell/renderer/test_runner/mock_grammar_check.h',
212 'shell/renderer/test_runner/mock_screen_orientation_client.cc',
213 'shell/renderer/test_runner/mock_screen_orientation_client.h',
214 'shell/renderer/test_runner/mock_web_audio_device.cc',
215 'shell/renderer/test_runner/mock_web_audio_device.h',
216 'shell/renderer/test_runner/mock_web_push_client.cc',
217 'shell/renderer/test_runner/mock_web_push_client.h',
218 'shell/renderer/test_runner/mock_web_user_media_client.cc',
219 'shell/renderer/test_runner/mock_web_user_media_client.h',
220 'shell/renderer/test_runner/mock_webrtc_data_channel_handler.cc',
221 'shell/renderer/test_runner/mock_webrtc_data_channel_handler.h',
222 'shell/renderer/test_runner/mock_webrtc_dtmf_sender_handler.cc',
223 'shell/renderer/test_runner/mock_webrtc_dtmf_sender_handler.h',
224 'shell/renderer/test_runner/mock_webrtc_peer_connection_handler.cc',
225 'shell/renderer/test_runner/mock_webrtc_peer_connection_handler.h',
226 'shell/renderer/test_runner/notification_presenter.cc',
227 'shell/renderer/test_runner/notification_presenter.h',
228 'shell/renderer/test_runner/test_runner.cc',
229 'shell/renderer/test_runner/test_runner.h',
230 'shell/renderer/test_runner/text_input_controller.cc',
231 'shell/renderer/test_runner/text_input_controller.h',
232 'shell/renderer/test_runner/web_ax_object_proxy.cc',
233 'shell/renderer/test_runner/web_ax_object_proxy.h',
234 'shell/renderer/test_runner/web_frame_test_proxy.h',
235 'shell/renderer/test_runner/web_permissions.cc',
236 'shell/renderer/test_runner/web_permissions.h',
237 'shell/renderer/test_runner/web_test_proxy.cc',
238 'shell/renderer/test_runner/web_test_proxy.h',
239 'shell/renderer/test_runner/web_test_runner.h',
240 'shell/renderer/webkit_test_runner.cc',
241 'shell/renderer/webkit_test_runner.h',
245 'SubSystem': '2', # Set /SUBSYSTEM:WINDOWS
251 ['exclude', 'WebTestThemeEngineMock.cpp'],
254 ['OS=="win" and win_use_allocator_shim==1', {
256 '../base/allocator/allocator.gyp:allocator',
260 'resource_include_dirs': [
261 '<(SHARED_INTERMEDIATE_DIR)/webkit',
264 '<(DEPTH)/webkit/webkit_resources.gyp:webkit_strings',
270 'LinkIncremental': '<(msvs_large_module_debug_link_mode)',
275 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
276 'msvs_disabled_warnings': [ 4267, ],
279 ['exclude', 'Win\\.cpp$'],
284 '../build/linux/system.gyp:fontconfig',
289 '../tools/xdisplaycheck/xdisplaycheck.gyp:xdisplaycheck',
294 'content_shell_jni_headers',
297 'copy_test_netscape_plugin',
300 ['os_posix == 1 and OS != "mac" and android_webview_build != 1', {
302 '../components/components.gyp:breakpad_host',
305 ['(OS=="linux" or OS=="android") and use_allocator!="none"', {
307 # This is needed by content/app/content_main_runner.cc
308 '../base/allocator/allocator.gyp:allocator',
313 '../ui/aura/aura.gyp:aura',
314 '../ui/aura/aura.gyp:aura_test_support',
315 '../ui/events/events.gyp:events',
316 '../ui/strings/ui_strings.gyp:ui_strings',
317 '../ui/wm/wm.gyp:wm',
320 ['toolkit_views==1', {
322 '../ui/resources/ui_resources.gyp:ui_resources',
323 '../ui/views/controls/webview/webview.gyp:webview',
324 '../ui/views/views.gyp:views',
325 '../ui/views/views.gyp:views_test_support',
328 ['exclude', 'shell/browser/shell_aura.cc'],
332 ['exclude', 'shell/browser/shell_views.cc'],
338 ['exclude', 'shell/browser/shell_aura.cc'],
339 ['exclude', 'shell/browser/shell_views.cc'],
342 # The test plugin relies on X11.
343 ['OS=="linux" and use_x11==0', {
345 'copy_test_netscape_plugin',
350 '../chromeos/chromeos.gyp:chromeos',
351 '../ui/wm/wm.gyp:wm_test_support',
354 ['use_custom_freetype==1', {
356 '../third_party/freetype2/freetype2.gyp:freetype2',
359 ['enable_plugins==0', {
361 ['exclude', 'shell/browser/shell_plugin_service_filter.cc'],
362 ['exclude', 'shell/browser/shell_plugin_service_filter.h'],
368 'target_name': 'content_shell_resources',
371 'grit_out_dir': '<(SHARED_INTERMEDIATE_DIR)/content',
375 'action_name': 'generate_content_shell_resources',
377 'grit_grd_file': 'shell/shell_resources.grd',
379 'includes': [ '../build/grit_action.gypi' ],
382 'includes': [ '../build/grit_target.gypi' ],
385 'destination': '<(PRODUCT_DIR)',
387 '<(SHARED_INTERMEDIATE_DIR)/content/shell_resources.pak'
394 'destination': '<(PRODUCT_DIR)',
395 'files': ['shell/renderer/test_runner/resources/fonts/AHEM____.TTF'],
399 'all_dependent_settings': {
400 'mac_bundle_resources': [
401 'shell/renderer/test_runner/resources/fonts/AHEM____.TTF',
402 'shell/renderer/test_runner/resources/fonts/ChromiumAATTest.ttf',
403 '<(SHARED_INTERMEDIATE_DIR)/webkit/missingImage.png',
404 '<(SHARED_INTERMEDIATE_DIR)/webkit/textAreaResizeCorner.png',
410 'destination': '<(PRODUCT_DIR)',
412 'shell/renderer/test_runner/resources/fonts/AHEM____.TTF',
413 'shell/renderer/test_runner/resources/fonts/fonts.conf',
414 '../third_party/gardiner_mod/GardinerModBug.ttf',
415 '../third_party/gardiner_mod/GardinerModCat.ttf',
421 'destination': '<(PRODUCT_DIR)',
423 'shell/renderer/test_runner/resources/fonts/AHEM____.TTF',
424 'shell/renderer/test_runner/resources/fonts/android_main_fonts.xml',
425 'shell/renderer/test_runner/resources/fonts/android_fallback_fonts.xml',
432 # We build a minimal set of resources so WebKit in content_shell has
433 # access to necessary resources.
434 'target_name': 'content_shell_pak',
437 'content_resources.gyp:content_resources',
438 'content_shell_resources',
439 '<(DEPTH)/net/net.gyp:net_resources',
440 '<(DEPTH)/ui/resources/ui_resources.gyp:ui_resources',
441 '<(DEPTH)/ui/strings/ui_strings.gyp:ui_strings',
442 '<(DEPTH)/webkit/webkit_resources.gyp:webkit_resources',
443 '<(DEPTH)/webkit/webkit_resources.gyp:webkit_strings',
446 ['OS!="android" and OS!="ios"', {
448 'browser/tracing/tracing_resources.gyp:tracing_resources',
453 'browser/devtools/devtools_resources.gyp:devtools_resources',
459 'action_name': 'repack_content_shell_pack',
462 '<(SHARED_INTERMEDIATE_DIR)/content/content_resources.pak',
463 '<(SHARED_INTERMEDIATE_DIR)/content/browser/tracing/tracing_resources.pak',
464 '<(SHARED_INTERMEDIATE_DIR)/content/shell_resources.pak',
465 '<(SHARED_INTERMEDIATE_DIR)/net/net_resources.pak',
466 '<(SHARED_INTERMEDIATE_DIR)/ui/app_locale_settings/app_locale_settings_en-US.pak',
467 '<(SHARED_INTERMEDIATE_DIR)/ui/resources/ui_resources_100_percent.pak',
468 '<(SHARED_INTERMEDIATE_DIR)/ui/resources/webui_resources.pak',
469 '<(SHARED_INTERMEDIATE_DIR)/ui/strings/ui_strings_en-US.pak',
470 '<(SHARED_INTERMEDIATE_DIR)/webkit/blink_resources.pak',
471 '<(SHARED_INTERMEDIATE_DIR)/webkit/webkit_resources_100_percent.pak',
472 '<(SHARED_INTERMEDIATE_DIR)/webkit/webkit_strings_en-US.pak',
476 'pak_inputs': ['<(SHARED_INTERMEDIATE_DIR)/webkit/devtools_resources.pak',],
477 'pak_output': '<(PRODUCT_DIR)/content_shell.pak',
479 'pak_output': '<(PRODUCT_DIR)/content_shell/assets/content_shell.pak',
483 'includes': [ '../build/repack_action.gypi' ],
488 'target_name': 'content_shell',
489 'type': 'executable',
497 '../third_party/mesa/mesa.gyp:osmesa',
498 '../tools/imagediff/image_diff.gyp:image_diff',
504 'app/startup_helper_win.cc',
505 'shell/app/shell_main.cc',
507 'mac_bundle_resources': [
508 'shell/app/app.icns',
509 'shell/app/app-Info.plist',
511 # TODO(mark): Come up with a fancier way to do this. It should only
512 # be necessary to list app-Info.plist once, not the three times it is
514 'mac_bundle_resources!': [
515 'shell/app/app-Info.plist',
518 'INFOPLIST_FILE': 'shell/app/app-Info.plist',
522 'AdditionalManifestFiles': [
523 'shell/app/shell.exe.manifest',
528 ['OS=="win" and win_use_allocator_shim==1', {
530 '../base/allocator/allocator.gyp:allocator',
535 'shell/app/shell.rc',
541 'LinkIncremental': '<(msvs_large_module_debug_link_mode)',
549 '../sandbox/sandbox.gyp:sandbox',
552 ['OS=="win" and asan==0', {
555 'SubSystem': '2', # Set /SUBSYSTEM:WINDOWS
558 }], # OS=="win" and asan==0
560 'product_name': '<(content_shell_product_name)',
565 'content_shell_framework',
566 'content_shell_helper_app',
570 'destination': '<(PRODUCT_DIR)/<(content_shell_product_name).app/Contents/Frameworks',
572 '<(PRODUCT_DIR)/<(content_shell_product_name) Helper.app',
578 'postbuild_name': 'Copy <(content_shell_product_name) Framework.framework',
580 '../build/mac/copy_framework_unversioned.sh',
581 '${BUILT_PRODUCTS_DIR}/<(content_shell_product_name) Framework.framework',
582 '${BUILT_PRODUCTS_DIR}/${CONTENTS_FOLDER_PATH}/Frameworks',
586 # Modify the Info.plist as needed.
587 'postbuild_name': 'Tweak Info.plist',
588 'action': ['../build/mac/tweak_info_plist.py',
590 '--version=<(content_shell_version)'],
593 # This postbuid step is responsible for creating the following
596 # Content Shell Helper EH.app and Content Shell Helper NP.app are
597 # created from Content Shell Helper.app.
599 # The EH helper is marked for an executable heap. The NP helper
600 # is marked for no PIE (ASLR).
601 'postbuild_name': 'Make More Helpers',
603 '../build/mac/make_more_helpers.sh',
605 '<(content_shell_product_name)',
609 # Make sure there isn't any Objective-C in the shell's
611 'postbuild_name': 'Verify No Objective-C',
613 '../build/mac/verify_no_objc.sh',
620 '../tools/imagediff/image_diff.gyp:image_diff',
623 ['OS=="android" and android_webview_build==0', {
625 '../tools/imagediff/image_diff.gyp:image_diff#host',
627 }], # OS=="android" and android_webview_build==0
631 'target_name': 'content_shell_builder',
639 'target_name': 'test_netscape_plugin',
640 'type': 'loadable_module',
642 'shell/tools/plugin/PluginObject.cpp',
643 'shell/tools/plugin/PluginObject.h',
644 'shell/tools/plugin/PluginObjectMac.mm',
645 'shell/tools/plugin/PluginTest.cpp',
646 'shell/tools/plugin/PluginTest.h',
647 'shell/tools/plugin/TestObject.cpp',
648 'shell/tools/plugin/Tests/DocumentOpenInDestroyStream.cpp',
649 'shell/tools/plugin/Tests/EvaluateJSAfterRemovingPluginElement.cpp',
650 'shell/tools/plugin/Tests/FormValue.cpp',
651 'shell/tools/plugin/Tests/GetURLNotifyWithURLThatFailsToLoad.cpp',
652 'shell/tools/plugin/Tests/GetURLWithJavaScriptURL.cpp',
653 'shell/tools/plugin/Tests/GetURLWithJavaScriptURLDestroyingPlugin.cpp',
654 'shell/tools/plugin/Tests/GetUserAgentWithNullNPPFromNPPNew.cpp',
655 'shell/tools/plugin/Tests/LeakWindowScriptableObject.cpp',
656 'shell/tools/plugin/Tests/LogNPPSetWindow.cpp',
657 'shell/tools/plugin/Tests/NPDeallocateCalledBeforeNPShutdown.cpp',
658 'shell/tools/plugin/Tests/NPPNewFails.cpp',
659 'shell/tools/plugin/Tests/NPRuntimeCallsWithNullNPP.cpp',
660 'shell/tools/plugin/Tests/NPRuntimeObjectFromDestroyedPlugin.cpp',
661 'shell/tools/plugin/Tests/NPRuntimeRemoveProperty.cpp',
662 'shell/tools/plugin/Tests/NullNPPGetValuePointer.cpp',
663 'shell/tools/plugin/Tests/PassDifferentNPPStruct.cpp',
664 'shell/tools/plugin/Tests/PluginScriptableNPObjectInvokeDefault.cpp',
665 'shell/tools/plugin/Tests/PluginScriptableObjectOverridesAllProperties.cpp',
666 'shell/tools/plugin/main.cpp',
667 'shell/tools/plugin/test_object.h',
671 '<(DEPTH)/content/shell/tools/plugin/',
674 '../base/base.gyp:base',
675 '../third_party/npapi/npapi.gyp:npapi',
680 'product_extension': 'plugin',
683 '$(SDKROOT)/System/Library/Frameworks/Carbon.framework',
684 '$(SDKROOT)/System/Library/Frameworks/Cocoa.framework',
685 '$(SDKROOT)/System/Library/Frameworks/QuartzCore.framework',
689 'GCC_SYMBOLS_PRIVATE_EXTERN': 'NO',
690 'INFOPLIST_FILE': 'shell/tools/plugin/mac/Info.plist',
693 ['os_posix == 1 and OS != "mac"', {
695 '-fvisibility=default',
700 # This seems like a hack, but this is what Safari Win does.
701 'snprintf=_snprintf',
704 'shell/tools/plugin/win/TestNetscapePlugin.def',
705 'shell/tools/plugin/win/TestNetscapePlugin.rc',
707 # The .rc file requires that the name of the dll is np_test_netscape_plugin.dll.
708 'product_name': 'np_test_netscape_plugin',
709 # Disable c4267 warnings until we fix size_t to int truncations.
710 'msvs_disabled_warnings': [ 4267, ],
715 'target_name': 'copy_test_netscape_plugin',
718 'test_netscape_plugin',
723 'destination': '<(PRODUCT_DIR)/plugins',
724 'files': ['<(PRODUCT_DIR)/np_test_netscape_plugin.dll'],
729 'destination': '<(PRODUCT_DIR)/plugins/',
730 'files': ['<(PRODUCT_DIR)/test_netscape_plugin.plugin/'],
733 ['os_posix == 1 and OS != "mac"', {
735 'destination': '<(PRODUCT_DIR)/plugins',
736 'files': ['<(PRODUCT_DIR)/libtest_netscape_plugin.so'],
743 ['OS=="mac" or OS=="win"', {
746 'target_name': 'layout_test_helper',
747 'type': 'executable',
749 'shell/renderer/test_runner/helper/layout_test_helper_mac.mm',
750 'shell/renderer/test_runner/helper/layout_test_helper_win.cc',
756 '$(SDKROOT)/System/Library/Frameworks/AppKit.framework',
763 }], # OS=="mac" or OS=="win"
767 'target_name': 'content_shell_framework',
768 'type': 'shared_library',
769 'product_name': '<(content_shell_product_name) Framework',
771 'mac_bundle_resources': [
772 'shell/app/English.lproj/HttpAuth.xib',
773 'shell/app/English.lproj/MainMenu.xib',
774 '<(PRODUCT_DIR)/content_shell.pak',
775 'shell/app/framework-Info.plist',
777 'mac_bundle_resources!': [
778 'shell/app/framework-Info.plist',
781 # The framework is placed within the .app's Framework
782 # directory. DYLIB_INSTALL_NAME_BASE and
783 # LD_DYLIB_INSTALL_NAME affect -install_name.
784 'DYLIB_INSTALL_NAME_BASE':
785 '@executable_path/../Frameworks',
786 # See /build/mac/copy_framework_unversioned.sh for
787 # information on LD_DYLIB_INSTALL_NAME.
788 'LD_DYLIB_INSTALL_NAME':
789 '$(DYLIB_INSTALL_NAME_BASE:standardizepath)/$(WRAPPER_NAME)/$(PRODUCT_NAME)',
791 'INFOPLIST_FILE': 'shell/app/framework-Info.plist',
800 'shell/app/shell_content_main.cc',
801 'shell/app/shell_content_main.h',
805 # Modify the Info.plist as needed. The script explains why
806 # this is needed. This is also done in the chrome target.
807 # The framework needs the Breakpad keys if this feature is
808 # enabled. It does not need the Keystone keys; these always
809 # come from the outer application bundle. The framework
810 # doesn't currently use the SCM keys for anything,
811 # but this seems like a really good place to store them.
812 'postbuild_name': 'Tweak Info.plist',
813 'action': ['../build/mac/tweak_info_plist.py',
817 '--version=<(content_shell_version)',
818 '--branding=<(content_shell_product_name)'],
823 # Copy FFmpeg binaries for audio/video support.
824 'destination': '<(PRODUCT_DIR)/$(CONTENTS_FOLDER_PATH)/Libraries',
826 '<(PRODUCT_DIR)/ffmpegsumo.so',
830 'destination': '<(PRODUCT_DIR)/$(CONTENTS_FOLDER_PATH)/Resources',
832 '<(PRODUCT_DIR)/crash_inspector',
833 '<(PRODUCT_DIR)/crash_report_sender.app'
838 ['enable_webrtc==1', {
840 'libpeer_target_type%': 'static_library',
843 ['libpeer_target_type!="static_library"', {
845 'destination': '<(PRODUCT_DIR)/$(CONTENTS_FOLDER_PATH)/Libraries',
847 '<(PRODUCT_DIR)/libpeerconnection.so',
853 ['icu_use_data_file_flag==1', {
854 'mac_bundle_resources': [
855 '<(PRODUCT_DIR)/icudtl.dat',
859 }, # target content_shell_framework
861 'target_name': 'content_shell_helper_app',
862 'type': 'executable',
863 'variables': { 'enable_wexit_time_destructors': 1, },
864 'product_name': '<(content_shell_product_name) Helper',
867 'content_shell_framework',
870 'shell/app/shell_main.cc',
871 'shell/app/helper-Info.plist',
873 # TODO(mark): Come up with a fancier way to do this. It should only
874 # be necessary to list helper-Info.plist once, not the three times it
876 'mac_bundle_resources!': [
877 'shell/app/helper-Info.plist',
879 # TODO(mark): For now, don't put any resources into this app. Its
880 # resources directory will be a symbolic link to the browser app's
881 # resources directory.
882 'mac_bundle_resources/': [
886 'INFOPLIST_FILE': 'shell/app/helper-Info.plist',
890 # The framework defines its load-time path
891 # (DYLIB_INSTALL_NAME_BASE) relative to the main executable
892 # (chrome). A different relative path needs to be used in
893 # content_shell_helper_app.
894 'postbuild_name': 'Fix Framework Link',
898 '@executable_path/../Frameworks/<(content_shell_product_name) Framework.framework/<(content_shell_product_name) Framework',
899 '@executable_path/../../../<(content_shell_product_name) Framework.framework/<(content_shell_product_name) Framework',
900 '${BUILT_PRODUCTS_DIR}/${EXECUTABLE_PATH}'
904 # Modify the Info.plist as needed. The script explains why this
905 # is needed. This is also done in the chrome and chrome_dll
906 # targets. In this case, --breakpad=0, --keystone=0, and --scm=0
907 # are used because Breakpad, Keystone, and SCM keys are
908 # never placed into the helper.
909 'postbuild_name': 'Tweak Info.plist',
910 'action': ['../build/mac/tweak_info_plist.py',
914 '--version=<(content_shell_version)'],
917 # Make sure there isn't any Objective-C in the helper app's
919 'postbuild_name': 'Verify No Objective-C',
921 '../build/mac/verify_no_objc.sh',
926 ['component=="shared_library"', {
928 'LD_RUNPATH_SEARCH_PATHS': [
929 # Get back from Content Shell.app/Contents/Frameworks/
930 # Helper.app/Contents/MacOS
931 '@loader_path/../../../../../..',
936 }, # target content_shell_helper_app
942 # TODO(jrg): Update this action and other jni generators to only
943 # require specifying the java directory and generate the rest.
944 'target_name': 'content_shell_jni_headers',
947 'shell/android/browsertests_apk/src/org/chromium/content_browsertests_apk/ContentBrowserTestsActivity.java',
948 'shell/android/java/src/org/chromium/content_shell/ShellLayoutTestUtils.java',
949 'shell/android/java/src/org/chromium/content_shell/ShellManager.java',
950 'shell/android/java/src/org/chromium/content_shell/Shell.java',
953 'jni_gen_package': 'content/shell',
955 'includes': [ '../build/jni_generator.gypi' ],
958 'target_name': 'libcontent_shell_content_view',
959 'type': 'shared_library',
961 'content_shell_jni_headers',
964 # Skia is necessary to ensure the dependencies needed by
965 # WebContents are included.
966 '../skia/skia.gyp:skia',
967 '<(DEPTH)/media/media.gyp:player_android',
970 'shell/android/shell_library_loader.cc',
971 'shell/android/shell_library_loader.h',
974 ['android_webview_build==1', {
976 '-lgabi++', # For rtti
982 'target_name': 'content_shell_java',
985 'content.gyp:content_java',
988 'java_in_dir': '../content/shell/android/java',
989 'has_java_resources': 1,
990 'R_package': 'org.chromium.content_shell',
991 'R_package_relpath': 'org/chromium/content_shell',
993 'includes': [ '../build/java.gypi' ],
996 # content_shell_apk creates a .jar as a side effect. Any java targets
997 # that need that .jar in their classpath should depend on this target,
998 # content_shell_apk_java. Dependents of content_shell_apk receive its
999 # jar path in the variable 'apk_output_jar_path'. This target should
1000 # only be used by targets which instrument content_shell_apk.
1001 'target_name': 'content_shell_apk_java',
1004 'content_shell_apk',
1006 'includes': [ '../build/apk_fake_jar.gypi' ],
1009 'target_name': 'content_shell_apk',
1012 'content.gyp:content_icudata',
1013 'content.gyp:content_java',
1014 'content_java_test_support',
1015 'content_shell_java',
1016 'libcontent_shell_content_view',
1017 '../base/base.gyp:base_java',
1018 '../media/media.gyp:media_java',
1019 '../net/net.gyp:net_java',
1020 '../third_party/mesa/mesa.gyp:osmesa_in_lib_dir',
1021 '../tools/android/forwarder/forwarder.gyp:forwarder',
1022 '../ui/android/ui_android.gyp:ui_java',
1025 'apk_name': 'ContentShell',
1026 'manifest_package_name': 'org.chromium.content_shell_apk',
1027 'java_in_dir': 'shell/android/shell_apk',
1028 'resource_dir': 'shell/android/shell_apk/res',
1029 'native_lib_target': 'libcontent_shell_content_view',
1030 'additional_input_paths': ['<(PRODUCT_DIR)/content_shell/assets/content_shell.pak'],
1031 'asset_location': '<(PRODUCT_DIR)/content_shell/assets',
1032 'extra_native_libs': ['<(SHARED_LIB_DIR)/libosmesa.so'],
1034 ['icu_use_data_file_flag==1', {
1035 'additional_input_paths': [
1036 '<(PRODUCT_DIR)/icudtl.dat',
1042 ['android_webview_build==0', {
1044 '../tools/imagediff/image_diff.gyp:image_diff#host',
1048 'includes': [ '../build/java_apk.gypi' ],
1055 'target_name': 'content_shell_crash_service',
1056 'type': 'executable',
1058 '../base/base.gyp:base',
1059 '../components/components.gyp:breakpad_crash_service',
1065 'shell/tools/content_shell_crash_service.cc',
1069 'SubSystem': '2', # Set /SUBSYSTEM:WINDOWS
1075 ['OS=="win" and fastbuild==0 and target_arch=="ia32" and syzyasan==1', {
1077 'dest_dir': '<(PRODUCT_DIR)/syzygy',
1081 'target_name': 'content_shell_syzyasan',
1084 # Instrument content_shell with SyzyAsan.
1087 'action_name': 'Instrument content_shell with SyzyAsan',
1089 '<(PRODUCT_DIR)/content_shell.exe',
1092 '<(dest_dir)/content_shell.exe',
1093 '<(dest_dir)/content_shell.exe.pdb',
1097 '<(DEPTH)/chrome/tools/build/win/syzygy_instrument.py',
1099 '--input_executable', '<(PRODUCT_DIR)/content_shell.exe',
1100 '--input_symbol', '<(PRODUCT_DIR)/content_shell.exe.pdb',
1101 '--destination_dir', '<(dest_dir)',
1107 }], # OS=="win" and fastbuild==0 and target_arch=="ia32"