blob: 2f30de3d9af5a12adb78dff930eb84b97da89379 [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',
dgozmanf7200152015-04-22 17:48:2150 '../components/components.gyp:devtools_discovery',
dgozman102fee92015-04-20 15:45:4651 '../components/components.gyp:devtools_http_handler',
hanxi149b92d2014-09-11 21:57:1852 '../components/components.gyp:web_cache_renderer',
chrishtr8a377e62015-06-01 19:20:0853 '../components/components.gyp:plugins_renderer',
jochen73e711c2015-06-03 10:01:4654 '../components/test_runner/test_runner.gyp:test_runner',
scheib87f45892015-01-20 19:19:4455 '../device/bluetooth/bluetooth.gyp:device_bluetooth',
ortunofd24faa2015-05-20 16:34:3756 '../device/bluetooth/bluetooth.gyp:device_bluetooth_mocks',
[email protected]41fba0e2014-01-16 18:19:4257 '../gin/gin.gyp:gin',
[email protected]5326cd2f2014-04-07 13:35:5858 '../gpu/gpu.gyp:gpu',
[email protected]aa6e79762011-09-29 20:53:5259 '../ipc/ipc.gyp:ipc',
acolwell9e0840d2014-09-06 19:01:3260 '../media/blink/media_blink.gyp:media_blink',
[email protected]433df472012-03-07 20:33:3961 '../media/media.gyp:media',
[email protected]aa6e79762011-09-29 20:53:5262 '../net/net.gyp:net',
[email protected]24f80692012-08-13 15:15:5063 '../net/net.gyp:net_resources',
[email protected]5629e0c2011-09-12 22:07:3664 '../skia/skia.gyp:skia',
pilgrim4af8c212014-09-05 17:30:1565 '../storage/storage_browser.gyp:storage',
[email protected]3de922f2013-12-20 13:27:3866 '../third_party/WebKit/public/blink.gyp:blink',
[email protected]95f8a142014-04-24 00:23:5867 '../third_party/WebKit/public/blink.gyp:blink_test_support',
ortunofd24faa2015-05-20 16:34:3768 '../testing/gmock.gyp:gmock',
69 '../testing/gtest.gyp:gtest',
spang1c36fac2015-02-05 19:55:1270 '../ui/base/ime/ui_base_ime.gyp:ui_base_ime',
[email protected]ed8fd9152014-03-13 10:20:3771 '../ui/base/ui_base.gyp:ui_base',
[email protected]114efae2013-11-06 20:37:5772 '../ui/events/events.gyp:events_base',
[email protected]529a3cf2013-09-30 02:47:4873 '../ui/gfx/gfx.gyp:gfx',
[email protected]b5e2d782013-12-18 21:01:1574 '../ui/gfx/gfx.gyp:gfx_geometry',
[email protected]ffff5b32014-06-25 21:31:0875 '../ui/gfx/ipc/gfx_ipc.gyp:gfx_ipc',
[email protected]8350f16f2012-11-30 00:25:3276 '../ui/gl/gl.gyp:gl',
[email protected]002cc08f2013-06-03 05:40:2977 '../url/url.gyp:url_lib',
[email protected]12bc28fcb2011-09-21 15:53:5078 '../v8/tools/gyp/v8.gyp:v8',
[email protected]5629e0c2011-09-12 22:07:3679 ],
80 'include_dirs': [
81 '..',
82 ],
83 'sources': [
[email protected]6b9028ab2014-07-23 17:15:3884 # Note: sources list duplicated in GN build.
[email protected]4d4eb5b2013-01-29 21:55:5585 'shell/android/shell_jni_registrar.cc',
86 'shell/android/shell_jni_registrar.h',
87 'shell/android/shell_manager.cc',
88 'shell/android/shell_manager.h',
tfarina4d06f572014-10-17 03:36:4889 'shell/app/blink_test_platform_support.h',
90 'shell/app/blink_test_platform_support_android.cc',
91 'shell/app/blink_test_platform_support_linux.cc',
92 'shell/app/blink_test_platform_support_mac.mm',
93 'shell/app/blink_test_platform_support_win.cc',
[email protected]2a94e812013-07-12 15:31:0294 'shell/app/paths_mac.h',
95 'shell/app/paths_mac.mm',
rseseka0a7a042014-09-18 23:59:2096 'shell/app/shell_crash_reporter_client.cc',
97 'shell/app/shell_crash_reporter_client.h',
[email protected]993951d2013-05-08 21:37:0298 'shell/app/shell_main_delegate.cc',
99 'shell/app/shell_main_delegate.h',
[email protected]2a94e812013-07-12 15:31:02100 'shell/app/shell_main_delegate_mac.h',
101 'shell/app/shell_main_delegate_mac.mm',
tfarinacde91252015-05-06 16:10:49102 'shell/browser/blink_test_controller.cc',
103 'shell/browser/blink_test_controller.h',
[email protected]9cd36bfb2014-08-20 00:32:00104 'shell/browser/ipc_echo_message_filter.cc',
105 'shell/browser/ipc_echo_message_filter.h',
mkwstd6805d0d2014-10-16 14:44:37106 'shell/browser/layout_test/layout_test_android.cc',
107 'shell/browser/layout_test/layout_test_android.h',
ortunofd24faa2015-05-20 16:34:37108 'shell/browser/layout_test/layout_test_bluetooth_adapter_provider.cc',
109 'shell/browser/layout_test/layout_test_bluetooth_adapter_provider.h',
mkwstd993d06a2014-10-10 11:44:38110 'shell/browser/layout_test/layout_test_browser_context.cc',
111 'shell/browser/layout_test/layout_test_browser_context.h',
mkwst88e23182014-10-16 12:08:58112 'shell/browser/layout_test/layout_test_browser_main.cc',
113 'shell/browser/layout_test/layout_test_browser_main.h',
mkwst36b11b6f2014-10-15 16:18:56114 'shell/browser/layout_test/layout_test_browser_main_parts.cc',
115 'shell/browser/layout_test/layout_test_browser_main_parts.h',
petercd7abb42014-10-17 13:34:01116 'shell/browser/layout_test/layout_test_content_browser_client.cc',
117 'shell/browser/layout_test/layout_test_content_browser_client.h',
mkwst30d20d52014-10-09 13:33:14118 'shell/browser/layout_test/layout_test_devtools_frontend.cc',
119 'shell/browser/layout_test/layout_test_devtools_frontend.h',
satorux225d7ed2015-02-13 02:23:35120 'shell/browser/layout_test/layout_test_download_manager_delegate.cc',
121 'shell/browser/layout_test/layout_test_download_manager_delegate.h',
mkwst6efe7f2e62014-10-08 15:09:01122 'shell/browser/layout_test/layout_test_javascript_dialog_manager.cc',
123 'shell/browser/layout_test/layout_test_javascript_dialog_manager.h',
Peter Beverlooe8f2f9d2014-10-20 16:47:49124 'shell/browser/layout_test/layout_test_message_filter.cc',
125 'shell/browser/layout_test/layout_test_message_filter.h',
mekc9182202015-03-03 17:56:07126 'shell/browser/layout_test/layout_test_navigator_connect_service_factory.cc',
127 'shell/browser/layout_test/layout_test_navigator_connect_service_factory.h',
petercd7abb42014-10-17 13:34:01128 'shell/browser/layout_test/layout_test_notification_manager.cc',
129 'shell/browser/layout_test/layout_test_notification_manager.h',
mlamouri4e372022015-03-29 14:51:06130 'shell/browser/layout_test/layout_test_permission_manager.cc',
tfarina8e08285f2015-05-02 03:17:39131 'shell/browser/layout_test/layout_test_permission_manager.h',
mvanouwerkerkde895c9c2014-12-06 12:17:32132 'shell/browser/layout_test/layout_test_push_messaging_service.cc',
133 'shell/browser/layout_test/layout_test_push_messaging_service.h',
mkwst002d02902014-10-09 10:17:00134 'shell/browser/layout_test/layout_test_resource_dispatcher_host_delegate.cc',
135 'shell/browser/layout_test/layout_test_resource_dispatcher_host_delegate.h',
mkwst94388f792014-10-16 07:36:52136 'shell/browser/layout_test/layout_test_url_request_context_getter.cc',
137 'shell/browser/layout_test/layout_test_url_request_context_getter.h',
[email protected]de7d61ff2013-08-20 11:30:41138 'shell/browser/notify_done_forwarder.cc',
139 'shell/browser/notify_done_forwarder.h',
peter11d5f562014-10-23 23:12:25140 'shell/browser/shell.cc',
141 'shell/browser/shell.h',
142 'shell/browser/shell_access_token_store.cc',
143 'shell/browser/shell_access_token_store.h',
[email protected]de7d61ff2013-08-20 11:30:41144 'shell/browser/shell_android.cc',
145 'shell/browser/shell_application_mac.h',
146 'shell/browser/shell_application_mac.mm',
147 'shell/browser/shell_aura.cc',
148 'shell/browser/shell_browser_context.cc',
149 'shell/browser/shell_browser_context.h',
150 'shell/browser/shell_browser_main.cc',
151 'shell/browser/shell_browser_main.h',
152 'shell/browser/shell_browser_main_parts.cc',
153 'shell/browser/shell_browser_main_parts.h',
154 'shell/browser/shell_browser_main_parts_mac.mm',
[email protected]de7d61ff2013-08-20 11:30:41155 'shell/browser/shell_content_browser_client.cc',
156 'shell/browser/shell_content_browser_client.h',
[email protected]de7d61ff2013-08-20 11:30:41157 'shell/browser/shell_devtools_frontend.cc',
158 'shell/browser/shell_devtools_frontend.h',
satorux225d7ed2015-02-13 02:23:35159 'shell/browser/shell_devtools_manager_delegate.cc',
160 'shell/browser/shell_devtools_manager_delegate.h',
[email protected]de7d61ff2013-08-20 11:30:41161 'shell/browser/shell_download_manager_delegate.cc',
162 'shell/browser/shell_download_manager_delegate.h',
[email protected]de7d61ff2013-08-20 11:30:41163 'shell/browser/shell_javascript_dialog.h',
164 'shell/browser/shell_javascript_dialog_mac.mm',
165 'shell/browser/shell_javascript_dialog_manager.cc',
166 'shell/browser/shell_javascript_dialog_manager.h',
167 'shell/browser/shell_javascript_dialog_win.cc',
[email protected]de7d61ff2013-08-20 11:30:41168 'shell/browser/shell_login_dialog.cc',
[email protected]de7d61ff2013-08-20 11:30:41169 'shell/browser/shell_login_dialog.h',
170 'shell/browser/shell_login_dialog_mac.mm',
171 'shell/browser/shell_mac.mm',
satorux225d7ed2015-02-13 02:23:35172 'shell/browser/shell_mojo_test_utils_android.cc',
173 'shell/browser/shell_mojo_test_utils_android.h',
[email protected]de7d61ff2013-08-20 11:30:41174 'shell/browser/shell_net_log.cc',
175 'shell/browser/shell_net_log.h',
176 'shell/browser/shell_network_delegate.cc',
177 'shell/browser/shell_network_delegate.h',
mlamouri4e372022015-03-29 14:51:06178 'shell/browser/shell_permission_manager.cc',
179 'shell/browser/shell_permission_manager.h',
[email protected]a6591142014-01-27 19:32:26180 'shell/browser/shell_platform_data_aura.cc',
181 'shell/browser/shell_platform_data_aura.h',
[email protected]de7d61ff2013-08-20 11:30:41182 'shell/browser/shell_plugin_service_filter.cc',
183 'shell/browser/shell_plugin_service_filter.h',
184 'shell/browser/shell_quota_permission_context.cc',
185 'shell/browser/shell_quota_permission_context.h',
186 'shell/browser/shell_resource_dispatcher_host_delegate.cc',
187 'shell/browser/shell_resource_dispatcher_host_delegate.h',
[email protected]9896c552013-08-29 19:03:20188 'shell/browser/shell_speech_recognition_manager_delegate.cc',
189 'shell/browser/shell_speech_recognition_manager_delegate.h',
[email protected]de7d61ff2013-08-20 11:30:41190 'shell/browser/shell_url_request_context_getter.cc',
191 'shell/browser/shell_url_request_context_getter.h',
[email protected]a896e1e2013-10-20 19:10:30192 'shell/browser/shell_views.cc',
satorux225d7ed2015-02-13 02:23:35193 'shell/browser/shell_web_contents_view_delegate.h',
[email protected]de7d61ff2013-08-20 11:30:41194 'shell/browser/shell_web_contents_view_delegate_android.cc',
195 'shell/browser/shell_web_contents_view_delegate_creator.h',
[email protected]de7d61ff2013-08-20 11:30:41196 'shell/browser/shell_web_contents_view_delegate_mac.mm',
197 'shell/browser/shell_web_contents_view_delegate_win.cc',
petere04203592014-10-27 17:57:35198 'shell/common/layout_test/layout_test_messages.cc',
199 'shell/common/layout_test/layout_test_messages.h',
[email protected]4562cf72014-01-27 10:10:13200 'shell/common/leak_detection_result.h',
[email protected]b7c504c2013-05-07 14:42:12201 'shell/common/shell_content_client.cc',
202 'shell/common/shell_content_client.h',
203 'shell/common/shell_messages.cc',
204 'shell/common/shell_messages.h',
205 'shell/common/shell_switches.cc',
206 'shell/common/shell_switches.h',
207 'shell/common/shell_test_configuration.cc',
208 'shell/common/shell_test_configuration.h',
jochen284435c2014-10-02 13:08:23209 'shell/common/v8_breakpad_support_win.cc',
210 'shell/common/v8_breakpad_support_win.h',
[email protected]9cd36bfb2014-08-20 00:32:00211 'shell/renderer/ipc_echo.cc',
212 'shell/renderer/ipc_echo.h',
tfarina685c39802015-05-04 22:11:22213 'shell/renderer/layout_test/blink_test_helpers.cc',
214 'shell/renderer/layout_test/blink_test_helpers.h',
tfarina8e08285f2015-05-02 03:17:39215 'shell/renderer/layout_test/blink_test_runner.cc',
216 'shell/renderer/layout_test/blink_test_runner.h',
mkwst04b72d12014-10-08 15:52:55217 'shell/renderer/layout_test/gc_controller.cc',
218 'shell/renderer/layout_test/gc_controller.h',
mkwst02ec0d62014-10-07 22:07:29219 'shell/renderer/layout_test/layout_test_content_renderer_client.cc',
220 'shell/renderer/layout_test/layout_test_content_renderer_client.h',
mkwst3e72c1f2014-10-08 05:02:36221 'shell/renderer/layout_test/layout_test_render_frame_observer.cc',
222 'shell/renderer/layout_test/layout_test_render_frame_observer.h',
mkwst99069fc2014-10-08 06:13:28223 'shell/renderer/layout_test/layout_test_render_process_observer.cc',
224 'shell/renderer/layout_test/layout_test_render_process_observer.h',
mkwst04b72d12014-10-08 15:52:55225 'shell/renderer/layout_test/leak_detector.cc',
226 'shell/renderer/layout_test/leak_detector.h',
jochen51265132015-05-28 07:33:45227 'shell/renderer/layout_test/test_media_stream_renderer_factory.cc',
228 'shell/renderer/layout_test/test_media_stream_renderer_factory.h',
chrishtr8a377e62015-06-01 19:20:08229 'shell/renderer/layout_test/test_plugin_placeholder.cc',
230 'shell/renderer/layout_test/test_plugin_placeholder.h',
jochen51265132015-05-28 07:33:45231 'shell/renderer/layout_test/test_video_frame_provider.cc',
232 'shell/renderer/layout_test/test_video_frame_provider.h',
[email protected]f7a4e3b92013-05-03 15:29:58233 'shell/renderer/shell_content_renderer_client.cc',
234 'shell/renderer/shell_content_renderer_client.h',
[email protected]81914ad2013-07-02 18:54:25235 'shell/renderer/shell_render_view_observer.cc',
236 'shell/renderer/shell_render_view_observer.h',
rockotb814a582015-06-05 00:30:52237 'shell/utility/shell_content_utility_client.cc',
238 'shell/utility/shell_content_utility_client.h',
[email protected]5629e0c2011-09-12 22:07:36239 ],
240 'msvs_settings': {
241 'VCLinkerTool': {
242 'SubSystem': '2', # Set /SUBSYSTEM:WINDOWS
243 },
244 },
245 'conditions': [
246 ['OS=="win" and win_use_allocator_shim==1', {
247 'dependencies': [
248 '../base/allocator/allocator.gyp:allocator',
249 ],
250 }],
[email protected]9fbd3f862011-09-20 23:31:34251 ['OS=="win"', {
252 'resource_include_dirs': [
[email protected]6586a2e32014-08-09 19:24:12253 '<(SHARED_INTERMEDIATE_DIR)/content/app/strings',
[email protected]9fbd3f862011-09-20 23:31:34254 ],
[email protected]9fbd3f862011-09-20 23:31:34255 'dependencies': [
[email protected]6586a2e32014-08-09 19:24:12256 '<(DEPTH)/content/app/strings/content_strings.gyp:content_strings',
[email protected]9fbd3f862011-09-20 23:31:34257 ],
258 'configurations': {
259 'Debug_Base': {
260 'msvs_settings': {
261 'VCLinkerTool': {
262 'LinkIncremental': '<(msvs_large_module_debug_link_mode)',
263 },
264 },
265 },
266 },
[email protected]3bed5302013-02-15 19:31:41267 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
268 'msvs_disabled_warnings': [ 4267, ],
[email protected]85ff16042012-03-06 23:46:34269 }], # OS=="win"
[email protected]6eb6bb62012-11-10 06:30:59270 ['OS=="linux"', {
271 'dependencies': [
272 '../build/linux/system.gyp:fontconfig',
273 ],
274 }],
[email protected]6b911a32014-01-10 02:34:53275 ['use_x11 == 1', {
276 'dependencies': [
dnicoara78a734702014-11-04 19:54:38277 '../ui/events/devices/events_devices.gyp:events_devices',
[email protected]6b911a32014-01-10 02:34:53278 '../tools/xdisplaycheck/xdisplaycheck.gyp:xdisplaycheck',
279 ],
280 }],
[email protected]689266d2012-08-07 12:52:20281 ['OS=="android"', {
[email protected]82e9e2b12012-07-19 00:32:01282 'dependencies': [
ppif581fe92014-10-08 18:52:19283 '../mojo/mojo_base.gyp:libmojo_system_java',
[email protected]82e9e2b12012-07-19 00:32:01284 'content_shell_jni_headers',
285 ],
[email protected]6b911a32014-01-10 02:34:53286 'dependencies!': [
[email protected]de28fed2e2014-02-01 14:36:32287 'copy_test_netscape_plugin',
[email protected]6b911a32014-01-10 02:34:53288 ],
[email protected]82e9e2b12012-07-19 00:32:01289 }], # OS=="android"
torne1b1c9782015-03-30 20:49:00290 ['os_posix == 1 and OS != "mac"', {
[email protected]a7aa8ab2013-10-24 07:21:48291 'dependencies': [
292 '../components/components.gyp:breakpad_host',
293 ],
294 }],
[email protected]2fa89ef2014-05-07 18:45:59295 ['(OS=="linux" or OS=="android") and use_allocator!="none"', {
[email protected]c767d572012-07-27 10:55:58296 'dependencies': [
297 # This is needed by content/app/content_main_runner.cc
298 '../base/allocator/allocator.gyp:allocator',
299 ],
300 }],
[email protected]fa4a45832012-04-12 21:32:48301 ['use_aura==1', {
[email protected]c767d572012-07-27 10:55:58302 'dependencies': [
303 '../ui/aura/aura.gyp:aura',
[email protected]72fed232014-04-07 20:21:46304 '../ui/aura/aura.gyp:aura_test_support',
[email protected]72fed232014-04-07 20:21:46305 '../ui/events/events.gyp:events',
[email protected]e3d74862014-05-18 14:12:27306 '../ui/strings/ui_strings.gyp:ui_strings',
[email protected]884dac5b2014-04-30 15:10:10307 '../ui/wm/wm.gyp:wm',
[email protected]c767d572012-07-27 10:55:58308 ],
[email protected]a896e1e2013-10-20 19:10:30309 'conditions': [
310 ['toolkit_views==1', {
311 'dependencies': [
[email protected]dae78442013-11-26 16:57:02312 '../ui/resources/ui_resources.gyp:ui_resources',
[email protected]a896e1e2013-10-20 19:10:30313 '../ui/views/controls/webview/webview.gyp:webview',
314 '../ui/views/views.gyp:views',
315 '../ui/views/views.gyp:views_test_support',
[email protected]a896e1e2013-10-20 19:10:30316 ],
317 'sources/': [
318 ['exclude', 'shell/browser/shell_aura.cc'],
319 ],
320 }, {
321 'sources/': [
322 ['exclude', 'shell/browser/shell_views.cc'],
323 ],
324 }],
325 ],
326 }, {
327 'sources/': [
328 ['exclude', 'shell/browser/shell_aura.cc'],
329 ['exclude', 'shell/browser/shell_views.cc'],
330 ],
[email protected]96b80b472012-07-03 19:41:56331 }], # use_aura==1
[email protected]6b911a32014-01-10 02:34:53332 # The test plugin relies on X11.
333 ['OS=="linux" and use_x11==0', {
334 'dependencies!': [
[email protected]de28fed2e2014-02-01 14:36:32335 'copy_test_netscape_plugin',
[email protected]6b911a32014-01-10 02:34:53336 ],
337 }],
[email protected]c767d572012-07-27 10:55:58338 ['chromeos==1', {
339 'dependencies': [
340 '../chromeos/chromeos.gyp:chromeos',
[email protected]de6831b2013-11-16 01:04:30341 '../ui/wm/wm.gyp:wm_test_support',
[email protected]c767d572012-07-27 10:55:58342 ],
343 }], # chromeos==1
[email protected]929246a2013-02-28 13:55:20344 ['use_custom_freetype==1', {
345 'dependencies': [
346 '../third_party/freetype2/freetype2.gyp:freetype2',
347 ],
348 }],
[email protected]dfb9360192013-05-27 09:42:34349 ['enable_plugins==0', {
[email protected]6b9028ab2014-07-23 17:15:38350 'sources!': [
351 'shell/browser/shell_plugin_service_filter.cc',
352 'shell/browser/shell_plugin_service_filter.h',
[email protected]dfb9360192013-05-27 09:42:34353 ],
354 }]
[email protected]5629e0c2011-09-12 22:07:36355 ],
356 },
[email protected]c1f87b22011-10-05 21:59:33357 {
[email protected]6b9028ab2014-07-23 17:15:38358 # GN version: //content/shell:resources
[email protected]ee75b8992012-01-27 07:53:57359 'target_name': 'content_shell_resources',
360 'type': 'none',
[email protected]b581eb402012-03-09 01:31:46361 'variables': {
362 'grit_out_dir': '<(SHARED_INTERMEDIATE_DIR)/content',
363 },
jochen73e711c2015-06-03 10:01:46364 'dependencies': [
365 '../components/test_runner/test_runner.gyp:resources',
366 ],
[email protected]5c94e992014-05-11 14:22:06367 'actions': [
368 {
369 'action_name': 'generate_content_shell_resources',
370 'variables': {
371 'grit_grd_file': 'shell/shell_resources.grd',
372 },
373 'includes': [ '../build/grit_action.gypi' ],
374 },
375 ],
[email protected]b581eb402012-03-09 01:31:46376 'includes': [ '../build/grit_target.gypi' ],
377 'copies': [
378 {
379 'destination': '<(PRODUCT_DIR)',
380 'files': [
381 '<(SHARED_INTERMEDIATE_DIR)/content/shell_resources.pak'
382 ],
383 },
384 ],
[email protected]4cb792f42012-03-24 03:12:42385 },
386 {
[email protected]81f30ce2012-01-18 22:10:33387 # We build a minimal set of resources so WebKit in content_shell has
388 # access to necessary resources.
[email protected]6b9028ab2014-07-23 17:15:38389 # GN version: //content/shell:pak
[email protected]81f30ce2012-01-18 22:10:33390 'target_name': 'content_shell_pak',
391 'type': 'none',
[email protected]ee75b8992012-01-27 07:53:57392 'dependencies': [
[email protected]a9ca8d52014-08-22 10:21:08393 'app/resources/content_resources.gyp:content_resources',
[email protected]6586a2e32014-08-09 19:24:12394 'app/strings/content_strings.gyp:content_strings',
[email protected]6b9028ab2014-07-23 17:15:38395 'browser/tracing/tracing_resources.gyp:tracing_resources',
thestigbce02672014-08-26 10:01:34396 'content.gyp:content_resources',
[email protected]ee75b8992012-01-27 07:53:57397 'content_shell_resources',
[email protected]06c54162013-06-10 00:25:05398 '<(DEPTH)/net/net.gyp:net_resources',
[email protected]1400d1d2014-07-25 07:49:59399 '<(DEPTH)/third_party/WebKit/public/blink_resources.gyp:blink_resources',
[email protected]1c0c3f42013-11-20 02:03:28400 '<(DEPTH)/ui/resources/ui_resources.gyp:ui_resources',
[email protected]e3d74862014-05-18 14:12:27401 '<(DEPTH)/ui/strings/ui_strings.gyp:ui_strings',
[email protected]ee75b8992012-01-27 07:53:57402 ],
[email protected]3df230d2013-07-03 00:44:57403 'conditions': [
[email protected]8dffd2c2013-12-02 14:14:38404 ['OS!="android"', {
405 'dependencies': [
406 'browser/devtools/devtools_resources.gyp:devtools_resources',
407 ],
408 }],
vivek.vge136a8652014-09-05 10:51:28409 ['OS=="android"', {
410 'copies': [
411 {
412 'destination': '<(PRODUCT_DIR)',
413 'files': [
414 '<(PRODUCT_DIR)/content_shell/assets/content_shell.pak'
415 ],
416 },
417 ],
418 }],
[email protected]3df230d2013-07-03 00:44:57419 ],
[email protected]81f30ce2012-01-18 22:10:33420 'actions': [
421 {
422 'action_name': 'repack_content_shell_pack',
423 'variables': {
424 'pak_inputs': [
erga3c614c92015-04-03 17:47:51425 '<(SHARED_INTERMEDIATE_DIR)/blink/public/resources/blink_resources.pak',
426 '<(SHARED_INTERMEDIATE_DIR)/blink/public/resources/blink_image_resources_100_percent.pak',
[email protected]a9ca8d52014-08-22 10:21:08427 '<(SHARED_INTERMEDIATE_DIR)/content/app/resources/content_resources_100_percent.pak',
[email protected]6586a2e32014-08-09 19:24:12428 '<(SHARED_INTERMEDIATE_DIR)/content/app/strings/content_strings_en-US.pak',
[email protected]479bea22013-07-02 21:46:06429 '<(SHARED_INTERMEDIATE_DIR)/content/browser/tracing/tracing_resources.pak',
[email protected]1400d1d2014-07-25 07:49:59430 '<(SHARED_INTERMEDIATE_DIR)/content/content_resources.pak',
[email protected]ee75b8992012-01-27 07:53:57431 '<(SHARED_INTERMEDIATE_DIR)/content/shell_resources.pak',
[email protected]81f30ce2012-01-18 22:10:33432 '<(SHARED_INTERMEDIATE_DIR)/net/net_resources.pak',
[email protected]a3c134352014-07-11 19:23:19433 '<(SHARED_INTERMEDIATE_DIR)/ui/resources/ui_resources_100_percent.pak',
434 '<(SHARED_INTERMEDIATE_DIR)/ui/resources/webui_resources.pak',
[email protected]d2329222014-07-18 07:14:22435 '<(SHARED_INTERMEDIATE_DIR)/ui/strings/app_locale_settings_en-US.pak',
[email protected]a3c134352014-07-11 19:23:19436 '<(SHARED_INTERMEDIATE_DIR)/ui/strings/ui_strings_en-US.pak',
[email protected]81f30ce2012-01-18 22:10:33437 ],
[email protected]01bdc9202014-03-28 21:11:20438 'conditions': [
439 ['OS!="android"', {
vivek.vg77816a12014-12-18 14:28:20440 'pak_inputs': ['<(SHARED_INTERMEDIATE_DIR)/blink/devtools_resources.pak',],
[email protected]01bdc9202014-03-28 21:11:20441 'pak_output': '<(PRODUCT_DIR)/content_shell.pak',
442 }, {
443 'pak_output': '<(PRODUCT_DIR)/content_shell/assets/content_shell.pak',
444 }],
445 ],
[email protected]81f30ce2012-01-18 22:10:33446 },
[email protected]01bdc9202014-03-28 21:11:20447 'includes': [ '../build/repack_action.gypi' ],
[email protected]81f30ce2012-01-18 22:10:33448 },
449 ],
450 },
451 {
[email protected]6b9028ab2014-07-23 17:15:38452 # GN version: //content/shell:content_shell
[email protected]c1f87b22011-10-05 21:59:33453 'target_name': 'content_shell',
454 'type': 'executable',
[email protected]85ff16042012-03-06 23:46:34455 'mac_bundle': 1,
[email protected]c1f87b22011-10-05 21:59:33456 'variables': {
457 'chromium_code': 1,
458 },
459 'dependencies': [
460 'content_shell_lib',
[email protected]81f30ce2012-01-18 22:10:33461 'content_shell_pak',
[email protected]bb5d2d92012-10-15 07:45:42462 '../third_party/mesa/mesa.gyp:osmesa',
[email protected]331d1692013-07-25 20:40:13463 '../tools/imagediff/image_diff.gyp:image_diff',
[email protected]c1f87b22011-10-05 21:59:33464 ],
465 'include_dirs': [
466 '..',
467 ],
468 'sources': [
[email protected]993951d2013-05-08 21:37:02469 'shell/app/shell_main.cc',
[email protected]c1f87b22011-10-05 21:59:33470 ],
[email protected]85ff16042012-03-06 23:46:34471 'mac_bundle_resources': [
[email protected]993951d2013-05-08 21:37:02472 'shell/app/app.icns',
473 'shell/app/app-Info.plist',
[email protected]85ff16042012-03-06 23:46:34474 ],
475 # TODO(mark): Come up with a fancier way to do this. It should only
476 # be necessary to list app-Info.plist once, not the three times it is
477 # listed here.
478 'mac_bundle_resources!': [
[email protected]993951d2013-05-08 21:37:02479 'shell/app/app-Info.plist',
[email protected]85ff16042012-03-06 23:46:34480 ],
481 'xcode_settings': {
[email protected]993951d2013-05-08 21:37:02482 'INFOPLIST_FILE': 'shell/app/app-Info.plist',
[email protected]85ff16042012-03-06 23:46:34483 },
[email protected]c1f87b22011-10-05 21:59:33484 'msvs_settings': {
[email protected]30624922013-06-04 10:40:10485 'VCManifestTool': {
[email protected]5d60b0b2013-07-30 20:24:30486 'AdditionalManifestFiles': [
487 'shell/app/shell.exe.manifest',
488 ],
[email protected]30624922013-06-04 10:40:10489 },
[email protected]c1f87b22011-10-05 21:59:33490 },
491 'conditions': [
492 ['OS=="win" and win_use_allocator_shim==1', {
493 'dependencies': [
494 '../base/allocator/allocator.gyp:allocator',
495 ],
496 }],
497 ['OS=="win"', {
[email protected]7fc83822012-03-30 19:53:29498 'sources': [
[email protected]993951d2013-05-08 21:37:02499 'shell/app/shell.rc',
[email protected]7fc83822012-03-30 19:53:29500 ],
[email protected]c1f87b22011-10-05 21:59:33501 'configurations': {
502 'Debug_Base': {
503 'msvs_settings': {
504 'VCLinkerTool': {
505 'LinkIncremental': '<(msvs_large_module_debug_link_mode)',
506 },
507 },
508 },
509 },
[email protected]85ff16042012-03-06 23:46:34510 }], # OS=="win"
[email protected]c997bc42014-04-11 18:25:58511 ['OS == "win"', {
[email protected]27315ce42011-10-14 01:25:12512 'dependencies': [
513 '../sandbox/sandbox.gyp:sandbox',
514 ],
[email protected]c997bc42014-04-11 18:25:58515 }], # OS=="win"
[email protected]78539df2014-07-16 22:34:22516 ['OS=="win" and asan==0', {
517 'msvs_settings': {
518 'VCLinkerTool': {
519 'SubSystem': '2', # Set /SUBSYSTEM:WINDOWS
520 },
521 },
522 }], # OS=="win" and asan==0
[email protected]85ff16042012-03-06 23:46:34523 ['OS=="mac"', {
524 'product_name': '<(content_shell_product_name)',
525 'dependencies!': [
526 'content_shell_lib',
527 ],
528 'dependencies': [
529 'content_shell_framework',
[email protected]180df8f2012-03-09 22:36:10530 'content_shell_helper_app',
531 ],
532 'copies': [
533 {
534 'destination': '<(PRODUCT_DIR)/<(content_shell_product_name).app/Contents/Frameworks',
535 'files': [
536 '<(PRODUCT_DIR)/<(content_shell_product_name) Helper.app',
537 ],
538 },
[email protected]85ff16042012-03-06 23:46:34539 ],
540 'postbuilds': [
541 {
542 'postbuild_name': 'Copy <(content_shell_product_name) Framework.framework',
543 'action': [
544 '../build/mac/copy_framework_unversioned.sh',
545 '${BUILT_PRODUCTS_DIR}/<(content_shell_product_name) Framework.framework',
546 '${BUILT_PRODUCTS_DIR}/${CONTENTS_FOLDER_PATH}/Frameworks',
547 ],
548 },
549 {
[email protected]85ff16042012-03-06 23:46:34550 # Modify the Info.plist as needed.
551 'postbuild_name': 'Tweak Info.plist',
552 'action': ['../build/mac/tweak_info_plist.py',
[email protected]6d302912012-11-05 21:57:28553 '--scm=1',
554 '--version=<(content_shell_version)'],
[email protected]85ff16042012-03-06 23:46:34555 },
556 {
[email protected]180df8f2012-03-09 22:36:10557 # This postbuid step is responsible for creating the following
558 # helpers:
559 #
560 # Content Shell Helper EH.app and Content Shell Helper NP.app are
561 # created from Content Shell Helper.app.
562 #
563 # The EH helper is marked for an executable heap. The NP helper
564 # is marked for no PIE (ASLR).
565 'postbuild_name': 'Make More Helpers',
566 'action': [
567 '../build/mac/make_more_helpers.sh',
568 'Frameworks',
569 '<(content_shell_product_name)',
570 ],
571 },
572 {
[email protected]85ff16042012-03-06 23:46:34573 # Make sure there isn't any Objective-C in the shell's
574 # executable.
575 'postbuild_name': 'Verify No Objective-C',
576 'action': [
577 '../build/mac/verify_no_objc.sh',
578 ],
579 },
580 ],
581 }], # OS=="mac"
[email protected]331d1692013-07-25 20:40:13582 ['OS=="android"', {
torne1b1c9782015-03-30 20:49:00583 'dependencies': [
584 '../tools/imagediff/image_diff.gyp:image_diff#host',
585 ],
[email protected]331d1692013-07-25 20:40:13586 'dependencies!': [
587 '../tools/imagediff/image_diff.gyp:image_diff',
588 ],
589 }], # OS=="android"
[email protected]c1f87b22011-10-05 21:59:33590 ],
591 },
[email protected]fe2420d2012-08-21 07:28:33592 {
593 'target_name': 'content_shell_builder',
594 'type': 'none',
595 'dependencies': [
596 'content_shell',
[email protected]fe2420d2012-08-21 07:28:33597 ],
598 },
[email protected]9f3ecf42014-05-07 18:21:06599
[email protected]de28fed2e2014-02-01 14:36:32600 {
601 'target_name': 'test_netscape_plugin',
602 'type': 'loadable_module',
603 'sources': [
604 'shell/tools/plugin/PluginObject.cpp',
605 'shell/tools/plugin/PluginObject.h',
606 'shell/tools/plugin/PluginObjectMac.mm',
607 'shell/tools/plugin/PluginTest.cpp',
608 'shell/tools/plugin/PluginTest.h',
609 'shell/tools/plugin/TestObject.cpp',
[email protected]de28fed2e2014-02-01 14:36:32610 'shell/tools/plugin/Tests/DocumentOpenInDestroyStream.cpp',
611 'shell/tools/plugin/Tests/EvaluateJSAfterRemovingPluginElement.cpp',
612 'shell/tools/plugin/Tests/FormValue.cpp',
613 'shell/tools/plugin/Tests/GetURLNotifyWithURLThatFailsToLoad.cpp',
614 'shell/tools/plugin/Tests/GetURLWithJavaScriptURL.cpp',
615 'shell/tools/plugin/Tests/GetURLWithJavaScriptURLDestroyingPlugin.cpp',
616 'shell/tools/plugin/Tests/GetUserAgentWithNullNPPFromNPPNew.cpp',
617 'shell/tools/plugin/Tests/LeakWindowScriptableObject.cpp',
618 'shell/tools/plugin/Tests/LogNPPSetWindow.cpp',
619 'shell/tools/plugin/Tests/NPDeallocateCalledBeforeNPShutdown.cpp',
620 'shell/tools/plugin/Tests/NPPNewFails.cpp',
621 'shell/tools/plugin/Tests/NPRuntimeCallsWithNullNPP.cpp',
622 'shell/tools/plugin/Tests/NPRuntimeObjectFromDestroyedPlugin.cpp',
623 'shell/tools/plugin/Tests/NPRuntimeRemoveProperty.cpp',
624 'shell/tools/plugin/Tests/NullNPPGetValuePointer.cpp',
625 'shell/tools/plugin/Tests/PassDifferentNPPStruct.cpp',
626 'shell/tools/plugin/Tests/PluginScriptableNPObjectInvokeDefault.cpp',
627 'shell/tools/plugin/Tests/PluginScriptableObjectOverridesAllProperties.cpp',
628 'shell/tools/plugin/main.cpp',
[email protected]0516a592014-02-13 00:10:04629 'shell/tools/plugin/test_object.h',
[email protected]de28fed2e2014-02-01 14:36:32630 ],
631 'include_dirs': [
632 '<(DEPTH)',
633 '<(DEPTH)/content/shell/tools/plugin/',
634 ],
635 'dependencies': [
636 '../base/base.gyp:base',
637 '../third_party/npapi/npapi.gyp:npapi',
638 ],
639 'conditions': [
640 ['OS=="mac"', {
641 'mac_bundle': 1,
642 'product_extension': 'plugin',
643 'link_settings': {
644 'libraries': [
645 '$(SDKROOT)/System/Library/Frameworks/Carbon.framework',
646 '$(SDKROOT)/System/Library/Frameworks/Cocoa.framework',
647 '$(SDKROOT)/System/Library/Frameworks/QuartzCore.framework',
648 ]
649 },
650 'xcode_settings': {
651 'GCC_SYMBOLS_PRIVATE_EXTERN': 'NO',
652 'INFOPLIST_FILE': 'shell/tools/plugin/mac/Info.plist',
653 },
654 }],
655 ['os_posix == 1 and OS != "mac"', {
656 'cflags': [
657 '-fvisibility=default',
658 ],
659 }],
thakis603fc872015-01-19 05:42:29660 ['use_x11 == 1', {
661 'dependencies': [ '../build/linux/system.gyp:x11' ],
662 }],
[email protected]de28fed2e2014-02-01 14:36:32663 ['OS=="win"', {
brucedawson2622e272015-04-08 00:13:54664 'conditions': [
665 ['MSVS_VERSION < "2015"', {
666 'defines': [
667 # This seems like a hack, but this is what Safari Win does.
668 # Luckily it is no longer needed/allowed with VS 2015.
669 'snprintf=_snprintf',
670 ],
671 }],
[email protected]de28fed2e2014-02-01 14:36:32672 ],
673 'sources': [
674 'shell/tools/plugin/win/TestNetscapePlugin.def',
675 'shell/tools/plugin/win/TestNetscapePlugin.rc',
676 ],
677 # The .rc file requires that the name of the dll is np_test_netscape_plugin.dll.
678 'product_name': 'np_test_netscape_plugin',
679 # Disable c4267 warnings until we fix size_t to int truncations.
680 'msvs_disabled_warnings': [ 4267, ],
681 }],
682 ],
683 },
684 {
685 'target_name': 'copy_test_netscape_plugin',
686 'type': 'none',
687 'dependencies': [
688 'test_netscape_plugin',
689 ],
690 'conditions': [
691 ['OS=="win"', {
692 'copies': [{
693 'destination': '<(PRODUCT_DIR)/plugins',
694 'files': ['<(PRODUCT_DIR)/np_test_netscape_plugin.dll'],
695 }],
696 }],
697 ['OS=="mac"', {
698 'copies': [{
699 'destination': '<(PRODUCT_DIR)/plugins/',
700 'files': ['<(PRODUCT_DIR)/test_netscape_plugin.plugin/'],
701 }],
702 }],
703 ['os_posix == 1 and OS != "mac"', {
704 'copies': [{
705 'destination': '<(PRODUCT_DIR)/plugins',
706 'files': ['<(PRODUCT_DIR)/libtest_netscape_plugin.so'],
707 }],
708 }],
709 ],
710 }
[email protected]5629e0c2011-09-12 22:07:36711 ],
[email protected]85ff16042012-03-06 23:46:34712 'conditions': [
713 ['OS=="mac"', {
714 'targets': [
715 {
716 'target_name': 'content_shell_framework',
717 'type': 'shared_library',
718 'product_name': '<(content_shell_product_name) Framework',
719 'mac_bundle': 1,
720 'mac_bundle_resources': [
[email protected]993951d2013-05-08 21:37:02721 'shell/app/English.lproj/HttpAuth.xib',
722 'shell/app/English.lproj/MainMenu.xib',
[email protected]a7aa8ab2013-10-24 07:21:48723 '<(PRODUCT_DIR)/content_shell.pak',
724 'shell/app/framework-Info.plist',
[email protected]85ff16042012-03-06 23:46:34725 ],
[email protected]a7aa8ab2013-10-24 07:21:48726 'mac_bundle_resources!': [
727 'shell/app/framework-Info.plist',
728 ],
729 'xcode_settings': {
[email protected]6efed472013-11-01 02:09:34730 # The framework is placed within the .app's Framework
731 # directory. DYLIB_INSTALL_NAME_BASE and
732 # LD_DYLIB_INSTALL_NAME affect -install_name.
733 'DYLIB_INSTALL_NAME_BASE':
734 '@executable_path/../Frameworks',
735 # See /build/mac/copy_framework_unversioned.sh for
736 # information on LD_DYLIB_INSTALL_NAME.
737 'LD_DYLIB_INSTALL_NAME':
738 '$(DYLIB_INSTALL_NAME_BASE:standardizepath)/$(WRAPPER_NAME)/$(PRODUCT_NAME)',
739
[email protected]a7aa8ab2013-10-24 07:21:48740 'INFOPLIST_FILE': 'shell/app/framework-Info.plist',
741 },
[email protected]85ff16042012-03-06 23:46:34742 'dependencies': [
743 'content_shell_lib',
744 ],
745 'include_dirs': [
746 '..',
747 ],
748 'sources': [
[email protected]4642f5b2013-07-03 21:43:31749 'shell/app/shell_content_main.cc',
[email protected]216161f2013-07-02 16:23:20750 'shell/app/shell_content_main.h',
[email protected]85ff16042012-03-06 23:46:34751 ],
[email protected]30c246bc2014-01-28 06:00:04752 'postbuilds': [
753 {
754 # Modify the Info.plist as needed. The script explains why
755 # this is needed. This is also done in the chrome target.
756 # The framework needs the Breakpad keys if this feature is
757 # enabled. It does not need the Keystone keys; these always
758 # come from the outer application bundle. The framework
759 # doesn't currently use the SCM keys for anything,
760 # but this seems like a really good place to store them.
761 'postbuild_name': 'Tweak Info.plist',
762 'action': ['../build/mac/tweak_info_plist.py',
763 '--breakpad=1',
764 '--keystone=0',
765 '--scm=1',
766 '--version=<(content_shell_version)',
767 '--branding=<(content_shell_product_name)'],
768 },
769 ],
[email protected]5d96bbe2012-07-25 17:13:23770 'copies': [
771 {
[email protected]a7aa8ab2013-10-24 07:21:48772 'destination': '<(PRODUCT_DIR)/$(CONTENTS_FOLDER_PATH)/Resources',
773 'files': [
774 '<(PRODUCT_DIR)/crash_inspector',
775 '<(PRODUCT_DIR)/crash_report_sender.app'
776 ],
777 },
[email protected]5d96bbe2012-07-25 17:13:23778 ],
[email protected]fda1c6c82013-04-09 16:10:12779 'conditions': [
780 ['enable_webrtc==1', {
781 'variables': {
782 'libpeer_target_type%': 'static_library',
783 },
784 'conditions': [
[email protected]e4aa290b2013-05-01 18:54:19785 ['libpeer_target_type!="static_library"', {
[email protected]fda1c6c82013-04-09 16:10:12786 'copies': [{
787 'destination': '<(PRODUCT_DIR)/$(CONTENTS_FOLDER_PATH)/Libraries',
788 'files': [
[email protected]62461b72013-05-02 12:27:12789 '<(PRODUCT_DIR)/libpeerconnection.so',
[email protected]fda1c6c82013-04-09 16:10:12790 ],
791 }],
792 }],
793 ],
794 }],
[email protected]30c246bc2014-01-28 06:00:04795 ['icu_use_data_file_flag==1', {
796 'mac_bundle_resources': [
797 '<(PRODUCT_DIR)/icudtl.dat',
798 ],
799 }],
baixo51f683a2014-11-28 13:05:25800 ['v8_use_external_startup_data==1', {
801 'mac_bundle_resources': [
802 '<(PRODUCT_DIR)/natives_blob.bin',
803 '<(PRODUCT_DIR)/snapshot_blob.bin',
804 ],
805 }],
[email protected]fda1c6c82013-04-09 16:10:12806 ],
[email protected]180df8f2012-03-09 22:36:10807 }, # target content_shell_framework
808 {
809 'target_name': 'content_shell_helper_app',
810 'type': 'executable',
811 'variables': { 'enable_wexit_time_destructors': 1, },
812 'product_name': '<(content_shell_product_name) Helper',
813 'mac_bundle': 1,
814 'dependencies': [
815 'content_shell_framework',
816 ],
817 'sources': [
[email protected]993951d2013-05-08 21:37:02818 'shell/app/shell_main.cc',
819 'shell/app/helper-Info.plist',
[email protected]180df8f2012-03-09 22:36:10820 ],
821 # TODO(mark): Come up with a fancier way to do this. It should only
822 # be necessary to list helper-Info.plist once, not the three times it
823 # is listed here.
824 'mac_bundle_resources!': [
[email protected]993951d2013-05-08 21:37:02825 'shell/app/helper-Info.plist',
[email protected]180df8f2012-03-09 22:36:10826 ],
827 # TODO(mark): For now, don't put any resources into this app. Its
828 # resources directory will be a symbolic link to the browser app's
829 # resources directory.
830 'mac_bundle_resources/': [
831 ['exclude', '.*'],
832 ],
833 'xcode_settings': {
[email protected]993951d2013-05-08 21:37:02834 'INFOPLIST_FILE': 'shell/app/helper-Info.plist',
[email protected]180df8f2012-03-09 22:36:10835 },
836 'postbuilds': [
837 {
838 # The framework defines its load-time path
839 # (DYLIB_INSTALL_NAME_BASE) relative to the main executable
840 # (chrome). A different relative path needs to be used in
841 # content_shell_helper_app.
842 'postbuild_name': 'Fix Framework Link',
843 'action': [
844 'install_name_tool',
845 '-change',
[email protected]6efed472013-11-01 02:09:34846 '@executable_path/../Frameworks/<(content_shell_product_name) Framework.framework/<(content_shell_product_name) Framework',
847 '@executable_path/../../../<(content_shell_product_name) Framework.framework/<(content_shell_product_name) Framework',
[email protected]180df8f2012-03-09 22:36:10848 '${BUILT_PRODUCTS_DIR}/${EXECUTABLE_PATH}'
849 ],
850 },
851 {
852 # Modify the Info.plist as needed. The script explains why this
853 # is needed. This is also done in the chrome and chrome_dll
[email protected]bbf52442012-08-23 22:53:18854 # targets. In this case, --breakpad=0, --keystone=0, and --scm=0
855 # are used because Breakpad, Keystone, and SCM keys are
[email protected]180df8f2012-03-09 22:36:10856 # never placed into the helper.
857 'postbuild_name': 'Tweak Info.plist',
858 'action': ['../build/mac/tweak_info_plist.py',
859 '--breakpad=0',
860 '--keystone=0',
[email protected]6d302912012-11-05 21:57:28861 '--scm=0',
862 '--version=<(content_shell_version)'],
[email protected]180df8f2012-03-09 22:36:10863 },
864 {
865 # Make sure there isn't any Objective-C in the helper app's
866 # executable.
867 'postbuild_name': 'Verify No Objective-C',
868 'action': [
869 '../build/mac/verify_no_objc.sh',
870 ],
871 },
872 ],
[email protected]ec40c38f2012-06-28 16:37:49873 'conditions': [
874 ['component=="shared_library"', {
875 'xcode_settings': {
876 'LD_RUNPATH_SEARCH_PATHS': [
877 # Get back from Content Shell.app/Contents/Frameworks/
878 # Helper.app/Contents/MacOS
879 '@loader_path/../../../../../..',
880 ],
881 },
882 }],
883 ],
[email protected]180df8f2012-03-09 22:36:10884 }, # target content_shell_helper_app
[email protected]85ff16042012-03-06 23:46:34885 ],
886 }], # OS=="mac"
[email protected]cc66d282012-03-30 11:44:06887 ['OS=="android"', {
888 'targets': [
889 {
[email protected]a08029b42012-04-25 03:18:46890 # TODO(jrg): Update this action and other jni generators to only
891 # require specifying the java directory and generate the rest.
892 'target_name': 'content_shell_jni_headers',
893 'type': 'none',
[email protected]e46f66152012-07-19 20:02:55894 'sources': [
[email protected]eadcff0f2013-06-20 21:08:10895 'shell/android/java/src/org/chromium/content_shell/ShellLayoutTestUtils.java',
ppif581fe92014-10-08 18:52:19896 'shell/android/java/src/org/chromium/content_shell/ShellMojoTestUtils.java',
[email protected]e46f66152012-07-19 20:02:55897 'shell/android/java/src/org/chromium/content_shell/ShellManager.java',
898 'shell/android/java/src/org/chromium/content_shell/Shell.java',
899 ],
[email protected]a08029b42012-04-25 03:18:46900 'variables': {
[email protected]521cd942013-03-07 22:34:05901 'jni_gen_package': 'content/shell',
[email protected]a08029b42012-04-25 03:18:46902 },
903 'includes': [ '../build/jni_generator.gypi' ],
904 },
905 {
[email protected]c1101582012-06-25 17:07:18906 'target_name': 'libcontent_shell_content_view',
[email protected]a08029b42012-04-25 03:18:46907 'type': 'shared_library',
908 'dependencies': [
909 'content_shell_jni_headers',
910 'content_shell_lib',
911 'content_shell_pak',
912 # Skia is necessary to ensure the dependencies needed by
913 # WebContents are included.
914 '../skia/skia.gyp:skia',
915 '<(DEPTH)/media/media.gyp:player_android',
916 ],
[email protected]a08029b42012-04-25 03:18:46917 'sources': [
918 'shell/android/shell_library_loader.cc',
[email protected]f83a47392012-07-12 22:15:04919 ],
[email protected]a08029b42012-04-25 03:18:46920 },
921 {
[email protected]4d4eb5b2013-01-29 21:55:55922 'target_name': 'content_shell_java',
923 'type': 'none',
924 'dependencies': [
[email protected]ba42b1e2013-10-19 22:13:17925 'content.gyp:content_java',
[email protected]4d4eb5b2013-01-29 21:55:55926 ],
927 'variables': {
[email protected]4d4eb5b2013-01-29 21:55:55928 'java_in_dir': '../content/shell/android/java',
929 'has_java_resources': 1,
930 'R_package': 'org.chromium.content_shell',
931 'R_package_relpath': 'org/chromium/content_shell',
932 },
933 'includes': [ '../build/java.gypi' ],
934 },
935 {
[email protected]319d6a82012-09-20 22:52:28936 # content_shell_apk creates a .jar as a side effect. Any java targets
937 # that need that .jar in their classpath should depend on this target,
[email protected]4d4eb5b2013-01-29 21:55:55938 # content_shell_apk_java. Dependents of content_shell_apk receive its
939 # jar path in the variable 'apk_output_jar_path'. This target should
940 # only be used by targets which instrument content_shell_apk.
941 'target_name': 'content_shell_apk_java',
[email protected]319d6a82012-09-20 22:52:28942 'type': 'none',
[email protected]319d6a82012-09-20 22:52:28943 'dependencies': [
[email protected]319d6a82012-09-20 22:52:28944 'content_shell_apk',
[email protected]319d6a82012-09-20 22:52:28945 ],
[email protected]b13f73e2013-03-27 23:31:27946 'includes': [ '../build/apk_fake_jar.gypi' ],
[email protected]319d6a82012-09-20 22:52:28947 },
[email protected]75c86a22012-09-26 03:50:37948 {
sievers0350cad2014-12-03 23:50:55949 # GN version: //content/shell/android:content_shell_manifest
950 'target_name': 'content_shell_manifest',
951 'type': 'none',
952 'variables': {
sievers4c08a9c2014-12-05 01:57:28953 'jinja_inputs': ['shell/android/shell_apk/AndroidManifest.xml.jinja2'],
sievers0350cad2014-12-03 23:50:55954 'jinja_output': '<(SHARED_INTERMEDIATE_DIR)/content_shell_manifest/AndroidManifest.xml',
955 },
956 'includes': [ '../build/android/jinja_template.gypi' ],
957 },
958 {
959 # GN version: //content/shell/android:content_shell_apk
[email protected]75c86a22012-09-26 03:50:37960 'target_name': 'content_shell_apk',
961 'type': 'none',
962 'dependencies': [
[email protected]c8e8781e2014-03-08 12:02:26963 'content.gyp:content_icudata',
[email protected]ba42b1e2013-10-19 22:13:17964 'content.gyp:content_java',
baixo3a3c88a2014-10-28 11:52:21965 'content.gyp:content_v8_external_data',
[email protected]c48fece02013-06-19 12:01:42966 'content_java_test_support',
[email protected]4d4eb5b2013-01-29 21:55:55967 'content_shell_java',
968 'libcontent_shell_content_view',
[email protected]75c86a22012-09-26 03:50:37969 '../base/base.gyp:base_java',
970 '../media/media.gyp:media_java',
971 '../net/net.gyp:net_java',
[email protected]abeda1f2014-02-21 17:08:34972 '../third_party/mesa/mesa.gyp:osmesa_in_lib_dir',
[email protected]4e384052013-08-14 20:46:30973 '../tools/android/forwarder/forwarder.gyp:forwarder',
torne1b1c9782015-03-30 20:49:00974 '../tools/imagediff/image_diff.gyp:image_diff#host',
[email protected]f450287d2013-11-15 17:52:54975 '../ui/android/ui_android.gyp:ui_java',
[email protected]75c86a22012-09-26 03:50:37976 ],
977 'variables': {
[email protected]75c86a22012-09-26 03:50:37978 'apk_name': 'ContentShell',
[email protected]4d4eb5b2013-01-29 21:55:55979 'manifest_package_name': 'org.chromium.content_shell_apk',
sievers0350cad2014-12-03 23:50:55980 'android_manifest_path': '<(SHARED_INTERMEDIATE_DIR)/content_shell_manifest/AndroidManifest.xml',
[email protected]4d4eb5b2013-01-29 21:55:55981 'java_in_dir': 'shell/android/shell_apk',
[email protected]bd6ab3db2013-03-26 17:35:21982 'resource_dir': 'shell/android/shell_apk/res',
[email protected]e4865252013-04-04 09:15:59983 'native_lib_target': 'libcontent_shell_content_view',
[email protected]75c86a22012-09-26 03:50:37984 'additional_input_paths': ['<(PRODUCT_DIR)/content_shell/assets/content_shell.pak'],
[email protected]0437c502013-11-28 05:17:33985 'asset_location': '<(PRODUCT_DIR)/content_shell/assets',
[email protected]abeda1f2014-02-21 17:08:34986 'extra_native_libs': ['<(SHARED_LIB_DIR)/libosmesa.so'],
[email protected]c8e8781e2014-03-08 12:02:26987 'conditions': [
988 ['icu_use_data_file_flag==1', {
989 'additional_input_paths': [
990 '<(PRODUCT_DIR)/icudtl.dat',
991 ],
992 }],
baixo3a3c88a2014-10-28 11:52:21993 ['v8_use_external_startup_data==1', {
994 'additional_input_paths': [
995 '<(PRODUCT_DIR)/natives_blob.bin',
996 '<(PRODUCT_DIR)/snapshot_blob.bin',
997 ],
998 }],
[email protected]c8e8781e2014-03-08 12:02:26999 ],
[email protected]75c86a22012-09-26 03:50:371000 },
[email protected]75c86a22012-09-26 03:50:371001 'includes': [ '../build/java_apk.gypi' ],
1002 },
[email protected]cc66d282012-03-30 11:44:061003 ],
1004 }], # OS=="android"
[email protected]369205f2013-10-29 04:35:051005 ['OS=="win"', {
1006 'targets': [
1007 {
tfarina795e01a2015-05-15 19:29:571008 # GN version: //content/shell:crash_service
[email protected]369205f2013-10-29 04:35:051009 'target_name': 'content_shell_crash_service',
1010 'type': 'executable',
1011 'dependencies': [
1012 '../base/base.gyp:base',
1013 '../components/components.gyp:breakpad_crash_service',
1014 ],
1015 'include_dirs': [
1016 '..',
1017 ],
1018 'sources': [
1019 'shell/tools/content_shell_crash_service.cc',
1020 ],
1021 'msvs_settings': {
1022 'VCLinkerTool': {
1023 'SubSystem': '2', # Set /SUBSYSTEM:WINDOWS
1024 },
1025 },
1026 },
1027 ],
1028 }], # OS=="win"
[email protected]004703a2014-05-05 23:23:001029 ['OS=="win" and fastbuild==0 and target_arch=="ia32" and syzyasan==1', {
[email protected]c8250d42013-10-01 05:17:461030 'variables': {
1031 'dest_dir': '<(PRODUCT_DIR)/syzygy',
1032 },
1033 'targets': [
1034 {
1035 'target_name': 'content_shell_syzyasan',
1036 'type': 'none',
1037 'sources' : [],
1038 # Instrument content_shell with SyzyAsan.
1039 'actions': [
1040 {
1041 'action_name': 'Instrument content_shell with SyzyAsan',
[email protected]c8250d42013-10-01 05:17:461042 'inputs': [
1043 '<(PRODUCT_DIR)/content_shell.exe',
1044 ],
1045 'outputs': [
1046 '<(dest_dir)/content_shell.exe',
1047 '<(dest_dir)/content_shell.exe.pdb',
1048 ],
1049 'action': [
1050 'python',
chrishaf25cab22014-12-16 19:40:151051 '<(DEPTH)/chrome/tools/build/win/syzygy/instrument.py',
[email protected]c8250d42013-10-01 05:17:461052 '--mode', 'asan',
1053 '--input_executable', '<(PRODUCT_DIR)/content_shell.exe',
1054 '--input_symbol', '<(PRODUCT_DIR)/content_shell.exe.pdb',
1055 '--destination_dir', '<(dest_dir)',
1056 ],
1057 },
1058 ],
1059 },
1060 ],
1061 }], # OS=="win" and fastbuild==0 and target_arch=="ia32"
[email protected]cc66d282012-03-30 11:44:061062 ]
[email protected]5629e0c2011-09-12 22:07:361063}