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/common/webkit_common.gyp:webkit_common',
65 '../webkit/storage_browser.gyp:webkit_storage_browser',
66 '../webkit/webkit_resources.gyp:webkit_resources',
72 'shell/android/shell_jni_registrar.cc',
73 'shell/android/shell_jni_registrar.h',
74 'shell/android/shell_manager.cc',
75 'shell/android/shell_manager.h',
76 'shell/app/paths_mac.h',
77 'shell/app/paths_mac.mm',
78 'shell/app/shell_breakpad_client.cc',
79 'shell/app/shell_breakpad_client.h',
80 'shell/app/shell_main_delegate.cc',
81 'shell/app/shell_main_delegate.h',
82 'shell/app/shell_main_delegate_mac.h',
83 'shell/app/shell_main_delegate_mac.mm',
84 'shell/app/webkit_test_platform_support_android.cc',
85 'shell/app/webkit_test_platform_support.h',
86 'shell/app/webkit_test_platform_support_linux.cc',
87 'shell/app/webkit_test_platform_support_mac.mm',
88 'shell/app/webkit_test_platform_support_win.cc',
89 'shell/browser/notify_done_forwarder.cc',
90 'shell/browser/notify_done_forwarder.h',
91 'shell/browser/shell_android.cc',
92 'shell/browser/shell_application_mac.h',
93 'shell/browser/shell_application_mac.mm',
94 'shell/browser/shell_aura.cc',
95 'shell/browser/shell_browser_context.cc',
96 'shell/browser/shell_browser_context.h',
97 'shell/browser/shell_browser_main.cc',
98 'shell/browser/shell_browser_main.h',
99 'shell/browser/shell_browser_main_parts.cc',
100 'shell/browser/shell_browser_main_parts.h',
101 'shell/browser/shell_browser_main_parts_mac.mm',
102 'shell/browser/shell.cc',
103 'shell/browser/shell_content_browser_client.cc',
104 'shell/browser/shell_content_browser_client.h',
105 'shell/browser/shell_devtools_delegate.cc',
106 'shell/browser/shell_devtools_delegate.h',
107 'shell/browser/shell_devtools_frontend.cc',
108 'shell/browser/shell_devtools_frontend.h',
109 'shell/browser/shell_download_manager_delegate.cc',
110 'shell/browser/shell_download_manager_delegate.h',
111 'shell/browser/shell.h',
112 'shell/browser/shell_javascript_dialog.h',
113 'shell/browser/shell_javascript_dialog_mac.mm',
114 'shell/browser/shell_javascript_dialog_manager.cc',
115 'shell/browser/shell_javascript_dialog_manager.h',
116 'shell/browser/shell_javascript_dialog_win.cc',
117 'shell/browser/shell_layout_tests_android.cc',
118 'shell/browser/shell_layout_tests_android.h',
119 'shell/browser/shell_login_dialog.cc',
120 'shell/browser/shell_login_dialog.h',
121 'shell/browser/shell_login_dialog_mac.mm',
122 'shell/browser/shell_mac.mm',
123 'shell/browser/shell_message_filter.cc',
124 'shell/browser/shell_message_filter.h',
125 'shell/browser/shell_net_log.cc',
126 'shell/browser/shell_net_log.h',
127 'shell/browser/shell_network_delegate.cc',
128 'shell/browser/shell_network_delegate.h',
129 'shell/browser/shell_platform_data_aura.cc',
130 'shell/browser/shell_platform_data_aura.h',
131 'shell/browser/shell_plugin_service_filter.cc',
132 'shell/browser/shell_plugin_service_filter.h',
133 'shell/browser/shell_quota_permission_context.cc',
134 'shell/browser/shell_quota_permission_context.h',
135 'shell/browser/shell_resource_dispatcher_host_delegate.cc',
136 'shell/browser/shell_resource_dispatcher_host_delegate.h',
137 'shell/browser/shell_speech_recognition_manager_delegate.cc',
138 'shell/browser/shell_speech_recognition_manager_delegate.h',
139 'shell/browser/shell_url_request_context_getter.cc',
140 'shell/browser/shell_url_request_context_getter.h',
141 'shell/browser/shell_views.cc',
142 'shell/browser/shell_web_contents_view_delegate_android.cc',
143 'shell/browser/shell_web_contents_view_delegate_creator.h',
144 'shell/browser/shell_web_contents_view_delegate.h',
145 'shell/browser/shell_web_contents_view_delegate_mac.mm',
146 'shell/browser/shell_web_contents_view_delegate_win.cc',
147 'shell/browser/webkit_test_controller.cc',
148 'shell/browser/webkit_test_controller.h',
149 'shell/common/leak_detection_result.h',
150 'shell/common/shell_content_client.cc',
151 'shell/common/shell_content_client.h',
152 'shell/common/shell_messages.cc',
153 'shell/common/shell_messages.h',
154 'shell/common/shell_switches.cc',
155 'shell/common/shell_switches.h',
156 'shell/common/shell_test_configuration.cc',
157 'shell/common/shell_test_configuration.h',
158 'shell/common/test_runner/test_preferences.cc',
159 'shell/common/test_runner/test_preferences.h',
160 'shell/common/webkit_test_helpers.cc',
161 'shell/common/webkit_test_helpers.h',
162 'shell/geolocation/shell_access_token_store.cc',
163 'shell/geolocation/shell_access_token_store.h',
164 'shell/renderer/gc_controller.cc',
165 'shell/renderer/gc_controller.h',
166 'shell/renderer/leak_detector.cc',
167 'shell/renderer/leak_detector.h',
168 'shell/renderer/shell_content_renderer_client.cc',
169 'shell/renderer/shell_content_renderer_client.h',
170 'shell/renderer/shell_render_frame_observer.cc',
171 'shell/renderer/shell_render_frame_observer.h',
172 'shell/renderer/shell_render_process_observer.cc',
173 'shell/renderer/shell_render_process_observer.h',
174 'shell/renderer/shell_render_view_observer.cc',
175 'shell/renderer/shell_render_view_observer.h',
176 'shell/renderer/test_runner/MockColorChooser.cpp',
177 'shell/renderer/test_runner/MockColorChooser.h',
178 'shell/renderer/test_runner/MockSpellCheck.cpp',
179 'shell/renderer/test_runner/MockSpellCheck.h',
180 'shell/renderer/test_runner/MockWebMIDIAccessor.cpp',
181 'shell/renderer/test_runner/MockWebMIDIAccessor.h',
182 'shell/renderer/test_runner/MockWebMediaStreamCenter.cpp',
183 'shell/renderer/test_runner/MockWebMediaStreamCenter.h',
184 'shell/renderer/test_runner/MockWebSpeechRecognizer.cpp',
185 'shell/renderer/test_runner/MockWebSpeechRecognizer.h',
186 'shell/renderer/test_runner/SpellCheckClient.cpp',
187 'shell/renderer/test_runner/SpellCheckClient.h',
188 'shell/renderer/test_runner/TestCommon.cpp',
189 'shell/renderer/test_runner/TestCommon.h',
190 'shell/renderer/test_runner/TestInterfaces.cpp',
191 'shell/renderer/test_runner/TestInterfaces.h',
192 'shell/renderer/test_runner/TestPlugin.cpp',
193 'shell/renderer/test_runner/TestPlugin.h',
194 'shell/renderer/test_runner/WebTask.cpp',
195 'shell/renderer/test_runner/WebTask.h',
196 'shell/renderer/test_runner/WebTestDelegate.h',
197 'shell/renderer/test_runner/WebTestInterfaces.cpp',
198 'shell/renderer/test_runner/WebTestInterfaces.h',
199 'shell/renderer/test_runner/WebTestThemeEngineMac.h',
200 'shell/renderer/test_runner/WebTestThemeEngineMac.mm',
201 'shell/renderer/test_runner/WebTestThemeEngineMock.cpp',
202 'shell/renderer/test_runner/WebTestThemeEngineMock.h',
203 'shell/renderer/test_runner/accessibility_controller.cc',
204 'shell/renderer/test_runner/accessibility_controller.h',
205 'shell/renderer/test_runner/event_sender.cc',
206 'shell/renderer/test_runner/event_sender.h',
207 'shell/renderer/test_runner/gamepad_controller.cc',
208 'shell/renderer/test_runner/gamepad_controller.h',
209 'shell/renderer/test_runner/mock_constraints.cc',
210 'shell/renderer/test_runner/mock_constraints.h',
211 'shell/renderer/test_runner/mock_grammar_check.cc',
212 'shell/renderer/test_runner/mock_grammar_check.h',
213 'shell/renderer/test_runner/mock_screen_orientation_client.cc',
214 'shell/renderer/test_runner/mock_screen_orientation_client.h',
215 'shell/renderer/test_runner/mock_web_audio_device.cc',
216 'shell/renderer/test_runner/mock_web_audio_device.h',
217 'shell/renderer/test_runner/mock_web_push_client.cc',
218 'shell/renderer/test_runner/mock_web_push_client.h',
219 'shell/renderer/test_runner/mock_web_user_media_client.cc',
220 'shell/renderer/test_runner/mock_web_user_media_client.h',
221 'shell/renderer/test_runner/mock_webrtc_data_channel_handler.cc',
222 'shell/renderer/test_runner/mock_webrtc_data_channel_handler.h',
223 'shell/renderer/test_runner/mock_webrtc_dtmf_sender_handler.cc',
224 'shell/renderer/test_runner/mock_webrtc_dtmf_sender_handler.h',
225 'shell/renderer/test_runner/mock_webrtc_peer_connection_handler.cc',
226 'shell/renderer/test_runner/mock_webrtc_peer_connection_handler.h',
227 'shell/renderer/test_runner/notification_presenter.cc',
228 'shell/renderer/test_runner/notification_presenter.h',
229 'shell/renderer/test_runner/test_runner.cc',
230 'shell/renderer/test_runner/test_runner.h',
231 'shell/renderer/test_runner/text_input_controller.cc',
232 'shell/renderer/test_runner/text_input_controller.h',
233 'shell/renderer/test_runner/web_ax_object_proxy.cc',
234 'shell/renderer/test_runner/web_ax_object_proxy.h',
235 'shell/renderer/test_runner/web_frame_test_proxy.h',
236 'shell/renderer/test_runner/web_permissions.cc',
237 'shell/renderer/test_runner/web_permissions.h',
238 'shell/renderer/test_runner/web_test_proxy.cc',
239 'shell/renderer/test_runner/web_test_proxy.h',
240 'shell/renderer/test_runner/web_test_runner.h',
241 'shell/renderer/webkit_test_runner.cc',
242 'shell/renderer/webkit_test_runner.h',
246 'SubSystem': '2', # Set /SUBSYSTEM:WINDOWS
252 ['exclude', 'WebTestThemeEngineMock.cpp'],
255 ['OS=="win" and win_use_allocator_shim==1', {
257 '../base/allocator/allocator.gyp:allocator',
261 'resource_include_dirs': [
262 '<(SHARED_INTERMEDIATE_DIR)/webkit',
265 '<(DEPTH)/webkit/webkit_resources.gyp:webkit_strings',
271 'LinkIncremental': '<(msvs_large_module_debug_link_mode)',
276 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
277 'msvs_disabled_warnings': [ 4267, ],
280 ['exclude', 'Win\\.cpp$'],
285 '../build/linux/system.gyp:fontconfig',
290 '../tools/xdisplaycheck/xdisplaycheck.gyp:xdisplaycheck',
295 'content_shell_jni_headers',
298 'copy_test_netscape_plugin',
301 ['os_posix == 1 and OS != "mac" and android_webview_build != 1', {
303 '../components/components.gyp:breakpad_host',
306 ['(OS=="linux" or OS=="android") and use_allocator!="none"', {
308 # This is needed by content/app/content_main_runner.cc
309 '../base/allocator/allocator.gyp:allocator',
314 '../ui/aura/aura.gyp:aura',
315 '../ui/aura/aura.gyp:aura_test_support',
316 '../ui/events/events.gyp:events',
317 '../ui/strings/ui_strings.gyp:ui_strings',
318 '../ui/wm/wm.gyp:wm',
321 ['toolkit_views==1', {
323 '../ui/resources/ui_resources.gyp:ui_resources',
324 '../ui/views/controls/webview/webview.gyp:webview',
325 '../ui/views/views.gyp:views',
326 '../ui/views/views.gyp:views_test_support',
329 ['exclude', 'shell/browser/shell_aura.cc'],
333 ['exclude', 'shell/browser/shell_views.cc'],
339 ['exclude', 'shell/browser/shell_aura.cc'],
340 ['exclude', 'shell/browser/shell_views.cc'],
343 # The test plugin relies on X11.
344 ['OS=="linux" and use_x11==0', {
346 'copy_test_netscape_plugin',
351 '../chromeos/chromeos.gyp:chromeos',
352 '../ui/wm/wm.gyp:wm_test_support',
355 ['use_custom_freetype==1', {
357 '../third_party/freetype2/freetype2.gyp:freetype2',
360 ['enable_plugins==0', {
362 ['exclude', 'shell/browser/shell_plugin_service_filter.cc'],
363 ['exclude', 'shell/browser/shell_plugin_service_filter.h'],
369 'target_name': 'content_shell_resources',
372 'grit_out_dir': '<(SHARED_INTERMEDIATE_DIR)/content',
376 'action_name': 'generate_content_shell_resources',
378 'grit_grd_file': 'shell/shell_resources.grd',
380 'includes': [ '../build/grit_action.gypi' ],
383 'includes': [ '../build/grit_target.gypi' ],
386 'destination': '<(PRODUCT_DIR)',
388 '<(SHARED_INTERMEDIATE_DIR)/content/shell_resources.pak'
395 'destination': '<(PRODUCT_DIR)',
396 'files': ['shell/renderer/test_runner/resources/fonts/AHEM____.TTF'],
400 'all_dependent_settings': {
401 'mac_bundle_resources': [
402 'shell/renderer/test_runner/resources/fonts/AHEM____.TTF',
403 'shell/renderer/test_runner/resources/fonts/ChromiumAATTest.ttf',
404 '<(SHARED_INTERMEDIATE_DIR)/webkit/missingImage.png',
405 '<(SHARED_INTERMEDIATE_DIR)/webkit/textAreaResizeCorner.png',
411 'destination': '<(PRODUCT_DIR)',
413 'shell/renderer/test_runner/resources/fonts/AHEM____.TTF',
414 'shell/renderer/test_runner/resources/fonts/fonts.conf',
420 'destination': '<(PRODUCT_DIR)',
422 'shell/renderer/test_runner/resources/fonts/AHEM____.TTF',
423 'shell/renderer/test_runner/resources/fonts/android_main_fonts.xml',
424 'shell/renderer/test_runner/resources/fonts/android_fallback_fonts.xml',
431 # We build a minimal set of resources so WebKit in content_shell has
432 # access to necessary resources.
433 'target_name': 'content_shell_pak',
436 'content_resources.gyp:content_resources',
437 'content_shell_resources',
438 '<(DEPTH)/net/net.gyp:net_resources',
439 '<(DEPTH)/ui/resources/ui_resources.gyp:ui_resources',
440 '<(DEPTH)/ui/strings/ui_strings.gyp:ui_strings',
441 '<(DEPTH)/webkit/webkit_resources.gyp:webkit_resources',
442 '<(DEPTH)/webkit/webkit_resources.gyp:webkit_strings',
445 ['OS!="android" and OS!="ios"', {
447 'browser/tracing/tracing_resources.gyp:tracing_resources',
452 'browser/devtools/devtools_resources.gyp:devtools_resources',
458 'action_name': 'repack_content_shell_pack',
461 '<(SHARED_INTERMEDIATE_DIR)/content/content_resources.pak',
462 '<(SHARED_INTERMEDIATE_DIR)/content/browser/tracing/tracing_resources.pak',
463 '<(SHARED_INTERMEDIATE_DIR)/content/shell_resources.pak',
464 '<(SHARED_INTERMEDIATE_DIR)/net/net_resources.pak',
465 '<(SHARED_INTERMEDIATE_DIR)/ui/app_locale_settings/app_locale_settings_en-US.pak',
466 '<(SHARED_INTERMEDIATE_DIR)/ui/ui_resources/ui_resources_100_percent.pak',
467 '<(SHARED_INTERMEDIATE_DIR)/ui/ui_resources/webui_resources.pak',
468 '<(SHARED_INTERMEDIATE_DIR)/ui/ui_strings/ui_strings_en-US.pak',
469 '<(SHARED_INTERMEDIATE_DIR)/webkit/blink_resources.pak',
470 '<(SHARED_INTERMEDIATE_DIR)/webkit/webkit_resources_100_percent.pak',
471 '<(SHARED_INTERMEDIATE_DIR)/webkit/webkit_strings_en-US.pak',
475 'pak_inputs': ['<(SHARED_INTERMEDIATE_DIR)/webkit/devtools_resources.pak',],
476 'pak_output': '<(PRODUCT_DIR)/content_shell.pak',
478 'pak_output': '<(PRODUCT_DIR)/content_shell/assets/content_shell.pak',
482 'includes': [ '../build/repack_action.gypi' ],
487 'target_name': 'content_shell',
488 'type': 'executable',
496 '../third_party/mesa/mesa.gyp:osmesa',
497 '../tools/imagediff/image_diff.gyp:image_diff',
503 'app/startup_helper_win.cc',
504 'shell/app/shell_main.cc',
506 'mac_bundle_resources': [
507 'shell/app/app.icns',
508 'shell/app/app-Info.plist',
510 # TODO(mark): Come up with a fancier way to do this. It should only
511 # be necessary to list app-Info.plist once, not the three times it is
513 'mac_bundle_resources!': [
514 'shell/app/app-Info.plist',
517 'INFOPLIST_FILE': 'shell/app/app-Info.plist',
521 'SubSystem': '2', # Set /SUBSYSTEM:WINDOWS
524 'AdditionalManifestFiles': [
525 'shell/app/shell.exe.manifest',
530 ['OS=="win" and win_use_allocator_shim==1', {
532 '../base/allocator/allocator.gyp:allocator',
537 'shell/app/shell.rc',
543 'LinkIncremental': '<(msvs_large_module_debug_link_mode)',
551 '../sandbox/sandbox.gyp:sandbox',
555 'product_name': '<(content_shell_product_name)',
560 'content_shell_framework',
561 'content_shell_helper_app',
565 'destination': '<(PRODUCT_DIR)/<(content_shell_product_name).app/Contents/Frameworks',
567 '<(PRODUCT_DIR)/<(content_shell_product_name) Helper.app',
573 'postbuild_name': 'Copy <(content_shell_product_name) Framework.framework',
575 '../build/mac/copy_framework_unversioned.sh',
576 '${BUILT_PRODUCTS_DIR}/<(content_shell_product_name) Framework.framework',
577 '${BUILT_PRODUCTS_DIR}/${CONTENTS_FOLDER_PATH}/Frameworks',
581 # Modify the Info.plist as needed.
582 'postbuild_name': 'Tweak Info.plist',
583 'action': ['../build/mac/tweak_info_plist.py',
585 '--version=<(content_shell_version)'],
588 # This postbuid step is responsible for creating the following
591 # Content Shell Helper EH.app and Content Shell Helper NP.app are
592 # created from Content Shell Helper.app.
594 # The EH helper is marked for an executable heap. The NP helper
595 # is marked for no PIE (ASLR).
596 'postbuild_name': 'Make More Helpers',
598 '../build/mac/make_more_helpers.sh',
600 '<(content_shell_product_name)',
604 # Make sure there isn't any Objective-C in the shell's
606 'postbuild_name': 'Verify No Objective-C',
608 '../build/mac/verify_no_objc.sh',
615 '../tools/imagediff/image_diff.gyp:image_diff',
618 ['OS=="android" and android_webview_build==0', {
620 '../tools/imagediff/image_diff.gyp:image_diff#host',
622 }], # OS=="android" and android_webview_build==0
626 'target_name': 'content_shell_builder',
634 'target_name': 'test_netscape_plugin',
635 'type': 'loadable_module',
637 'shell/tools/plugin/PluginObject.cpp',
638 'shell/tools/plugin/PluginObject.h',
639 'shell/tools/plugin/PluginObjectMac.mm',
640 'shell/tools/plugin/PluginTest.cpp',
641 'shell/tools/plugin/PluginTest.h',
642 'shell/tools/plugin/TestObject.cpp',
643 'shell/tools/plugin/Tests/DocumentOpenInDestroyStream.cpp',
644 'shell/tools/plugin/Tests/EvaluateJSAfterRemovingPluginElement.cpp',
645 'shell/tools/plugin/Tests/FormValue.cpp',
646 'shell/tools/plugin/Tests/GetURLNotifyWithURLThatFailsToLoad.cpp',
647 'shell/tools/plugin/Tests/GetURLWithJavaScriptURL.cpp',
648 'shell/tools/plugin/Tests/GetURLWithJavaScriptURLDestroyingPlugin.cpp',
649 'shell/tools/plugin/Tests/GetUserAgentWithNullNPPFromNPPNew.cpp',
650 'shell/tools/plugin/Tests/LeakWindowScriptableObject.cpp',
651 'shell/tools/plugin/Tests/LogNPPSetWindow.cpp',
652 'shell/tools/plugin/Tests/NPDeallocateCalledBeforeNPShutdown.cpp',
653 'shell/tools/plugin/Tests/NPPNewFails.cpp',
654 'shell/tools/plugin/Tests/NPRuntimeCallsWithNullNPP.cpp',
655 'shell/tools/plugin/Tests/NPRuntimeObjectFromDestroyedPlugin.cpp',
656 'shell/tools/plugin/Tests/NPRuntimeRemoveProperty.cpp',
657 'shell/tools/plugin/Tests/NullNPPGetValuePointer.cpp',
658 'shell/tools/plugin/Tests/PassDifferentNPPStruct.cpp',
659 'shell/tools/plugin/Tests/PluginScriptableNPObjectInvokeDefault.cpp',
660 'shell/tools/plugin/Tests/PluginScriptableObjectOverridesAllProperties.cpp',
661 'shell/tools/plugin/main.cpp',
662 'shell/tools/plugin/test_object.h',
666 '<(DEPTH)/content/shell/tools/plugin/',
669 '../base/base.gyp:base',
670 '../third_party/npapi/npapi.gyp:npapi',
675 'product_extension': 'plugin',
678 '$(SDKROOT)/System/Library/Frameworks/Carbon.framework',
679 '$(SDKROOT)/System/Library/Frameworks/Cocoa.framework',
680 '$(SDKROOT)/System/Library/Frameworks/QuartzCore.framework',
684 'GCC_SYMBOLS_PRIVATE_EXTERN': 'NO',
685 'INFOPLIST_FILE': 'shell/tools/plugin/mac/Info.plist',
688 ['os_posix == 1 and OS != "mac"', {
690 '-fvisibility=default',
695 # This seems like a hack, but this is what Safari Win does.
696 'snprintf=_snprintf',
699 'shell/tools/plugin/win/TestNetscapePlugin.def',
700 'shell/tools/plugin/win/TestNetscapePlugin.rc',
702 # The .rc file requires that the name of the dll is np_test_netscape_plugin.dll.
703 'product_name': 'np_test_netscape_plugin',
704 # Disable c4267 warnings until we fix size_t to int truncations.
705 'msvs_disabled_warnings': [ 4267, ],
710 'target_name': 'copy_test_netscape_plugin',
713 'test_netscape_plugin',
718 'destination': '<(PRODUCT_DIR)/plugins',
719 'files': ['<(PRODUCT_DIR)/np_test_netscape_plugin.dll'],
724 'destination': '<(PRODUCT_DIR)/plugins/',
725 'files': ['<(PRODUCT_DIR)/test_netscape_plugin.plugin/'],
728 ['os_posix == 1 and OS != "mac"', {
730 'destination': '<(PRODUCT_DIR)/plugins',
731 'files': ['<(PRODUCT_DIR)/libtest_netscape_plugin.so'],
738 ['OS=="mac" or OS=="win"', {
741 'target_name': 'layout_test_helper',
742 'type': 'executable',
744 'shell/renderer/test_runner/helper/layout_test_helper_mac.mm',
745 'shell/renderer/test_runner/helper/layout_test_helper_win.cc',
751 '$(SDKROOT)/System/Library/Frameworks/AppKit.framework',
758 }], # OS=="mac" or OS=="win"
762 'target_name': 'content_shell_framework',
763 'type': 'shared_library',
764 'product_name': '<(content_shell_product_name) Framework',
766 'mac_bundle_resources': [
767 'shell/app/English.lproj/HttpAuth.xib',
768 'shell/app/English.lproj/MainMenu.xib',
769 '<(PRODUCT_DIR)/content_shell.pak',
770 'shell/app/framework-Info.plist',
772 'mac_bundle_resources!': [
773 'shell/app/framework-Info.plist',
776 # The framework is placed within the .app's Framework
777 # directory. DYLIB_INSTALL_NAME_BASE and
778 # LD_DYLIB_INSTALL_NAME affect -install_name.
779 'DYLIB_INSTALL_NAME_BASE':
780 '@executable_path/../Frameworks',
781 # See /build/mac/copy_framework_unversioned.sh for
782 # information on LD_DYLIB_INSTALL_NAME.
783 'LD_DYLIB_INSTALL_NAME':
784 '$(DYLIB_INSTALL_NAME_BASE:standardizepath)/$(WRAPPER_NAME)/$(PRODUCT_NAME)',
786 'INFOPLIST_FILE': 'shell/app/framework-Info.plist',
795 'shell/app/shell_content_main.cc',
796 'shell/app/shell_content_main.h',
800 # Modify the Info.plist as needed. The script explains why
801 # this is needed. This is also done in the chrome target.
802 # The framework needs the Breakpad keys if this feature is
803 # enabled. It does not need the Keystone keys; these always
804 # come from the outer application bundle. The framework
805 # doesn't currently use the SCM keys for anything,
806 # but this seems like a really good place to store them.
807 'postbuild_name': 'Tweak Info.plist',
808 'action': ['../build/mac/tweak_info_plist.py',
812 '--version=<(content_shell_version)',
813 '--branding=<(content_shell_product_name)'],
818 # Copy FFmpeg binaries for audio/video support.
819 'destination': '<(PRODUCT_DIR)/$(CONTENTS_FOLDER_PATH)/Libraries',
821 '<(PRODUCT_DIR)/ffmpegsumo.so',
825 'destination': '<(PRODUCT_DIR)/$(CONTENTS_FOLDER_PATH)/Resources',
827 '<(PRODUCT_DIR)/crash_inspector',
828 '<(PRODUCT_DIR)/crash_report_sender.app'
833 ['enable_webrtc==1', {
835 'libpeer_target_type%': 'static_library',
838 ['libpeer_target_type!="static_library"', {
840 'destination': '<(PRODUCT_DIR)/$(CONTENTS_FOLDER_PATH)/Libraries',
842 '<(PRODUCT_DIR)/libpeerconnection.so',
848 ['icu_use_data_file_flag==1', {
849 'mac_bundle_resources': [
850 '<(PRODUCT_DIR)/icudtl.dat',
854 }, # target content_shell_framework
856 'target_name': 'content_shell_helper_app',
857 'type': 'executable',
858 'variables': { 'enable_wexit_time_destructors': 1, },
859 'product_name': '<(content_shell_product_name) Helper',
862 'content_shell_framework',
865 'shell/app/shell_main.cc',
866 'shell/app/helper-Info.plist',
868 # TODO(mark): Come up with a fancier way to do this. It should only
869 # be necessary to list helper-Info.plist once, not the three times it
871 'mac_bundle_resources!': [
872 'shell/app/helper-Info.plist',
874 # TODO(mark): For now, don't put any resources into this app. Its
875 # resources directory will be a symbolic link to the browser app's
876 # resources directory.
877 'mac_bundle_resources/': [
881 'INFOPLIST_FILE': 'shell/app/helper-Info.plist',
885 # The framework defines its load-time path
886 # (DYLIB_INSTALL_NAME_BASE) relative to the main executable
887 # (chrome). A different relative path needs to be used in
888 # content_shell_helper_app.
889 'postbuild_name': 'Fix Framework Link',
893 '@executable_path/../Frameworks/<(content_shell_product_name) Framework.framework/<(content_shell_product_name) Framework',
894 '@executable_path/../../../<(content_shell_product_name) Framework.framework/<(content_shell_product_name) Framework',
895 '${BUILT_PRODUCTS_DIR}/${EXECUTABLE_PATH}'
899 # Modify the Info.plist as needed. The script explains why this
900 # is needed. This is also done in the chrome and chrome_dll
901 # targets. In this case, --breakpad=0, --keystone=0, and --scm=0
902 # are used because Breakpad, Keystone, and SCM keys are
903 # never placed into the helper.
904 'postbuild_name': 'Tweak Info.plist',
905 'action': ['../build/mac/tweak_info_plist.py',
909 '--version=<(content_shell_version)'],
912 # Make sure there isn't any Objective-C in the helper app's
914 'postbuild_name': 'Verify No Objective-C',
916 '../build/mac/verify_no_objc.sh',
921 ['component=="shared_library"', {
923 'LD_RUNPATH_SEARCH_PATHS': [
924 # Get back from Content Shell.app/Contents/Frameworks/
925 # Helper.app/Contents/MacOS
926 '@loader_path/../../../../../..',
931 }, # target content_shell_helper_app
937 # TODO(jrg): Update this action and other jni generators to only
938 # require specifying the java directory and generate the rest.
939 'target_name': 'content_shell_jni_headers',
942 'shell/android/browsertests_apk/src/org/chromium/content_browsertests_apk/ContentBrowserTestsActivity.java',
943 'shell/android/java/src/org/chromium/content_shell/ShellLayoutTestUtils.java',
944 'shell/android/java/src/org/chromium/content_shell/ShellManager.java',
945 'shell/android/java/src/org/chromium/content_shell/Shell.java',
948 'jni_gen_package': 'content/shell',
950 'includes': [ '../build/jni_generator.gypi' ],
953 'target_name': 'libcontent_shell_content_view',
954 'type': 'shared_library',
956 'content_shell_jni_headers',
959 # Skia is necessary to ensure the dependencies needed by
960 # WebContents are included.
961 '../skia/skia.gyp:skia',
962 '<(DEPTH)/media/media.gyp:player_android',
965 'shell/android/shell_library_loader.cc',
966 'shell/android/shell_library_loader.h',
969 ['android_webview_build==1', {
971 '-lgabi++', # For rtti
977 'target_name': 'content_shell_java',
980 'content.gyp:content_java',
983 'java_in_dir': '../content/shell/android/java',
984 'has_java_resources': 1,
985 'R_package': 'org.chromium.content_shell',
986 'R_package_relpath': 'org/chromium/content_shell',
988 'includes': [ '../build/java.gypi' ],
991 # content_shell_apk creates a .jar as a side effect. Any java targets
992 # that need that .jar in their classpath should depend on this target,
993 # content_shell_apk_java. Dependents of content_shell_apk receive its
994 # jar path in the variable 'apk_output_jar_path'. This target should
995 # only be used by targets which instrument content_shell_apk.
996 'target_name': 'content_shell_apk_java',
1001 'includes': [ '../build/apk_fake_jar.gypi' ],
1004 'target_name': 'content_shell_apk',
1007 'content.gyp:content_icudata',
1008 'content.gyp:content_java',
1009 'content_java_test_support',
1010 'content_shell_java',
1011 'libcontent_shell_content_view',
1012 '../base/base.gyp:base_java',
1013 '../media/media.gyp:media_java',
1014 '../net/net.gyp:net_java',
1015 '../third_party/mesa/mesa.gyp:osmesa_in_lib_dir',
1016 '../tools/android/forwarder/forwarder.gyp:forwarder',
1017 '../ui/android/ui_android.gyp:ui_java',
1020 'apk_name': 'ContentShell',
1021 'manifest_package_name': 'org.chromium.content_shell_apk',
1022 'java_in_dir': 'shell/android/shell_apk',
1023 'resource_dir': 'shell/android/shell_apk/res',
1024 'native_lib_target': 'libcontent_shell_content_view',
1025 'additional_input_paths': ['<(PRODUCT_DIR)/content_shell/assets/content_shell.pak'],
1026 'asset_location': '<(PRODUCT_DIR)/content_shell/assets',
1027 'extra_native_libs': ['<(SHARED_LIB_DIR)/libosmesa.so'],
1029 ['icu_use_data_file_flag==1', {
1030 'additional_input_paths': [
1031 '<(PRODUCT_DIR)/icudtl.dat',
1034 ['component != "shared_library" and target_arch != "arm64" and target_arch != "x64" and profiling_full_stack_frames != 1', {
1035 # Only enable the chromium linker on regular builds, since the
1036 # component build crashes on Android 4.4. See b/11379966
1037 'use_chromium_linker': '1',
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"