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_shell_resources',
39 'test_support_content',
40 'content_resources.gyp:content_resources',
41 '../base/base.gyp:base',
42 '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations',
43 '../components/components.gyp:breakpad_component',
45 '../media/media.gyp:media',
47 '../net/net.gyp:net_resources',
48 '../skia/skia.gyp:skia',
49 '../third_party/WebKit/public/blink.gyp:blink',
50 '../third_party/WebKit/public/blink_test_plugin.gyp:blink_test_plugin',
51 '../third_party/WebKit/public/blink_test_runner.gyp:blink_test_support',
52 '../ui/events/events.gyp:events_base',
53 '../ui/gfx/gfx.gyp:gfx',
54 '../ui/gfx/gfx.gyp:gfx_geometry',
57 '../url/url.gyp:url_lib',
58 '../v8/tools/gyp/v8.gyp:v8',
59 '../webkit/common/user_agent/webkit_user_agent.gyp:user_agent',
60 '../webkit/common/webkit_common.gyp:webkit_common',
61 '../webkit/glue/webkit_glue.gyp:glue',
62 '../webkit/webkit_resources.gyp:webkit_resources',
68 'public/test/layouttest_support.h',
69 'shell/android/shell_jni_registrar.cc',
70 'shell/android/shell_jni_registrar.h',
71 'shell/android/shell_manager.cc',
72 'shell/android/shell_manager.h',
73 'shell/app/paths_mac.h',
74 'shell/app/paths_mac.mm',
75 'shell/app/shell_breakpad_client.cc',
76 'shell/app/shell_breakpad_client.h',
77 'shell/app/shell_main_delegate.cc',
78 'shell/app/shell_main_delegate.h',
79 'shell/app/shell_main_delegate_mac.h',
80 'shell/app/shell_main_delegate_mac.mm',
81 'shell/app/webkit_test_platform_support_android.cc',
82 'shell/app/webkit_test_platform_support.h',
83 'shell/app/webkit_test_platform_support_linux.cc',
84 'shell/app/webkit_test_platform_support_mac.mm',
85 'shell/app/webkit_test_platform_support_win.cc',
86 'shell/browser/notify_done_forwarder.cc',
87 'shell/browser/notify_done_forwarder.h',
88 'shell/browser/shell_android.cc',
89 'shell/browser/shell_application_mac.h',
90 'shell/browser/shell_application_mac.mm',
91 'shell/browser/shell_aura.cc',
92 'shell/browser/shell_browser_context.cc',
93 'shell/browser/shell_browser_context.h',
94 'shell/browser/shell_browser_main.cc',
95 'shell/browser/shell_browser_main.h',
96 'shell/browser/shell_browser_main_parts.cc',
97 'shell/browser/shell_browser_main_parts.h',
98 'shell/browser/shell_browser_main_parts_mac.mm',
99 'shell/browser/shell.cc',
100 'shell/browser/shell_content_browser_client.cc',
101 'shell/browser/shell_content_browser_client.h',
102 'shell/browser/shell_devtools_delegate.cc',
103 'shell/browser/shell_devtools_delegate.h',
104 'shell/browser/shell_devtools_frontend.cc',
105 'shell/browser/shell_devtools_frontend.h',
106 'shell/browser/shell_download_manager_delegate.cc',
107 'shell/browser/shell_download_manager_delegate.h',
108 'shell/browser/shell_gtk.cc',
109 'shell/browser/shell.h',
110 'shell/browser/shell_javascript_dialog_gtk.cc',
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_gtk.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_plugin_service_filter.cc',
130 'shell/browser/shell_plugin_service_filter.h',
131 'shell/browser/shell_quota_permission_context.cc',
132 'shell/browser/shell_quota_permission_context.h',
133 'shell/browser/shell_resource_dispatcher_host_delegate.cc',
134 'shell/browser/shell_resource_dispatcher_host_delegate.h',
135 'shell/browser/shell_speech_recognition_manager_delegate.cc',
136 'shell/browser/shell_speech_recognition_manager_delegate.h',
137 'shell/browser/shell_url_request_context_getter.cc',
138 'shell/browser/shell_url_request_context_getter.h',
139 'shell/browser/shell_views.cc',
140 'shell/browser/shell_web_contents_view_delegate_android.cc',
141 'shell/browser/shell_web_contents_view_delegate_creator.h',
142 'shell/browser/shell_web_contents_view_delegate_gtk.cc',
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/shell_win.cc',
147 'shell/browser/webkit_test_controller.cc',
148 'shell/browser/webkit_test_controller.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/WebPreferences.cpp',
158 'shell/common/test_runner/WebPreferences.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_extension.cc',
164 'shell/renderer/gc_extension.h',
165 'shell/renderer/shell_content_renderer_client.cc',
166 'shell/renderer/shell_content_renderer_client.h',
167 'shell/renderer/shell_render_frame_observer.cc',
168 'shell/renderer/shell_render_frame_observer.h',
169 'shell/renderer/shell_render_process_observer.cc',
170 'shell/renderer/shell_render_process_observer.h',
171 'shell/renderer/shell_render_view_observer.cc',
172 'shell/renderer/shell_render_view_observer.h',
173 'shell/renderer/test_runner/AccessibilityController.cpp',
174 'shell/renderer/test_runner/AccessibilityController.h',
175 'shell/renderer/test_runner/CppBoundClass.cpp',
176 'shell/renderer/test_runner/CppBoundClass.h',
177 'shell/renderer/test_runner/CppVariant.cpp',
178 'shell/renderer/test_runner/CppVariant.h',
179 'shell/renderer/test_runner/EventSender.cpp',
180 'shell/renderer/test_runner/EventSender.h',
181 'shell/renderer/test_runner/GamepadController.cpp',
182 'shell/renderer/test_runner/GamepadController.h',
183 'shell/renderer/test_runner/KeyCodeMapping.cpp',
184 'shell/renderer/test_runner/KeyCodeMapping.h',
185 'shell/renderer/test_runner/MockColorChooser.cpp',
186 'shell/renderer/test_runner/MockColorChooser.h',
187 'shell/renderer/test_runner/MockConstraints.cpp',
188 'shell/renderer/test_runner/MockConstraints.h',
189 'shell/renderer/test_runner/MockGrammarCheck.cpp',
190 'shell/renderer/test_runner/MockGrammarCheck.h',
191 'shell/renderer/test_runner/MockSpellCheck.cpp',
192 'shell/renderer/test_runner/MockSpellCheck.h',
193 'shell/renderer/test_runner/MockWebAudioDevice.cpp',
194 'shell/renderer/test_runner/MockWebAudioDevice.h',
195 'shell/renderer/test_runner/MockWebMIDIAccessor.cpp',
196 'shell/renderer/test_runner/MockWebMIDIAccessor.h',
197 'shell/renderer/test_runner/MockWebMediaStreamCenter.cpp',
198 'shell/renderer/test_runner/MockWebMediaStreamCenter.h',
199 'shell/renderer/test_runner/MockWebRTCDTMFSenderHandler.cpp',
200 'shell/renderer/test_runner/MockWebRTCDTMFSenderHandler.h',
201 'shell/renderer/test_runner/MockWebRTCDataChannelHandler.cpp',
202 'shell/renderer/test_runner/MockWebRTCDataChannelHandler.h',
203 'shell/renderer/test_runner/MockWebRTCPeerConnectionHandler.cpp',
204 'shell/renderer/test_runner/MockWebRTCPeerConnectionHandler.h',
205 'shell/renderer/test_runner/MockWebSpeechInputController.cpp',
206 'shell/renderer/test_runner/MockWebSpeechInputController.h',
207 'shell/renderer/test_runner/MockWebSpeechRecognizer.cpp',
208 'shell/renderer/test_runner/MockWebSpeechRecognizer.h',
209 'shell/renderer/test_runner/NotificationPresenter.cpp',
210 'shell/renderer/test_runner/NotificationPresenter.h',
211 'shell/renderer/test_runner/SpellCheckClient.cpp',
212 'shell/renderer/test_runner/SpellCheckClient.h',
213 'shell/renderer/test_runner/TestCommon.cpp',
214 'shell/renderer/test_runner/TestCommon.h',
215 'shell/renderer/test_runner/TestInterfaces.cpp',
216 'shell/renderer/test_runner/TestInterfaces.h',
217 'shell/renderer/test_runner/TestPlugin.cpp',
218 'shell/renderer/test_runner/TestPlugin.h',
219 'shell/renderer/test_runner/TestRunner.cpp',
220 'shell/renderer/test_runner/TestRunner.h',
221 'shell/renderer/test_runner/TextInputController.cpp',
222 'shell/renderer/test_runner/TextInputController.h',
223 'shell/renderer/test_runner/WebAXObjectProxy.cpp',
224 'shell/renderer/test_runner/WebAXObjectProxy.h',
225 'shell/renderer/test_runner/WebFrameTestProxy.h',
226 'shell/renderer/test_runner/WebPermissions.cpp',
227 'shell/renderer/test_runner/WebPermissions.h',
228 'shell/renderer/test_runner/WebTask.cpp',
229 'shell/renderer/test_runner/WebTask.h',
230 'shell/renderer/test_runner/WebTestDelegate.h',
231 'shell/renderer/test_runner/WebTestInterfaces.cpp',
232 'shell/renderer/test_runner/WebTestInterfaces.h',
233 'shell/renderer/test_runner/WebTestProxy.cpp',
234 'shell/renderer/test_runner/WebTestProxy.h',
235 'shell/renderer/test_runner/WebTestRunner.h',
236 'shell/renderer/test_runner/WebTestThemeControlWin.cpp',
237 'shell/renderer/test_runner/WebTestThemeControlWin.h',
238 'shell/renderer/test_runner/WebTestThemeEngineMac.h',
239 'shell/renderer/test_runner/WebTestThemeEngineMac.mm',
240 'shell/renderer/test_runner/WebTestThemeEngineMock.cpp',
241 'shell/renderer/test_runner/WebTestThemeEngineMock.h',
242 'shell/renderer/test_runner/WebTestThemeEngineWin.cpp',
243 'shell/renderer/test_runner/WebTestThemeEngineWin.h',
244 'shell/renderer/test_runner/WebUserMediaClientMock.cpp',
245 'shell/renderer/test_runner/WebUserMediaClientMock.h',
246 'shell/renderer/webkit_test_runner.cc',
247 'shell/renderer/webkit_test_runner.h',
248 'test/layouttest_support.cc',
252 'SubSystem': '2', # Set /SUBSYSTEM:WINDOWS
256 ['OS=="win" and win_use_allocator_shim==1', {
258 '../base/allocator/allocator.gyp:allocator',
262 'resource_include_dirs': [
263 '<(SHARED_INTERMEDIATE_DIR)/webkit',
266 '<(DEPTH)/webkit/webkit_resources.gyp:webkit_strings',
272 'LinkIncremental': '<(msvs_large_module_debug_link_mode)',
277 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
278 'msvs_disabled_warnings': [ 4267, ],
281 ['exclude', 'Win\\.cpp$'],
286 '../build/linux/system.gyp:fontconfig',
291 '../tools/xdisplaycheck/xdisplaycheck.gyp:xdisplaycheck',
296 'content_shell_jni_headers',
299 '../third_party/WebKit/public/blink_test_plugin.gyp:blink_test_plugin',
301 }, { # else: OS!="android"
303 # This dependency is for running DRT against the content shell, and
304 # this combination is not yet supported on Android.
305 'test_support_content',
308 ['os_posix == 1 and OS != "mac" and android_webview_build != 1', {
310 '../components/components.gyp:breakpad_host',
313 ['(os_posix==1 and use_aura==1 and linux_use_tcmalloc==1) or (android_use_tcmalloc==1)', {
315 # This is needed by content/app/content_main_runner.cc
316 '../base/allocator/allocator.gyp:allocator',
321 '../ui/aura/aura.gyp:aura',
322 '../ui/base/strings/ui_strings.gyp:ui_strings',
325 ['exclude', 'shell/browser/shell_gtk.cc'],
326 ['exclude', 'shell/browser/shell_win.cc'],
329 ['toolkit_views==1', {
331 '../ui/resources/ui_resources.gyp:ui_resources',
332 '../ui/views/controls/webview/webview.gyp:webview',
333 '../ui/views/views.gyp:views',
334 '../ui/views/views.gyp:views_test_support',
337 ['exclude', 'shell/browser/shell_aura.cc'],
341 ['exclude', 'shell/browser/shell_views.cc'],
347 ['exclude', 'shell/browser/shell_aura.cc'],
348 ['exclude', 'shell/browser/shell_views.cc'],
351 # The test plugin relies on X11.
352 ['OS=="linux" and use_x11==0', {
354 '../third_party/WebKit/public/blink_test_plugin.gyp:blink_test_plugin',
359 '../chromeos/chromeos.gyp:chromeos',
360 '../ui/wm/wm.gyp:wm_test_support',
363 ['use_custom_freetype==1', {
365 '../third_party/freetype2/freetype2.gyp:freetype2',
368 ['enable_plugins==0', {
370 ['exclude', 'shell/browser/shell_plugin_service_filter.cc'],
371 ['exclude', 'shell/browser/shell_plugin_service_filter.h'],
377 'target_name': 'content_shell_resources',
380 'generate_content_shell_resources',
383 'grit_out_dir': '<(SHARED_INTERMEDIATE_DIR)/content',
385 'includes': [ '../build/grit_target.gypi' ],
388 'destination': '<(PRODUCT_DIR)',
390 '<(SHARED_INTERMEDIATE_DIR)/content/shell_resources.pak'
397 'destination': '<(PRODUCT_DIR)',
398 'files': ['shell/renderer/test_runner/resources/fonts/AHEM____.TTF'],
402 'all_dependent_settings': {
403 'mac_bundle_resources': [
404 'shell/renderer/test_runner/resources/fonts/AHEM____.TTF',
405 '<(SHARED_INTERMEDIATE_DIR)/webkit/missingImage.png',
406 '<(SHARED_INTERMEDIATE_DIR)/webkit/textAreaResizeCorner.png',
412 'destination': '<(PRODUCT_DIR)',
414 'shell/renderer/test_runner/resources/fonts/AHEM____.TTF',
415 'shell/renderer/test_runner/resources/fonts/fonts.conf',
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 'target_name': 'generate_content_shell_resources',
435 'grit_out_dir': '<(SHARED_INTERMEDIATE_DIR)/content',
439 'action_name': 'content_shell_resources',
441 'grit_grd_file': 'shell/shell_resources.grd',
443 'includes': [ '../build/grit_action.gypi' ],
448 # We build a minimal set of resources so WebKit in content_shell has
449 # access to necessary resources.
450 'target_name': 'content_shell_pak',
453 'content_resources.gyp:content_resources',
454 'content_shell_resources',
455 '<(DEPTH)/net/net.gyp:net_resources',
456 '<(DEPTH)/ui/base/strings/ui_strings.gyp:ui_strings',
457 '<(DEPTH)/ui/resources/ui_resources.gyp:ui_resources',
458 '<(DEPTH)/webkit/webkit_resources.gyp:webkit_resources',
459 '<(DEPTH)/webkit/webkit_resources.gyp:webkit_strings',
462 ['OS!="android" and OS!="ios"', {
464 'browser/tracing/tracing_resources.gyp:tracing_resources',
469 'browser/devtools/devtools_resources.gyp:devtools_resources',
474 'repack_path': '<(DEPTH)/tools/grit/grit/format/repack.py',
478 'action_name': 'repack_content_shell_pack',
481 '<(SHARED_INTERMEDIATE_DIR)/content/content_resources.pak',
482 '<(SHARED_INTERMEDIATE_DIR)/content/browser/tracing/tracing_resources.pak',
483 '<(SHARED_INTERMEDIATE_DIR)/content/shell_resources.pak',
484 '<(SHARED_INTERMEDIATE_DIR)/net/net_resources.pak',
485 '<(SHARED_INTERMEDIATE_DIR)/ui/app_locale_settings/app_locale_settings_en-US.pak',
486 '<(SHARED_INTERMEDIATE_DIR)/ui/ui_resources/ui_resources_100_percent.pak',
487 '<(SHARED_INTERMEDIATE_DIR)/ui/ui_resources/webui_resources.pak',
488 '<(SHARED_INTERMEDIATE_DIR)/ui/ui_strings/ui_strings_en-US.pak',
489 '<(SHARED_INTERMEDIATE_DIR)/webkit/blink_resources.pak',
490 '<(SHARED_INTERMEDIATE_DIR)/webkit/webkit_resources_100_percent.pak',
491 '<(SHARED_INTERMEDIATE_DIR)/webkit/webkit_strings_en-US.pak',
498 'action': ['python', '<(repack_path)', '<@(_outputs)',
504 '<(SHARED_INTERMEDIATE_DIR)/webkit/devtools_resources.pak',
508 '<(PRODUCT_DIR)/content_shell.pak',
512 '<(PRODUCT_DIR)/content_shell/assets/content_shell.pak',
520 'target_name': 'content_shell',
521 'type': 'executable',
529 '../third_party/mesa/mesa.gyp:osmesa',
530 '../tools/imagediff/image_diff.gyp:image_diff',
536 'app/startup_helper_win.cc',
537 'shell/app/shell_main.cc',
539 'mac_bundle_resources': [
540 'shell/app/app.icns',
541 'shell/app/app-Info.plist',
543 # TODO(mark): Come up with a fancier way to do this. It should only
544 # be necessary to list app-Info.plist once, not the three times it is
546 'mac_bundle_resources!': [
547 'shell/app/app-Info.plist',
550 'INFOPLIST_FILE': 'shell/app/app-Info.plist',
554 'SubSystem': '2', # Set /SUBSYSTEM:WINDOWS
557 'AdditionalManifestFiles': [
558 'shell/app/shell.exe.manifest',
563 ['OS=="win" and win_use_allocator_shim==1', {
565 '../base/allocator/allocator.gyp:allocator',
570 'shell/app/shell.rc',
576 'LinkIncremental': '<(msvs_large_module_debug_link_mode)',
582 ['OS == "win" or toolkit_uses_gtk == 1', {
584 '../sandbox/sandbox.gyp:sandbox',
586 }], # OS=="win" or toolkit_uses_gtk == 1
587 ['toolkit_uses_gtk == 1', {
589 '<(DEPTH)/build/linux/system.gyp:gtk',
591 }], # toolkit_uses_gtk
593 'product_name': '<(content_shell_product_name)',
598 'content_shell_framework',
599 'content_shell_helper_app',
603 'destination': '<(PRODUCT_DIR)/<(content_shell_product_name).app/Contents/Frameworks',
605 '<(PRODUCT_DIR)/<(content_shell_product_name) Helper.app',
611 'postbuild_name': 'Copy <(content_shell_product_name) Framework.framework',
613 '../build/mac/copy_framework_unversioned.sh',
614 '${BUILT_PRODUCTS_DIR}/<(content_shell_product_name) Framework.framework',
615 '${BUILT_PRODUCTS_DIR}/${CONTENTS_FOLDER_PATH}/Frameworks',
619 # Modify the Info.plist as needed.
620 'postbuild_name': 'Tweak Info.plist',
621 'action': ['../build/mac/tweak_info_plist.py',
623 '--version=<(content_shell_version)'],
626 # This postbuid step is responsible for creating the following
629 # Content Shell Helper EH.app and Content Shell Helper NP.app are
630 # created from Content Shell Helper.app.
632 # The EH helper is marked for an executable heap. The NP helper
633 # is marked for no PIE (ASLR).
634 'postbuild_name': 'Make More Helpers',
636 '../build/mac/make_more_helpers.sh',
638 '<(content_shell_product_name)',
642 # Make sure there isn't any Objective-C in the shell's
644 'postbuild_name': 'Verify No Objective-C',
646 '../build/mac/verify_no_objc.sh',
653 '../tools/imagediff/image_diff.gyp:image_diff',
656 ['OS=="android" and android_webview_build==0', {
658 '../tools/imagediff/image_diff.gyp:image_diff#host',
660 }], # OS=="android" and android_webview_build==0
664 'target_name': 'content_shell_builder',
671 'target_name': 'layout_test_helper',
672 'type': 'executable',
674 'shell/renderer/test_runner/helper/layout_test_helper_mac.mm',
675 'shell/renderer/test_runner/helper/layout_test_helper_win.cc',
681 '$(SDKROOT)/System/Library/Frameworks/AppKit.framework',
692 'target_name': 'content_shell_framework',
693 'type': 'shared_library',
694 'product_name': '<(content_shell_product_name) Framework',
696 'mac_bundle_resources': [
697 'shell/app/English.lproj/HttpAuth.xib',
698 'shell/app/English.lproj/MainMenu.xib',
699 '<(PRODUCT_DIR)/content_shell.pak',
700 'shell/app/framework-Info.plist',
702 'mac_bundle_resources!': [
703 'shell/app/framework-Info.plist',
706 # The framework is placed within the .app's Framework
707 # directory. DYLIB_INSTALL_NAME_BASE and
708 # LD_DYLIB_INSTALL_NAME affect -install_name.
709 'DYLIB_INSTALL_NAME_BASE':
710 '@executable_path/../Frameworks',
711 # See /build/mac/copy_framework_unversioned.sh for
712 # information on LD_DYLIB_INSTALL_NAME.
713 'LD_DYLIB_INSTALL_NAME':
714 '$(DYLIB_INSTALL_NAME_BASE:standardizepath)/$(WRAPPER_NAME)/$(PRODUCT_NAME)',
716 'INFOPLIST_FILE': 'shell/app/framework-Info.plist',
725 'shell/app/shell_content_main.cc',
726 'shell/app/shell_content_main.h',
730 # Modify the Info.plist as needed. The script explains why
731 # this is needed. This is also done in the chrome target.
732 # The framework needs the Breakpad keys if this feature is
733 # enabled. It does not need the Keystone keys; these always
734 # come from the outer application bundle. The framework
735 # doesn't currently use the SCM keys for anything,
736 # but this seems like a really good place to store them.
737 'postbuild_name': 'Tweak Info.plist',
738 'action': ['../build/mac/tweak_info_plist.py',
742 '--version=<(content_shell_version)',
743 '--branding=<(content_shell_product_name)'],
748 # Copy FFmpeg binaries for audio/video support.
749 'destination': '<(PRODUCT_DIR)/$(CONTENTS_FOLDER_PATH)/Libraries',
751 '<(PRODUCT_DIR)/ffmpegsumo.so',
755 'destination': '<(PRODUCT_DIR)/$(CONTENTS_FOLDER_PATH)/Resources',
757 '<(PRODUCT_DIR)/crash_inspector',
758 '<(PRODUCT_DIR)/crash_report_sender.app'
763 ['enable_webrtc==1', {
765 'libpeer_target_type%': 'static_library',
768 ['libpeer_target_type!="static_library"', {
770 'destination': '<(PRODUCT_DIR)/$(CONTENTS_FOLDER_PATH)/Libraries',
772 '<(PRODUCT_DIR)/libpeerconnection.so',
779 }, # target content_shell_framework
781 'target_name': 'content_shell_helper_app',
782 'type': 'executable',
783 'variables': { 'enable_wexit_time_destructors': 1, },
784 'product_name': '<(content_shell_product_name) Helper',
787 'content_shell_framework',
790 'shell/app/shell_main.cc',
791 'shell/app/helper-Info.plist',
793 # TODO(mark): Come up with a fancier way to do this. It should only
794 # be necessary to list helper-Info.plist once, not the three times it
796 'mac_bundle_resources!': [
797 'shell/app/helper-Info.plist',
799 # TODO(mark): For now, don't put any resources into this app. Its
800 # resources directory will be a symbolic link to the browser app's
801 # resources directory.
802 'mac_bundle_resources/': [
806 'INFOPLIST_FILE': 'shell/app/helper-Info.plist',
810 # The framework defines its load-time path
811 # (DYLIB_INSTALL_NAME_BASE) relative to the main executable
812 # (chrome). A different relative path needs to be used in
813 # content_shell_helper_app.
814 'postbuild_name': 'Fix Framework Link',
818 '@executable_path/../Frameworks/<(content_shell_product_name) Framework.framework/<(content_shell_product_name) Framework',
819 '@executable_path/../../../<(content_shell_product_name) Framework.framework/<(content_shell_product_name) Framework',
820 '${BUILT_PRODUCTS_DIR}/${EXECUTABLE_PATH}'
824 # Modify the Info.plist as needed. The script explains why this
825 # is needed. This is also done in the chrome and chrome_dll
826 # targets. In this case, --breakpad=0, --keystone=0, and --scm=0
827 # are used because Breakpad, Keystone, and SCM keys are
828 # never placed into the helper.
829 'postbuild_name': 'Tweak Info.plist',
830 'action': ['../build/mac/tweak_info_plist.py',
834 '--version=<(content_shell_version)'],
837 # Make sure there isn't any Objective-C in the helper app's
839 'postbuild_name': 'Verify No Objective-C',
841 '../build/mac/verify_no_objc.sh',
846 ['component=="shared_library"', {
848 'LD_RUNPATH_SEARCH_PATHS': [
849 # Get back from Content Shell.app/Contents/Frameworks/
850 # Helper.app/Contents/MacOS
851 '@loader_path/../../../../../..',
856 }, # target content_shell_helper_app
862 # TODO(jrg): Update this action and other jni generators to only
863 # require specifying the java directory and generate the rest.
864 'target_name': 'content_shell_jni_headers',
867 'shell/android/browsertests_apk/src/org/chromium/content_browsertests_apk/ContentBrowserTestsActivity.java',
868 'shell/android/java/src/org/chromium/content_shell/ShellLayoutTestUtils.java',
869 'shell/android/java/src/org/chromium/content_shell/ShellManager.java',
870 'shell/android/java/src/org/chromium/content_shell/Shell.java',
873 'jni_gen_package': 'content/shell',
874 'jni_generator_ptr_type': 'long',
876 'includes': [ '../build/jni_generator.gypi' ],
879 'target_name': 'libcontent_shell_content_view',
880 'type': 'shared_library',
882 'content_shell_jni_headers',
885 # Skia is necessary to ensure the dependencies needed by
886 # WebContents are included.
887 '../skia/skia.gyp:skia',
888 '<(DEPTH)/media/media.gyp:player_android',
891 'shell/android/shell_library_loader.cc',
892 'shell/android/shell_library_loader.h',
895 ['android_webview_build==1', {
897 '-lgabi++', # For rtti
903 'target_name': 'content_shell_java',
906 'content.gyp:content_java',
909 'java_in_dir': '../content/shell/android/java',
910 'has_java_resources': 1,
911 'R_package': 'org.chromium.content_shell',
912 'R_package_relpath': 'org/chromium/content_shell',
914 'includes': [ '../build/java.gypi' ],
917 # content_shell_apk creates a .jar as a side effect. Any java targets
918 # that need that .jar in their classpath should depend on this target,
919 # content_shell_apk_java. Dependents of content_shell_apk receive its
920 # jar path in the variable 'apk_output_jar_path'. This target should
921 # only be used by targets which instrument content_shell_apk.
922 'target_name': 'content_shell_apk_java',
927 'includes': [ '../build/apk_fake_jar.gypi' ],
930 'target_name': 'content_shell_apk',
933 'content.gyp:content_java',
934 'content_java_test_support',
935 'content_shell_java',
936 'libcontent_shell_content_view',
937 '../base/base.gyp:base_java',
938 '../media/media.gyp:media_java',
939 '../net/net.gyp:net_java',
940 '../tools/android/forwarder/forwarder.gyp:forwarder',
941 '../ui/android/ui_android.gyp:ui_java',
944 'apk_name': 'ContentShell',
945 'manifest_package_name': 'org.chromium.content_shell_apk',
946 'java_in_dir': 'shell/android/shell_apk',
947 'resource_dir': 'shell/android/shell_apk/res',
948 'native_lib_target': 'libcontent_shell_content_view',
949 'additional_input_paths': ['<(PRODUCT_DIR)/content_shell/assets/content_shell.pak'],
950 'asset_location': '<(PRODUCT_DIR)/content_shell/assets',
953 ['android_webview_build==0', {
955 '../tools/imagediff/image_diff.gyp:image_diff#host',
959 'includes': [ '../build/java_apk.gypi' ],
966 'target_name': 'content_shell_crash_service',
967 'type': 'executable',
969 '../base/base.gyp:base',
970 '../components/components.gyp:breakpad_crash_service',
976 'shell/tools/content_shell_crash_service.cc',
980 'SubSystem': '2', # Set /SUBSYSTEM:WINDOWS
986 ['OS=="win" and fastbuild==0 and target_arch=="ia32"', {
988 'dest_dir': '<(PRODUCT_DIR)/syzygy',
992 'target_name': 'content_shell_syzyasan',
995 # Instrument content_shell with SyzyAsan.
998 'action_name': 'Instrument content_shell with SyzyAsan',
999 'msvs_cygwin_shell': 0,
1001 '<(PRODUCT_DIR)/content_shell.exe',
1004 '<(dest_dir)/content_shell.exe',
1005 '<(dest_dir)/content_shell.exe.pdb',
1009 '<(DEPTH)/chrome/tools/build/win/syzygy_instrument.py',
1011 '--input_executable', '<(PRODUCT_DIR)/content_shell.exe',
1012 '--input_symbol', '<(PRODUCT_DIR)/content_shell.exe.pdb',
1013 '--destination_dir', '<(dest_dir)',
1019 }], # OS=="win" and fastbuild==0 and target_arch=="ia32"