blob: 733949012bf6c30e880b0407102964a0fec2712e [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',
markd413b2d2015-03-13 07:45:4049 '../components/components.gyp:crash_component_breakpad_mac_to_be_deleted',
hanxi149b92d2014-09-11 21:57:1850 '../components/components.gyp:web_cache_renderer',
scheib87f45892015-01-20 19:19:4451 '../device/bluetooth/bluetooth.gyp:device_bluetooth',
[email protected]41fba0e2014-01-16 18:19:4252 '../gin/gin.gyp:gin',
[email protected]5326cd2f2014-04-07 13:35:5853 '../gpu/gpu.gyp:gpu',
[email protected]aa6e79762011-09-29 20:53:5254 '../ipc/ipc.gyp:ipc',
acolwell9e0840d2014-09-06 19:01:3255 '../media/blink/media_blink.gyp:media_blink',
[email protected]433df472012-03-07 20:33:3956 '../media/media.gyp:media',
[email protected]aa6e79762011-09-29 20:53:5257 '../net/net.gyp:net',
[email protected]24f80692012-08-13 15:15:5058 '../net/net.gyp:net_resources',
[email protected]5629e0c2011-09-12 22:07:3659 '../skia/skia.gyp:skia',
pilgrim4af8c212014-09-05 17:30:1560 '../storage/storage_browser.gyp:storage',
[email protected]3de922f2013-12-20 13:27:3861 '../third_party/WebKit/public/blink.gyp:blink',
[email protected]95f8a142014-04-24 00:23:5862 '../third_party/WebKit/public/blink.gyp:blink_test_support',
spang1c36fac2015-02-05 19:55:1263 '../ui/base/ime/ui_base_ime.gyp:ui_base_ime',
[email protected]ed8fd9152014-03-13 10:20:3764 '../ui/base/ui_base.gyp:ui_base',
[email protected]114efae2013-11-06 20:37:5765 '../ui/events/events.gyp:events_base',
[email protected]529a3cf2013-09-30 02:47:4866 '../ui/gfx/gfx.gyp:gfx',
[email protected]b5e2d782013-12-18 21:01:1567 '../ui/gfx/gfx.gyp:gfx_geometry',
[email protected]ffff5b32014-06-25 21:31:0868 '../ui/gfx/ipc/gfx_ipc.gyp:gfx_ipc',
[email protected]8350f16f2012-11-30 00:25:3269 '../ui/gl/gl.gyp:gl',
[email protected]002cc08f2013-06-03 05:40:2970 '../url/url.gyp:url_lib',
[email protected]12bc28fcb2011-09-21 15:53:5071 '../v8/tools/gyp/v8.gyp:v8',
[email protected]5629e0c2011-09-12 22:07:3672 ],
73 'include_dirs': [
74 '..',
75 ],
76 'sources': [
[email protected]6b9028ab2014-07-23 17:15:3877 # Note: sources list duplicated in GN build.
[email protected]4d4eb5b2013-01-29 21:55:5578 'shell/android/shell_jni_registrar.cc',
79 'shell/android/shell_jni_registrar.h',
80 'shell/android/shell_manager.cc',
81 'shell/android/shell_manager.h',
tfarina4d06f572014-10-17 03:36:4882 'shell/app/blink_test_platform_support.h',
83 'shell/app/blink_test_platform_support_android.cc',
84 'shell/app/blink_test_platform_support_linux.cc',
85 'shell/app/blink_test_platform_support_mac.mm',
86 'shell/app/blink_test_platform_support_win.cc',
[email protected]2a94e812013-07-12 15:31:0287 'shell/app/paths_mac.h',
88 'shell/app/paths_mac.mm',
rseseka0a7a042014-09-18 23:59:2089 'shell/app/shell_crash_reporter_client.cc',
90 'shell/app/shell_crash_reporter_client.h',
[email protected]993951d2013-05-08 21:37:0291 'shell/app/shell_main_delegate.cc',
92 'shell/app/shell_main_delegate.h',
[email protected]2a94e812013-07-12 15:31:0293 'shell/app/shell_main_delegate_mac.h',
94 'shell/app/shell_main_delegate_mac.mm',
[email protected]9cd36bfb2014-08-20 00:32:0095 'shell/browser/ipc_echo_message_filter.cc',
96 'shell/browser/ipc_echo_message_filter.h',
mkwstd6805d0d2014-10-16 14:44:3797 'shell/browser/layout_test/layout_test_android.cc',
98 'shell/browser/layout_test/layout_test_android.h',
mkwstd993d06a2014-10-10 11:44:3899 'shell/browser/layout_test/layout_test_browser_context.cc',
100 'shell/browser/layout_test/layout_test_browser_context.h',
mkwst88e23182014-10-16 12:08:58101 'shell/browser/layout_test/layout_test_browser_main.cc',
102 'shell/browser/layout_test/layout_test_browser_main.h',
mkwst36b11b6f2014-10-15 16:18:56103 'shell/browser/layout_test/layout_test_browser_main_parts.cc',
104 'shell/browser/layout_test/layout_test_browser_main_parts.h',
petercd7abb42014-10-17 13:34:01105 'shell/browser/layout_test/layout_test_content_browser_client.cc',
106 'shell/browser/layout_test/layout_test_content_browser_client.h',
mkwst30d20d52014-10-09 13:33:14107 'shell/browser/layout_test/layout_test_devtools_frontend.cc',
108 'shell/browser/layout_test/layout_test_devtools_frontend.h',
satorux225d7ed2015-02-13 02:23:35109 'shell/browser/layout_test/layout_test_download_manager_delegate.cc',
110 'shell/browser/layout_test/layout_test_download_manager_delegate.h',
mkwst6efe7f2e62014-10-08 15:09:01111 'shell/browser/layout_test/layout_test_javascript_dialog_manager.cc',
112 'shell/browser/layout_test/layout_test_javascript_dialog_manager.h',
Peter Beverlooe8f2f9d2014-10-20 16:47:49113 'shell/browser/layout_test/layout_test_message_filter.cc',
114 'shell/browser/layout_test/layout_test_message_filter.h',
mekc9182202015-03-03 17:56:07115 'shell/browser/layout_test/layout_test_navigator_connect_service_factory.cc',
116 'shell/browser/layout_test/layout_test_navigator_connect_service_factory.h',
petercd7abb42014-10-17 13:34:01117 'shell/browser/layout_test/layout_test_notification_manager.cc',
118 'shell/browser/layout_test/layout_test_notification_manager.h',
mvanouwerkerkde895c9c2014-12-06 12:17:32119 'shell/browser/layout_test/layout_test_push_messaging_service.cc',
120 'shell/browser/layout_test/layout_test_push_messaging_service.h',
mkwst002d02902014-10-09 10:17:00121 'shell/browser/layout_test/layout_test_resource_dispatcher_host_delegate.cc',
122 'shell/browser/layout_test/layout_test_resource_dispatcher_host_delegate.h',
mkwst94388f792014-10-16 07:36:52123 'shell/browser/layout_test/layout_test_url_request_context_getter.cc',
124 'shell/browser/layout_test/layout_test_url_request_context_getter.h',
[email protected]de7d61ff2013-08-20 11:30:41125 'shell/browser/notify_done_forwarder.cc',
126 'shell/browser/notify_done_forwarder.h',
peter11d5f562014-10-23 23:12:25127 'shell/browser/shell.cc',
128 'shell/browser/shell.h',
129 'shell/browser/shell_access_token_store.cc',
130 'shell/browser/shell_access_token_store.h',
[email protected]de7d61ff2013-08-20 11:30:41131 'shell/browser/shell_android.cc',
132 'shell/browser/shell_application_mac.h',
133 'shell/browser/shell_application_mac.mm',
134 'shell/browser/shell_aura.cc',
135 'shell/browser/shell_browser_context.cc',
136 'shell/browser/shell_browser_context.h',
137 'shell/browser/shell_browser_main.cc',
138 'shell/browser/shell_browser_main.h',
139 'shell/browser/shell_browser_main_parts.cc',
140 'shell/browser/shell_browser_main_parts.h',
141 'shell/browser/shell_browser_main_parts_mac.mm',
[email protected]de7d61ff2013-08-20 11:30:41142 'shell/browser/shell_content_browser_client.cc',
143 'shell/browser/shell_content_browser_client.h',
[email protected]de7d61ff2013-08-20 11:30:41144 'shell/browser/shell_devtools_frontend.cc',
145 'shell/browser/shell_devtools_frontend.h',
satorux225d7ed2015-02-13 02:23:35146 'shell/browser/shell_devtools_manager_delegate.cc',
147 'shell/browser/shell_devtools_manager_delegate.h',
[email protected]de7d61ff2013-08-20 11:30:41148 'shell/browser/shell_download_manager_delegate.cc',
149 'shell/browser/shell_download_manager_delegate.h',
[email protected]de7d61ff2013-08-20 11:30:41150 'shell/browser/shell_javascript_dialog.h',
151 'shell/browser/shell_javascript_dialog_mac.mm',
152 'shell/browser/shell_javascript_dialog_manager.cc',
153 'shell/browser/shell_javascript_dialog_manager.h',
154 'shell/browser/shell_javascript_dialog_win.cc',
[email protected]de7d61ff2013-08-20 11:30:41155 'shell/browser/shell_login_dialog.cc',
[email protected]de7d61ff2013-08-20 11:30:41156 'shell/browser/shell_login_dialog.h',
157 'shell/browser/shell_login_dialog_mac.mm',
158 'shell/browser/shell_mac.mm',
satorux225d7ed2015-02-13 02:23:35159 'shell/browser/shell_mojo_test_utils_android.cc',
160 'shell/browser/shell_mojo_test_utils_android.h',
[email protected]de7d61ff2013-08-20 11:30:41161 'shell/browser/shell_net_log.cc',
162 'shell/browser/shell_net_log.h',
163 'shell/browser/shell_network_delegate.cc',
164 'shell/browser/shell_network_delegate.h',
[email protected]a6591142014-01-27 19:32:26165 'shell/browser/shell_platform_data_aura.cc',
166 'shell/browser/shell_platform_data_aura.h',
[email protected]de7d61ff2013-08-20 11:30:41167 'shell/browser/shell_plugin_service_filter.cc',
168 'shell/browser/shell_plugin_service_filter.h',
169 'shell/browser/shell_quota_permission_context.cc',
170 'shell/browser/shell_quota_permission_context.h',
171 'shell/browser/shell_resource_dispatcher_host_delegate.cc',
172 'shell/browser/shell_resource_dispatcher_host_delegate.h',
[email protected]9896c552013-08-29 19:03:20173 'shell/browser/shell_speech_recognition_manager_delegate.cc',
174 'shell/browser/shell_speech_recognition_manager_delegate.h',
[email protected]de7d61ff2013-08-20 11:30:41175 'shell/browser/shell_url_request_context_getter.cc',
176 'shell/browser/shell_url_request_context_getter.h',
[email protected]a896e1e2013-10-20 19:10:30177 'shell/browser/shell_views.cc',
satorux225d7ed2015-02-13 02:23:35178 'shell/browser/shell_web_contents_view_delegate.h',
[email protected]de7d61ff2013-08-20 11:30:41179 'shell/browser/shell_web_contents_view_delegate_android.cc',
180 'shell/browser/shell_web_contents_view_delegate_creator.h',
[email protected]de7d61ff2013-08-20 11:30:41181 'shell/browser/shell_web_contents_view_delegate_mac.mm',
182 'shell/browser/shell_web_contents_view_delegate_win.cc',
[email protected]de7d61ff2013-08-20 11:30:41183 'shell/browser/webkit_test_controller.cc',
184 'shell/browser/webkit_test_controller.h',
petere04203592014-10-27 17:57:35185 'shell/common/layout_test/layout_test_messages.cc',
186 'shell/common/layout_test/layout_test_messages.h',
[email protected]4562cf72014-01-27 10:10:13187 'shell/common/leak_detection_result.h',
[email protected]b7c504c2013-05-07 14:42:12188 'shell/common/shell_content_client.cc',
189 'shell/common/shell_content_client.h',
190 'shell/common/shell_messages.cc',
191 'shell/common/shell_messages.h',
192 'shell/common/shell_switches.cc',
193 'shell/common/shell_switches.h',
194 'shell/common/shell_test_configuration.cc',
195 'shell/common/shell_test_configuration.h',
[email protected]1f70cfa42014-04-04 21:35:01196 'shell/common/test_runner/test_preferences.cc',
197 'shell/common/test_runner/test_preferences.h',
jochen284435c2014-10-02 13:08:23198 'shell/common/v8_breakpad_support_win.cc',
199 'shell/common/v8_breakpad_support_win.h',
[email protected]b7c504c2013-05-07 14:42:12200 'shell/common/webkit_test_helpers.cc',
201 'shell/common/webkit_test_helpers.h',
[email protected]9cd36bfb2014-08-20 00:32:00202 'shell/renderer/ipc_echo.cc',
203 'shell/renderer/ipc_echo.h',
mkwst04b72d12014-10-08 15:52:55204 'shell/renderer/layout_test/gc_controller.cc',
205 'shell/renderer/layout_test/gc_controller.h',
mkwst02ec0d62014-10-07 22:07:29206 'shell/renderer/layout_test/layout_test_content_renderer_client.cc',
207 'shell/renderer/layout_test/layout_test_content_renderer_client.h',
mkwst3e72c1f2014-10-08 05:02:36208 'shell/renderer/layout_test/layout_test_render_frame_observer.cc',
209 'shell/renderer/layout_test/layout_test_render_frame_observer.h',
mkwst99069fc2014-10-08 06:13:28210 'shell/renderer/layout_test/layout_test_render_process_observer.cc',
211 'shell/renderer/layout_test/layout_test_render_process_observer.h',
mkwst04b72d12014-10-08 15:52:55212 'shell/renderer/layout_test/leak_detector.cc',
213 'shell/renderer/layout_test/leak_detector.h',
214 'shell/renderer/layout_test/webkit_test_runner.cc',
215 'shell/renderer/layout_test/webkit_test_runner.h',
[email protected]f7a4e3b92013-05-03 15:29:58216 'shell/renderer/shell_content_renderer_client.cc',
217 'shell/renderer/shell_content_renderer_client.h',
[email protected]81914ad2013-07-02 18:54:25218 'shell/renderer/shell_render_view_observer.cc',
219 'shell/renderer/shell_render_view_observer.h',
[email protected]fa6a8f42014-03-06 14:20:18220 'shell/renderer/test_runner/accessibility_controller.cc',
221 'shell/renderer/test_runner/accessibility_controller.h',
[email protected]3db130e2014-03-27 08:14:48222 'shell/renderer/test_runner/event_sender.cc',
223 'shell/renderer/test_runner/event_sender.h',
[email protected]cf786002014-02-11 02:05:54224 'shell/renderer/test_runner/gamepad_controller.cc',
225 'shell/renderer/test_runner/gamepad_controller.h',
[email protected]27821fa2014-07-22 16:03:57226 'shell/renderer/test_runner/mock_color_chooser.cc',
227 'shell/renderer/test_runner/mock_color_chooser.h',
[email protected]35c3197b2014-05-22 18:12:39228 'shell/renderer/test_runner/mock_constraints.cc',
229 'shell/renderer/test_runner/mock_constraints.h',
mkwst02ec0d62014-10-07 22:07:29230 'shell/renderer/test_runner/mock_credential_manager_client.cc',
231 'shell/renderer/test_runner/mock_credential_manager_client.h',
[email protected]f82478792014-05-14 17:50:57232 'shell/renderer/test_runner/mock_grammar_check.cc',
233 'shell/renderer/test_runner/mock_grammar_check.h',
[email protected]a2ca0032014-06-27 02:28:08234 'shell/renderer/test_runner/mock_screen_orientation_client.cc',
235 'shell/renderer/test_runner/mock_screen_orientation_client.h',
[email protected]f656a652014-07-25 12:19:52236 'shell/renderer/test_runner/mock_spell_check.cc',
237 'shell/renderer/test_runner/mock_spell_check.h',
[email protected]5d6534d2014-06-06 13:21:32238 'shell/renderer/test_runner/mock_web_audio_device.cc',
239 'shell/renderer/test_runner/mock_web_audio_device.h',
[email protected]85afb6c2014-07-29 02:43:36240 'shell/renderer/test_runner/mock_web_media_stream_center.cc',
241 'shell/renderer/test_runner/mock_web_media_stream_center.h',
[email protected]6b950c32014-07-28 14:35:43242 'shell/renderer/test_runner/mock_web_midi_accessor.cc',
243 'shell/renderer/test_runner/mock_web_midi_accessor.h',
[email protected]ca35ef02014-07-31 11:46:49244 'shell/renderer/test_runner/mock_web_speech_recognizer.cc',
245 'shell/renderer/test_runner/mock_web_speech_recognizer.h',
[email protected]dec09852014-07-19 21:07:52246 'shell/renderer/test_runner/mock_web_theme_engine.cc',
247 'shell/renderer/test_runner/mock_web_theme_engine.h',
[email protected]7948a422014-06-02 05:43:02248 'shell/renderer/test_runner/mock_web_user_media_client.cc',
249 'shell/renderer/test_runner/mock_web_user_media_client.h',
[email protected]edffa7a2014-05-31 04:27:11250 'shell/renderer/test_runner/mock_webrtc_data_channel_handler.cc',
251 'shell/renderer/test_runner/mock_webrtc_data_channel_handler.h',
[email protected]358847f2014-06-04 13:29:14252 'shell/renderer/test_runner/mock_webrtc_dtmf_sender_handler.cc',
253 'shell/renderer/test_runner/mock_webrtc_dtmf_sender_handler.h',
[email protected]af605832014-06-05 15:09:08254 'shell/renderer/test_runner/mock_webrtc_peer_connection_handler.cc',
255 'shell/renderer/test_runner/mock_webrtc_peer_connection_handler.h',
[email protected]b38c8f312014-08-01 23:21:37256 'shell/renderer/test_runner/spell_check_client.cc',
257 'shell/renderer/test_runner/spell_check_client.h',
[email protected]f5b1ad882014-08-05 16:30:41258 'shell/renderer/test_runner/test_common.cc',
259 'shell/renderer/test_runner/test_common.h',
[email protected]8ed8bf432014-08-11 19:47:55260 'shell/renderer/test_runner/test_interfaces.cc',
261 'shell/renderer/test_runner/test_interfaces.h',
abhishek.a21dd9554f2014-09-03 17:19:12262 'shell/renderer/test_runner/test_plugin.cc',
263 'shell/renderer/test_runner/test_plugin.h',
[email protected]97f9a7952014-03-14 11:50:33264 'shell/renderer/test_runner/test_runner.cc',
265 'shell/renderer/test_runner/test_runner.h',
[email protected]f751653a92014-02-18 16:32:55266 'shell/renderer/test_runner/text_input_controller.cc',
267 'shell/renderer/test_runner/text_input_controller.h',
[email protected]fa6a8f42014-03-06 14:20:18268 'shell/renderer/test_runner/web_ax_object_proxy.cc',
269 'shell/renderer/test_runner/web_ax_object_proxy.h',
mlamouri007f9d72015-02-27 16:27:25270 'shell/renderer/test_runner/web_content_settings.cc',
271 'shell/renderer/test_runner/web_content_settings.h',
[email protected]a1640e42014-05-14 13:43:32272 'shell/renderer/test_runner/web_frame_test_proxy.h',
abhishek.a21ab71acb2014-09-12 16:46:31273 'shell/renderer/test_runner/web_task.cc',
274 'shell/renderer/test_runner/web_task.h',
abhishek.a21ca9b5602014-09-19 07:33:33275 'shell/renderer/test_runner/web_test_delegate.h',
abhishek.a21bdd07a82014-09-25 06:34:10276 'shell/renderer/test_runner/web_test_interfaces.cc',
277 'shell/renderer/test_runner/web_test_interfaces.h',
[email protected]a1640e42014-05-14 13:43:32278 'shell/renderer/test_runner/web_test_proxy.cc',
279 'shell/renderer/test_runner/web_test_proxy.h',
[email protected]8deba6ca2014-05-26 16:37:03280 'shell/renderer/test_runner/web_test_runner.h',
[email protected]5629e0c2011-09-12 22:07:36281 ],
282 'msvs_settings': {
283 'VCLinkerTool': {
284 'SubSystem': '2', # Set /SUBSYSTEM:WINDOWS
285 },
286 },
287 'conditions': [
288 ['OS=="win" and win_use_allocator_shim==1', {
289 'dependencies': [
290 '../base/allocator/allocator.gyp:allocator',
291 ],
292 }],
[email protected]9fbd3f862011-09-20 23:31:34293 ['OS=="win"', {
294 'resource_include_dirs': [
[email protected]6586a2e32014-08-09 19:24:12295 '<(SHARED_INTERMEDIATE_DIR)/content/app/strings',
[email protected]9fbd3f862011-09-20 23:31:34296 ],
[email protected]9fbd3f862011-09-20 23:31:34297 'dependencies': [
[email protected]6586a2e32014-08-09 19:24:12298 '<(DEPTH)/content/app/strings/content_strings.gyp:content_strings',
[email protected]9fbd3f862011-09-20 23:31:34299 ],
300 'configurations': {
301 'Debug_Base': {
302 'msvs_settings': {
303 'VCLinkerTool': {
304 'LinkIncremental': '<(msvs_large_module_debug_link_mode)',
305 },
306 },
307 },
308 },
[email protected]3bed5302013-02-15 19:31:41309 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
310 'msvs_disabled_warnings': [ 4267, ],
[email protected]85ff16042012-03-06 23:46:34311 }], # OS=="win"
[email protected]6eb6bb62012-11-10 06:30:59312 ['OS=="linux"', {
313 'dependencies': [
314 '../build/linux/system.gyp:fontconfig',
315 ],
316 }],
[email protected]6b911a32014-01-10 02:34:53317 ['use_x11 == 1', {
318 'dependencies': [
dnicoara78a734702014-11-04 19:54:38319 '../ui/events/devices/events_devices.gyp:events_devices',
[email protected]6b911a32014-01-10 02:34:53320 '../tools/xdisplaycheck/xdisplaycheck.gyp:xdisplaycheck',
321 ],
322 }],
[email protected]689266d2012-08-07 12:52:20323 ['OS=="android"', {
[email protected]82e9e2b12012-07-19 00:32:01324 'dependencies': [
ppif581fe92014-10-08 18:52:19325 '../mojo/mojo_base.gyp:libmojo_system_java',
[email protected]82e9e2b12012-07-19 00:32:01326 'content_shell_jni_headers',
327 ],
[email protected]6b911a32014-01-10 02:34:53328 'dependencies!': [
[email protected]de28fed2e2014-02-01 14:36:32329 'copy_test_netscape_plugin',
[email protected]6b911a32014-01-10 02:34:53330 ],
[email protected]82e9e2b12012-07-19 00:32:01331 }], # OS=="android"
[email protected]a7aa8ab2013-10-24 07:21:48332 ['os_posix == 1 and OS != "mac" and android_webview_build != 1', {
333 'dependencies': [
334 '../components/components.gyp:breakpad_host',
335 ],
336 }],
[email protected]2fa89ef2014-05-07 18:45:59337 ['(OS=="linux" or OS=="android") and use_allocator!="none"', {
[email protected]c767d572012-07-27 10:55:58338 'dependencies': [
339 # This is needed by content/app/content_main_runner.cc
340 '../base/allocator/allocator.gyp:allocator',
341 ],
342 }],
[email protected]fa4a45832012-04-12 21:32:48343 ['use_aura==1', {
[email protected]c767d572012-07-27 10:55:58344 'dependencies': [
345 '../ui/aura/aura.gyp:aura',
[email protected]72fed232014-04-07 20:21:46346 '../ui/aura/aura.gyp:aura_test_support',
[email protected]72fed232014-04-07 20:21:46347 '../ui/events/events.gyp:events',
[email protected]e3d74862014-05-18 14:12:27348 '../ui/strings/ui_strings.gyp:ui_strings',
[email protected]884dac5b2014-04-30 15:10:10349 '../ui/wm/wm.gyp:wm',
[email protected]c767d572012-07-27 10:55:58350 ],
[email protected]a896e1e2013-10-20 19:10:30351 'conditions': [
352 ['toolkit_views==1', {
353 'dependencies': [
[email protected]dae78442013-11-26 16:57:02354 '../ui/resources/ui_resources.gyp:ui_resources',
[email protected]a896e1e2013-10-20 19:10:30355 '../ui/views/controls/webview/webview.gyp:webview',
356 '../ui/views/views.gyp:views',
357 '../ui/views/views.gyp:views_test_support',
[email protected]a896e1e2013-10-20 19:10:30358 ],
359 'sources/': [
360 ['exclude', 'shell/browser/shell_aura.cc'],
361 ],
362 }, {
363 'sources/': [
364 ['exclude', 'shell/browser/shell_views.cc'],
365 ],
366 }],
367 ],
368 }, {
369 'sources/': [
370 ['exclude', 'shell/browser/shell_aura.cc'],
371 ['exclude', 'shell/browser/shell_views.cc'],
372 ],
[email protected]96b80b472012-07-03 19:41:56373 }], # use_aura==1
[email protected]6b911a32014-01-10 02:34:53374 # The test plugin relies on X11.
375 ['OS=="linux" and use_x11==0', {
376 'dependencies!': [
[email protected]de28fed2e2014-02-01 14:36:32377 'copy_test_netscape_plugin',
[email protected]6b911a32014-01-10 02:34:53378 ],
379 }],
[email protected]c767d572012-07-27 10:55:58380 ['chromeos==1', {
381 'dependencies': [
382 '../chromeos/chromeos.gyp:chromeos',
[email protected]de6831b2013-11-16 01:04:30383 '../ui/wm/wm.gyp:wm_test_support',
[email protected]c767d572012-07-27 10:55:58384 ],
385 }], # chromeos==1
[email protected]929246a2013-02-28 13:55:20386 ['use_custom_freetype==1', {
387 'dependencies': [
388 '../third_party/freetype2/freetype2.gyp:freetype2',
389 ],
390 }],
[email protected]dfb9360192013-05-27 09:42:34391 ['enable_plugins==0', {
[email protected]6b9028ab2014-07-23 17:15:38392 'sources!': [
393 'shell/browser/shell_plugin_service_filter.cc',
394 'shell/browser/shell_plugin_service_filter.h',
[email protected]dfb9360192013-05-27 09:42:34395 ],
396 }]
[email protected]5629e0c2011-09-12 22:07:36397 ],
398 },
[email protected]c1f87b22011-10-05 21:59:33399 {
[email protected]6b9028ab2014-07-23 17:15:38400 # GN version: //content/shell:resources
[email protected]ee75b8992012-01-27 07:53:57401 'target_name': 'content_shell_resources',
402 'type': 'none',
[email protected]b581eb402012-03-09 01:31:46403 'variables': {
404 'grit_out_dir': '<(SHARED_INTERMEDIATE_DIR)/content',
405 },
[email protected]5c94e992014-05-11 14:22:06406 'actions': [
407 {
408 'action_name': 'generate_content_shell_resources',
409 'variables': {
410 'grit_grd_file': 'shell/shell_resources.grd',
411 },
412 'includes': [ '../build/grit_action.gypi' ],
413 },
414 ],
[email protected]b581eb402012-03-09 01:31:46415 'includes': [ '../build/grit_target.gypi' ],
416 'copies': [
417 {
418 'destination': '<(PRODUCT_DIR)',
419 'files': [
420 '<(SHARED_INTERMEDIATE_DIR)/content/shell_resources.pak'
421 ],
422 },
423 ],
[email protected]6b911a32014-01-10 02:34:53424 'conditions': [
425 ['OS=="win"', {
426 'copies': [{
427 'destination': '<(PRODUCT_DIR)',
428 'files': ['shell/renderer/test_runner/resources/fonts/AHEM____.TTF'],
429 }],
430 }],
431 ['OS=="mac"', {
432 'all_dependent_settings': {
433 'mac_bundle_resources': [
434 'shell/renderer/test_runner/resources/fonts/AHEM____.TTF',
[email protected]24687802014-03-20 22:04:47435 'shell/renderer/test_runner/resources/fonts/ChromiumAATTest.ttf',
[email protected]6b911a32014-01-10 02:34:53436 '<(SHARED_INTERMEDIATE_DIR)/webkit/missingImage.png',
437 '<(SHARED_INTERMEDIATE_DIR)/webkit/textAreaResizeCorner.png',
438 ],
439 },
440 }],
441 ['use_x11 == 1', {
442 'copies': [{
443 'destination': '<(PRODUCT_DIR)',
444 'files': [
445 'shell/renderer/test_runner/resources/fonts/AHEM____.TTF',
446 'shell/renderer/test_runner/resources/fonts/fonts.conf',
[email protected]209984992014-07-08 13:32:09447 '../third_party/gardiner_mod/GardinerModBug.ttf',
448 '../third_party/gardiner_mod/GardinerModCat.ttf',
[email protected]6b911a32014-01-10 02:34:53449 ]
450 }],
451 }],
452 ['OS=="android"', {
453 'copies': [{
454 'destination': '<(PRODUCT_DIR)',
455 'files': [
456 'shell/renderer/test_runner/resources/fonts/AHEM____.TTF',
457 'shell/renderer/test_runner/resources/fonts/android_main_fonts.xml',
458 'shell/renderer/test_runner/resources/fonts/android_fallback_fonts.xml',
459 ]
460 }],
461 }],
462 ],
[email protected]4cb792f42012-03-24 03:12:42463 },
464 {
[email protected]81f30ce2012-01-18 22:10:33465 # We build a minimal set of resources so WebKit in content_shell has
466 # access to necessary resources.
[email protected]6b9028ab2014-07-23 17:15:38467 # GN version: //content/shell:pak
[email protected]81f30ce2012-01-18 22:10:33468 'target_name': 'content_shell_pak',
469 'type': 'none',
[email protected]ee75b8992012-01-27 07:53:57470 'dependencies': [
[email protected]a9ca8d52014-08-22 10:21:08471 'app/resources/content_resources.gyp:content_resources',
[email protected]6586a2e32014-08-09 19:24:12472 'app/strings/content_strings.gyp:content_strings',
[email protected]6b9028ab2014-07-23 17:15:38473 'browser/tracing/tracing_resources.gyp:tracing_resources',
thestigbce02672014-08-26 10:01:34474 'content.gyp:content_resources',
[email protected]ee75b8992012-01-27 07:53:57475 'content_shell_resources',
[email protected]06c54162013-06-10 00:25:05476 '<(DEPTH)/net/net.gyp:net_resources',
[email protected]1400d1d2014-07-25 07:49:59477 '<(DEPTH)/third_party/WebKit/public/blink_resources.gyp:blink_resources',
[email protected]1c0c3f42013-11-20 02:03:28478 '<(DEPTH)/ui/resources/ui_resources.gyp:ui_resources',
[email protected]e3d74862014-05-18 14:12:27479 '<(DEPTH)/ui/strings/ui_strings.gyp:ui_strings',
[email protected]ee75b8992012-01-27 07:53:57480 ],
[email protected]3df230d2013-07-03 00:44:57481 'conditions': [
[email protected]8dffd2c2013-12-02 14:14:38482 ['OS!="android"', {
483 'dependencies': [
484 'browser/devtools/devtools_resources.gyp:devtools_resources',
485 ],
486 }],
vivek.vge136a8652014-09-05 10:51:28487 ['OS=="android"', {
488 'copies': [
489 {
490 'destination': '<(PRODUCT_DIR)',
491 'files': [
492 '<(PRODUCT_DIR)/content_shell/assets/content_shell.pak'
493 ],
494 },
495 ],
496 }],
[email protected]3df230d2013-07-03 00:44:57497 ],
[email protected]81f30ce2012-01-18 22:10:33498 'actions': [
499 {
500 'action_name': 'repack_content_shell_pack',
501 'variables': {
502 'pak_inputs': [
[email protected]1400d1d2014-07-25 07:49:59503 '<(SHARED_INTERMEDIATE_DIR)/blink/public/resources/blink_resources.pak',
[email protected]a9ca8d52014-08-22 10:21:08504 '<(SHARED_INTERMEDIATE_DIR)/content/app/resources/content_resources_100_percent.pak',
[email protected]6586a2e32014-08-09 19:24:12505 '<(SHARED_INTERMEDIATE_DIR)/content/app/strings/content_strings_en-US.pak',
[email protected]479bea22013-07-02 21:46:06506 '<(SHARED_INTERMEDIATE_DIR)/content/browser/tracing/tracing_resources.pak',
[email protected]1400d1d2014-07-25 07:49:59507 '<(SHARED_INTERMEDIATE_DIR)/content/content_resources.pak',
[email protected]ee75b8992012-01-27 07:53:57508 '<(SHARED_INTERMEDIATE_DIR)/content/shell_resources.pak',
[email protected]81f30ce2012-01-18 22:10:33509 '<(SHARED_INTERMEDIATE_DIR)/net/net_resources.pak',
[email protected]a3c134352014-07-11 19:23:19510 '<(SHARED_INTERMEDIATE_DIR)/ui/resources/ui_resources_100_percent.pak',
511 '<(SHARED_INTERMEDIATE_DIR)/ui/resources/webui_resources.pak',
[email protected]d2329222014-07-18 07:14:22512 '<(SHARED_INTERMEDIATE_DIR)/ui/strings/app_locale_settings_en-US.pak',
[email protected]a3c134352014-07-11 19:23:19513 '<(SHARED_INTERMEDIATE_DIR)/ui/strings/ui_strings_en-US.pak',
[email protected]81f30ce2012-01-18 22:10:33514 ],
[email protected]01bdc9202014-03-28 21:11:20515 'conditions': [
516 ['OS!="android"', {
vivek.vg77816a12014-12-18 14:28:20517 'pak_inputs': ['<(SHARED_INTERMEDIATE_DIR)/blink/devtools_resources.pak',],
[email protected]01bdc9202014-03-28 21:11:20518 'pak_output': '<(PRODUCT_DIR)/content_shell.pak',
519 }, {
520 'pak_output': '<(PRODUCT_DIR)/content_shell/assets/content_shell.pak',
521 }],
522 ],
[email protected]81f30ce2012-01-18 22:10:33523 },
[email protected]01bdc9202014-03-28 21:11:20524 'includes': [ '../build/repack_action.gypi' ],
[email protected]81f30ce2012-01-18 22:10:33525 },
526 ],
527 },
528 {
[email protected]6b9028ab2014-07-23 17:15:38529 # GN version: //content/shell:content_shell
[email protected]c1f87b22011-10-05 21:59:33530 'target_name': 'content_shell',
531 'type': 'executable',
[email protected]85ff16042012-03-06 23:46:34532 'mac_bundle': 1,
[email protected]c1f87b22011-10-05 21:59:33533 'variables': {
534 'chromium_code': 1,
535 },
536 'dependencies': [
537 'content_shell_lib',
[email protected]81f30ce2012-01-18 22:10:33538 'content_shell_pak',
[email protected]bb5d2d92012-10-15 07:45:42539 '../third_party/mesa/mesa.gyp:osmesa',
[email protected]331d1692013-07-25 20:40:13540 '../tools/imagediff/image_diff.gyp:image_diff',
[email protected]c1f87b22011-10-05 21:59:33541 ],
542 'include_dirs': [
543 '..',
544 ],
545 'sources': [
[email protected]993951d2013-05-08 21:37:02546 'shell/app/shell_main.cc',
[email protected]c1f87b22011-10-05 21:59:33547 ],
[email protected]85ff16042012-03-06 23:46:34548 'mac_bundle_resources': [
[email protected]993951d2013-05-08 21:37:02549 'shell/app/app.icns',
550 'shell/app/app-Info.plist',
[email protected]85ff16042012-03-06 23:46:34551 ],
552 # TODO(mark): Come up with a fancier way to do this. It should only
553 # be necessary to list app-Info.plist once, not the three times it is
554 # listed here.
555 'mac_bundle_resources!': [
[email protected]993951d2013-05-08 21:37:02556 'shell/app/app-Info.plist',
[email protected]85ff16042012-03-06 23:46:34557 ],
558 'xcode_settings': {
[email protected]993951d2013-05-08 21:37:02559 'INFOPLIST_FILE': 'shell/app/app-Info.plist',
[email protected]85ff16042012-03-06 23:46:34560 },
[email protected]c1f87b22011-10-05 21:59:33561 'msvs_settings': {
[email protected]30624922013-06-04 10:40:10562 'VCManifestTool': {
[email protected]5d60b0b2013-07-30 20:24:30563 'AdditionalManifestFiles': [
564 'shell/app/shell.exe.manifest',
565 ],
[email protected]30624922013-06-04 10:40:10566 },
[email protected]c1f87b22011-10-05 21:59:33567 },
568 'conditions': [
569 ['OS=="win" and win_use_allocator_shim==1', {
570 'dependencies': [
571 '../base/allocator/allocator.gyp:allocator',
572 ],
573 }],
574 ['OS=="win"', {
[email protected]7fc83822012-03-30 19:53:29575 'sources': [
[email protected]993951d2013-05-08 21:37:02576 'shell/app/shell.rc',
[email protected]7fc83822012-03-30 19:53:29577 ],
[email protected]c1f87b22011-10-05 21:59:33578 'configurations': {
579 'Debug_Base': {
580 'msvs_settings': {
581 'VCLinkerTool': {
582 'LinkIncremental': '<(msvs_large_module_debug_link_mode)',
583 },
584 },
585 },
586 },
[email protected]85ff16042012-03-06 23:46:34587 }], # OS=="win"
[email protected]c997bc42014-04-11 18:25:58588 ['OS == "win"', {
[email protected]27315ce42011-10-14 01:25:12589 'dependencies': [
590 '../sandbox/sandbox.gyp:sandbox',
591 ],
[email protected]c997bc42014-04-11 18:25:58592 }], # OS=="win"
[email protected]78539df2014-07-16 22:34:22593 ['OS=="win" and asan==0', {
594 'msvs_settings': {
595 'VCLinkerTool': {
596 'SubSystem': '2', # Set /SUBSYSTEM:WINDOWS
597 },
598 },
599 }], # OS=="win" and asan==0
[email protected]85ff16042012-03-06 23:46:34600 ['OS=="mac"', {
601 'product_name': '<(content_shell_product_name)',
602 'dependencies!': [
603 'content_shell_lib',
604 ],
605 'dependencies': [
606 'content_shell_framework',
[email protected]180df8f2012-03-09 22:36:10607 'content_shell_helper_app',
608 ],
609 'copies': [
610 {
611 'destination': '<(PRODUCT_DIR)/<(content_shell_product_name).app/Contents/Frameworks',
612 'files': [
613 '<(PRODUCT_DIR)/<(content_shell_product_name) Helper.app',
614 ],
615 },
[email protected]85ff16042012-03-06 23:46:34616 ],
617 'postbuilds': [
618 {
619 'postbuild_name': 'Copy <(content_shell_product_name) Framework.framework',
620 'action': [
621 '../build/mac/copy_framework_unversioned.sh',
622 '${BUILT_PRODUCTS_DIR}/<(content_shell_product_name) Framework.framework',
623 '${BUILT_PRODUCTS_DIR}/${CONTENTS_FOLDER_PATH}/Frameworks',
624 ],
625 },
626 {
[email protected]85ff16042012-03-06 23:46:34627 # Modify the Info.plist as needed.
628 'postbuild_name': 'Tweak Info.plist',
629 'action': ['../build/mac/tweak_info_plist.py',
[email protected]6d302912012-11-05 21:57:28630 '--scm=1',
631 '--version=<(content_shell_version)'],
[email protected]85ff16042012-03-06 23:46:34632 },
633 {
[email protected]180df8f2012-03-09 22:36:10634 # This postbuid step is responsible for creating the following
635 # helpers:
636 #
637 # Content Shell Helper EH.app and Content Shell Helper NP.app are
638 # created from Content Shell Helper.app.
639 #
640 # The EH helper is marked for an executable heap. The NP helper
641 # is marked for no PIE (ASLR).
642 'postbuild_name': 'Make More Helpers',
643 'action': [
644 '../build/mac/make_more_helpers.sh',
645 'Frameworks',
646 '<(content_shell_product_name)',
647 ],
648 },
649 {
[email protected]85ff16042012-03-06 23:46:34650 # Make sure there isn't any Objective-C in the shell's
651 # executable.
652 'postbuild_name': 'Verify No Objective-C',
653 'action': [
654 '../build/mac/verify_no_objc.sh',
655 ],
656 },
657 ],
658 }], # OS=="mac"
[email protected]331d1692013-07-25 20:40:13659 ['OS=="android"', {
660 'dependencies!': [
661 '../tools/imagediff/image_diff.gyp:image_diff',
662 ],
663 }], # OS=="android"
664 ['OS=="android" and android_webview_build==0', {
665 'dependencies': [
666 '../tools/imagediff/image_diff.gyp:image_diff#host',
667 ],
668 }], # OS=="android" and android_webview_build==0
[email protected]c1f87b22011-10-05 21:59:33669 ],
670 },
[email protected]fe2420d2012-08-21 07:28:33671 {
672 'target_name': 'content_shell_builder',
673 'type': 'none',
674 'dependencies': [
675 'content_shell',
[email protected]fe2420d2012-08-21 07:28:33676 ],
677 },
[email protected]9f3ecf42014-05-07 18:21:06678
[email protected]de28fed2e2014-02-01 14:36:32679 {
680 'target_name': 'test_netscape_plugin',
681 'type': 'loadable_module',
682 'sources': [
683 'shell/tools/plugin/PluginObject.cpp',
684 'shell/tools/plugin/PluginObject.h',
685 'shell/tools/plugin/PluginObjectMac.mm',
686 'shell/tools/plugin/PluginTest.cpp',
687 'shell/tools/plugin/PluginTest.h',
688 'shell/tools/plugin/TestObject.cpp',
[email protected]de28fed2e2014-02-01 14:36:32689 'shell/tools/plugin/Tests/DocumentOpenInDestroyStream.cpp',
690 'shell/tools/plugin/Tests/EvaluateJSAfterRemovingPluginElement.cpp',
691 'shell/tools/plugin/Tests/FormValue.cpp',
692 'shell/tools/plugin/Tests/GetURLNotifyWithURLThatFailsToLoad.cpp',
693 'shell/tools/plugin/Tests/GetURLWithJavaScriptURL.cpp',
694 'shell/tools/plugin/Tests/GetURLWithJavaScriptURLDestroyingPlugin.cpp',
695 'shell/tools/plugin/Tests/GetUserAgentWithNullNPPFromNPPNew.cpp',
696 'shell/tools/plugin/Tests/LeakWindowScriptableObject.cpp',
697 'shell/tools/plugin/Tests/LogNPPSetWindow.cpp',
698 'shell/tools/plugin/Tests/NPDeallocateCalledBeforeNPShutdown.cpp',
699 'shell/tools/plugin/Tests/NPPNewFails.cpp',
700 'shell/tools/plugin/Tests/NPRuntimeCallsWithNullNPP.cpp',
701 'shell/tools/plugin/Tests/NPRuntimeObjectFromDestroyedPlugin.cpp',
702 'shell/tools/plugin/Tests/NPRuntimeRemoveProperty.cpp',
703 'shell/tools/plugin/Tests/NullNPPGetValuePointer.cpp',
704 'shell/tools/plugin/Tests/PassDifferentNPPStruct.cpp',
705 'shell/tools/plugin/Tests/PluginScriptableNPObjectInvokeDefault.cpp',
706 'shell/tools/plugin/Tests/PluginScriptableObjectOverridesAllProperties.cpp',
707 'shell/tools/plugin/main.cpp',
[email protected]0516a592014-02-13 00:10:04708 'shell/tools/plugin/test_object.h',
[email protected]de28fed2e2014-02-01 14:36:32709 ],
710 'include_dirs': [
711 '<(DEPTH)',
712 '<(DEPTH)/content/shell/tools/plugin/',
713 ],
714 'dependencies': [
715 '../base/base.gyp:base',
716 '../third_party/npapi/npapi.gyp:npapi',
717 ],
718 'conditions': [
719 ['OS=="mac"', {
720 'mac_bundle': 1,
721 'product_extension': 'plugin',
722 'link_settings': {
723 'libraries': [
724 '$(SDKROOT)/System/Library/Frameworks/Carbon.framework',
725 '$(SDKROOT)/System/Library/Frameworks/Cocoa.framework',
726 '$(SDKROOT)/System/Library/Frameworks/QuartzCore.framework',
727 ]
728 },
729 'xcode_settings': {
730 'GCC_SYMBOLS_PRIVATE_EXTERN': 'NO',
731 'INFOPLIST_FILE': 'shell/tools/plugin/mac/Info.plist',
732 },
733 }],
734 ['os_posix == 1 and OS != "mac"', {
735 'cflags': [
736 '-fvisibility=default',
737 ],
738 }],
thakis603fc872015-01-19 05:42:29739 ['use_x11 == 1', {
740 'dependencies': [ '../build/linux/system.gyp:x11' ],
741 }],
[email protected]de28fed2e2014-02-01 14:36:32742 ['OS=="win"', {
743 'defines': [
744 # This seems like a hack, but this is what Safari Win does.
745 'snprintf=_snprintf',
746 ],
747 'sources': [
748 'shell/tools/plugin/win/TestNetscapePlugin.def',
749 'shell/tools/plugin/win/TestNetscapePlugin.rc',
750 ],
751 # The .rc file requires that the name of the dll is np_test_netscape_plugin.dll.
752 'product_name': 'np_test_netscape_plugin',
753 # Disable c4267 warnings until we fix size_t to int truncations.
754 'msvs_disabled_warnings': [ 4267, ],
755 }],
756 ],
757 },
758 {
759 'target_name': 'copy_test_netscape_plugin',
760 'type': 'none',
761 'dependencies': [
762 'test_netscape_plugin',
763 ],
764 'conditions': [
765 ['OS=="win"', {
766 'copies': [{
767 'destination': '<(PRODUCT_DIR)/plugins',
768 'files': ['<(PRODUCT_DIR)/np_test_netscape_plugin.dll'],
769 }],
770 }],
771 ['OS=="mac"', {
772 'copies': [{
773 'destination': '<(PRODUCT_DIR)/plugins/',
774 'files': ['<(PRODUCT_DIR)/test_netscape_plugin.plugin/'],
775 }],
776 }],
777 ['os_posix == 1 and OS != "mac"', {
778 'copies': [{
779 'destination': '<(PRODUCT_DIR)/plugins',
780 'files': ['<(PRODUCT_DIR)/libtest_netscape_plugin.so'],
781 }],
782 }],
783 ],
784 }
[email protected]5629e0c2011-09-12 22:07:36785 ],
[email protected]85ff16042012-03-06 23:46:34786 'conditions': [
[email protected]9f3ecf42014-05-07 18:21:06787 ['OS=="mac" or OS=="win"', {
788 'targets': [
789 {
790 'target_name': 'layout_test_helper',
791 'type': 'executable',
792 'sources': [
793 'shell/renderer/test_runner/helper/layout_test_helper_mac.mm',
794 'shell/renderer/test_runner/helper/layout_test_helper_win.cc',
795 ],
796 'conditions': [
797 ['OS=="mac"', {
798 'link_settings': {
799 'libraries': [
800 '$(SDKROOT)/System/Library/Frameworks/AppKit.framework',
801 ],
802 },
803 }],
804 ],
805 },
806 ],
807 }], # OS=="mac" or OS=="win"
[email protected]85ff16042012-03-06 23:46:34808 ['OS=="mac"', {
809 'targets': [
810 {
811 'target_name': 'content_shell_framework',
812 'type': 'shared_library',
813 'product_name': '<(content_shell_product_name) Framework',
814 'mac_bundle': 1,
815 'mac_bundle_resources': [
[email protected]993951d2013-05-08 21:37:02816 'shell/app/English.lproj/HttpAuth.xib',
817 'shell/app/English.lproj/MainMenu.xib',
[email protected]a7aa8ab2013-10-24 07:21:48818 '<(PRODUCT_DIR)/content_shell.pak',
819 'shell/app/framework-Info.plist',
[email protected]85ff16042012-03-06 23:46:34820 ],
[email protected]a7aa8ab2013-10-24 07:21:48821 'mac_bundle_resources!': [
822 'shell/app/framework-Info.plist',
823 ],
824 'xcode_settings': {
[email protected]6efed472013-11-01 02:09:34825 # The framework is placed within the .app's Framework
826 # directory. DYLIB_INSTALL_NAME_BASE and
827 # LD_DYLIB_INSTALL_NAME affect -install_name.
828 'DYLIB_INSTALL_NAME_BASE':
829 '@executable_path/../Frameworks',
830 # See /build/mac/copy_framework_unversioned.sh for
831 # information on LD_DYLIB_INSTALL_NAME.
832 'LD_DYLIB_INSTALL_NAME':
833 '$(DYLIB_INSTALL_NAME_BASE:standardizepath)/$(WRAPPER_NAME)/$(PRODUCT_NAME)',
834
[email protected]a7aa8ab2013-10-24 07:21:48835 'INFOPLIST_FILE': 'shell/app/framework-Info.plist',
836 },
[email protected]85ff16042012-03-06 23:46:34837 'dependencies': [
838 'content_shell_lib',
839 ],
840 'include_dirs': [
841 '..',
842 ],
843 'sources': [
[email protected]4642f5b2013-07-03 21:43:31844 'shell/app/shell_content_main.cc',
[email protected]216161f2013-07-02 16:23:20845 'shell/app/shell_content_main.h',
[email protected]85ff16042012-03-06 23:46:34846 ],
[email protected]30c246bc2014-01-28 06:00:04847 'postbuilds': [
848 {
849 # Modify the Info.plist as needed. The script explains why
850 # this is needed. This is also done in the chrome target.
851 # The framework needs the Breakpad keys if this feature is
852 # enabled. It does not need the Keystone keys; these always
853 # come from the outer application bundle. The framework
854 # doesn't currently use the SCM keys for anything,
855 # but this seems like a really good place to store them.
856 'postbuild_name': 'Tweak Info.plist',
857 'action': ['../build/mac/tweak_info_plist.py',
858 '--breakpad=1',
859 '--keystone=0',
860 '--scm=1',
861 '--version=<(content_shell_version)',
862 '--branding=<(content_shell_product_name)'],
863 },
864 ],
[email protected]5d96bbe2012-07-25 17:13:23865 'copies': [
866 {
[email protected]f77f0cab2014-03-28 17:19:30867 # Copy FFmpeg binaries for audio/video support.
[email protected]5d96bbe2012-07-25 17:13:23868 'destination': '<(PRODUCT_DIR)/$(CONTENTS_FOLDER_PATH)/Libraries',
869 'files': [
870 '<(PRODUCT_DIR)/ffmpegsumo.so',
871 ],
872 },
[email protected]a7aa8ab2013-10-24 07:21:48873 {
874 'destination': '<(PRODUCT_DIR)/$(CONTENTS_FOLDER_PATH)/Resources',
875 'files': [
876 '<(PRODUCT_DIR)/crash_inspector',
877 '<(PRODUCT_DIR)/crash_report_sender.app'
878 ],
879 },
[email protected]5d96bbe2012-07-25 17:13:23880 ],
[email protected]fda1c6c82013-04-09 16:10:12881 'conditions': [
882 ['enable_webrtc==1', {
883 'variables': {
884 'libpeer_target_type%': 'static_library',
885 },
886 'conditions': [
[email protected]e4aa290b2013-05-01 18:54:19887 ['libpeer_target_type!="static_library"', {
[email protected]fda1c6c82013-04-09 16:10:12888 'copies': [{
889 'destination': '<(PRODUCT_DIR)/$(CONTENTS_FOLDER_PATH)/Libraries',
890 'files': [
[email protected]62461b72013-05-02 12:27:12891 '<(PRODUCT_DIR)/libpeerconnection.so',
[email protected]fda1c6c82013-04-09 16:10:12892 ],
893 }],
894 }],
895 ],
896 }],
[email protected]30c246bc2014-01-28 06:00:04897 ['icu_use_data_file_flag==1', {
898 'mac_bundle_resources': [
899 '<(PRODUCT_DIR)/icudtl.dat',
900 ],
901 }],
baixo51f683a2014-11-28 13:05:25902 ['v8_use_external_startup_data==1', {
903 'mac_bundle_resources': [
904 '<(PRODUCT_DIR)/natives_blob.bin',
905 '<(PRODUCT_DIR)/snapshot_blob.bin',
906 ],
907 }],
[email protected]fda1c6c82013-04-09 16:10:12908 ],
[email protected]180df8f2012-03-09 22:36:10909 }, # target content_shell_framework
910 {
911 'target_name': 'content_shell_helper_app',
912 'type': 'executable',
913 'variables': { 'enable_wexit_time_destructors': 1, },
914 'product_name': '<(content_shell_product_name) Helper',
915 'mac_bundle': 1,
916 'dependencies': [
917 'content_shell_framework',
918 ],
919 'sources': [
[email protected]993951d2013-05-08 21:37:02920 'shell/app/shell_main.cc',
921 'shell/app/helper-Info.plist',
[email protected]180df8f2012-03-09 22:36:10922 ],
923 # TODO(mark): Come up with a fancier way to do this. It should only
924 # be necessary to list helper-Info.plist once, not the three times it
925 # is listed here.
926 'mac_bundle_resources!': [
[email protected]993951d2013-05-08 21:37:02927 'shell/app/helper-Info.plist',
[email protected]180df8f2012-03-09 22:36:10928 ],
929 # TODO(mark): For now, don't put any resources into this app. Its
930 # resources directory will be a symbolic link to the browser app's
931 # resources directory.
932 'mac_bundle_resources/': [
933 ['exclude', '.*'],
934 ],
935 'xcode_settings': {
[email protected]993951d2013-05-08 21:37:02936 'INFOPLIST_FILE': 'shell/app/helper-Info.plist',
[email protected]180df8f2012-03-09 22:36:10937 },
938 'postbuilds': [
939 {
940 # The framework defines its load-time path
941 # (DYLIB_INSTALL_NAME_BASE) relative to the main executable
942 # (chrome). A different relative path needs to be used in
943 # content_shell_helper_app.
944 'postbuild_name': 'Fix Framework Link',
945 'action': [
946 'install_name_tool',
947 '-change',
[email protected]6efed472013-11-01 02:09:34948 '@executable_path/../Frameworks/<(content_shell_product_name) Framework.framework/<(content_shell_product_name) Framework',
949 '@executable_path/../../../<(content_shell_product_name) Framework.framework/<(content_shell_product_name) Framework',
[email protected]180df8f2012-03-09 22:36:10950 '${BUILT_PRODUCTS_DIR}/${EXECUTABLE_PATH}'
951 ],
952 },
953 {
954 # Modify the Info.plist as needed. The script explains why this
955 # is needed. This is also done in the chrome and chrome_dll
[email protected]bbf52442012-08-23 22:53:18956 # targets. In this case, --breakpad=0, --keystone=0, and --scm=0
957 # are used because Breakpad, Keystone, and SCM keys are
[email protected]180df8f2012-03-09 22:36:10958 # never placed into the helper.
959 'postbuild_name': 'Tweak Info.plist',
960 'action': ['../build/mac/tweak_info_plist.py',
961 '--breakpad=0',
962 '--keystone=0',
[email protected]6d302912012-11-05 21:57:28963 '--scm=0',
964 '--version=<(content_shell_version)'],
[email protected]180df8f2012-03-09 22:36:10965 },
966 {
967 # Make sure there isn't any Objective-C in the helper app's
968 # executable.
969 'postbuild_name': 'Verify No Objective-C',
970 'action': [
971 '../build/mac/verify_no_objc.sh',
972 ],
973 },
974 ],
[email protected]ec40c38f2012-06-28 16:37:49975 'conditions': [
976 ['component=="shared_library"', {
977 'xcode_settings': {
978 'LD_RUNPATH_SEARCH_PATHS': [
979 # Get back from Content Shell.app/Contents/Frameworks/
980 # Helper.app/Contents/MacOS
981 '@loader_path/../../../../../..',
982 ],
983 },
984 }],
985 ],
[email protected]180df8f2012-03-09 22:36:10986 }, # target content_shell_helper_app
[email protected]85ff16042012-03-06 23:46:34987 ],
988 }], # OS=="mac"
[email protected]cc66d282012-03-30 11:44:06989 ['OS=="android"', {
990 'targets': [
991 {
[email protected]a08029b42012-04-25 03:18:46992 # TODO(jrg): Update this action and other jni generators to only
993 # require specifying the java directory and generate the rest.
994 'target_name': 'content_shell_jni_headers',
995 'type': 'none',
[email protected]e46f66152012-07-19 20:02:55996 'sources': [
[email protected]4d4eb5b2013-01-29 21:55:55997 'shell/android/browsertests_apk/src/org/chromium/content_browsertests_apk/ContentBrowserTestsActivity.java',
[email protected]eadcff0f2013-06-20 21:08:10998 'shell/android/java/src/org/chromium/content_shell/ShellLayoutTestUtils.java',
ppif581fe92014-10-08 18:52:19999 'shell/android/java/src/org/chromium/content_shell/ShellMojoTestUtils.java',
[email protected]e46f66152012-07-19 20:02:551000 'shell/android/java/src/org/chromium/content_shell/ShellManager.java',
1001 'shell/android/java/src/org/chromium/content_shell/Shell.java',
1002 ],
[email protected]a08029b42012-04-25 03:18:461003 'variables': {
[email protected]521cd942013-03-07 22:34:051004 'jni_gen_package': 'content/shell',
[email protected]a08029b42012-04-25 03:18:461005 },
1006 'includes': [ '../build/jni_generator.gypi' ],
1007 },
1008 {
[email protected]c1101582012-06-25 17:07:181009 'target_name': 'libcontent_shell_content_view',
[email protected]a08029b42012-04-25 03:18:461010 'type': 'shared_library',
1011 'dependencies': [
1012 'content_shell_jni_headers',
1013 'content_shell_lib',
1014 'content_shell_pak',
1015 # Skia is necessary to ensure the dependencies needed by
1016 # WebContents are included.
1017 '../skia/skia.gyp:skia',
1018 '<(DEPTH)/media/media.gyp:player_android',
1019 ],
[email protected]a08029b42012-04-25 03:18:461020 'sources': [
1021 'shell/android/shell_library_loader.cc',
[email protected]f83a47392012-07-12 22:15:041022 ],
[email protected]7abcaa82012-06-27 17:09:481023 'conditions': [
[email protected]d999c3cb2013-03-12 10:22:361024 ['android_webview_build==1', {
[email protected]7abcaa82012-06-27 17:09:481025 'ldflags': [
1026 '-lgabi++', # For rtti
1027 ],
1028 }],
1029 ],
[email protected]a08029b42012-04-25 03:18:461030 },
1031 {
[email protected]4d4eb5b2013-01-29 21:55:551032 'target_name': 'content_shell_java',
1033 'type': 'none',
1034 'dependencies': [
[email protected]ba42b1e2013-10-19 22:13:171035 'content.gyp:content_java',
[email protected]4d4eb5b2013-01-29 21:55:551036 ],
1037 'variables': {
[email protected]4d4eb5b2013-01-29 21:55:551038 'java_in_dir': '../content/shell/android/java',
1039 'has_java_resources': 1,
1040 'R_package': 'org.chromium.content_shell',
1041 'R_package_relpath': 'org/chromium/content_shell',
1042 },
1043 'includes': [ '../build/java.gypi' ],
1044 },
1045 {
[email protected]319d6a82012-09-20 22:52:281046 # content_shell_apk creates a .jar as a side effect. Any java targets
1047 # that need that .jar in their classpath should depend on this target,
[email protected]4d4eb5b2013-01-29 21:55:551048 # content_shell_apk_java. Dependents of content_shell_apk receive its
1049 # jar path in the variable 'apk_output_jar_path'. This target should
1050 # only be used by targets which instrument content_shell_apk.
1051 'target_name': 'content_shell_apk_java',
[email protected]319d6a82012-09-20 22:52:281052 'type': 'none',
[email protected]319d6a82012-09-20 22:52:281053 'dependencies': [
[email protected]319d6a82012-09-20 22:52:281054 'content_shell_apk',
[email protected]319d6a82012-09-20 22:52:281055 ],
[email protected]b13f73e2013-03-27 23:31:271056 'includes': [ '../build/apk_fake_jar.gypi' ],
[email protected]319d6a82012-09-20 22:52:281057 },
[email protected]75c86a22012-09-26 03:50:371058 {
sievers0350cad2014-12-03 23:50:551059 # GN version: //content/shell/android:content_shell_manifest
1060 'target_name': 'content_shell_manifest',
1061 'type': 'none',
1062 'variables': {
sievers4c08a9c2014-12-05 01:57:281063 'jinja_inputs': ['shell/android/shell_apk/AndroidManifest.xml.jinja2'],
sievers0350cad2014-12-03 23:50:551064 'jinja_output': '<(SHARED_INTERMEDIATE_DIR)/content_shell_manifest/AndroidManifest.xml',
1065 },
1066 'includes': [ '../build/android/jinja_template.gypi' ],
1067 },
1068 {
1069 # GN version: //content/shell/android:content_shell_apk
[email protected]75c86a22012-09-26 03:50:371070 'target_name': 'content_shell_apk',
1071 'type': 'none',
1072 'dependencies': [
[email protected]c8e8781e2014-03-08 12:02:261073 'content.gyp:content_icudata',
[email protected]ba42b1e2013-10-19 22:13:171074 'content.gyp:content_java',
baixo3a3c88a2014-10-28 11:52:211075 'content.gyp:content_v8_external_data',
[email protected]c48fece02013-06-19 12:01:421076 'content_java_test_support',
[email protected]4d4eb5b2013-01-29 21:55:551077 'content_shell_java',
1078 'libcontent_shell_content_view',
[email protected]75c86a22012-09-26 03:50:371079 '../base/base.gyp:base_java',
1080 '../media/media.gyp:media_java',
1081 '../net/net.gyp:net_java',
[email protected]abeda1f2014-02-21 17:08:341082 '../third_party/mesa/mesa.gyp:osmesa_in_lib_dir',
[email protected]4e384052013-08-14 20:46:301083 '../tools/android/forwarder/forwarder.gyp:forwarder',
[email protected]f450287d2013-11-15 17:52:541084 '../ui/android/ui_android.gyp:ui_java',
[email protected]75c86a22012-09-26 03:50:371085 ],
1086 'variables': {
[email protected]75c86a22012-09-26 03:50:371087 'apk_name': 'ContentShell',
[email protected]4d4eb5b2013-01-29 21:55:551088 'manifest_package_name': 'org.chromium.content_shell_apk',
sievers0350cad2014-12-03 23:50:551089 'android_manifest_path': '<(SHARED_INTERMEDIATE_DIR)/content_shell_manifest/AndroidManifest.xml',
[email protected]4d4eb5b2013-01-29 21:55:551090 'java_in_dir': 'shell/android/shell_apk',
[email protected]bd6ab3db2013-03-26 17:35:211091 'resource_dir': 'shell/android/shell_apk/res',
[email protected]e4865252013-04-04 09:15:591092 'native_lib_target': 'libcontent_shell_content_view',
[email protected]75c86a22012-09-26 03:50:371093 'additional_input_paths': ['<(PRODUCT_DIR)/content_shell/assets/content_shell.pak'],
[email protected]0437c502013-11-28 05:17:331094 'asset_location': '<(PRODUCT_DIR)/content_shell/assets',
[email protected]abeda1f2014-02-21 17:08:341095 'extra_native_libs': ['<(SHARED_LIB_DIR)/libosmesa.so'],
[email protected]c8e8781e2014-03-08 12:02:261096 'conditions': [
1097 ['icu_use_data_file_flag==1', {
1098 'additional_input_paths': [
1099 '<(PRODUCT_DIR)/icudtl.dat',
1100 ],
1101 }],
baixo3a3c88a2014-10-28 11:52:211102 ['v8_use_external_startup_data==1', {
1103 'additional_input_paths': [
1104 '<(PRODUCT_DIR)/natives_blob.bin',
1105 '<(PRODUCT_DIR)/snapshot_blob.bin',
1106 ],
1107 }],
[email protected]c8e8781e2014-03-08 12:02:261108 ],
[email protected]75c86a22012-09-26 03:50:371109 },
[email protected]5b0095b72013-08-01 17:44:221110 'conditions': [
1111 ['android_webview_build==0', {
1112 'dependencies': [
1113 '../tools/imagediff/image_diff.gyp:image_diff#host',
1114 ],
1115 }],
1116 ],
[email protected]75c86a22012-09-26 03:50:371117 'includes': [ '../build/java_apk.gypi' ],
1118 },
[email protected]cc66d282012-03-30 11:44:061119 ],
1120 }], # OS=="android"
[email protected]369205f2013-10-29 04:35:051121 ['OS=="win"', {
1122 'targets': [
1123 {
1124 'target_name': 'content_shell_crash_service',
1125 'type': 'executable',
1126 'dependencies': [
1127 '../base/base.gyp:base',
1128 '../components/components.gyp:breakpad_crash_service',
1129 ],
1130 'include_dirs': [
1131 '..',
1132 ],
1133 'sources': [
1134 'shell/tools/content_shell_crash_service.cc',
1135 ],
1136 'msvs_settings': {
1137 'VCLinkerTool': {
1138 'SubSystem': '2', # Set /SUBSYSTEM:WINDOWS
1139 },
1140 },
1141 },
1142 ],
1143 }], # OS=="win"
[email protected]004703a2014-05-05 23:23:001144 ['OS=="win" and fastbuild==0 and target_arch=="ia32" and syzyasan==1', {
[email protected]c8250d42013-10-01 05:17:461145 'variables': {
1146 'dest_dir': '<(PRODUCT_DIR)/syzygy',
1147 },
1148 'targets': [
1149 {
1150 'target_name': 'content_shell_syzyasan',
1151 'type': 'none',
1152 'sources' : [],
1153 # Instrument content_shell with SyzyAsan.
1154 'actions': [
1155 {
1156 'action_name': 'Instrument content_shell with SyzyAsan',
[email protected]c8250d42013-10-01 05:17:461157 'inputs': [
1158 '<(PRODUCT_DIR)/content_shell.exe',
1159 ],
1160 'outputs': [
1161 '<(dest_dir)/content_shell.exe',
1162 '<(dest_dir)/content_shell.exe.pdb',
1163 ],
1164 'action': [
1165 'python',
chrishaf25cab22014-12-16 19:40:151166 '<(DEPTH)/chrome/tools/build/win/syzygy/instrument.py',
[email protected]c8250d42013-10-01 05:17:461167 '--mode', 'asan',
1168 '--input_executable', '<(PRODUCT_DIR)/content_shell.exe',
1169 '--input_symbol', '<(PRODUCT_DIR)/content_shell.exe.pdb',
1170 '--destination_dir', '<(dest_dir)',
1171 ],
1172 },
1173 ],
1174 },
1175 ],
1176 }], # OS=="win" and fastbuild==0 and target_arch=="ia32"
[email protected]cc66d282012-03-30 11:44:061177 ]
[email protected]5629e0c2011-09-12 22:07:361178}