blob: 880df5bf4baceb29a946a1ba6929d3858048c3f1 [file] [log] [blame]
[email protected]81f30ce2012-01-18 22:10:331# Copyright (c) 2012 The Chromium Authors. All rights reserved.
[email protected]5629e0c2011-09-12 22:07:362# Use of this source code is governed by a BSD-style license that can be
3# found in the LICENSE file.
4
5{
[email protected]85ff16042012-03-06 23:46:346 'variables': {
7 'content_shell_product_name': 'Content Shell',
[email protected]6d302912012-11-05 21:57:288 # 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
10 # standard Chrome.
11 'content_shell_version': '19.77.34.5',
[email protected]929246a2013-02-28 13:55:2012 'conditions': [
[email protected]bf6b6442013-03-07 09:18:2413 ['OS=="linux"', {
[email protected]929246a2013-02-28 13:55:2014 'use_custom_freetype%': 1,
15 }, {
16 'use_custom_freetype%': 0,
17 }],
18 ],
[email protected]85ff16042012-03-06 23:46:3419 },
[email protected]5629e0c2011-09-12 22:07:3620 'targets': [
21 {
[email protected]6b9028ab2014-07-23 17:15:3822 # GN version: //content/shell:content_shell_lib
[email protected]c1f87b22011-10-05 21:59:3323 'target_name': 'content_shell_lib',
24 'type': 'static_library',
[email protected]6d302912012-11-05 21:57:2825 'defines': ['CONTENT_SHELL_VERSION="<(content_shell_version)"'],
[email protected]9fbd3f862011-09-20 23:31:3426 'variables': {
27 'chromium_code': 1,
28 },
[email protected]5629e0c2011-09-12 22:07:3629 'dependencies': [
[email protected]a9ca8d52014-08-22 10:21:0830 'app/resources/content_resources.gyp:content_resources',
[email protected]6586a2e32014-08-09 19:24:1231 'app/strings/content_strings.gyp:content_strings',
[email protected]ba42b1e2013-10-19 22:13:1732 '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',
thestigbce02672014-08-26 10:01:3439 'content.gyp:content_resources',
[email protected]ba42b1e2013-10-19 22:13:1740 'content.gyp:content_utility',
[email protected]de28fed2e2014-02-01 14:36:3241 'content_shell_resources',
42 'copy_test_netscape_plugin',
[email protected]5326cd2f2014-04-07 13:35:5843 'layouttest_support_content',
[email protected]aa6e79762011-09-29 20:53:5244 '../base/base.gyp:base',
[email protected]5326cd2f2014-04-07 13:35:5845 '../base/base.gyp:base_static',
[email protected]aa6e79762011-09-29 20:53:5246 '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations',
[email protected]38564622014-08-19 02:47:1847 '../cc/blink/cc_blink.gyp:cc_blink',
[email protected]5326cd2f2014-04-07 13:35:5848 '../cc/cc.gyp:cc',
Robert Sesekabcd8102014-08-27 16:12:4449 '../components/components.gyp:crash_component',
hanxi149b92d2014-09-11 21:57:1850 '../components/components.gyp:web_cache_renderer',
[email protected]41fba0e2014-01-16 18:19:4251 '../gin/gin.gyp:gin',
[email protected]5326cd2f2014-04-07 13:35:5852 '../gpu/gpu.gyp:gpu',
[email protected]aa6e79762011-09-29 20:53:5253 '../ipc/ipc.gyp:ipc',
acolwell9e0840d2014-09-06 19:01:3254 '../media/blink/media_blink.gyp:media_blink',
[email protected]433df472012-03-07 20:33:3955 '../media/media.gyp:media',
[email protected]aa6e79762011-09-29 20:53:5256 '../net/net.gyp:net',
[email protected]24f80692012-08-13 15:15:5057 '../net/net.gyp:net_resources',
[email protected]5629e0c2011-09-12 22:07:3658 '../skia/skia.gyp:skia',
pilgrim4af8c212014-09-05 17:30:1559 '../storage/storage_browser.gyp:storage',
[email protected]3de922f2013-12-20 13:27:3860 '../third_party/WebKit/public/blink.gyp:blink',
[email protected]95f8a142014-04-24 00:23:5861 '../third_party/WebKit/public/blink.gyp:blink_test_support',
[email protected]ed8fd9152014-03-13 10:20:3762 '../ui/base/ui_base.gyp:ui_base',
[email protected]114efae2013-11-06 20:37:5763 '../ui/events/events.gyp:events_base',
[email protected]529a3cf2013-09-30 02:47:4864 '../ui/gfx/gfx.gyp:gfx',
[email protected]b5e2d782013-12-18 21:01:1565 '../ui/gfx/gfx.gyp:gfx_geometry',
[email protected]ffff5b32014-06-25 21:31:0866 '../ui/gfx/ipc/gfx_ipc.gyp:gfx_ipc',
[email protected]8350f16f2012-11-30 00:25:3267 '../ui/gl/gl.gyp:gl',
[email protected]002cc08f2013-06-03 05:40:2968 '../url/url.gyp:url_lib',
[email protected]12bc28fcb2011-09-21 15:53:5069 '../v8/tools/gyp/v8.gyp:v8',
[email protected]5629e0c2011-09-12 22:07:3670 ],
71 'include_dirs': [
72 '..',
73 ],
74 'sources': [
[email protected]6b9028ab2014-07-23 17:15:3875 # Note: sources list duplicated in GN build.
[email protected]4d4eb5b2013-01-29 21:55:5576 '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',
[email protected]2a94e812013-07-12 15:31:0280 'shell/app/paths_mac.h',
81 'shell/app/paths_mac.mm',
rseseka0a7a042014-09-18 23:59:2082 'shell/app/shell_crash_reporter_client.cc',
83 'shell/app/shell_crash_reporter_client.h',
[email protected]993951d2013-05-08 21:37:0284 'shell/app/shell_main_delegate.cc',
85 'shell/app/shell_main_delegate.h',
[email protected]2a94e812013-07-12 15:31:0286 'shell/app/shell_main_delegate_mac.h',
87 'shell/app/shell_main_delegate_mac.mm',
[email protected]216161f2013-07-02 16:23:2088 'shell/app/webkit_test_platform_support_android.cc',
[email protected]de7d61ff2013-08-20 11:30:4189 'shell/app/webkit_test_platform_support.h',
[email protected]216161f2013-07-02 16:23:2090 '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',
[email protected]9cd36bfb2014-08-20 00:32:0093 'shell/browser/ipc_echo_message_filter.cc',
94 'shell/browser/ipc_echo_message_filter.h',
mkwstd6805d0d2014-10-16 14:44:3795 'shell/browser/layout_test/layout_test_android.cc',
96 'shell/browser/layout_test/layout_test_android.h',
mkwstd993d06a2014-10-10 11:44:3897 'shell/browser/layout_test/layout_test_browser_context.cc',
98 'shell/browser/layout_test/layout_test_browser_context.h',
mkwst88e23182014-10-16 12:08:5899 'shell/browser/layout_test/layout_test_browser_main.cc',
100 'shell/browser/layout_test/layout_test_browser_main.h',
mkwst36b11b6f2014-10-15 16:18:56101 'shell/browser/layout_test/layout_test_browser_main_parts.cc',
102 'shell/browser/layout_test/layout_test_browser_main_parts.h',
mkwstc639ead12014-10-10 13:53:34103 'shell/browser/layout_test/layout_test_download_manager_delegate.cc',
104 'shell/browser/layout_test/layout_test_download_manager_delegate.h',
mkwst30d20d52014-10-09 13:33:14105 'shell/browser/layout_test/layout_test_devtools_frontend.cc',
106 'shell/browser/layout_test/layout_test_devtools_frontend.h',
mkwst6efe7f2e62014-10-08 15:09:01107 'shell/browser/layout_test/layout_test_javascript_dialog_manager.cc',
108 'shell/browser/layout_test/layout_test_javascript_dialog_manager.h',
mkwst002d02902014-10-09 10:17:00109 'shell/browser/layout_test/layout_test_resource_dispatcher_host_delegate.cc',
110 'shell/browser/layout_test/layout_test_resource_dispatcher_host_delegate.h',
mkwst94388f792014-10-16 07:36:52111 'shell/browser/layout_test/layout_test_url_request_context_getter.cc',
112 'shell/browser/layout_test/layout_test_url_request_context_getter.h',
[email protected]de7d61ff2013-08-20 11:30:41113 'shell/browser/notify_done_forwarder.cc',
114 'shell/browser/notify_done_forwarder.h',
115 'shell/browser/shell_android.cc',
116 'shell/browser/shell_application_mac.h',
117 'shell/browser/shell_application_mac.mm',
118 'shell/browser/shell_aura.cc',
119 'shell/browser/shell_browser_context.cc',
120 'shell/browser/shell_browser_context.h',
121 'shell/browser/shell_browser_main.cc',
122 'shell/browser/shell_browser_main.h',
123 'shell/browser/shell_browser_main_parts.cc',
124 'shell/browser/shell_browser_main_parts.h',
125 'shell/browser/shell_browser_main_parts_mac.mm',
126 'shell/browser/shell.cc',
127 'shell/browser/shell_content_browser_client.cc',
128 'shell/browser/shell_content_browser_client.h',
129 'shell/browser/shell_devtools_delegate.cc',
130 'shell/browser/shell_devtools_delegate.h',
131 'shell/browser/shell_devtools_frontend.cc',
132 'shell/browser/shell_devtools_frontend.h',
133 'shell/browser/shell_download_manager_delegate.cc',
134 'shell/browser/shell_download_manager_delegate.h',
[email protected]de7d61ff2013-08-20 11:30:41135 'shell/browser/shell.h',
[email protected]de7d61ff2013-08-20 11:30:41136 'shell/browser/shell_javascript_dialog.h',
137 'shell/browser/shell_javascript_dialog_mac.mm',
138 'shell/browser/shell_javascript_dialog_manager.cc',
139 'shell/browser/shell_javascript_dialog_manager.h',
140 'shell/browser/shell_javascript_dialog_win.cc',
ppif581fe92014-10-08 18:52:19141 'shell/browser/shell_mojo_test_utils_android.cc',
142 'shell/browser/shell_mojo_test_utils_android.h',
[email protected]de7d61ff2013-08-20 11:30:41143 'shell/browser/shell_login_dialog.cc',
[email protected]de7d61ff2013-08-20 11:30:41144 'shell/browser/shell_login_dialog.h',
145 'shell/browser/shell_login_dialog_mac.mm',
146 'shell/browser/shell_mac.mm',
147 'shell/browser/shell_message_filter.cc',
148 'shell/browser/shell_message_filter.h',
149 'shell/browser/shell_net_log.cc',
150 'shell/browser/shell_net_log.h',
151 'shell/browser/shell_network_delegate.cc',
152 'shell/browser/shell_network_delegate.h',
[email protected]945babb2014-07-30 14:25:32153 'shell/browser/shell_notification_manager.cc',
154 'shell/browser/shell_notification_manager.h',
[email protected]a6591142014-01-27 19:32:26155 'shell/browser/shell_platform_data_aura.cc',
156 'shell/browser/shell_platform_data_aura.h',
[email protected]de7d61ff2013-08-20 11:30:41157 'shell/browser/shell_plugin_service_filter.cc',
158 'shell/browser/shell_plugin_service_filter.h',
159 'shell/browser/shell_quota_permission_context.cc',
160 'shell/browser/shell_quota_permission_context.h',
161 'shell/browser/shell_resource_dispatcher_host_delegate.cc',
162 'shell/browser/shell_resource_dispatcher_host_delegate.h',
[email protected]9896c552013-08-29 19:03:20163 'shell/browser/shell_speech_recognition_manager_delegate.cc',
164 'shell/browser/shell_speech_recognition_manager_delegate.h',
[email protected]de7d61ff2013-08-20 11:30:41165 'shell/browser/shell_url_request_context_getter.cc',
166 'shell/browser/shell_url_request_context_getter.h',
[email protected]a896e1e2013-10-20 19:10:30167 'shell/browser/shell_views.cc',
[email protected]de7d61ff2013-08-20 11:30:41168 'shell/browser/shell_web_contents_view_delegate_android.cc',
169 'shell/browser/shell_web_contents_view_delegate_creator.h',
[email protected]de7d61ff2013-08-20 11:30:41170 'shell/browser/shell_web_contents_view_delegate.h',
171 'shell/browser/shell_web_contents_view_delegate_mac.mm',
172 'shell/browser/shell_web_contents_view_delegate_win.cc',
[email protected]de7d61ff2013-08-20 11:30:41173 'shell/browser/webkit_test_controller.cc',
174 'shell/browser/webkit_test_controller.h',
[email protected]4562cf72014-01-27 10:10:13175 'shell/common/leak_detection_result.h',
[email protected]b7c504c2013-05-07 14:42:12176 'shell/common/shell_content_client.cc',
177 'shell/common/shell_content_client.h',
178 'shell/common/shell_messages.cc',
179 'shell/common/shell_messages.h',
180 'shell/common/shell_switches.cc',
181 'shell/common/shell_switches.h',
182 'shell/common/shell_test_configuration.cc',
183 'shell/common/shell_test_configuration.h',
[email protected]1f70cfa42014-04-04 21:35:01184 'shell/common/test_runner/test_preferences.cc',
185 'shell/common/test_runner/test_preferences.h',
jochen284435c2014-10-02 13:08:23186 'shell/common/v8_breakpad_support_win.cc',
187 'shell/common/v8_breakpad_support_win.h',
[email protected]b7c504c2013-05-07 14:42:12188 'shell/common/webkit_test_helpers.cc',
189 'shell/common/webkit_test_helpers.h',
[email protected]6cfccd12012-06-28 12:14:05190 'shell/geolocation/shell_access_token_store.cc',
191 'shell/geolocation/shell_access_token_store.h',
[email protected]9cd36bfb2014-08-20 00:32:00192 'shell/renderer/ipc_echo.cc',
193 'shell/renderer/ipc_echo.h',
mkwst04b72d12014-10-08 15:52:55194 'shell/renderer/layout_test/gc_controller.cc',
195 'shell/renderer/layout_test/gc_controller.h',
mkwst02ec0d62014-10-07 22:07:29196 'shell/renderer/layout_test/layout_test_content_renderer_client.cc',
197 'shell/renderer/layout_test/layout_test_content_renderer_client.h',
mkwst3e72c1f2014-10-08 05:02:36198 'shell/renderer/layout_test/layout_test_render_frame_observer.cc',
199 'shell/renderer/layout_test/layout_test_render_frame_observer.h',
mkwst99069fc2014-10-08 06:13:28200 'shell/renderer/layout_test/layout_test_render_process_observer.cc',
201 'shell/renderer/layout_test/layout_test_render_process_observer.h',
mkwst04b72d12014-10-08 15:52:55202 'shell/renderer/layout_test/leak_detector.cc',
203 'shell/renderer/layout_test/leak_detector.h',
204 'shell/renderer/layout_test/webkit_test_runner.cc',
205 'shell/renderer/layout_test/webkit_test_runner.h',
[email protected]f7a4e3b92013-05-03 15:29:58206 'shell/renderer/shell_content_renderer_client.cc',
207 'shell/renderer/shell_content_renderer_client.h',
[email protected]81914ad2013-07-02 18:54:25208 'shell/renderer/shell_render_view_observer.cc',
209 'shell/renderer/shell_render_view_observer.h',
[email protected]fa6a8f42014-03-06 14:20:18210 'shell/renderer/test_runner/accessibility_controller.cc',
211 'shell/renderer/test_runner/accessibility_controller.h',
[email protected]3db130e2014-03-27 08:14:48212 'shell/renderer/test_runner/event_sender.cc',
213 'shell/renderer/test_runner/event_sender.h',
[email protected]cf786002014-02-11 02:05:54214 'shell/renderer/test_runner/gamepad_controller.cc',
215 'shell/renderer/test_runner/gamepad_controller.h',
[email protected]27821fa2014-07-22 16:03:57216 'shell/renderer/test_runner/mock_color_chooser.cc',
217 'shell/renderer/test_runner/mock_color_chooser.h',
[email protected]35c3197b2014-05-22 18:12:39218 'shell/renderer/test_runner/mock_constraints.cc',
219 'shell/renderer/test_runner/mock_constraints.h',
mkwst02ec0d62014-10-07 22:07:29220 'shell/renderer/test_runner/mock_credential_manager_client.cc',
221 'shell/renderer/test_runner/mock_credential_manager_client.h',
[email protected]f82478792014-05-14 17:50:57222 'shell/renderer/test_runner/mock_grammar_check.cc',
223 'shell/renderer/test_runner/mock_grammar_check.h',
[email protected]a2ca0032014-06-27 02:28:08224 'shell/renderer/test_runner/mock_screen_orientation_client.cc',
225 'shell/renderer/test_runner/mock_screen_orientation_client.h',
[email protected]f656a652014-07-25 12:19:52226 'shell/renderer/test_runner/mock_spell_check.cc',
227 'shell/renderer/test_runner/mock_spell_check.h',
[email protected]5d6534d2014-06-06 13:21:32228 'shell/renderer/test_runner/mock_web_audio_device.cc',
229 'shell/renderer/test_runner/mock_web_audio_device.h',
[email protected]85afb6c2014-07-29 02:43:36230 'shell/renderer/test_runner/mock_web_media_stream_center.cc',
231 'shell/renderer/test_runner/mock_web_media_stream_center.h',
[email protected]6b950c32014-07-28 14:35:43232 'shell/renderer/test_runner/mock_web_midi_accessor.cc',
233 'shell/renderer/test_runner/mock_web_midi_accessor.h',
[email protected]150f2152014-06-16 12:27:23234 'shell/renderer/test_runner/mock_web_push_client.cc',
235 'shell/renderer/test_runner/mock_web_push_client.h',
[email protected]ca35ef02014-07-31 11:46:49236 'shell/renderer/test_runner/mock_web_speech_recognizer.cc',
237 'shell/renderer/test_runner/mock_web_speech_recognizer.h',
[email protected]dec09852014-07-19 21:07:52238 'shell/renderer/test_runner/mock_web_theme_engine.cc',
239 'shell/renderer/test_runner/mock_web_theme_engine.h',
[email protected]7948a422014-06-02 05:43:02240 'shell/renderer/test_runner/mock_web_user_media_client.cc',
241 'shell/renderer/test_runner/mock_web_user_media_client.h',
[email protected]edffa7a2014-05-31 04:27:11242 'shell/renderer/test_runner/mock_webrtc_data_channel_handler.cc',
243 'shell/renderer/test_runner/mock_webrtc_data_channel_handler.h',
[email protected]358847f2014-06-04 13:29:14244 'shell/renderer/test_runner/mock_webrtc_dtmf_sender_handler.cc',
245 'shell/renderer/test_runner/mock_webrtc_dtmf_sender_handler.h',
[email protected]af605832014-06-05 15:09:08246 'shell/renderer/test_runner/mock_webrtc_peer_connection_handler.cc',
247 'shell/renderer/test_runner/mock_webrtc_peer_connection_handler.h',
[email protected]dc0a9762014-02-28 18:41:54248 'shell/renderer/test_runner/notification_presenter.cc',
249 'shell/renderer/test_runner/notification_presenter.h',
[email protected]b38c8f312014-08-01 23:21:37250 'shell/renderer/test_runner/spell_check_client.cc',
251 'shell/renderer/test_runner/spell_check_client.h',
[email protected]f5b1ad882014-08-05 16:30:41252 'shell/renderer/test_runner/test_common.cc',
253 'shell/renderer/test_runner/test_common.h',
[email protected]8ed8bf432014-08-11 19:47:55254 'shell/renderer/test_runner/test_interfaces.cc',
255 'shell/renderer/test_runner/test_interfaces.h',
abhishek.a21dd9554f2014-09-03 17:19:12256 'shell/renderer/test_runner/test_plugin.cc',
257 'shell/renderer/test_runner/test_plugin.h',
[email protected]97f9a7952014-03-14 11:50:33258 'shell/renderer/test_runner/test_runner.cc',
259 'shell/renderer/test_runner/test_runner.h',
[email protected]f751653a92014-02-18 16:32:55260 'shell/renderer/test_runner/text_input_controller.cc',
261 'shell/renderer/test_runner/text_input_controller.h',
[email protected]fa6a8f42014-03-06 14:20:18262 'shell/renderer/test_runner/web_ax_object_proxy.cc',
263 'shell/renderer/test_runner/web_ax_object_proxy.h',
[email protected]a1640e42014-05-14 13:43:32264 'shell/renderer/test_runner/web_frame_test_proxy.h',
[email protected]111f14f2014-06-18 08:24:06265 'shell/renderer/test_runner/web_permissions.cc',
266 'shell/renderer/test_runner/web_permissions.h',
abhishek.a21ab71acb2014-09-12 16:46:31267 'shell/renderer/test_runner/web_task.cc',
268 'shell/renderer/test_runner/web_task.h',
abhishek.a21ca9b5602014-09-19 07:33:33269 'shell/renderer/test_runner/web_test_delegate.h',
abhishek.a21bdd07a82014-09-25 06:34:10270 'shell/renderer/test_runner/web_test_interfaces.cc',
271 'shell/renderer/test_runner/web_test_interfaces.h',
[email protected]a1640e42014-05-14 13:43:32272 'shell/renderer/test_runner/web_test_proxy.cc',
273 'shell/renderer/test_runner/web_test_proxy.h',
[email protected]8deba6ca2014-05-26 16:37:03274 'shell/renderer/test_runner/web_test_runner.h',
[email protected]5629e0c2011-09-12 22:07:36275 ],
276 'msvs_settings': {
277 'VCLinkerTool': {
278 'SubSystem': '2', # Set /SUBSYSTEM:WINDOWS
279 },
280 },
281 'conditions': [
282 ['OS=="win" and win_use_allocator_shim==1', {
283 'dependencies': [
284 '../base/allocator/allocator.gyp:allocator',
285 ],
286 }],
[email protected]9fbd3f862011-09-20 23:31:34287 ['OS=="win"', {
288 'resource_include_dirs': [
[email protected]6586a2e32014-08-09 19:24:12289 '<(SHARED_INTERMEDIATE_DIR)/content/app/strings',
[email protected]9fbd3f862011-09-20 23:31:34290 ],
[email protected]9fbd3f862011-09-20 23:31:34291 'dependencies': [
[email protected]6586a2e32014-08-09 19:24:12292 '<(DEPTH)/content/app/strings/content_strings.gyp:content_strings',
[email protected]9fbd3f862011-09-20 23:31:34293 ],
294 'configurations': {
295 'Debug_Base': {
296 'msvs_settings': {
297 'VCLinkerTool': {
298 'LinkIncremental': '<(msvs_large_module_debug_link_mode)',
299 },
300 },
301 },
302 },
[email protected]3bed5302013-02-15 19:31:41303 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
304 'msvs_disabled_warnings': [ 4267, ],
[email protected]85ff16042012-03-06 23:46:34305 }], # OS=="win"
[email protected]6eb6bb62012-11-10 06:30:59306 ['OS=="linux"', {
307 'dependencies': [
308 '../build/linux/system.gyp:fontconfig',
309 ],
310 }],
[email protected]6b911a32014-01-10 02:34:53311 ['use_x11 == 1', {
312 'dependencies': [
313 '../tools/xdisplaycheck/xdisplaycheck.gyp:xdisplaycheck',
314 ],
315 }],
[email protected]689266d2012-08-07 12:52:20316 ['OS=="android"', {
[email protected]82e9e2b12012-07-19 00:32:01317 'dependencies': [
ppif581fe92014-10-08 18:52:19318 '../mojo/mojo_base.gyp:libmojo_system_java',
[email protected]82e9e2b12012-07-19 00:32:01319 'content_shell_jni_headers',
320 ],
[email protected]6b911a32014-01-10 02:34:53321 'dependencies!': [
[email protected]de28fed2e2014-02-01 14:36:32322 'copy_test_netscape_plugin',
[email protected]6b911a32014-01-10 02:34:53323 ],
[email protected]82e9e2b12012-07-19 00:32:01324 }], # OS=="android"
[email protected]a7aa8ab2013-10-24 07:21:48325 ['os_posix == 1 and OS != "mac" and android_webview_build != 1', {
326 'dependencies': [
327 '../components/components.gyp:breakpad_host',
328 ],
329 }],
[email protected]2fa89ef2014-05-07 18:45:59330 ['(OS=="linux" or OS=="android") and use_allocator!="none"', {
[email protected]c767d572012-07-27 10:55:58331 'dependencies': [
332 # This is needed by content/app/content_main_runner.cc
333 '../base/allocator/allocator.gyp:allocator',
334 ],
335 }],
[email protected]fa4a45832012-04-12 21:32:48336 ['use_aura==1', {
[email protected]c767d572012-07-27 10:55:58337 'dependencies': [
338 '../ui/aura/aura.gyp:aura',
[email protected]72fed232014-04-07 20:21:46339 '../ui/aura/aura.gyp:aura_test_support',
[email protected]72fed232014-04-07 20:21:46340 '../ui/events/events.gyp:events',
[email protected]e3d74862014-05-18 14:12:27341 '../ui/strings/ui_strings.gyp:ui_strings',
[email protected]884dac5b2014-04-30 15:10:10342 '../ui/wm/wm.gyp:wm',
[email protected]c767d572012-07-27 10:55:58343 ],
[email protected]a896e1e2013-10-20 19:10:30344 'conditions': [
345 ['toolkit_views==1', {
346 'dependencies': [
[email protected]dae78442013-11-26 16:57:02347 '../ui/resources/ui_resources.gyp:ui_resources',
[email protected]a896e1e2013-10-20 19:10:30348 '../ui/views/controls/webview/webview.gyp:webview',
349 '../ui/views/views.gyp:views',
350 '../ui/views/views.gyp:views_test_support',
[email protected]a896e1e2013-10-20 19:10:30351 ],
352 'sources/': [
353 ['exclude', 'shell/browser/shell_aura.cc'],
354 ],
355 }, {
356 'sources/': [
357 ['exclude', 'shell/browser/shell_views.cc'],
358 ],
359 }],
360 ],
361 }, {
362 'sources/': [
363 ['exclude', 'shell/browser/shell_aura.cc'],
364 ['exclude', 'shell/browser/shell_views.cc'],
365 ],
[email protected]96b80b472012-07-03 19:41:56366 }], # use_aura==1
[email protected]6b911a32014-01-10 02:34:53367 # The test plugin relies on X11.
368 ['OS=="linux" and use_x11==0', {
369 'dependencies!': [
[email protected]de28fed2e2014-02-01 14:36:32370 'copy_test_netscape_plugin',
[email protected]6b911a32014-01-10 02:34:53371 ],
372 }],
[email protected]c767d572012-07-27 10:55:58373 ['chromeos==1', {
374 'dependencies': [
375 '../chromeos/chromeos.gyp:chromeos',
[email protected]de6831b2013-11-16 01:04:30376 '../ui/wm/wm.gyp:wm_test_support',
[email protected]c767d572012-07-27 10:55:58377 ],
378 }], # chromeos==1
[email protected]929246a2013-02-28 13:55:20379 ['use_custom_freetype==1', {
380 'dependencies': [
381 '../third_party/freetype2/freetype2.gyp:freetype2',
382 ],
383 }],
[email protected]dfb9360192013-05-27 09:42:34384 ['enable_plugins==0', {
[email protected]6b9028ab2014-07-23 17:15:38385 'sources!': [
386 'shell/browser/shell_plugin_service_filter.cc',
387 'shell/browser/shell_plugin_service_filter.h',
[email protected]dfb9360192013-05-27 09:42:34388 ],
389 }]
[email protected]5629e0c2011-09-12 22:07:36390 ],
391 },
[email protected]c1f87b22011-10-05 21:59:33392 {
[email protected]6b9028ab2014-07-23 17:15:38393 # GN version: //content/shell:resources
[email protected]ee75b8992012-01-27 07:53:57394 'target_name': 'content_shell_resources',
395 'type': 'none',
[email protected]b581eb402012-03-09 01:31:46396 'variables': {
397 'grit_out_dir': '<(SHARED_INTERMEDIATE_DIR)/content',
398 },
[email protected]5c94e992014-05-11 14:22:06399 'actions': [
400 {
401 'action_name': 'generate_content_shell_resources',
402 'variables': {
403 'grit_grd_file': 'shell/shell_resources.grd',
404 },
405 'includes': [ '../build/grit_action.gypi' ],
406 },
407 ],
[email protected]b581eb402012-03-09 01:31:46408 'includes': [ '../build/grit_target.gypi' ],
409 'copies': [
410 {
411 'destination': '<(PRODUCT_DIR)',
412 'files': [
413 '<(SHARED_INTERMEDIATE_DIR)/content/shell_resources.pak'
414 ],
415 },
416 ],
[email protected]6b911a32014-01-10 02:34:53417 'conditions': [
418 ['OS=="win"', {
419 'copies': [{
420 'destination': '<(PRODUCT_DIR)',
421 'files': ['shell/renderer/test_runner/resources/fonts/AHEM____.TTF'],
422 }],
423 }],
424 ['OS=="mac"', {
425 'all_dependent_settings': {
426 'mac_bundle_resources': [
427 'shell/renderer/test_runner/resources/fonts/AHEM____.TTF',
[email protected]24687802014-03-20 22:04:47428 'shell/renderer/test_runner/resources/fonts/ChromiumAATTest.ttf',
[email protected]6b911a32014-01-10 02:34:53429 '<(SHARED_INTERMEDIATE_DIR)/webkit/missingImage.png',
430 '<(SHARED_INTERMEDIATE_DIR)/webkit/textAreaResizeCorner.png',
431 ],
432 },
433 }],
434 ['use_x11 == 1', {
435 'copies': [{
436 'destination': '<(PRODUCT_DIR)',
437 'files': [
438 'shell/renderer/test_runner/resources/fonts/AHEM____.TTF',
439 'shell/renderer/test_runner/resources/fonts/fonts.conf',
[email protected]209984992014-07-08 13:32:09440 '../third_party/gardiner_mod/GardinerModBug.ttf',
441 '../third_party/gardiner_mod/GardinerModCat.ttf',
[email protected]6b911a32014-01-10 02:34:53442 ]
443 }],
444 }],
445 ['OS=="android"', {
446 'copies': [{
447 'destination': '<(PRODUCT_DIR)',
448 'files': [
449 'shell/renderer/test_runner/resources/fonts/AHEM____.TTF',
450 'shell/renderer/test_runner/resources/fonts/android_main_fonts.xml',
451 'shell/renderer/test_runner/resources/fonts/android_fallback_fonts.xml',
452 ]
453 }],
454 }],
455 ],
[email protected]4cb792f42012-03-24 03:12:42456 },
457 {
[email protected]81f30ce2012-01-18 22:10:33458 # We build a minimal set of resources so WebKit in content_shell has
459 # access to necessary resources.
[email protected]6b9028ab2014-07-23 17:15:38460 # GN version: //content/shell:pak
[email protected]81f30ce2012-01-18 22:10:33461 'target_name': 'content_shell_pak',
462 'type': 'none',
[email protected]ee75b8992012-01-27 07:53:57463 'dependencies': [
[email protected]a9ca8d52014-08-22 10:21:08464 'app/resources/content_resources.gyp:content_resources',
[email protected]6586a2e32014-08-09 19:24:12465 'app/strings/content_strings.gyp:content_strings',
[email protected]6b9028ab2014-07-23 17:15:38466 'browser/tracing/tracing_resources.gyp:tracing_resources',
thestigbce02672014-08-26 10:01:34467 'content.gyp:content_resources',
[email protected]ee75b8992012-01-27 07:53:57468 'content_shell_resources',
[email protected]06c54162013-06-10 00:25:05469 '<(DEPTH)/net/net.gyp:net_resources',
[email protected]1400d1d2014-07-25 07:49:59470 '<(DEPTH)/third_party/WebKit/public/blink_resources.gyp:blink_resources',
[email protected]1c0c3f42013-11-20 02:03:28471 '<(DEPTH)/ui/resources/ui_resources.gyp:ui_resources',
[email protected]e3d74862014-05-18 14:12:27472 '<(DEPTH)/ui/strings/ui_strings.gyp:ui_strings',
[email protected]ee75b8992012-01-27 07:53:57473 ],
[email protected]3df230d2013-07-03 00:44:57474 'conditions': [
[email protected]8dffd2c2013-12-02 14:14:38475 ['OS!="android"', {
476 'dependencies': [
477 'browser/devtools/devtools_resources.gyp:devtools_resources',
478 ],
479 }],
vivek.vge136a8652014-09-05 10:51:28480 ['OS=="android"', {
481 'copies': [
482 {
483 'destination': '<(PRODUCT_DIR)',
484 'files': [
485 '<(PRODUCT_DIR)/content_shell/assets/content_shell.pak'
486 ],
487 },
488 ],
489 }],
[email protected]3df230d2013-07-03 00:44:57490 ],
[email protected]81f30ce2012-01-18 22:10:33491 'actions': [
492 {
493 'action_name': 'repack_content_shell_pack',
494 'variables': {
495 'pak_inputs': [
[email protected]1400d1d2014-07-25 07:49:59496 '<(SHARED_INTERMEDIATE_DIR)/blink/public/resources/blink_resources.pak',
[email protected]a9ca8d52014-08-22 10:21:08497 '<(SHARED_INTERMEDIATE_DIR)/content/app/resources/content_resources_100_percent.pak',
[email protected]6586a2e32014-08-09 19:24:12498 '<(SHARED_INTERMEDIATE_DIR)/content/app/strings/content_strings_en-US.pak',
[email protected]479bea22013-07-02 21:46:06499 '<(SHARED_INTERMEDIATE_DIR)/content/browser/tracing/tracing_resources.pak',
[email protected]1400d1d2014-07-25 07:49:59500 '<(SHARED_INTERMEDIATE_DIR)/content/content_resources.pak',
[email protected]ee75b8992012-01-27 07:53:57501 '<(SHARED_INTERMEDIATE_DIR)/content/shell_resources.pak',
[email protected]81f30ce2012-01-18 22:10:33502 '<(SHARED_INTERMEDIATE_DIR)/net/net_resources.pak',
[email protected]a3c134352014-07-11 19:23:19503 '<(SHARED_INTERMEDIATE_DIR)/ui/resources/ui_resources_100_percent.pak',
504 '<(SHARED_INTERMEDIATE_DIR)/ui/resources/webui_resources.pak',
[email protected]d2329222014-07-18 07:14:22505 '<(SHARED_INTERMEDIATE_DIR)/ui/strings/app_locale_settings_en-US.pak',
[email protected]a3c134352014-07-11 19:23:19506 '<(SHARED_INTERMEDIATE_DIR)/ui/strings/ui_strings_en-US.pak',
[email protected]81f30ce2012-01-18 22:10:33507 ],
[email protected]01bdc9202014-03-28 21:11:20508 'conditions': [
509 ['OS!="android"', {
[email protected]4ede5b412014-04-09 13:08:02510 'pak_inputs': ['<(SHARED_INTERMEDIATE_DIR)/webkit/devtools_resources.pak',],
[email protected]01bdc9202014-03-28 21:11:20511 'pak_output': '<(PRODUCT_DIR)/content_shell.pak',
512 }, {
513 'pak_output': '<(PRODUCT_DIR)/content_shell/assets/content_shell.pak',
514 }],
515 ],
[email protected]81f30ce2012-01-18 22:10:33516 },
[email protected]01bdc9202014-03-28 21:11:20517 'includes': [ '../build/repack_action.gypi' ],
[email protected]81f30ce2012-01-18 22:10:33518 },
519 ],
520 },
521 {
[email protected]6b9028ab2014-07-23 17:15:38522 # GN version: //content/shell:content_shell
[email protected]c1f87b22011-10-05 21:59:33523 'target_name': 'content_shell',
524 'type': 'executable',
[email protected]85ff16042012-03-06 23:46:34525 'mac_bundle': 1,
[email protected]c1f87b22011-10-05 21:59:33526 'variables': {
527 'chromium_code': 1,
528 },
529 'dependencies': [
530 'content_shell_lib',
[email protected]81f30ce2012-01-18 22:10:33531 'content_shell_pak',
[email protected]bb5d2d92012-10-15 07:45:42532 '../third_party/mesa/mesa.gyp:osmesa',
[email protected]331d1692013-07-25 20:40:13533 '../tools/imagediff/image_diff.gyp:image_diff',
[email protected]c1f87b22011-10-05 21:59:33534 ],
535 'include_dirs': [
536 '..',
537 ],
538 'sources': [
[email protected]993951d2013-05-08 21:37:02539 'shell/app/shell_main.cc',
[email protected]c1f87b22011-10-05 21:59:33540 ],
[email protected]85ff16042012-03-06 23:46:34541 'mac_bundle_resources': [
[email protected]993951d2013-05-08 21:37:02542 'shell/app/app.icns',
543 'shell/app/app-Info.plist',
[email protected]85ff16042012-03-06 23:46:34544 ],
545 # TODO(mark): Come up with a fancier way to do this. It should only
546 # be necessary to list app-Info.plist once, not the three times it is
547 # listed here.
548 'mac_bundle_resources!': [
[email protected]993951d2013-05-08 21:37:02549 'shell/app/app-Info.plist',
[email protected]85ff16042012-03-06 23:46:34550 ],
551 'xcode_settings': {
[email protected]993951d2013-05-08 21:37:02552 'INFOPLIST_FILE': 'shell/app/app-Info.plist',
[email protected]85ff16042012-03-06 23:46:34553 },
[email protected]c1f87b22011-10-05 21:59:33554 'msvs_settings': {
[email protected]30624922013-06-04 10:40:10555 'VCManifestTool': {
[email protected]5d60b0b2013-07-30 20:24:30556 'AdditionalManifestFiles': [
557 'shell/app/shell.exe.manifest',
558 ],
[email protected]30624922013-06-04 10:40:10559 },
[email protected]c1f87b22011-10-05 21:59:33560 },
561 'conditions': [
562 ['OS=="win" and win_use_allocator_shim==1', {
563 'dependencies': [
564 '../base/allocator/allocator.gyp:allocator',
565 ],
566 }],
567 ['OS=="win"', {
[email protected]7fc83822012-03-30 19:53:29568 'sources': [
[email protected]993951d2013-05-08 21:37:02569 'shell/app/shell.rc',
[email protected]7fc83822012-03-30 19:53:29570 ],
[email protected]c1f87b22011-10-05 21:59:33571 'configurations': {
572 'Debug_Base': {
573 'msvs_settings': {
574 'VCLinkerTool': {
575 'LinkIncremental': '<(msvs_large_module_debug_link_mode)',
576 },
577 },
578 },
579 },
[email protected]85ff16042012-03-06 23:46:34580 }], # OS=="win"
[email protected]c997bc42014-04-11 18:25:58581 ['OS == "win"', {
[email protected]27315ce42011-10-14 01:25:12582 'dependencies': [
583 '../sandbox/sandbox.gyp:sandbox',
584 ],
[email protected]c997bc42014-04-11 18:25:58585 }], # OS=="win"
[email protected]78539df2014-07-16 22:34:22586 ['OS=="win" and asan==0', {
587 'msvs_settings': {
588 'VCLinkerTool': {
589 'SubSystem': '2', # Set /SUBSYSTEM:WINDOWS
590 },
591 },
592 }], # OS=="win" and asan==0
[email protected]85ff16042012-03-06 23:46:34593 ['OS=="mac"', {
594 'product_name': '<(content_shell_product_name)',
595 'dependencies!': [
596 'content_shell_lib',
597 ],
598 'dependencies': [
599 'content_shell_framework',
[email protected]180df8f2012-03-09 22:36:10600 'content_shell_helper_app',
601 ],
602 'copies': [
603 {
604 'destination': '<(PRODUCT_DIR)/<(content_shell_product_name).app/Contents/Frameworks',
605 'files': [
606 '<(PRODUCT_DIR)/<(content_shell_product_name) Helper.app',
607 ],
608 },
[email protected]85ff16042012-03-06 23:46:34609 ],
610 'postbuilds': [
611 {
612 'postbuild_name': 'Copy <(content_shell_product_name) Framework.framework',
613 'action': [
614 '../build/mac/copy_framework_unversioned.sh',
615 '${BUILT_PRODUCTS_DIR}/<(content_shell_product_name) Framework.framework',
616 '${BUILT_PRODUCTS_DIR}/${CONTENTS_FOLDER_PATH}/Frameworks',
617 ],
618 },
619 {
[email protected]85ff16042012-03-06 23:46:34620 # Modify the Info.plist as needed.
621 'postbuild_name': 'Tweak Info.plist',
622 'action': ['../build/mac/tweak_info_plist.py',
[email protected]6d302912012-11-05 21:57:28623 '--scm=1',
624 '--version=<(content_shell_version)'],
[email protected]85ff16042012-03-06 23:46:34625 },
626 {
[email protected]180df8f2012-03-09 22:36:10627 # This postbuid step is responsible for creating the following
628 # helpers:
629 #
630 # Content Shell Helper EH.app and Content Shell Helper NP.app are
631 # created from Content Shell Helper.app.
632 #
633 # The EH helper is marked for an executable heap. The NP helper
634 # is marked for no PIE (ASLR).
635 'postbuild_name': 'Make More Helpers',
636 'action': [
637 '../build/mac/make_more_helpers.sh',
638 'Frameworks',
639 '<(content_shell_product_name)',
640 ],
641 },
642 {
[email protected]85ff16042012-03-06 23:46:34643 # Make sure there isn't any Objective-C in the shell's
644 # executable.
645 'postbuild_name': 'Verify No Objective-C',
646 'action': [
647 '../build/mac/verify_no_objc.sh',
648 ],
649 },
650 ],
651 }], # OS=="mac"
[email protected]331d1692013-07-25 20:40:13652 ['OS=="android"', {
653 'dependencies!': [
654 '../tools/imagediff/image_diff.gyp:image_diff',
655 ],
656 }], # OS=="android"
657 ['OS=="android" and android_webview_build==0', {
658 'dependencies': [
659 '../tools/imagediff/image_diff.gyp:image_diff#host',
660 ],
661 }], # OS=="android" and android_webview_build==0
[email protected]c1f87b22011-10-05 21:59:33662 ],
663 },
[email protected]fe2420d2012-08-21 07:28:33664 {
665 'target_name': 'content_shell_builder',
666 'type': 'none',
667 'dependencies': [
668 'content_shell',
[email protected]fe2420d2012-08-21 07:28:33669 ],
670 },
[email protected]9f3ecf42014-05-07 18:21:06671
[email protected]de28fed2e2014-02-01 14:36:32672 {
673 'target_name': 'test_netscape_plugin',
674 'type': 'loadable_module',
675 'sources': [
676 'shell/tools/plugin/PluginObject.cpp',
677 'shell/tools/plugin/PluginObject.h',
678 'shell/tools/plugin/PluginObjectMac.mm',
679 'shell/tools/plugin/PluginTest.cpp',
680 'shell/tools/plugin/PluginTest.h',
681 'shell/tools/plugin/TestObject.cpp',
[email protected]de28fed2e2014-02-01 14:36:32682 'shell/tools/plugin/Tests/DocumentOpenInDestroyStream.cpp',
683 'shell/tools/plugin/Tests/EvaluateJSAfterRemovingPluginElement.cpp',
684 'shell/tools/plugin/Tests/FormValue.cpp',
685 'shell/tools/plugin/Tests/GetURLNotifyWithURLThatFailsToLoad.cpp',
686 'shell/tools/plugin/Tests/GetURLWithJavaScriptURL.cpp',
687 'shell/tools/plugin/Tests/GetURLWithJavaScriptURLDestroyingPlugin.cpp',
688 'shell/tools/plugin/Tests/GetUserAgentWithNullNPPFromNPPNew.cpp',
689 'shell/tools/plugin/Tests/LeakWindowScriptableObject.cpp',
690 'shell/tools/plugin/Tests/LogNPPSetWindow.cpp',
691 'shell/tools/plugin/Tests/NPDeallocateCalledBeforeNPShutdown.cpp',
692 'shell/tools/plugin/Tests/NPPNewFails.cpp',
693 'shell/tools/plugin/Tests/NPRuntimeCallsWithNullNPP.cpp',
694 'shell/tools/plugin/Tests/NPRuntimeObjectFromDestroyedPlugin.cpp',
695 'shell/tools/plugin/Tests/NPRuntimeRemoveProperty.cpp',
696 'shell/tools/plugin/Tests/NullNPPGetValuePointer.cpp',
697 'shell/tools/plugin/Tests/PassDifferentNPPStruct.cpp',
698 'shell/tools/plugin/Tests/PluginScriptableNPObjectInvokeDefault.cpp',
699 'shell/tools/plugin/Tests/PluginScriptableObjectOverridesAllProperties.cpp',
700 'shell/tools/plugin/main.cpp',
[email protected]0516a592014-02-13 00:10:04701 'shell/tools/plugin/test_object.h',
[email protected]de28fed2e2014-02-01 14:36:32702 ],
703 'include_dirs': [
704 '<(DEPTH)',
705 '<(DEPTH)/content/shell/tools/plugin/',
706 ],
707 'dependencies': [
708 '../base/base.gyp:base',
709 '../third_party/npapi/npapi.gyp:npapi',
710 ],
711 'conditions': [
712 ['OS=="mac"', {
713 'mac_bundle': 1,
714 'product_extension': 'plugin',
715 'link_settings': {
716 'libraries': [
717 '$(SDKROOT)/System/Library/Frameworks/Carbon.framework',
718 '$(SDKROOT)/System/Library/Frameworks/Cocoa.framework',
719 '$(SDKROOT)/System/Library/Frameworks/QuartzCore.framework',
720 ]
721 },
722 'xcode_settings': {
723 'GCC_SYMBOLS_PRIVATE_EXTERN': 'NO',
724 'INFOPLIST_FILE': 'shell/tools/plugin/mac/Info.plist',
725 },
726 }],
727 ['os_posix == 1 and OS != "mac"', {
728 'cflags': [
729 '-fvisibility=default',
730 ],
731 }],
732 ['OS=="win"', {
733 'defines': [
734 # This seems like a hack, but this is what Safari Win does.
735 'snprintf=_snprintf',
736 ],
737 'sources': [
738 'shell/tools/plugin/win/TestNetscapePlugin.def',
739 'shell/tools/plugin/win/TestNetscapePlugin.rc',
740 ],
741 # The .rc file requires that the name of the dll is np_test_netscape_plugin.dll.
742 'product_name': 'np_test_netscape_plugin',
743 # Disable c4267 warnings until we fix size_t to int truncations.
744 'msvs_disabled_warnings': [ 4267, ],
745 }],
746 ],
747 },
748 {
749 'target_name': 'copy_test_netscape_plugin',
750 'type': 'none',
751 'dependencies': [
752 'test_netscape_plugin',
753 ],
754 'conditions': [
755 ['OS=="win"', {
756 'copies': [{
757 'destination': '<(PRODUCT_DIR)/plugins',
758 'files': ['<(PRODUCT_DIR)/np_test_netscape_plugin.dll'],
759 }],
760 }],
761 ['OS=="mac"', {
762 'copies': [{
763 'destination': '<(PRODUCT_DIR)/plugins/',
764 'files': ['<(PRODUCT_DIR)/test_netscape_plugin.plugin/'],
765 }],
766 }],
767 ['os_posix == 1 and OS != "mac"', {
768 'copies': [{
769 'destination': '<(PRODUCT_DIR)/plugins',
770 'files': ['<(PRODUCT_DIR)/libtest_netscape_plugin.so'],
771 }],
772 }],
773 ],
774 }
[email protected]5629e0c2011-09-12 22:07:36775 ],
[email protected]85ff16042012-03-06 23:46:34776 'conditions': [
[email protected]9f3ecf42014-05-07 18:21:06777 ['OS=="mac" or OS=="win"', {
778 'targets': [
779 {
780 'target_name': 'layout_test_helper',
781 'type': 'executable',
782 'sources': [
783 'shell/renderer/test_runner/helper/layout_test_helper_mac.mm',
784 'shell/renderer/test_runner/helper/layout_test_helper_win.cc',
785 ],
786 'conditions': [
787 ['OS=="mac"', {
788 'link_settings': {
789 'libraries': [
790 '$(SDKROOT)/System/Library/Frameworks/AppKit.framework',
791 ],
792 },
793 }],
794 ],
795 },
796 ],
797 }], # OS=="mac" or OS=="win"
[email protected]85ff16042012-03-06 23:46:34798 ['OS=="mac"', {
799 'targets': [
800 {
801 'target_name': 'content_shell_framework',
802 'type': 'shared_library',
803 'product_name': '<(content_shell_product_name) Framework',
804 'mac_bundle': 1,
805 'mac_bundle_resources': [
[email protected]993951d2013-05-08 21:37:02806 'shell/app/English.lproj/HttpAuth.xib',
807 'shell/app/English.lproj/MainMenu.xib',
[email protected]a7aa8ab2013-10-24 07:21:48808 '<(PRODUCT_DIR)/content_shell.pak',
809 'shell/app/framework-Info.plist',
[email protected]85ff16042012-03-06 23:46:34810 ],
[email protected]a7aa8ab2013-10-24 07:21:48811 'mac_bundle_resources!': [
812 'shell/app/framework-Info.plist',
813 ],
814 'xcode_settings': {
[email protected]6efed472013-11-01 02:09:34815 # The framework is placed within the .app's Framework
816 # directory. DYLIB_INSTALL_NAME_BASE and
817 # LD_DYLIB_INSTALL_NAME affect -install_name.
818 'DYLIB_INSTALL_NAME_BASE':
819 '@executable_path/../Frameworks',
820 # See /build/mac/copy_framework_unversioned.sh for
821 # information on LD_DYLIB_INSTALL_NAME.
822 'LD_DYLIB_INSTALL_NAME':
823 '$(DYLIB_INSTALL_NAME_BASE:standardizepath)/$(WRAPPER_NAME)/$(PRODUCT_NAME)',
824
[email protected]a7aa8ab2013-10-24 07:21:48825 'INFOPLIST_FILE': 'shell/app/framework-Info.plist',
826 },
[email protected]85ff16042012-03-06 23:46:34827 'dependencies': [
828 'content_shell_lib',
829 ],
830 'include_dirs': [
831 '..',
832 ],
833 'sources': [
[email protected]4642f5b2013-07-03 21:43:31834 'shell/app/shell_content_main.cc',
[email protected]216161f2013-07-02 16:23:20835 'shell/app/shell_content_main.h',
[email protected]85ff16042012-03-06 23:46:34836 ],
[email protected]30c246bc2014-01-28 06:00:04837 'postbuilds': [
838 {
839 # Modify the Info.plist as needed. The script explains why
840 # this is needed. This is also done in the chrome target.
841 # The framework needs the Breakpad keys if this feature is
842 # enabled. It does not need the Keystone keys; these always
843 # come from the outer application bundle. The framework
844 # doesn't currently use the SCM keys for anything,
845 # but this seems like a really good place to store them.
846 'postbuild_name': 'Tweak Info.plist',
847 'action': ['../build/mac/tweak_info_plist.py',
848 '--breakpad=1',
849 '--keystone=0',
850 '--scm=1',
851 '--version=<(content_shell_version)',
852 '--branding=<(content_shell_product_name)'],
853 },
854 ],
[email protected]5d96bbe2012-07-25 17:13:23855 'copies': [
856 {
[email protected]f77f0cab2014-03-28 17:19:30857 # Copy FFmpeg binaries for audio/video support.
[email protected]5d96bbe2012-07-25 17:13:23858 'destination': '<(PRODUCT_DIR)/$(CONTENTS_FOLDER_PATH)/Libraries',
859 'files': [
860 '<(PRODUCT_DIR)/ffmpegsumo.so',
861 ],
862 },
[email protected]a7aa8ab2013-10-24 07:21:48863 {
864 'destination': '<(PRODUCT_DIR)/$(CONTENTS_FOLDER_PATH)/Resources',
865 'files': [
866 '<(PRODUCT_DIR)/crash_inspector',
867 '<(PRODUCT_DIR)/crash_report_sender.app'
868 ],
869 },
[email protected]5d96bbe2012-07-25 17:13:23870 ],
[email protected]fda1c6c82013-04-09 16:10:12871 'conditions': [
872 ['enable_webrtc==1', {
873 'variables': {
874 'libpeer_target_type%': 'static_library',
875 },
876 'conditions': [
[email protected]e4aa290b2013-05-01 18:54:19877 ['libpeer_target_type!="static_library"', {
[email protected]fda1c6c82013-04-09 16:10:12878 'copies': [{
879 'destination': '<(PRODUCT_DIR)/$(CONTENTS_FOLDER_PATH)/Libraries',
880 'files': [
[email protected]62461b72013-05-02 12:27:12881 '<(PRODUCT_DIR)/libpeerconnection.so',
[email protected]fda1c6c82013-04-09 16:10:12882 ],
883 }],
884 }],
885 ],
886 }],
[email protected]30c246bc2014-01-28 06:00:04887 ['icu_use_data_file_flag==1', {
888 'mac_bundle_resources': [
889 '<(PRODUCT_DIR)/icudtl.dat',
890 ],
891 }],
[email protected]fda1c6c82013-04-09 16:10:12892 ],
[email protected]180df8f2012-03-09 22:36:10893 }, # target content_shell_framework
894 {
895 'target_name': 'content_shell_helper_app',
896 'type': 'executable',
897 'variables': { 'enable_wexit_time_destructors': 1, },
898 'product_name': '<(content_shell_product_name) Helper',
899 'mac_bundle': 1,
900 'dependencies': [
901 'content_shell_framework',
902 ],
903 'sources': [
[email protected]993951d2013-05-08 21:37:02904 'shell/app/shell_main.cc',
905 'shell/app/helper-Info.plist',
[email protected]180df8f2012-03-09 22:36:10906 ],
907 # TODO(mark): Come up with a fancier way to do this. It should only
908 # be necessary to list helper-Info.plist once, not the three times it
909 # is listed here.
910 'mac_bundle_resources!': [
[email protected]993951d2013-05-08 21:37:02911 'shell/app/helper-Info.plist',
[email protected]180df8f2012-03-09 22:36:10912 ],
913 # TODO(mark): For now, don't put any resources into this app. Its
914 # resources directory will be a symbolic link to the browser app's
915 # resources directory.
916 'mac_bundle_resources/': [
917 ['exclude', '.*'],
918 ],
919 'xcode_settings': {
[email protected]993951d2013-05-08 21:37:02920 'INFOPLIST_FILE': 'shell/app/helper-Info.plist',
[email protected]180df8f2012-03-09 22:36:10921 },
922 'postbuilds': [
923 {
924 # The framework defines its load-time path
925 # (DYLIB_INSTALL_NAME_BASE) relative to the main executable
926 # (chrome). A different relative path needs to be used in
927 # content_shell_helper_app.
928 'postbuild_name': 'Fix Framework Link',
929 'action': [
930 'install_name_tool',
931 '-change',
[email protected]6efed472013-11-01 02:09:34932 '@executable_path/../Frameworks/<(content_shell_product_name) Framework.framework/<(content_shell_product_name) Framework',
933 '@executable_path/../../../<(content_shell_product_name) Framework.framework/<(content_shell_product_name) Framework',
[email protected]180df8f2012-03-09 22:36:10934 '${BUILT_PRODUCTS_DIR}/${EXECUTABLE_PATH}'
935 ],
936 },
937 {
938 # Modify the Info.plist as needed. The script explains why this
939 # is needed. This is also done in the chrome and chrome_dll
[email protected]bbf52442012-08-23 22:53:18940 # targets. In this case, --breakpad=0, --keystone=0, and --scm=0
941 # are used because Breakpad, Keystone, and SCM keys are
[email protected]180df8f2012-03-09 22:36:10942 # never placed into the helper.
943 'postbuild_name': 'Tweak Info.plist',
944 'action': ['../build/mac/tweak_info_plist.py',
945 '--breakpad=0',
946 '--keystone=0',
[email protected]6d302912012-11-05 21:57:28947 '--scm=0',
948 '--version=<(content_shell_version)'],
[email protected]180df8f2012-03-09 22:36:10949 },
950 {
951 # Make sure there isn't any Objective-C in the helper app's
952 # executable.
953 'postbuild_name': 'Verify No Objective-C',
954 'action': [
955 '../build/mac/verify_no_objc.sh',
956 ],
957 },
958 ],
[email protected]ec40c38f2012-06-28 16:37:49959 'conditions': [
960 ['component=="shared_library"', {
961 'xcode_settings': {
962 'LD_RUNPATH_SEARCH_PATHS': [
963 # Get back from Content Shell.app/Contents/Frameworks/
964 # Helper.app/Contents/MacOS
965 '@loader_path/../../../../../..',
966 ],
967 },
968 }],
969 ],
[email protected]180df8f2012-03-09 22:36:10970 }, # target content_shell_helper_app
[email protected]85ff16042012-03-06 23:46:34971 ],
972 }], # OS=="mac"
[email protected]cc66d282012-03-30 11:44:06973 ['OS=="android"', {
974 'targets': [
975 {
[email protected]a08029b42012-04-25 03:18:46976 # TODO(jrg): Update this action and other jni generators to only
977 # require specifying the java directory and generate the rest.
978 'target_name': 'content_shell_jni_headers',
979 'type': 'none',
[email protected]e46f66152012-07-19 20:02:55980 'sources': [
[email protected]4d4eb5b2013-01-29 21:55:55981 'shell/android/browsertests_apk/src/org/chromium/content_browsertests_apk/ContentBrowserTestsActivity.java',
[email protected]eadcff0f2013-06-20 21:08:10982 'shell/android/java/src/org/chromium/content_shell/ShellLayoutTestUtils.java',
ppif581fe92014-10-08 18:52:19983 'shell/android/java/src/org/chromium/content_shell/ShellMojoTestUtils.java',
[email protected]e46f66152012-07-19 20:02:55984 'shell/android/java/src/org/chromium/content_shell/ShellManager.java',
985 'shell/android/java/src/org/chromium/content_shell/Shell.java',
986 ],
[email protected]a08029b42012-04-25 03:18:46987 'variables': {
[email protected]521cd942013-03-07 22:34:05988 'jni_gen_package': 'content/shell',
[email protected]a08029b42012-04-25 03:18:46989 },
990 'includes': [ '../build/jni_generator.gypi' ],
991 },
992 {
[email protected]c1101582012-06-25 17:07:18993 'target_name': 'libcontent_shell_content_view',
[email protected]a08029b42012-04-25 03:18:46994 'type': 'shared_library',
995 'dependencies': [
996 'content_shell_jni_headers',
997 'content_shell_lib',
998 'content_shell_pak',
999 # Skia is necessary to ensure the dependencies needed by
1000 # WebContents are included.
1001 '../skia/skia.gyp:skia',
1002 '<(DEPTH)/media/media.gyp:player_android',
1003 ],
[email protected]a08029b42012-04-25 03:18:461004 'sources': [
1005 'shell/android/shell_library_loader.cc',
1006 'shell/android/shell_library_loader.h',
[email protected]f83a47392012-07-12 22:15:041007 ],
[email protected]7abcaa82012-06-27 17:09:481008 'conditions': [
[email protected]d999c3cb2013-03-12 10:22:361009 ['android_webview_build==1', {
[email protected]7abcaa82012-06-27 17:09:481010 'ldflags': [
1011 '-lgabi++', # For rtti
1012 ],
1013 }],
1014 ],
[email protected]a08029b42012-04-25 03:18:461015 },
1016 {
[email protected]4d4eb5b2013-01-29 21:55:551017 'target_name': 'content_shell_java',
1018 'type': 'none',
1019 'dependencies': [
[email protected]ba42b1e2013-10-19 22:13:171020 'content.gyp:content_java',
[email protected]4d4eb5b2013-01-29 21:55:551021 ],
1022 'variables': {
[email protected]4d4eb5b2013-01-29 21:55:551023 'java_in_dir': '../content/shell/android/java',
1024 'has_java_resources': 1,
1025 'R_package': 'org.chromium.content_shell',
1026 'R_package_relpath': 'org/chromium/content_shell',
1027 },
1028 'includes': [ '../build/java.gypi' ],
1029 },
1030 {
[email protected]319d6a82012-09-20 22:52:281031 # content_shell_apk creates a .jar as a side effect. Any java targets
1032 # that need that .jar in their classpath should depend on this target,
[email protected]4d4eb5b2013-01-29 21:55:551033 # content_shell_apk_java. Dependents of content_shell_apk receive its
1034 # jar path in the variable 'apk_output_jar_path'. This target should
1035 # only be used by targets which instrument content_shell_apk.
1036 'target_name': 'content_shell_apk_java',
[email protected]319d6a82012-09-20 22:52:281037 'type': 'none',
[email protected]319d6a82012-09-20 22:52:281038 'dependencies': [
[email protected]319d6a82012-09-20 22:52:281039 'content_shell_apk',
[email protected]319d6a82012-09-20 22:52:281040 ],
[email protected]b13f73e2013-03-27 23:31:271041 'includes': [ '../build/apk_fake_jar.gypi' ],
[email protected]319d6a82012-09-20 22:52:281042 },
[email protected]75c86a22012-09-26 03:50:371043 {
1044 'target_name': 'content_shell_apk',
1045 'type': 'none',
1046 'dependencies': [
[email protected]c8e8781e2014-03-08 12:02:261047 'content.gyp:content_icudata',
[email protected]ba42b1e2013-10-19 22:13:171048 'content.gyp:content_java',
[email protected]c48fece02013-06-19 12:01:421049 'content_java_test_support',
[email protected]4d4eb5b2013-01-29 21:55:551050 'content_shell_java',
1051 'libcontent_shell_content_view',
[email protected]75c86a22012-09-26 03:50:371052 '../base/base.gyp:base_java',
1053 '../media/media.gyp:media_java',
1054 '../net/net.gyp:net_java',
[email protected]abeda1f2014-02-21 17:08:341055 '../third_party/mesa/mesa.gyp:osmesa_in_lib_dir',
[email protected]4e384052013-08-14 20:46:301056 '../tools/android/forwarder/forwarder.gyp:forwarder',
[email protected]f450287d2013-11-15 17:52:541057 '../ui/android/ui_android.gyp:ui_java',
[email protected]75c86a22012-09-26 03:50:371058 ],
1059 'variables': {
[email protected]75c86a22012-09-26 03:50:371060 'apk_name': 'ContentShell',
[email protected]4d4eb5b2013-01-29 21:55:551061 'manifest_package_name': 'org.chromium.content_shell_apk',
1062 'java_in_dir': 'shell/android/shell_apk',
[email protected]bd6ab3db2013-03-26 17:35:211063 'resource_dir': 'shell/android/shell_apk/res',
[email protected]e4865252013-04-04 09:15:591064 'native_lib_target': 'libcontent_shell_content_view',
[email protected]75c86a22012-09-26 03:50:371065 'additional_input_paths': ['<(PRODUCT_DIR)/content_shell/assets/content_shell.pak'],
[email protected]0437c502013-11-28 05:17:331066 'asset_location': '<(PRODUCT_DIR)/content_shell/assets',
[email protected]abeda1f2014-02-21 17:08:341067 'extra_native_libs': ['<(SHARED_LIB_DIR)/libosmesa.so'],
[email protected]c8e8781e2014-03-08 12:02:261068 'conditions': [
1069 ['icu_use_data_file_flag==1', {
1070 'additional_input_paths': [
1071 '<(PRODUCT_DIR)/icudtl.dat',
1072 ],
1073 }],
1074 ],
[email protected]75c86a22012-09-26 03:50:371075 },
[email protected]5b0095b72013-08-01 17:44:221076 'conditions': [
1077 ['android_webview_build==0', {
1078 'dependencies': [
1079 '../tools/imagediff/image_diff.gyp:image_diff#host',
1080 ],
1081 }],
1082 ],
[email protected]75c86a22012-09-26 03:50:371083 'includes': [ '../build/java_apk.gypi' ],
1084 },
[email protected]cc66d282012-03-30 11:44:061085 ],
1086 }], # OS=="android"
[email protected]369205f2013-10-29 04:35:051087 ['OS=="win"', {
1088 'targets': [
1089 {
1090 'target_name': 'content_shell_crash_service',
1091 'type': 'executable',
1092 'dependencies': [
1093 '../base/base.gyp:base',
1094 '../components/components.gyp:breakpad_crash_service',
1095 ],
1096 'include_dirs': [
1097 '..',
1098 ],
1099 'sources': [
1100 'shell/tools/content_shell_crash_service.cc',
1101 ],
1102 'msvs_settings': {
1103 'VCLinkerTool': {
1104 'SubSystem': '2', # Set /SUBSYSTEM:WINDOWS
1105 },
1106 },
1107 },
1108 ],
1109 }], # OS=="win"
[email protected]004703a2014-05-05 23:23:001110 ['OS=="win" and fastbuild==0 and target_arch=="ia32" and syzyasan==1', {
[email protected]c8250d42013-10-01 05:17:461111 'variables': {
1112 'dest_dir': '<(PRODUCT_DIR)/syzygy',
1113 },
1114 'targets': [
1115 {
1116 'target_name': 'content_shell_syzyasan',
1117 'type': 'none',
1118 'sources' : [],
1119 # Instrument content_shell with SyzyAsan.
1120 'actions': [
1121 {
1122 'action_name': 'Instrument content_shell with SyzyAsan',
[email protected]c8250d42013-10-01 05:17:461123 'inputs': [
1124 '<(PRODUCT_DIR)/content_shell.exe',
1125 ],
1126 'outputs': [
1127 '<(dest_dir)/content_shell.exe',
1128 '<(dest_dir)/content_shell.exe.pdb',
1129 ],
1130 'action': [
1131 'python',
1132 '<(DEPTH)/chrome/tools/build/win/syzygy_instrument.py',
1133 '--mode', 'asan',
1134 '--input_executable', '<(PRODUCT_DIR)/content_shell.exe',
1135 '--input_symbol', '<(PRODUCT_DIR)/content_shell.exe.pdb',
1136 '--destination_dir', '<(dest_dir)',
1137 ],
1138 },
1139 ],
1140 },
1141 ],
1142 }], # OS=="win" and fastbuild==0 and target_arch=="ia32"
[email protected]cc66d282012-03-30 11:44:061143 ]
[email protected]5629e0c2011-09-12 22:07:361144}