blob: 9edeacca49628eb36b1a84092d1e8959b3a9ff7c [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]c1f87b22011-10-05 21:59:3322 'target_name': 'content_shell_lib',
23 'type': 'static_library',
[email protected]6d302912012-11-05 21:57:2824 'defines': ['CONTENT_SHELL_VERSION="<(content_shell_version)"'],
[email protected]9fbd3f862011-09-20 23:31:3425 'variables': {
26 'chromium_code': 1,
27 },
[email protected]5629e0c2011-09-12 22:07:3628 'dependencies': [
[email protected]ba42b1e2013-10-19 22:13:1729 'content.gyp:content_app_both',
30 'content.gyp:content_browser',
31 'content.gyp:content_common',
32 'content.gyp:content_gpu',
33 'content.gyp:content_plugin',
34 'content.gyp:content_ppapi_plugin',
35 'content.gyp:content_renderer',
36 'content.gyp:content_utility',
37 'content.gyp:content_worker',
[email protected]a20f6e82013-07-01 13:38:4138 'content_shell_resources',
39 'test_support_content',
[email protected]73a759772013-07-02 20:47:4540 'content_resources.gyp:content_resources',
[email protected]aa6e79762011-09-29 20:53:5241 '../base/base.gyp:base',
42 '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations',
[email protected]d6d06a352013-10-23 07:04:0043 '../components/components.gyp:breakpad_component',
[email protected]41fba0e2014-01-16 18:19:4244 '../gin/gin.gyp:gin',
[email protected]aa6e79762011-09-29 20:53:5245 '../ipc/ipc.gyp:ipc',
[email protected]433df472012-03-07 20:33:3946 '../media/media.gyp:media',
[email protected]aa6e79762011-09-29 20:53:5247 '../net/net.gyp:net',
[email protected]24f80692012-08-13 15:15:5048 '../net/net.gyp:net_resources',
[email protected]5629e0c2011-09-12 22:07:3649 '../skia/skia.gyp:skia',
[email protected]3de922f2013-12-20 13:27:3850 '../third_party/WebKit/public/blink.gyp:blink',
[email protected]6b911a32014-01-10 02:34:5351 '../third_party/WebKit/public/blink_test_plugin.gyp:blink_test_plugin',
[email protected]3de922f2013-12-20 13:27:3852 '../third_party/WebKit/public/blink_test_runner.gyp:blink_test_support',
[email protected]114efae2013-11-06 20:37:5753 '../ui/events/events.gyp:events_base',
[email protected]529a3cf2013-09-30 02:47:4854 '../ui/gfx/gfx.gyp:gfx',
[email protected]b5e2d782013-12-18 21:01:1555 '../ui/gfx/gfx.gyp:gfx_geometry',
[email protected]8350f16f2012-11-30 00:25:3256 '../ui/gl/gl.gyp:gl',
[email protected]5629e0c2011-09-12 22:07:3657 '../ui/ui.gyp:ui',
[email protected]002cc08f2013-06-03 05:40:2958 '../url/url.gyp:url_lib',
[email protected]12bc28fcb2011-09-21 15:53:5059 '../v8/tools/gyp/v8.gyp:v8',
[email protected]3469ea22013-09-14 01:24:4760 '../webkit/common/user_agent/webkit_user_agent.gyp:user_agent',
[email protected]a356e5cc2013-09-24 02:54:4661 '../webkit/common/webkit_common.gyp:webkit_common',
62 '../webkit/glue/webkit_glue.gyp:glue',
63 '../webkit/webkit_resources.gyp:webkit_resources',
[email protected]5629e0c2011-09-12 22:07:3664 ],
65 'include_dirs': [
66 '..',
67 ],
68 'sources': [
[email protected]3de922f2013-12-20 13:27:3869 'public/test/layouttest_support.h',
[email protected]4d4eb5b2013-01-29 21:55:5570 'shell/android/shell_jni_registrar.cc',
71 'shell/android/shell_jni_registrar.h',
72 'shell/android/shell_manager.cc',
73 'shell/android/shell_manager.h',
[email protected]2a94e812013-07-12 15:31:0274 'shell/app/paths_mac.h',
75 'shell/app/paths_mac.mm',
[email protected]d6d06a352013-10-23 07:04:0076 'shell/app/shell_breakpad_client.cc',
77 'shell/app/shell_breakpad_client.h',
[email protected]993951d2013-05-08 21:37:0278 'shell/app/shell_main_delegate.cc',
79 'shell/app/shell_main_delegate.h',
[email protected]2a94e812013-07-12 15:31:0280 'shell/app/shell_main_delegate_mac.h',
81 'shell/app/shell_main_delegate_mac.mm',
[email protected]216161f2013-07-02 16:23:2082 'shell/app/webkit_test_platform_support_android.cc',
[email protected]de7d61ff2013-08-20 11:30:4183 'shell/app/webkit_test_platform_support.h',
[email protected]216161f2013-07-02 16:23:2084 'shell/app/webkit_test_platform_support_linux.cc',
85 'shell/app/webkit_test_platform_support_mac.mm',
86 'shell/app/webkit_test_platform_support_win.cc',
[email protected]de7d61ff2013-08-20 11:30:4187 'shell/browser/notify_done_forwarder.cc',
88 'shell/browser/notify_done_forwarder.h',
89 'shell/browser/shell_android.cc',
90 'shell/browser/shell_application_mac.h',
91 'shell/browser/shell_application_mac.mm',
92 'shell/browser/shell_aura.cc',
93 'shell/browser/shell_browser_context.cc',
94 'shell/browser/shell_browser_context.h',
95 'shell/browser/shell_browser_main.cc',
96 'shell/browser/shell_browser_main.h',
97 'shell/browser/shell_browser_main_parts.cc',
98 'shell/browser/shell_browser_main_parts.h',
99 'shell/browser/shell_browser_main_parts_mac.mm',
100 'shell/browser/shell.cc',
101 'shell/browser/shell_content_browser_client.cc',
102 'shell/browser/shell_content_browser_client.h',
103 'shell/browser/shell_devtools_delegate.cc',
104 'shell/browser/shell_devtools_delegate.h',
105 'shell/browser/shell_devtools_frontend.cc',
106 'shell/browser/shell_devtools_frontend.h',
107 'shell/browser/shell_download_manager_delegate.cc',
108 'shell/browser/shell_download_manager_delegate.h',
109 'shell/browser/shell_gtk.cc',
110 'shell/browser/shell.h',
111 'shell/browser/shell_javascript_dialog_gtk.cc',
112 'shell/browser/shell_javascript_dialog.h',
113 'shell/browser/shell_javascript_dialog_mac.mm',
114 'shell/browser/shell_javascript_dialog_manager.cc',
115 'shell/browser/shell_javascript_dialog_manager.h',
116 'shell/browser/shell_javascript_dialog_win.cc',
117 'shell/browser/shell_layout_tests_android.cc',
118 'shell/browser/shell_layout_tests_android.h',
119 'shell/browser/shell_login_dialog.cc',
120 'shell/browser/shell_login_dialog_gtk.cc',
121 'shell/browser/shell_login_dialog.h',
122 'shell/browser/shell_login_dialog_mac.mm',
123 'shell/browser/shell_mac.mm',
124 'shell/browser/shell_message_filter.cc',
125 'shell/browser/shell_message_filter.h',
126 'shell/browser/shell_net_log.cc',
127 'shell/browser/shell_net_log.h',
128 'shell/browser/shell_network_delegate.cc',
129 'shell/browser/shell_network_delegate.h',
130 'shell/browser/shell_plugin_service_filter.cc',
131 'shell/browser/shell_plugin_service_filter.h',
132 'shell/browser/shell_quota_permission_context.cc',
133 'shell/browser/shell_quota_permission_context.h',
134 'shell/browser/shell_resource_dispatcher_host_delegate.cc',
135 'shell/browser/shell_resource_dispatcher_host_delegate.h',
[email protected]9896c552013-08-29 19:03:20136 'shell/browser/shell_speech_recognition_manager_delegate.cc',
137 'shell/browser/shell_speech_recognition_manager_delegate.h',
[email protected]de7d61ff2013-08-20 11:30:41138 'shell/browser/shell_url_request_context_getter.cc',
139 'shell/browser/shell_url_request_context_getter.h',
[email protected]a896e1e2013-10-20 19:10:30140 'shell/browser/shell_views.cc',
[email protected]de7d61ff2013-08-20 11:30:41141 'shell/browser/shell_web_contents_view_delegate_android.cc',
142 'shell/browser/shell_web_contents_view_delegate_creator.h',
143 'shell/browser/shell_web_contents_view_delegate_gtk.cc',
144 'shell/browser/shell_web_contents_view_delegate.h',
145 'shell/browser/shell_web_contents_view_delegate_mac.mm',
146 'shell/browser/shell_web_contents_view_delegate_win.cc',
[email protected]de7d61ff2013-08-20 11:30:41147 'shell/browser/webkit_test_controller.cc',
148 'shell/browser/webkit_test_controller.h',
[email protected]b7c504c2013-05-07 14:42:12149 'shell/common/shell_content_client.cc',
150 'shell/common/shell_content_client.h',
151 'shell/common/shell_messages.cc',
152 'shell/common/shell_messages.h',
153 'shell/common/shell_switches.cc',
154 'shell/common/shell_switches.h',
155 'shell/common/shell_test_configuration.cc',
156 'shell/common/shell_test_configuration.h',
[email protected]3de922f2013-12-20 13:27:38157 'shell/common/test_runner/WebPreferences.cpp',
158 'shell/common/test_runner/WebPreferences.h',
[email protected]b7c504c2013-05-07 14:42:12159 'shell/common/webkit_test_helpers.cc',
160 'shell/common/webkit_test_helpers.h',
[email protected]6cfccd12012-06-28 12:14:05161 'shell/geolocation/shell_access_token_store.cc',
162 'shell/geolocation/shell_access_token_store.h',
[email protected]41fba0e2014-01-16 18:19:42163 'shell/renderer/gc_controller.cc',
164 'shell/renderer/gc_controller.h',
[email protected]f7a4e3b92013-05-03 15:29:58165 'shell/renderer/shell_content_renderer_client.cc',
166 'shell/renderer/shell_content_renderer_client.h',
[email protected]a86c0e962013-12-17 17:10:39167 'shell/renderer/shell_render_frame_observer.cc',
168 'shell/renderer/shell_render_frame_observer.h',
[email protected]f7a4e3b92013-05-03 15:29:58169 'shell/renderer/shell_render_process_observer.cc',
170 'shell/renderer/shell_render_process_observer.h',
[email protected]81914ad2013-07-02 18:54:25171 'shell/renderer/shell_render_view_observer.cc',
172 'shell/renderer/shell_render_view_observer.h',
[email protected]3de922f2013-12-20 13:27:38173 'shell/renderer/test_runner/AccessibilityController.cpp',
174 'shell/renderer/test_runner/AccessibilityController.h',
175 'shell/renderer/test_runner/CppBoundClass.cpp',
176 'shell/renderer/test_runner/CppBoundClass.h',
177 'shell/renderer/test_runner/CppVariant.cpp',
178 'shell/renderer/test_runner/CppVariant.h',
179 'shell/renderer/test_runner/EventSender.cpp',
180 'shell/renderer/test_runner/EventSender.h',
181 'shell/renderer/test_runner/GamepadController.cpp',
182 'shell/renderer/test_runner/GamepadController.h',
183 'shell/renderer/test_runner/KeyCodeMapping.cpp',
184 'shell/renderer/test_runner/KeyCodeMapping.h',
185 'shell/renderer/test_runner/MockColorChooser.cpp',
186 'shell/renderer/test_runner/MockColorChooser.h',
187 'shell/renderer/test_runner/MockConstraints.cpp',
188 'shell/renderer/test_runner/MockConstraints.h',
189 'shell/renderer/test_runner/MockGrammarCheck.cpp',
190 'shell/renderer/test_runner/MockGrammarCheck.h',
191 'shell/renderer/test_runner/MockSpellCheck.cpp',
192 'shell/renderer/test_runner/MockSpellCheck.h',
193 'shell/renderer/test_runner/MockWebAudioDevice.cpp',
194 'shell/renderer/test_runner/MockWebAudioDevice.h',
[email protected]3de922f2013-12-20 13:27:38195 'shell/renderer/test_runner/MockWebMIDIAccessor.cpp',
196 'shell/renderer/test_runner/MockWebMIDIAccessor.h',
[email protected]d76ff4162014-01-05 19:04:43197 'shell/renderer/test_runner/MockWebMediaStreamCenter.cpp',
198 'shell/renderer/test_runner/MockWebMediaStreamCenter.h',
[email protected]3de922f2013-12-20 13:27:38199 'shell/renderer/test_runner/MockWebRTCDTMFSenderHandler.cpp',
200 'shell/renderer/test_runner/MockWebRTCDTMFSenderHandler.h',
[email protected]d76ff4162014-01-05 19:04:43201 'shell/renderer/test_runner/MockWebRTCDataChannelHandler.cpp',
202 'shell/renderer/test_runner/MockWebRTCDataChannelHandler.h',
[email protected]3de922f2013-12-20 13:27:38203 'shell/renderer/test_runner/MockWebRTCPeerConnectionHandler.cpp',
204 'shell/renderer/test_runner/MockWebRTCPeerConnectionHandler.h',
205 'shell/renderer/test_runner/MockWebSpeechInputController.cpp',
206 'shell/renderer/test_runner/MockWebSpeechInputController.h',
207 'shell/renderer/test_runner/MockWebSpeechRecognizer.cpp',
208 'shell/renderer/test_runner/MockWebSpeechRecognizer.h',
209 'shell/renderer/test_runner/NotificationPresenter.cpp',
210 'shell/renderer/test_runner/NotificationPresenter.h',
211 'shell/renderer/test_runner/SpellCheckClient.cpp',
212 'shell/renderer/test_runner/SpellCheckClient.h',
213 'shell/renderer/test_runner/TestCommon.cpp',
214 'shell/renderer/test_runner/TestCommon.h',
215 'shell/renderer/test_runner/TestInterfaces.cpp',
216 'shell/renderer/test_runner/TestInterfaces.h',
217 'shell/renderer/test_runner/TestPlugin.cpp',
218 'shell/renderer/test_runner/TestPlugin.h',
219 'shell/renderer/test_runner/TestRunner.cpp',
220 'shell/renderer/test_runner/TestRunner.h',
221 'shell/renderer/test_runner/TextInputController.cpp',
222 'shell/renderer/test_runner/TextInputController.h',
223 'shell/renderer/test_runner/WebAXObjectProxy.cpp',
224 'shell/renderer/test_runner/WebAXObjectProxy.h',
225 'shell/renderer/test_runner/WebFrameTestProxy.h',
226 'shell/renderer/test_runner/WebPermissions.cpp',
227 'shell/renderer/test_runner/WebPermissions.h',
[email protected]3de922f2013-12-20 13:27:38228 'shell/renderer/test_runner/WebTask.cpp',
229 'shell/renderer/test_runner/WebTask.h',
230 'shell/renderer/test_runner/WebTestDelegate.h',
231 'shell/renderer/test_runner/WebTestInterfaces.cpp',
232 'shell/renderer/test_runner/WebTestInterfaces.h',
233 'shell/renderer/test_runner/WebTestProxy.cpp',
234 'shell/renderer/test_runner/WebTestProxy.h',
235 'shell/renderer/test_runner/WebTestRunner.h',
236 'shell/renderer/test_runner/WebTestThemeControlWin.cpp',
237 'shell/renderer/test_runner/WebTestThemeControlWin.h',
238 'shell/renderer/test_runner/WebTestThemeEngineMac.h',
239 'shell/renderer/test_runner/WebTestThemeEngineMac.mm',
240 'shell/renderer/test_runner/WebTestThemeEngineMock.cpp',
241 'shell/renderer/test_runner/WebTestThemeEngineMock.h',
242 'shell/renderer/test_runner/WebTestThemeEngineWin.cpp',
243 'shell/renderer/test_runner/WebTestThemeEngineWin.h',
244 'shell/renderer/test_runner/WebUserMediaClientMock.cpp',
245 'shell/renderer/test_runner/WebUserMediaClientMock.h',
[email protected]f7a4e3b92013-05-03 15:29:58246 'shell/renderer/webkit_test_runner.cc',
247 'shell/renderer/webkit_test_runner.h',
[email protected]3de922f2013-12-20 13:27:38248 'test/layouttest_support.cc',
[email protected]5629e0c2011-09-12 22:07:36249 ],
250 'msvs_settings': {
251 'VCLinkerTool': {
252 'SubSystem': '2', # Set /SUBSYSTEM:WINDOWS
253 },
254 },
255 'conditions': [
256 ['OS=="win" and win_use_allocator_shim==1', {
257 'dependencies': [
258 '../base/allocator/allocator.gyp:allocator',
259 ],
260 }],
[email protected]9fbd3f862011-09-20 23:31:34261 ['OS=="win"', {
262 'resource_include_dirs': [
263 '<(SHARED_INTERMEDIATE_DIR)/webkit',
264 ],
[email protected]9fbd3f862011-09-20 23:31:34265 'dependencies': [
[email protected]d7871ac2013-07-09 21:35:41266 '<(DEPTH)/webkit/webkit_resources.gyp:webkit_strings',
[email protected]9fbd3f862011-09-20 23:31:34267 ],
268 'configurations': {
269 'Debug_Base': {
270 'msvs_settings': {
271 'VCLinkerTool': {
272 'LinkIncremental': '<(msvs_large_module_debug_link_mode)',
273 },
274 },
275 },
276 },
[email protected]3bed5302013-02-15 19:31:41277 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
278 'msvs_disabled_warnings': [ 4267, ],
[email protected]3de922f2013-12-20 13:27:38279 }, { # OS!="win"
280 'sources/': [
281 ['exclude', 'Win\\.cpp$'],
282 ],
[email protected]85ff16042012-03-06 23:46:34283 }], # OS=="win"
[email protected]6eb6bb62012-11-10 06:30:59284 ['OS=="linux"', {
285 'dependencies': [
286 '../build/linux/system.gyp:fontconfig',
287 ],
288 }],
[email protected]6b911a32014-01-10 02:34:53289 ['use_x11 == 1', {
290 'dependencies': [
291 '../tools/xdisplaycheck/xdisplaycheck.gyp:xdisplaycheck',
292 ],
293 }],
[email protected]689266d2012-08-07 12:52:20294 ['OS=="android"', {
[email protected]82e9e2b12012-07-19 00:32:01295 'dependencies': [
296 'content_shell_jni_headers',
297 ],
[email protected]6b911a32014-01-10 02:34:53298 'dependencies!': [
299 '../third_party/WebKit/public/blink_test_plugin.gyp:blink_test_plugin',
300 ],
[email protected]689266d2012-08-07 12:52:20301 }, { # else: OS!="android"
302 'dependencies': [
303 # This dependency is for running DRT against the content shell, and
304 # this combination is not yet supported on Android.
[email protected]3469ea22013-09-14 01:24:47305 'test_support_content',
[email protected]689266d2012-08-07 12:52:20306 ],
[email protected]82e9e2b12012-07-19 00:32:01307 }], # OS=="android"
[email protected]a7aa8ab2013-10-24 07:21:48308 ['os_posix == 1 and OS != "mac" and android_webview_build != 1', {
309 'dependencies': [
310 '../components/components.gyp:breakpad_host',
311 ],
312 }],
[email protected]3c8fe5482013-05-22 15:17:03313 ['(os_posix==1 and use_aura==1 and linux_use_tcmalloc==1) or (android_use_tcmalloc==1)', {
[email protected]c767d572012-07-27 10:55:58314 'dependencies': [
315 # This is needed by content/app/content_main_runner.cc
316 '../base/allocator/allocator.gyp:allocator',
317 ],
318 }],
[email protected]fa4a45832012-04-12 21:32:48319 ['use_aura==1', {
[email protected]c767d572012-07-27 10:55:58320 'dependencies': [
321 '../ui/aura/aura.gyp:aura',
322 '../ui/base/strings/ui_strings.gyp:ui_strings',
[email protected]c767d572012-07-27 10:55:58323 ],
[email protected]fa4a45832012-04-12 21:32:48324 'sources/': [
[email protected]de7d61ff2013-08-20 11:30:41325 ['exclude', 'shell/browser/shell_gtk.cc'],
[email protected]fa4a45832012-04-12 21:32:48326 ],
[email protected]a896e1e2013-10-20 19:10:30327 'conditions': [
328 ['toolkit_views==1', {
329 'dependencies': [
[email protected]dae78442013-11-26 16:57:02330 '../ui/resources/ui_resources.gyp:ui_resources',
[email protected]a896e1e2013-10-20 19:10:30331 '../ui/views/controls/webview/webview.gyp:webview',
332 '../ui/views/views.gyp:views',
333 '../ui/views/views.gyp:views_test_support',
[email protected]a896e1e2013-10-20 19:10:30334 ],
335 'sources/': [
336 ['exclude', 'shell/browser/shell_aura.cc'],
337 ],
338 }, {
339 'sources/': [
340 ['exclude', 'shell/browser/shell_views.cc'],
341 ],
342 }],
343 ],
344 }, {
345 'sources/': [
346 ['exclude', 'shell/browser/shell_aura.cc'],
347 ['exclude', 'shell/browser/shell_views.cc'],
348 ],
[email protected]96b80b472012-07-03 19:41:56349 }], # use_aura==1
[email protected]6b911a32014-01-10 02:34:53350 # The test plugin relies on X11.
351 ['OS=="linux" and use_x11==0', {
352 'dependencies!': [
353 '../third_party/WebKit/public/blink_test_plugin.gyp:blink_test_plugin',
354 ],
355 }],
[email protected]c767d572012-07-27 10:55:58356 ['chromeos==1', {
357 'dependencies': [
358 '../chromeos/chromeos.gyp:chromeos',
[email protected]de6831b2013-11-16 01:04:30359 '../ui/wm/wm.gyp:wm_test_support',
[email protected]c767d572012-07-27 10:55:58360 ],
361 }], # chromeos==1
[email protected]929246a2013-02-28 13:55:20362 ['use_custom_freetype==1', {
363 'dependencies': [
364 '../third_party/freetype2/freetype2.gyp:freetype2',
365 ],
366 }],
[email protected]dfb9360192013-05-27 09:42:34367 ['enable_plugins==0', {
368 'sources/': [
[email protected]de7d61ff2013-08-20 11:30:41369 ['exclude', 'shell/browser/shell_plugin_service_filter.cc'],
370 ['exclude', 'shell/browser/shell_plugin_service_filter.h'],
[email protected]dfb9360192013-05-27 09:42:34371 ],
372 }]
[email protected]5629e0c2011-09-12 22:07:36373 ],
374 },
[email protected]c1f87b22011-10-05 21:59:33375 {
[email protected]ee75b8992012-01-27 07:53:57376 'target_name': 'content_shell_resources',
377 'type': 'none',
[email protected]b581eb402012-03-09 01:31:46378 'dependencies': [
379 'generate_content_shell_resources',
380 ],
381 'variables': {
382 'grit_out_dir': '<(SHARED_INTERMEDIATE_DIR)/content',
383 },
384 'includes': [ '../build/grit_target.gypi' ],
385 'copies': [
386 {
387 'destination': '<(PRODUCT_DIR)',
388 'files': [
389 '<(SHARED_INTERMEDIATE_DIR)/content/shell_resources.pak'
390 ],
391 },
392 ],
[email protected]6b911a32014-01-10 02:34:53393 'conditions': [
394 ['OS=="win"', {
395 'copies': [{
396 'destination': '<(PRODUCT_DIR)',
397 'files': ['shell/renderer/test_runner/resources/fonts/AHEM____.TTF'],
398 }],
399 }],
400 ['OS=="mac"', {
401 'all_dependent_settings': {
402 'mac_bundle_resources': [
403 'shell/renderer/test_runner/resources/fonts/AHEM____.TTF',
404 '<(SHARED_INTERMEDIATE_DIR)/webkit/missingImage.png',
405 '<(SHARED_INTERMEDIATE_DIR)/webkit/textAreaResizeCorner.png',
406 ],
407 },
408 }],
409 ['use_x11 == 1', {
410 'copies': [{
411 'destination': '<(PRODUCT_DIR)',
412 'files': [
413 'shell/renderer/test_runner/resources/fonts/AHEM____.TTF',
414 'shell/renderer/test_runner/resources/fonts/fonts.conf',
415 ]
416 }],
417 }],
418 ['OS=="android"', {
419 'copies': [{
420 'destination': '<(PRODUCT_DIR)',
421 'files': [
422 'shell/renderer/test_runner/resources/fonts/AHEM____.TTF',
423 'shell/renderer/test_runner/resources/fonts/android_main_fonts.xml',
424 'shell/renderer/test_runner/resources/fonts/android_fallback_fonts.xml',
425 ]
426 }],
427 }],
428 ],
[email protected]4cb792f42012-03-24 03:12:42429 },
430 {
[email protected]b581eb402012-03-09 01:31:46431 'target_name': 'generate_content_shell_resources',
432 'type': 'none',
[email protected]ee75b8992012-01-27 07:53:57433 'variables': {
434 'grit_out_dir': '<(SHARED_INTERMEDIATE_DIR)/content',
435 },
436 'actions': [
437 {
438 'action_name': 'content_shell_resources',
439 'variables': {
440 'grit_grd_file': 'shell/shell_resources.grd',
441 },
442 'includes': [ '../build/grit_action.gypi' ],
443 },
444 ],
[email protected]ee75b8992012-01-27 07:53:57445 },
446 {
[email protected]81f30ce2012-01-18 22:10:33447 # We build a minimal set of resources so WebKit in content_shell has
448 # access to necessary resources.
449 'target_name': 'content_shell_pak',
450 'type': 'none',
[email protected]ee75b8992012-01-27 07:53:57451 'dependencies': [
[email protected]06c54162013-06-10 00:25:05452 'content_resources.gyp:content_resources',
[email protected]ee75b8992012-01-27 07:53:57453 'content_shell_resources',
[email protected]06c54162013-06-10 00:25:05454 '<(DEPTH)/net/net.gyp:net_resources',
455 '<(DEPTH)/ui/base/strings/ui_strings.gyp:ui_strings',
[email protected]1c0c3f42013-11-20 02:03:28456 '<(DEPTH)/ui/resources/ui_resources.gyp:ui_resources',
[email protected]d7871ac2013-07-09 21:35:41457 '<(DEPTH)/webkit/webkit_resources.gyp:webkit_resources',
458 '<(DEPTH)/webkit/webkit_resources.gyp:webkit_strings',
[email protected]ee75b8992012-01-27 07:53:57459 ],
[email protected]3df230d2013-07-03 00:44:57460 'conditions': [
461 ['OS!="android" and OS!="ios"', {
462 'dependencies': [
463 'browser/tracing/tracing_resources.gyp:tracing_resources',
464 ],
465 }],
[email protected]8dffd2c2013-12-02 14:14:38466 ['OS!="android"', {
467 'dependencies': [
468 'browser/devtools/devtools_resources.gyp:devtools_resources',
469 ],
470 }],
[email protected]3df230d2013-07-03 00:44:57471 ],
[email protected]81f30ce2012-01-18 22:10:33472 'variables': {
473 'repack_path': '<(DEPTH)/tools/grit/grit/format/repack.py',
474 },
475 'actions': [
476 {
477 'action_name': 'repack_content_shell_pack',
478 'variables': {
479 'pak_inputs': [
480 '<(SHARED_INTERMEDIATE_DIR)/content/content_resources.pak',
[email protected]479bea22013-07-02 21:46:06481 '<(SHARED_INTERMEDIATE_DIR)/content/browser/tracing/tracing_resources.pak',
[email protected]ee75b8992012-01-27 07:53:57482 '<(SHARED_INTERMEDIATE_DIR)/content/shell_resources.pak',
[email protected]81f30ce2012-01-18 22:10:33483 '<(SHARED_INTERMEDIATE_DIR)/net/net_resources.pak',
[email protected]c767d572012-07-27 10:55:58484 '<(SHARED_INTERMEDIATE_DIR)/ui/app_locale_settings/app_locale_settings_en-US.pak',
[email protected]a52c7312012-07-24 22:45:57485 '<(SHARED_INTERMEDIATE_DIR)/ui/ui_resources/ui_resources_100_percent.pak',
[email protected]e1c26ae2013-01-31 18:13:18486 '<(SHARED_INTERMEDIATE_DIR)/ui/ui_resources/webui_resources.pak',
[email protected]c767d572012-07-27 10:55:58487 '<(SHARED_INTERMEDIATE_DIR)/ui/ui_strings/ui_strings_en-US.pak',
[email protected]e5f893b2013-07-30 02:52:22488 '<(SHARED_INTERMEDIATE_DIR)/webkit/blink_resources.pak',
[email protected]30c8f542012-09-01 01:02:29489 '<(SHARED_INTERMEDIATE_DIR)/webkit/webkit_resources_100_percent.pak',
[email protected]af551a62012-07-31 16:44:03490 '<(SHARED_INTERMEDIATE_DIR)/webkit/webkit_strings_en-US.pak',
[email protected]81f30ce2012-01-18 22:10:33491 ],
[email protected]81f30ce2012-01-18 22:10:33492 },
493 'inputs': [
494 '<(repack_path)',
495 '<@(pak_inputs)',
496 ],
[email protected]81f30ce2012-01-18 22:10:33497 'action': ['python', '<(repack_path)', '<@(_outputs)',
498 '<@(pak_inputs)'],
[email protected]a08029b42012-04-25 03:18:46499 'conditions': [
500 ['OS!="android"', {
[email protected]8dffd2c2013-12-02 14:14:38501 'variables': {
502 'pak_inputs': [
503 '<(SHARED_INTERMEDIATE_DIR)/webkit/devtools_resources.pak',
504 ],
505 },
[email protected]a08029b42012-04-25 03:18:46506 'outputs': [
507 '<(PRODUCT_DIR)/content_shell.pak',
508 ],
509 }, {
510 'outputs': [
511 '<(PRODUCT_DIR)/content_shell/assets/content_shell.pak',
512 ],
513 }],
514 ],
[email protected]81f30ce2012-01-18 22:10:33515 },
516 ],
517 },
518 {
[email protected]c1f87b22011-10-05 21:59:33519 'target_name': 'content_shell',
520 'type': 'executable',
[email protected]85ff16042012-03-06 23:46:34521 'mac_bundle': 1,
[email protected]c1f87b22011-10-05 21:59:33522 'variables': {
523 'chromium_code': 1,
524 },
525 'dependencies': [
526 'content_shell_lib',
[email protected]81f30ce2012-01-18 22:10:33527 'content_shell_pak',
[email protected]bb5d2d92012-10-15 07:45:42528 '../third_party/mesa/mesa.gyp:osmesa',
[email protected]331d1692013-07-25 20:40:13529 '../tools/imagediff/image_diff.gyp:image_diff',
[email protected]c1f87b22011-10-05 21:59:33530 ],
531 'include_dirs': [
532 '..',
533 ],
534 'sources': [
[email protected]711f428e2012-06-22 02:18:23535 'app/startup_helper_win.cc',
[email protected]993951d2013-05-08 21:37:02536 'shell/app/shell_main.cc',
[email protected]c1f87b22011-10-05 21:59:33537 ],
[email protected]85ff16042012-03-06 23:46:34538 'mac_bundle_resources': [
[email protected]993951d2013-05-08 21:37:02539 'shell/app/app.icns',
540 'shell/app/app-Info.plist',
[email protected]85ff16042012-03-06 23:46:34541 ],
542 # TODO(mark): Come up with a fancier way to do this. It should only
543 # be necessary to list app-Info.plist once, not the three times it is
544 # listed here.
545 'mac_bundle_resources!': [
[email protected]993951d2013-05-08 21:37:02546 'shell/app/app-Info.plist',
[email protected]85ff16042012-03-06 23:46:34547 ],
548 'xcode_settings': {
[email protected]993951d2013-05-08 21:37:02549 'INFOPLIST_FILE': 'shell/app/app-Info.plist',
[email protected]85ff16042012-03-06 23:46:34550 },
[email protected]c1f87b22011-10-05 21:59:33551 'msvs_settings': {
552 'VCLinkerTool': {
553 'SubSystem': '2', # Set /SUBSYSTEM:WINDOWS
554 },
[email protected]30624922013-06-04 10:40:10555 'VCManifestTool': {
[email protected]5d60b0b2013-07-30 20:24:30556 'AdditionalManifestFiles': [
557 'shell/app/shell.exe.manifest',
558 ],
[email protected]30624922013-06-04 10:40:10559 },
[email protected]c1f87b22011-10-05 21:59:33560 },
561 'conditions': [
562 ['OS=="win" and win_use_allocator_shim==1', {
563 'dependencies': [
564 '../base/allocator/allocator.gyp:allocator',
565 ],
566 }],
567 ['OS=="win"', {
[email protected]7fc83822012-03-30 19:53:29568 'sources': [
[email protected]993951d2013-05-08 21:37:02569 'shell/app/shell.rc',
[email protected]7fc83822012-03-30 19:53:29570 ],
[email protected]c1f87b22011-10-05 21:59:33571 'configurations': {
572 'Debug_Base': {
573 'msvs_settings': {
574 'VCLinkerTool': {
575 'LinkIncremental': '<(msvs_large_module_debug_link_mode)',
576 },
577 },
578 },
579 },
[email protected]85ff16042012-03-06 23:46:34580 }], # OS=="win"
[email protected]5d9bc782013-05-17 17:22:14581 ['OS == "win" or toolkit_uses_gtk == 1', {
[email protected]27315ce42011-10-14 01:25:12582 'dependencies': [
583 '../sandbox/sandbox.gyp:sandbox',
584 ],
[email protected]5d9bc782013-05-17 17:22:14585 }], # OS=="win" or toolkit_uses_gtk == 1
[email protected]398990892012-01-20 03:25:58586 ['toolkit_uses_gtk == 1', {
587 'dependencies': [
588 '<(DEPTH)/build/linux/system.gyp:gtk',
589 ],
[email protected]85ff16042012-03-06 23:46:34590 }], # toolkit_uses_gtk
591 ['OS=="mac"', {
592 'product_name': '<(content_shell_product_name)',
593 'dependencies!': [
594 'content_shell_lib',
595 ],
596 'dependencies': [
597 'content_shell_framework',
[email protected]180df8f2012-03-09 22:36:10598 'content_shell_helper_app',
599 ],
600 'copies': [
601 {
602 'destination': '<(PRODUCT_DIR)/<(content_shell_product_name).app/Contents/Frameworks',
603 'files': [
604 '<(PRODUCT_DIR)/<(content_shell_product_name) Helper.app',
605 ],
606 },
[email protected]85ff16042012-03-06 23:46:34607 ],
608 'postbuilds': [
609 {
610 'postbuild_name': 'Copy <(content_shell_product_name) Framework.framework',
611 'action': [
612 '../build/mac/copy_framework_unversioned.sh',
613 '${BUILT_PRODUCTS_DIR}/<(content_shell_product_name) Framework.framework',
614 '${BUILT_PRODUCTS_DIR}/${CONTENTS_FOLDER_PATH}/Frameworks',
615 ],
616 },
617 {
[email protected]85ff16042012-03-06 23:46:34618 # Modify the Info.plist as needed.
619 'postbuild_name': 'Tweak Info.plist',
620 'action': ['../build/mac/tweak_info_plist.py',
[email protected]6d302912012-11-05 21:57:28621 '--scm=1',
622 '--version=<(content_shell_version)'],
[email protected]85ff16042012-03-06 23:46:34623 },
624 {
[email protected]180df8f2012-03-09 22:36:10625 # This postbuid step is responsible for creating the following
626 # helpers:
627 #
628 # Content Shell Helper EH.app and Content Shell Helper NP.app are
629 # created from Content Shell Helper.app.
630 #
631 # The EH helper is marked for an executable heap. The NP helper
632 # is marked for no PIE (ASLR).
633 'postbuild_name': 'Make More Helpers',
634 'action': [
635 '../build/mac/make_more_helpers.sh',
636 'Frameworks',
637 '<(content_shell_product_name)',
638 ],
639 },
640 {
[email protected]85ff16042012-03-06 23:46:34641 # Make sure there isn't any Objective-C in the shell's
642 # executable.
643 'postbuild_name': 'Verify No Objective-C',
644 'action': [
645 '../build/mac/verify_no_objc.sh',
646 ],
647 },
648 ],
649 }], # OS=="mac"
[email protected]331d1692013-07-25 20:40:13650 ['OS=="android"', {
651 'dependencies!': [
652 '../tools/imagediff/image_diff.gyp:image_diff',
653 ],
654 }], # OS=="android"
655 ['OS=="android" and android_webview_build==0', {
656 'dependencies': [
657 '../tools/imagediff/image_diff.gyp:image_diff#host',
658 ],
659 }], # OS=="android" and android_webview_build==0
[email protected]c1f87b22011-10-05 21:59:33660 ],
661 },
[email protected]fe2420d2012-08-21 07:28:33662 {
663 'target_name': 'content_shell_builder',
664 'type': 'none',
665 'dependencies': [
666 'content_shell',
[email protected]fe2420d2012-08-21 07:28:33667 ],
668 },
[email protected]d76ff4162014-01-05 19:04:43669 {
670 'target_name': 'layout_test_helper',
671 'type': 'executable',
672 'sources': [
673 'shell/renderer/test_runner/helper/layout_test_helper_mac.mm',
674 'shell/renderer/test_runner/helper/layout_test_helper_win.cc',
675 ],
676 'conditions': [
677 ['OS=="mac"', {
678 'link_settings': {
679 'libraries': [
680 '$(SDKROOT)/System/Library/Frameworks/AppKit.framework',
681 ],
682 },
683 }],
684 ],
685 },
[email protected]5629e0c2011-09-12 22:07:36686 ],
[email protected]85ff16042012-03-06 23:46:34687 'conditions': [
688 ['OS=="mac"', {
689 'targets': [
690 {
691 'target_name': 'content_shell_framework',
692 'type': 'shared_library',
693 'product_name': '<(content_shell_product_name) Framework',
694 'mac_bundle': 1,
695 'mac_bundle_resources': [
[email protected]993951d2013-05-08 21:37:02696 'shell/app/English.lproj/HttpAuth.xib',
697 'shell/app/English.lproj/MainMenu.xib',
[email protected]a7aa8ab2013-10-24 07:21:48698 '<(PRODUCT_DIR)/content_shell.pak',
699 'shell/app/framework-Info.plist',
[email protected]85ff16042012-03-06 23:46:34700 ],
[email protected]a7aa8ab2013-10-24 07:21:48701 'mac_bundle_resources!': [
702 'shell/app/framework-Info.plist',
703 ],
704 'xcode_settings': {
[email protected]6efed472013-11-01 02:09:34705 # The framework is placed within the .app's Framework
706 # directory. DYLIB_INSTALL_NAME_BASE and
707 # LD_DYLIB_INSTALL_NAME affect -install_name.
708 'DYLIB_INSTALL_NAME_BASE':
709 '@executable_path/../Frameworks',
710 # See /build/mac/copy_framework_unversioned.sh for
711 # information on LD_DYLIB_INSTALL_NAME.
712 'LD_DYLIB_INSTALL_NAME':
713 '$(DYLIB_INSTALL_NAME_BASE:standardizepath)/$(WRAPPER_NAME)/$(PRODUCT_NAME)',
714
[email protected]a7aa8ab2013-10-24 07:21:48715 'INFOPLIST_FILE': 'shell/app/framework-Info.plist',
716 },
[email protected]85ff16042012-03-06 23:46:34717 'dependencies': [
718 'content_shell_lib',
719 ],
720 'include_dirs': [
721 '..',
722 ],
723 'sources': [
[email protected]4642f5b2013-07-03 21:43:31724 'shell/app/shell_content_main.cc',
[email protected]216161f2013-07-02 16:23:20725 'shell/app/shell_content_main.h',
[email protected]85ff16042012-03-06 23:46:34726 ],
[email protected]a7aa8ab2013-10-24 07:21:48727 'postbuilds': [
728 {
729 # Modify the Info.plist as needed. The script explains why
730 # this is needed. This is also done in the chrome target.
731 # The framework needs the Breakpad keys if this feature is
732 # enabled. It does not need the Keystone keys; these always
733 # come from the outer application bundle. The framework
734 # doesn't currently use the SCM keys for anything,
735 # but this seems like a really good place to store them.
736 'postbuild_name': 'Tweak Info.plist',
737 'action': ['../build/mac/tweak_info_plist.py',
738 '--breakpad=1',
739 '--keystone=0',
740 '--scm=1',
741 '--version=<(content_shell_version)',
742 '--branding=<(content_shell_product_name)'],
743 },
744 ],
[email protected]5d96bbe2012-07-25 17:13:23745 'copies': [
746 {
747 # Copy FFmpeg binaries for audio/video support.
748 'destination': '<(PRODUCT_DIR)/$(CONTENTS_FOLDER_PATH)/Libraries',
749 'files': [
750 '<(PRODUCT_DIR)/ffmpegsumo.so',
751 ],
752 },
[email protected]a7aa8ab2013-10-24 07:21:48753 {
754 'destination': '<(PRODUCT_DIR)/$(CONTENTS_FOLDER_PATH)/Resources',
755 'files': [
756 '<(PRODUCT_DIR)/crash_inspector',
757 '<(PRODUCT_DIR)/crash_report_sender.app'
758 ],
759 },
[email protected]5d96bbe2012-07-25 17:13:23760 ],
[email protected]fda1c6c82013-04-09 16:10:12761 'conditions': [
762 ['enable_webrtc==1', {
763 'variables': {
764 'libpeer_target_type%': 'static_library',
765 },
766 'conditions': [
[email protected]e4aa290b2013-05-01 18:54:19767 ['libpeer_target_type!="static_library"', {
[email protected]fda1c6c82013-04-09 16:10:12768 'copies': [{
769 'destination': '<(PRODUCT_DIR)/$(CONTENTS_FOLDER_PATH)/Libraries',
770 'files': [
[email protected]62461b72013-05-02 12:27:12771 '<(PRODUCT_DIR)/libpeerconnection.so',
[email protected]fda1c6c82013-04-09 16:10:12772 ],
773 }],
774 }],
775 ],
776 }],
777 ],
[email protected]180df8f2012-03-09 22:36:10778 }, # target content_shell_framework
779 {
780 'target_name': 'content_shell_helper_app',
781 'type': 'executable',
782 'variables': { 'enable_wexit_time_destructors': 1, },
783 'product_name': '<(content_shell_product_name) Helper',
784 'mac_bundle': 1,
785 'dependencies': [
786 'content_shell_framework',
787 ],
788 'sources': [
[email protected]993951d2013-05-08 21:37:02789 'shell/app/shell_main.cc',
790 'shell/app/helper-Info.plist',
[email protected]180df8f2012-03-09 22:36:10791 ],
792 # TODO(mark): Come up with a fancier way to do this. It should only
793 # be necessary to list helper-Info.plist once, not the three times it
794 # is listed here.
795 'mac_bundle_resources!': [
[email protected]993951d2013-05-08 21:37:02796 'shell/app/helper-Info.plist',
[email protected]180df8f2012-03-09 22:36:10797 ],
798 # TODO(mark): For now, don't put any resources into this app. Its
799 # resources directory will be a symbolic link to the browser app's
800 # resources directory.
801 'mac_bundle_resources/': [
802 ['exclude', '.*'],
803 ],
804 'xcode_settings': {
[email protected]993951d2013-05-08 21:37:02805 'INFOPLIST_FILE': 'shell/app/helper-Info.plist',
[email protected]180df8f2012-03-09 22:36:10806 },
807 'postbuilds': [
808 {
809 # The framework defines its load-time path
810 # (DYLIB_INSTALL_NAME_BASE) relative to the main executable
811 # (chrome). A different relative path needs to be used in
812 # content_shell_helper_app.
813 'postbuild_name': 'Fix Framework Link',
814 'action': [
815 'install_name_tool',
816 '-change',
[email protected]6efed472013-11-01 02:09:34817 '@executable_path/../Frameworks/<(content_shell_product_name) Framework.framework/<(content_shell_product_name) Framework',
818 '@executable_path/../../../<(content_shell_product_name) Framework.framework/<(content_shell_product_name) Framework',
[email protected]180df8f2012-03-09 22:36:10819 '${BUILT_PRODUCTS_DIR}/${EXECUTABLE_PATH}'
820 ],
821 },
822 {
823 # Modify the Info.plist as needed. The script explains why this
824 # is needed. This is also done in the chrome and chrome_dll
[email protected]bbf52442012-08-23 22:53:18825 # targets. In this case, --breakpad=0, --keystone=0, and --scm=0
826 # are used because Breakpad, Keystone, and SCM keys are
[email protected]180df8f2012-03-09 22:36:10827 # never placed into the helper.
828 'postbuild_name': 'Tweak Info.plist',
829 'action': ['../build/mac/tweak_info_plist.py',
830 '--breakpad=0',
831 '--keystone=0',
[email protected]6d302912012-11-05 21:57:28832 '--scm=0',
833 '--version=<(content_shell_version)'],
[email protected]180df8f2012-03-09 22:36:10834 },
835 {
836 # Make sure there isn't any Objective-C in the helper app's
837 # executable.
838 'postbuild_name': 'Verify No Objective-C',
839 'action': [
840 '../build/mac/verify_no_objc.sh',
841 ],
842 },
843 ],
[email protected]ec40c38f2012-06-28 16:37:49844 'conditions': [
845 ['component=="shared_library"', {
846 'xcode_settings': {
847 'LD_RUNPATH_SEARCH_PATHS': [
848 # Get back from Content Shell.app/Contents/Frameworks/
849 # Helper.app/Contents/MacOS
850 '@loader_path/../../../../../..',
851 ],
852 },
853 }],
854 ],
[email protected]180df8f2012-03-09 22:36:10855 }, # target content_shell_helper_app
[email protected]85ff16042012-03-06 23:46:34856 ],
857 }], # OS=="mac"
[email protected]cc66d282012-03-30 11:44:06858 ['OS=="android"', {
859 'targets': [
860 {
[email protected]a08029b42012-04-25 03:18:46861 # TODO(jrg): Update this action and other jni generators to only
862 # require specifying the java directory and generate the rest.
863 'target_name': 'content_shell_jni_headers',
864 'type': 'none',
[email protected]e46f66152012-07-19 20:02:55865 'sources': [
[email protected]4d4eb5b2013-01-29 21:55:55866 'shell/android/browsertests_apk/src/org/chromium/content_browsertests_apk/ContentBrowserTestsActivity.java',
[email protected]eadcff0f2013-06-20 21:08:10867 'shell/android/java/src/org/chromium/content_shell/ShellLayoutTestUtils.java',
[email protected]e46f66152012-07-19 20:02:55868 'shell/android/java/src/org/chromium/content_shell/ShellManager.java',
869 'shell/android/java/src/org/chromium/content_shell/Shell.java',
870 ],
[email protected]a08029b42012-04-25 03:18:46871 'variables': {
[email protected]521cd942013-03-07 22:34:05872 'jni_gen_package': 'content/shell',
[email protected]8ef3318fe2014-01-10 15:23:54873 'jni_generator_ptr_type': 'long',
[email protected]a08029b42012-04-25 03:18:46874 },
875 'includes': [ '../build/jni_generator.gypi' ],
876 },
877 {
[email protected]c1101582012-06-25 17:07:18878 'target_name': 'libcontent_shell_content_view',
[email protected]a08029b42012-04-25 03:18:46879 'type': 'shared_library',
880 'dependencies': [
881 'content_shell_jni_headers',
882 'content_shell_lib',
883 'content_shell_pak',
884 # Skia is necessary to ensure the dependencies needed by
885 # WebContents are included.
886 '../skia/skia.gyp:skia',
887 '<(DEPTH)/media/media.gyp:player_android',
888 ],
[email protected]a08029b42012-04-25 03:18:46889 'sources': [
890 'shell/android/shell_library_loader.cc',
891 'shell/android/shell_library_loader.h',
[email protected]f83a47392012-07-12 22:15:04892 ],
[email protected]7abcaa82012-06-27 17:09:48893 'conditions': [
[email protected]d999c3cb2013-03-12 10:22:36894 ['android_webview_build==1', {
[email protected]7abcaa82012-06-27 17:09:48895 'ldflags': [
896 '-lgabi++', # For rtti
897 ],
898 }],
899 ],
[email protected]a08029b42012-04-25 03:18:46900 },
901 {
[email protected]4d4eb5b2013-01-29 21:55:55902 'target_name': 'content_shell_java',
903 'type': 'none',
904 'dependencies': [
[email protected]ba42b1e2013-10-19 22:13:17905 'content.gyp:content_java',
[email protected]4d4eb5b2013-01-29 21:55:55906 ],
907 'variables': {
[email protected]4d4eb5b2013-01-29 21:55:55908 'java_in_dir': '../content/shell/android/java',
909 'has_java_resources': 1,
910 'R_package': 'org.chromium.content_shell',
911 'R_package_relpath': 'org/chromium/content_shell',
912 },
913 'includes': [ '../build/java.gypi' ],
914 },
915 {
[email protected]319d6a82012-09-20 22:52:28916 # content_shell_apk creates a .jar as a side effect. Any java targets
917 # that need that .jar in their classpath should depend on this target,
[email protected]4d4eb5b2013-01-29 21:55:55918 # content_shell_apk_java. Dependents of content_shell_apk receive its
919 # jar path in the variable 'apk_output_jar_path'. This target should
920 # only be used by targets which instrument content_shell_apk.
921 'target_name': 'content_shell_apk_java',
[email protected]319d6a82012-09-20 22:52:28922 'type': 'none',
[email protected]319d6a82012-09-20 22:52:28923 'dependencies': [
[email protected]319d6a82012-09-20 22:52:28924 'content_shell_apk',
[email protected]319d6a82012-09-20 22:52:28925 ],
[email protected]b13f73e2013-03-27 23:31:27926 'includes': [ '../build/apk_fake_jar.gypi' ],
[email protected]319d6a82012-09-20 22:52:28927 },
[email protected]75c86a22012-09-26 03:50:37928 {
929 'target_name': 'content_shell_apk',
930 'type': 'none',
931 'dependencies': [
[email protected]ba42b1e2013-10-19 22:13:17932 'content.gyp:content_java',
[email protected]c48fece02013-06-19 12:01:42933 'content_java_test_support',
[email protected]4d4eb5b2013-01-29 21:55:55934 'content_shell_java',
935 'libcontent_shell_content_view',
[email protected]75c86a22012-09-26 03:50:37936 '../base/base.gyp:base_java',
937 '../media/media.gyp:media_java',
938 '../net/net.gyp:net_java',
[email protected]4e384052013-08-14 20:46:30939 '../tools/android/forwarder/forwarder.gyp:forwarder',
[email protected]f450287d2013-11-15 17:52:54940 '../ui/android/ui_android.gyp:ui_java',
[email protected]75c86a22012-09-26 03:50:37941 ],
942 'variables': {
[email protected]75c86a22012-09-26 03:50:37943 'apk_name': 'ContentShell',
[email protected]4d4eb5b2013-01-29 21:55:55944 'manifest_package_name': 'org.chromium.content_shell_apk',
945 'java_in_dir': 'shell/android/shell_apk',
[email protected]bd6ab3db2013-03-26 17:35:21946 'resource_dir': 'shell/android/shell_apk/res',
[email protected]e4865252013-04-04 09:15:59947 'native_lib_target': 'libcontent_shell_content_view',
[email protected]75c86a22012-09-26 03:50:37948 'additional_input_paths': ['<(PRODUCT_DIR)/content_shell/assets/content_shell.pak'],
[email protected]0437c502013-11-28 05:17:33949 'asset_location': '<(PRODUCT_DIR)/content_shell/assets',
[email protected]75c86a22012-09-26 03:50:37950 },
[email protected]5b0095b72013-08-01 17:44:22951 'conditions': [
952 ['android_webview_build==0', {
953 'dependencies': [
954 '../tools/imagediff/image_diff.gyp:image_diff#host',
955 ],
956 }],
957 ],
[email protected]75c86a22012-09-26 03:50:37958 'includes': [ '../build/java_apk.gypi' ],
959 },
[email protected]cc66d282012-03-30 11:44:06960 ],
961 }], # OS=="android"
[email protected]369205f2013-10-29 04:35:05962 ['OS=="win"', {
963 'targets': [
964 {
965 'target_name': 'content_shell_crash_service',
966 'type': 'executable',
967 'dependencies': [
968 '../base/base.gyp:base',
969 '../components/components.gyp:breakpad_crash_service',
970 ],
971 'include_dirs': [
972 '..',
973 ],
974 'sources': [
975 'shell/tools/content_shell_crash_service.cc',
976 ],
977 'msvs_settings': {
978 'VCLinkerTool': {
979 'SubSystem': '2', # Set /SUBSYSTEM:WINDOWS
980 },
981 },
982 },
983 ],
984 }], # OS=="win"
[email protected]c8250d42013-10-01 05:17:46985 ['OS=="win" and fastbuild==0 and target_arch=="ia32"', {
986 'variables': {
987 'dest_dir': '<(PRODUCT_DIR)/syzygy',
988 },
989 'targets': [
990 {
991 'target_name': 'content_shell_syzyasan',
992 'type': 'none',
993 'sources' : [],
994 # Instrument content_shell with SyzyAsan.
995 'actions': [
996 {
997 'action_name': 'Instrument content_shell with SyzyAsan',
998 'msvs_cygwin_shell': 0,
999 'inputs': [
1000 '<(PRODUCT_DIR)/content_shell.exe',
1001 ],
1002 'outputs': [
1003 '<(dest_dir)/content_shell.exe',
1004 '<(dest_dir)/content_shell.exe.pdb',
1005 ],
1006 'action': [
1007 'python',
1008 '<(DEPTH)/chrome/tools/build/win/syzygy_instrument.py',
1009 '--mode', 'asan',
1010 '--input_executable', '<(PRODUCT_DIR)/content_shell.exe',
1011 '--input_symbol', '<(PRODUCT_DIR)/content_shell.exe.pdb',
1012 '--destination_dir', '<(dest_dir)',
1013 ],
1014 },
1015 ],
1016 },
1017 ],
1018 }], # OS=="win" and fastbuild==0 and target_arch=="ia32"
[email protected]cc66d282012-03-30 11:44:061019 ]
[email protected]5629e0c2011-09-12 22:07:361020}