Add an exponential backoff to rechecking the app list doodle.
[chromium-blink-merge.git] / content / content_shell.gypi
blob5df6def21cf75705fb0287ddf52d6e06bf82ca6b
1 # Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file.
6   'variables': {
7     'content_shell_product_name': 'Content Shell',
8     # The "19" is so that sites that sniff for version think that this is
9     # something reasonably current; the "77.34.5" is a hint that this isn't a
10     # standard Chrome.
11     'content_shell_version': '19.77.34.5',
12     'conditions': [
13       ['OS=="linux"', {
14        'use_custom_freetype%': 1,
15       }, {
16        'use_custom_freetype%': 0,
17       }],
18     ],
19   },
20   'targets': [
21     {
22       # GN version: //content/shell:content_shell_lib
23       'target_name': 'content_shell_lib',
24       'type': 'static_library',
25       'defines': ['CONTENT_SHELL_VERSION="<(content_shell_version)"'],
26       'variables': {
27         'chromium_code': 1,
28       },
29       'dependencies': [
30         'app/resources/content_resources.gyp:content_resources',
31         'app/strings/content_strings.gyp:content_strings',
32         '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',
39         'content.gyp:content_resources',
40         'content.gyp:content_utility',
41         'content_shell_resources',
42         'copy_test_netscape_plugin',
43         'layouttest_support_content',
44         '../base/base.gyp:base',
45         '../base/base.gyp:base_static',
46         '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations',
47         '../cc/blink/cc_blink.gyp:cc_blink',
48         '../cc/cc.gyp:cc',
49         '../components/components.gyp:crash_component_breakpad_mac_to_be_deleted',
50         '../components/components.gyp:web_cache_renderer',
51         '../device/bluetooth/bluetooth.gyp:device_bluetooth',
52         '../gin/gin.gyp:gin',
53         '../gpu/gpu.gyp:gpu',
54         '../ipc/ipc.gyp:ipc',
55         '../media/blink/media_blink.gyp:media_blink',
56         '../media/media.gyp:media',
57         '../net/net.gyp:net',
58         '../net/net.gyp:net_resources',
59         '../skia/skia.gyp:skia',
60         '../storage/storage_browser.gyp:storage',
61         '../third_party/WebKit/public/blink.gyp:blink',
62         '../third_party/WebKit/public/blink.gyp:blink_test_support',
63         '../ui/base/ime/ui_base_ime.gyp:ui_base_ime',
64         '../ui/base/ui_base.gyp:ui_base',
65         '../ui/events/events.gyp:events_base',
66         '../ui/gfx/gfx.gyp:gfx',
67         '../ui/gfx/gfx.gyp:gfx_geometry',
68         '../ui/gfx/ipc/gfx_ipc.gyp:gfx_ipc',
69         '../ui/gl/gl.gyp:gl',
70         '../url/url.gyp:url_lib',
71         '../v8/tools/gyp/v8.gyp:v8',
72       ],
73       'include_dirs': [
74         '..',
75       ],
76       'sources': [
77         # Note: sources list duplicated in GN build.
78         'shell/android/shell_jni_registrar.cc',
79         'shell/android/shell_jni_registrar.h',
80         'shell/android/shell_manager.cc',
81         'shell/android/shell_manager.h',
82         'shell/app/blink_test_platform_support.h',
83         'shell/app/blink_test_platform_support_android.cc',
84         'shell/app/blink_test_platform_support_linux.cc',
85         'shell/app/blink_test_platform_support_mac.mm',
86         'shell/app/blink_test_platform_support_win.cc',
87         'shell/app/paths_mac.h',
88         'shell/app/paths_mac.mm',
89         'shell/app/shell_crash_reporter_client.cc',
90         'shell/app/shell_crash_reporter_client.h',
91         'shell/app/shell_main_delegate.cc',
92         'shell/app/shell_main_delegate.h',
93         'shell/app/shell_main_delegate_mac.h',
94         'shell/app/shell_main_delegate_mac.mm',
95         'shell/browser/ipc_echo_message_filter.cc',
96         'shell/browser/ipc_echo_message_filter.h',
97         'shell/browser/layout_test/layout_test_android.cc',
98         'shell/browser/layout_test/layout_test_android.h',
99         'shell/browser/layout_test/layout_test_browser_context.cc',
100         'shell/browser/layout_test/layout_test_browser_context.h',
101         'shell/browser/layout_test/layout_test_browser_main.cc',
102         'shell/browser/layout_test/layout_test_browser_main.h',
103         'shell/browser/layout_test/layout_test_browser_main_parts.cc',
104         'shell/browser/layout_test/layout_test_browser_main_parts.h',
105         'shell/browser/layout_test/layout_test_content_browser_client.cc',
106         'shell/browser/layout_test/layout_test_content_browser_client.h',
107         'shell/browser/layout_test/layout_test_devtools_frontend.cc',
108         'shell/browser/layout_test/layout_test_devtools_frontend.h',
109         'shell/browser/layout_test/layout_test_download_manager_delegate.cc',
110         'shell/browser/layout_test/layout_test_download_manager_delegate.h',
111         'shell/browser/layout_test/layout_test_javascript_dialog_manager.cc',
112         'shell/browser/layout_test/layout_test_javascript_dialog_manager.h',
113         'shell/browser/layout_test/layout_test_message_filter.cc',
114         'shell/browser/layout_test/layout_test_message_filter.h',
115         'shell/browser/layout_test/layout_test_navigator_connect_service_factory.cc',
116         'shell/browser/layout_test/layout_test_navigator_connect_service_factory.h',
117         'shell/browser/layout_test/layout_test_notification_manager.cc',
118         'shell/browser/layout_test/layout_test_notification_manager.h',
119         'shell/browser/layout_test/layout_test_permission_manager.h',
120         'shell/browser/layout_test/layout_test_permission_manager.cc',
121         'shell/browser/layout_test/layout_test_push_messaging_service.cc',
122         'shell/browser/layout_test/layout_test_push_messaging_service.h',
123         'shell/browser/layout_test/layout_test_resource_dispatcher_host_delegate.cc',
124         'shell/browser/layout_test/layout_test_resource_dispatcher_host_delegate.h',
125         'shell/browser/layout_test/layout_test_url_request_context_getter.cc',
126         'shell/browser/layout_test/layout_test_url_request_context_getter.h',
127         'shell/browser/notify_done_forwarder.cc',
128         'shell/browser/notify_done_forwarder.h',
129         'shell/browser/shell.cc',
130         'shell/browser/shell.h',
131         'shell/browser/shell_access_token_store.cc',
132         'shell/browser/shell_access_token_store.h',
133         'shell/browser/shell_android.cc',
134         'shell/browser/shell_application_mac.h',
135         'shell/browser/shell_application_mac.mm',
136         'shell/browser/shell_aura.cc',
137         'shell/browser/shell_browser_context.cc',
138         'shell/browser/shell_browser_context.h',
139         'shell/browser/shell_browser_main.cc',
140         'shell/browser/shell_browser_main.h',
141         'shell/browser/shell_browser_main_parts.cc',
142         'shell/browser/shell_browser_main_parts.h',
143         'shell/browser/shell_browser_main_parts_mac.mm',
144         'shell/browser/shell_content_browser_client.cc',
145         'shell/browser/shell_content_browser_client.h',
146         'shell/browser/shell_devtools_frontend.cc',
147         'shell/browser/shell_devtools_frontend.h',
148         'shell/browser/shell_devtools_manager_delegate.cc',
149         'shell/browser/shell_devtools_manager_delegate.h',
150         'shell/browser/shell_download_manager_delegate.cc',
151         'shell/browser/shell_download_manager_delegate.h',
152         'shell/browser/shell_javascript_dialog.h',
153         'shell/browser/shell_javascript_dialog_mac.mm',
154         'shell/browser/shell_javascript_dialog_manager.cc',
155         'shell/browser/shell_javascript_dialog_manager.h',
156         'shell/browser/shell_javascript_dialog_win.cc',
157         'shell/browser/shell_login_dialog.cc',
158         'shell/browser/shell_login_dialog.h',
159         'shell/browser/shell_login_dialog_mac.mm',
160         'shell/browser/shell_mac.mm',
161         'shell/browser/shell_mojo_test_utils_android.cc',
162         'shell/browser/shell_mojo_test_utils_android.h',
163         'shell/browser/shell_net_log.cc',
164         'shell/browser/shell_net_log.h',
165         'shell/browser/shell_network_delegate.cc',
166         'shell/browser/shell_network_delegate.h',
167         'shell/browser/shell_permission_manager.cc',
168         'shell/browser/shell_permission_manager.h',
169         'shell/browser/shell_platform_data_aura.cc',
170         'shell/browser/shell_platform_data_aura.h',
171         'shell/browser/shell_plugin_service_filter.cc',
172         'shell/browser/shell_plugin_service_filter.h',
173         'shell/browser/shell_quota_permission_context.cc',
174         'shell/browser/shell_quota_permission_context.h',
175         'shell/browser/shell_resource_dispatcher_host_delegate.cc',
176         'shell/browser/shell_resource_dispatcher_host_delegate.h',
177         'shell/browser/shell_speech_recognition_manager_delegate.cc',
178         'shell/browser/shell_speech_recognition_manager_delegate.h',
179         'shell/browser/shell_url_request_context_getter.cc',
180         'shell/browser/shell_url_request_context_getter.h',
181         'shell/browser/shell_views.cc',
182         'shell/browser/shell_web_contents_view_delegate.h',
183         'shell/browser/shell_web_contents_view_delegate_android.cc',
184         'shell/browser/shell_web_contents_view_delegate_creator.h',
185         'shell/browser/shell_web_contents_view_delegate_mac.mm',
186         'shell/browser/shell_web_contents_view_delegate_win.cc',
187         'shell/browser/webkit_test_controller.cc',
188         'shell/browser/webkit_test_controller.h',
189         'shell/common/layout_test/layout_test_messages.cc',
190         'shell/common/layout_test/layout_test_messages.h',
191         'shell/common/leak_detection_result.h',
192         'shell/common/shell_content_client.cc',
193         'shell/common/shell_content_client.h',
194         'shell/common/shell_messages.cc',
195         'shell/common/shell_messages.h',
196         'shell/common/shell_switches.cc',
197         'shell/common/shell_switches.h',
198         'shell/common/shell_test_configuration.cc',
199         'shell/common/shell_test_configuration.h',
200         'shell/common/test_runner/test_preferences.cc',
201         'shell/common/test_runner/test_preferences.h',
202         'shell/common/v8_breakpad_support_win.cc',
203         'shell/common/v8_breakpad_support_win.h',
204         'shell/common/webkit_test_helpers.cc',
205         'shell/common/webkit_test_helpers.h',
206         'shell/renderer/ipc_echo.cc',
207         'shell/renderer/ipc_echo.h',
208         'shell/renderer/layout_test/gc_controller.cc',
209         'shell/renderer/layout_test/gc_controller.h',
210         'shell/renderer/layout_test/layout_test_content_renderer_client.cc',
211         'shell/renderer/layout_test/layout_test_content_renderer_client.h',
212         'shell/renderer/layout_test/layout_test_render_frame_observer.cc',
213         'shell/renderer/layout_test/layout_test_render_frame_observer.h',
214         'shell/renderer/layout_test/layout_test_render_process_observer.cc',
215         'shell/renderer/layout_test/layout_test_render_process_observer.h',
216         'shell/renderer/layout_test/leak_detector.cc',
217         'shell/renderer/layout_test/leak_detector.h',
218         'shell/renderer/layout_test/webkit_test_runner.cc',
219         'shell/renderer/layout_test/webkit_test_runner.h',
220         'shell/renderer/shell_content_renderer_client.cc',
221         'shell/renderer/shell_content_renderer_client.h',
222         'shell/renderer/shell_render_view_observer.cc',
223         'shell/renderer/shell_render_view_observer.h',
224         'shell/renderer/test_runner/accessibility_controller.cc',
225         'shell/renderer/test_runner/accessibility_controller.h',
226         'shell/renderer/test_runner/event_sender.cc',
227         'shell/renderer/test_runner/event_sender.h',
228         'shell/renderer/test_runner/gamepad_controller.cc',
229         'shell/renderer/test_runner/gamepad_controller.h',
230         'shell/renderer/test_runner/mock_color_chooser.cc',
231         'shell/renderer/test_runner/mock_color_chooser.h',
232         'shell/renderer/test_runner/mock_constraints.cc',
233         'shell/renderer/test_runner/mock_constraints.h',
234         'shell/renderer/test_runner/mock_credential_manager_client.cc',
235         'shell/renderer/test_runner/mock_credential_manager_client.h',
236         'shell/renderer/test_runner/mock_grammar_check.cc',
237         'shell/renderer/test_runner/mock_grammar_check.h',
238         'shell/renderer/test_runner/mock_screen_orientation_client.cc',
239         'shell/renderer/test_runner/mock_screen_orientation_client.h',
240         'shell/renderer/test_runner/mock_spell_check.cc',
241         'shell/renderer/test_runner/mock_spell_check.h',
242         'shell/renderer/test_runner/mock_web_audio_device.cc',
243         'shell/renderer/test_runner/mock_web_audio_device.h',
244         'shell/renderer/test_runner/mock_web_media_stream_center.cc',
245         'shell/renderer/test_runner/mock_web_media_stream_center.h',
246         'shell/renderer/test_runner/mock_web_midi_accessor.cc',
247         'shell/renderer/test_runner/mock_web_midi_accessor.h',
248         'shell/renderer/test_runner/mock_web_speech_recognizer.cc',
249         'shell/renderer/test_runner/mock_web_speech_recognizer.h',
250         'shell/renderer/test_runner/mock_web_theme_engine.cc',
251         'shell/renderer/test_runner/mock_web_theme_engine.h',
252         'shell/renderer/test_runner/mock_web_user_media_client.cc',
253         'shell/renderer/test_runner/mock_web_user_media_client.h',
254         'shell/renderer/test_runner/mock_webrtc_data_channel_handler.cc',
255         'shell/renderer/test_runner/mock_webrtc_data_channel_handler.h',
256         'shell/renderer/test_runner/mock_webrtc_dtmf_sender_handler.cc',
257         'shell/renderer/test_runner/mock_webrtc_dtmf_sender_handler.h',
258         'shell/renderer/test_runner/mock_webrtc_peer_connection_handler.cc',
259         'shell/renderer/test_runner/mock_webrtc_peer_connection_handler.h',
260         'shell/renderer/test_runner/spell_check_client.cc',
261         'shell/renderer/test_runner/spell_check_client.h',
262         'shell/renderer/test_runner/test_common.cc',
263         'shell/renderer/test_runner/test_common.h',
264         'shell/renderer/test_runner/test_interfaces.cc',
265         'shell/renderer/test_runner/test_interfaces.h',
266         'shell/renderer/test_runner/test_plugin.cc',
267         'shell/renderer/test_runner/test_plugin.h',
268         'shell/renderer/test_runner/test_runner.cc',
269         'shell/renderer/test_runner/test_runner.h',
270         'shell/renderer/test_runner/text_input_controller.cc',
271         'shell/renderer/test_runner/text_input_controller.h',
272         'shell/renderer/test_runner/web_ax_object_proxy.cc',
273         'shell/renderer/test_runner/web_ax_object_proxy.h',
274         'shell/renderer/test_runner/web_content_settings.cc',
275         'shell/renderer/test_runner/web_content_settings.h',
276         'shell/renderer/test_runner/web_frame_test_proxy.h',
277         'shell/renderer/test_runner/web_task.cc',
278         'shell/renderer/test_runner/web_task.h',
279         'shell/renderer/test_runner/web_test_delegate.h',
280         'shell/renderer/test_runner/web_test_interfaces.cc',
281         'shell/renderer/test_runner/web_test_interfaces.h',
282         'shell/renderer/test_runner/web_test_proxy.cc',
283         'shell/renderer/test_runner/web_test_proxy.h',
284         'shell/renderer/test_runner/web_test_runner.h',
285       ],
286       'msvs_settings': {
287         'VCLinkerTool': {
288           'SubSystem': '2',  # Set /SUBSYSTEM:WINDOWS
289         },
290       },
291       'conditions': [
292         ['OS=="win" and win_use_allocator_shim==1', {
293           'dependencies': [
294             '../base/allocator/allocator.gyp:allocator',
295           ],
296         }],
297         ['OS=="win"', {
298           'resource_include_dirs': [
299             '<(SHARED_INTERMEDIATE_DIR)/content/app/strings',
300           ],
301           'dependencies': [
302             '<(DEPTH)/content/app/strings/content_strings.gyp:content_strings',
303           ],
304           'configurations': {
305             'Debug_Base': {
306               'msvs_settings': {
307                 'VCLinkerTool': {
308                   'LinkIncremental': '<(msvs_large_module_debug_link_mode)',
309                 },
310               },
311             },
312           },
313           # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
314           'msvs_disabled_warnings': [ 4267, ],
315         }],  # OS=="win"
316         ['OS=="linux"', {
317           'dependencies': [
318             '../build/linux/system.gyp:fontconfig',
319           ],
320         }],
321         ['use_x11 == 1', {
322           'dependencies': [
323             '../ui/events/devices/events_devices.gyp:events_devices',
324             '../tools/xdisplaycheck/xdisplaycheck.gyp:xdisplaycheck',
325           ],
326         }],
327         ['OS=="android"', {
328           'dependencies': [
329             '../mojo/mojo_base.gyp:libmojo_system_java',
330             'content_shell_jni_headers',
331           ],
332           'dependencies!': [
333             'copy_test_netscape_plugin',
334           ],
335         }],  # OS=="android"
336         ['os_posix == 1 and OS != "mac"', {
337           'dependencies': [
338             '../components/components.gyp:breakpad_host',
339           ],
340         }],
341         ['(OS=="linux" or OS=="android") and use_allocator!="none"', {
342           'dependencies': [
343             # This is needed by content/app/content_main_runner.cc
344             '../base/allocator/allocator.gyp:allocator',
345           ],
346         }],
347         ['use_aura==1', {
348           'dependencies': [
349             '../ui/aura/aura.gyp:aura',
350             '../ui/aura/aura.gyp:aura_test_support',
351             '../ui/events/events.gyp:events',
352             '../ui/strings/ui_strings.gyp:ui_strings',
353             '../ui/wm/wm.gyp:wm',
354           ],
355           'conditions': [
356             ['toolkit_views==1', {
357               'dependencies': [
358                 '../ui/resources/ui_resources.gyp:ui_resources',
359                 '../ui/views/controls/webview/webview.gyp:webview',
360                 '../ui/views/views.gyp:views',
361                 '../ui/views/views.gyp:views_test_support',
362               ],
363               'sources/': [
364                 ['exclude', 'shell/browser/shell_aura.cc'],
365               ],
366             }, {
367               'sources/': [
368                 ['exclude', 'shell/browser/shell_views.cc'],
369               ],
370             }],
371           ],
372         }, {
373           'sources/': [
374             ['exclude', 'shell/browser/shell_aura.cc'],
375             ['exclude', 'shell/browser/shell_views.cc'],
376           ],
377         }],  # use_aura==1
378         # The test plugin relies on X11.
379         ['OS=="linux" and use_x11==0', {
380           'dependencies!': [
381             'copy_test_netscape_plugin',
382           ],
383         }],
384         ['chromeos==1', {
385           'dependencies': [
386             '../chromeos/chromeos.gyp:chromeos',
387             '../ui/wm/wm.gyp:wm_test_support',
388            ],
389         }], # chromeos==1
390         ['use_custom_freetype==1', {
391           'dependencies': [
392              '../third_party/freetype2/freetype2.gyp:freetype2',
393           ],
394         }],
395         ['enable_plugins==0', {
396           'sources!': [
397             'shell/browser/shell_plugin_service_filter.cc',
398             'shell/browser/shell_plugin_service_filter.h',
399           ],
400         }]
401       ],
402     },
403     {
404       # GN version: //content/shell:resources
405       'target_name': 'content_shell_resources',
406       'type': 'none',
407       'variables': {
408         'grit_out_dir': '<(SHARED_INTERMEDIATE_DIR)/content',
409       },
410       'actions': [
411         {
412           'action_name': 'generate_content_shell_resources',
413           'variables': {
414             'grit_grd_file': 'shell/shell_resources.grd',
415           },
416           'includes': [ '../build/grit_action.gypi' ],
417         },
418       ],
419       'includes': [ '../build/grit_target.gypi' ],
420       'copies': [
421         {
422           'destination': '<(PRODUCT_DIR)',
423           'files': [
424             '<(SHARED_INTERMEDIATE_DIR)/content/shell_resources.pak'
425           ],
426         },
427       ],
428       'conditions': [
429         ['OS=="win"', {
430           'copies': [{
431             'destination': '<(PRODUCT_DIR)',
432             'files': ['shell/renderer/test_runner/resources/fonts/AHEM____.TTF'],
433           }],
434         }],
435         ['OS=="mac"', {
436           'all_dependent_settings': {
437             'mac_bundle_resources': [
438               'shell/renderer/test_runner/resources/fonts/AHEM____.TTF',
439               'shell/renderer/test_runner/resources/fonts/ChromiumAATTest.ttf',
440               '<(SHARED_INTERMEDIATE_DIR)/webkit/missingImage.png',
441               '<(SHARED_INTERMEDIATE_DIR)/webkit/textAreaResizeCorner.png',
442             ],
443           },
444         }],
445         ['use_x11 == 1', {
446           'copies': [{
447             'destination': '<(PRODUCT_DIR)',
448             'files': [
449               'shell/renderer/test_runner/resources/fonts/AHEM____.TTF',
450               'shell/renderer/test_runner/resources/fonts/fonts.conf',
451               '../third_party/gardiner_mod/GardinerModBug.ttf',
452               '../third_party/gardiner_mod/GardinerModCat.ttf',
453             ]
454           }],
455         }],
456         ['OS=="android"', {
457           'copies': [{
458             'destination': '<(PRODUCT_DIR)',
459             'files': [
460               'shell/renderer/test_runner/resources/fonts/AHEM____.TTF',
461               'shell/renderer/test_runner/resources/fonts/android_main_fonts.xml',
462               'shell/renderer/test_runner/resources/fonts/android_fallback_fonts.xml',
463             ]
464           }],
465         }],
466       ],
467     },
468     {
469       # We build a minimal set of resources so WebKit in content_shell has
470       # access to necessary resources.
471       # GN version: //content/shell:pak
472       'target_name': 'content_shell_pak',
473       'type': 'none',
474       'dependencies': [
475         'app/resources/content_resources.gyp:content_resources',
476         'app/strings/content_strings.gyp:content_strings',
477         'browser/tracing/tracing_resources.gyp:tracing_resources',
478         'content.gyp:content_resources',
479         'content_shell_resources',
480         '<(DEPTH)/net/net.gyp:net_resources',
481         '<(DEPTH)/third_party/WebKit/public/blink_resources.gyp:blink_resources',
482         '<(DEPTH)/ui/resources/ui_resources.gyp:ui_resources',
483         '<(DEPTH)/ui/strings/ui_strings.gyp:ui_strings',
484       ],
485       'conditions': [
486         ['OS!="android"', {
487           'dependencies': [
488             'browser/devtools/devtools_resources.gyp:devtools_resources',
489           ],
490         }],
491         ['OS=="android"', {
492           'copies': [
493             {
494               'destination': '<(PRODUCT_DIR)',
495               'files': [
496                 '<(PRODUCT_DIR)/content_shell/assets/content_shell.pak'
497               ],
498             },
499           ],
500         }],
501       ],
502       'actions': [
503         {
504           'action_name': 'repack_content_shell_pack',
505           'variables': {
506             'pak_inputs': [
507               '<(SHARED_INTERMEDIATE_DIR)/blink/public/resources/blink_resources.pak',
508               '<(SHARED_INTERMEDIATE_DIR)/blink/public/resources/blink_image_resources_100_percent.pak',
509               '<(SHARED_INTERMEDIATE_DIR)/content/app/resources/content_resources_100_percent.pak',
510               '<(SHARED_INTERMEDIATE_DIR)/content/app/strings/content_strings_en-US.pak',
511               '<(SHARED_INTERMEDIATE_DIR)/content/browser/tracing/tracing_resources.pak',
512               '<(SHARED_INTERMEDIATE_DIR)/content/content_resources.pak',
513               '<(SHARED_INTERMEDIATE_DIR)/content/shell_resources.pak',
514               '<(SHARED_INTERMEDIATE_DIR)/net/net_resources.pak',
515               '<(SHARED_INTERMEDIATE_DIR)/ui/resources/ui_resources_100_percent.pak',
516               '<(SHARED_INTERMEDIATE_DIR)/ui/resources/webui_resources.pak',
517               '<(SHARED_INTERMEDIATE_DIR)/ui/strings/app_locale_settings_en-US.pak',
518               '<(SHARED_INTERMEDIATE_DIR)/ui/strings/ui_strings_en-US.pak',
519             ],
520             'conditions': [
521               ['OS!="android"', {
522                 'pak_inputs': ['<(SHARED_INTERMEDIATE_DIR)/blink/devtools_resources.pak',],
523                 'pak_output': '<(PRODUCT_DIR)/content_shell.pak',
524               }, {
525                 'pak_output': '<(PRODUCT_DIR)/content_shell/assets/content_shell.pak',
526               }],
527             ],
528           },
529           'includes': [ '../build/repack_action.gypi' ],
530         },
531       ],
532     },
533     {
534       # GN version: //content/shell:content_shell
535       'target_name': 'content_shell',
536       'type': 'executable',
537       'mac_bundle': 1,
538       'variables': {
539         'chromium_code': 1,
540       },
541       'dependencies': [
542         'content_shell_lib',
543         'content_shell_pak',
544         '../third_party/mesa/mesa.gyp:osmesa',
545         '../tools/imagediff/image_diff.gyp:image_diff',
546       ],
547       'include_dirs': [
548         '..',
549       ],
550       'sources': [
551         'shell/app/shell_main.cc',
552       ],
553       'mac_bundle_resources': [
554         'shell/app/app.icns',
555         'shell/app/app-Info.plist',
556       ],
557       # TODO(mark): Come up with a fancier way to do this.  It should only
558       # be necessary to list app-Info.plist once, not the three times it is
559       # listed here.
560       'mac_bundle_resources!': [
561         'shell/app/app-Info.plist',
562       ],
563       'xcode_settings': {
564         'INFOPLIST_FILE': 'shell/app/app-Info.plist',
565       },
566       'msvs_settings': {
567         'VCManifestTool': {
568           'AdditionalManifestFiles': [
569             'shell/app/shell.exe.manifest',
570           ],
571         },
572       },
573       'conditions': [
574         ['OS=="win" and win_use_allocator_shim==1', {
575           'dependencies': [
576             '../base/allocator/allocator.gyp:allocator',
577           ],
578         }],
579         ['OS=="win"', {
580           'sources': [
581             'shell/app/shell.rc',
582           ],
583           'configurations': {
584             'Debug_Base': {
585               'msvs_settings': {
586                 'VCLinkerTool': {
587                   'LinkIncremental': '<(msvs_large_module_debug_link_mode)',
588                 },
589               },
590             },
591           },
592         }],  # OS=="win"
593         ['OS == "win"', {
594           'dependencies': [
595             '../sandbox/sandbox.gyp:sandbox',
596           ],
597         }],  # OS=="win"
598         ['OS=="win" and asan==0', {
599           'msvs_settings': {
600             'VCLinkerTool': {
601               'SubSystem': '2',  # Set /SUBSYSTEM:WINDOWS
602             },
603           },
604         }],  # OS=="win" and asan==0
605         ['OS=="mac"', {
606           'product_name': '<(content_shell_product_name)',
607           'dependencies!': [
608             'content_shell_lib',
609           ],
610           'dependencies': [
611             'content_shell_framework',
612             'content_shell_helper_app',
613           ],
614           'copies': [
615             {
616               'destination': '<(PRODUCT_DIR)/<(content_shell_product_name).app/Contents/Frameworks',
617               'files': [
618                 '<(PRODUCT_DIR)/<(content_shell_product_name) Helper.app',
619               ],
620             },
621           ],
622           'postbuilds': [
623             {
624               'postbuild_name': 'Copy <(content_shell_product_name) Framework.framework',
625               'action': [
626                 '../build/mac/copy_framework_unversioned.sh',
627                 '${BUILT_PRODUCTS_DIR}/<(content_shell_product_name) Framework.framework',
628                 '${BUILT_PRODUCTS_DIR}/${CONTENTS_FOLDER_PATH}/Frameworks',
629               ],
630             },
631             {
632               # Modify the Info.plist as needed.
633               'postbuild_name': 'Tweak Info.plist',
634               'action': ['../build/mac/tweak_info_plist.py',
635                          '--scm=1',
636                          '--version=<(content_shell_version)'],
637             },
638             {
639               # This postbuid step is responsible for creating the following
640               # helpers:
641               #
642               # Content Shell Helper EH.app and Content Shell Helper NP.app are
643               # created from Content Shell Helper.app.
644               #
645               # The EH helper is marked for an executable heap. The NP helper
646               # is marked for no PIE (ASLR).
647               'postbuild_name': 'Make More Helpers',
648               'action': [
649                 '../build/mac/make_more_helpers.sh',
650                 'Frameworks',
651                 '<(content_shell_product_name)',
652               ],
653             },
654             {
655               # Make sure there isn't any Objective-C in the shell's
656               # executable.
657               'postbuild_name': 'Verify No Objective-C',
658               'action': [
659                 '../build/mac/verify_no_objc.sh',
660               ],
661             },
662           ],
663         }],  # OS=="mac"
664         ['OS=="android"', {
665           'dependencies': [
666             '../tools/imagediff/image_diff.gyp:image_diff#host',
667           ],
668           'dependencies!': [
669             '../tools/imagediff/image_diff.gyp:image_diff',
670           ],
671         }],  # OS=="android"
672       ],
673     },
674     {
675       'target_name': 'content_shell_builder',
676       'type': 'none',
677       'dependencies': [
678         'content_shell',
679       ],
680     },
682     {
683       'target_name': 'test_netscape_plugin',
684       'type': 'loadable_module',
685       'sources': [
686         'shell/tools/plugin/PluginObject.cpp',
687         'shell/tools/plugin/PluginObject.h',
688         'shell/tools/plugin/PluginObjectMac.mm',
689         'shell/tools/plugin/PluginTest.cpp',
690         'shell/tools/plugin/PluginTest.h',
691         'shell/tools/plugin/TestObject.cpp',
692         'shell/tools/plugin/Tests/DocumentOpenInDestroyStream.cpp',
693         'shell/tools/plugin/Tests/EvaluateJSAfterRemovingPluginElement.cpp',
694         'shell/tools/plugin/Tests/FormValue.cpp',
695         'shell/tools/plugin/Tests/GetURLNotifyWithURLThatFailsToLoad.cpp',
696         'shell/tools/plugin/Tests/GetURLWithJavaScriptURL.cpp',
697         'shell/tools/plugin/Tests/GetURLWithJavaScriptURLDestroyingPlugin.cpp',
698         'shell/tools/plugin/Tests/GetUserAgentWithNullNPPFromNPPNew.cpp',
699         'shell/tools/plugin/Tests/LeakWindowScriptableObject.cpp',
700         'shell/tools/plugin/Tests/LogNPPSetWindow.cpp',
701         'shell/tools/plugin/Tests/NPDeallocateCalledBeforeNPShutdown.cpp',
702         'shell/tools/plugin/Tests/NPPNewFails.cpp',
703         'shell/tools/plugin/Tests/NPRuntimeCallsWithNullNPP.cpp',
704         'shell/tools/plugin/Tests/NPRuntimeObjectFromDestroyedPlugin.cpp',
705         'shell/tools/plugin/Tests/NPRuntimeRemoveProperty.cpp',
706         'shell/tools/plugin/Tests/NullNPPGetValuePointer.cpp',
707         'shell/tools/plugin/Tests/PassDifferentNPPStruct.cpp',
708         'shell/tools/plugin/Tests/PluginScriptableNPObjectInvokeDefault.cpp',
709         'shell/tools/plugin/Tests/PluginScriptableObjectOverridesAllProperties.cpp',
710         'shell/tools/plugin/main.cpp',
711         'shell/tools/plugin/test_object.h',
712       ],
713       'include_dirs': [
714         '<(DEPTH)',
715         '<(DEPTH)/content/shell/tools/plugin/',
716       ],
717       'dependencies': [
718         '../base/base.gyp:base',
719         '../third_party/npapi/npapi.gyp:npapi',
720       ],
721       'conditions': [
722         ['OS=="mac"', {
723           'mac_bundle': 1,
724           'product_extension': 'plugin',
725           'link_settings': {
726             'libraries': [
727               '$(SDKROOT)/System/Library/Frameworks/Carbon.framework',
728               '$(SDKROOT)/System/Library/Frameworks/Cocoa.framework',
729               '$(SDKROOT)/System/Library/Frameworks/QuartzCore.framework',
730             ]
731           },
732           'xcode_settings': {
733             'GCC_SYMBOLS_PRIVATE_EXTERN': 'NO',
734             'INFOPLIST_FILE': 'shell/tools/plugin/mac/Info.plist',
735           },
736         }],
737         ['os_posix == 1 and OS != "mac"', {
738           'cflags': [
739             '-fvisibility=default',
740           ],
741         }],
742         ['use_x11 == 1', {
743           'dependencies': [ '../build/linux/system.gyp:x11' ],
744         }],
745         ['OS=="win"', {
746           'conditions': [
747             ['MSVS_VERSION < "2015"', {
748               'defines': [
749                 # This seems like a hack, but this is what Safari Win does.
750                 # Luckily it is no longer needed/allowed with VS 2015.
751                 'snprintf=_snprintf',
752               ],
753             }],
754           ],
755           'sources': [
756             'shell/tools/plugin/win/TestNetscapePlugin.def',
757             'shell/tools/plugin/win/TestNetscapePlugin.rc',
758           ],
759           # The .rc file requires that the name of the dll is np_test_netscape_plugin.dll.
760           'product_name': 'np_test_netscape_plugin',
761           # Disable c4267 warnings until we fix size_t to int truncations.
762           'msvs_disabled_warnings': [ 4267, ],
763         }],
764       ],
765     },
766     {
767       'target_name': 'copy_test_netscape_plugin',
768       'type': 'none',
769       'dependencies': [
770         'test_netscape_plugin',
771       ],
772       'conditions': [
773         ['OS=="win"', {
774           'copies': [{
775             'destination': '<(PRODUCT_DIR)/plugins',
776             'files': ['<(PRODUCT_DIR)/np_test_netscape_plugin.dll'],
777           }],
778         }],
779         ['OS=="mac"', {
780           'copies': [{
781             'destination': '<(PRODUCT_DIR)/plugins/',
782             'files': ['<(PRODUCT_DIR)/test_netscape_plugin.plugin/'],
783           }],
784         }],
785         ['os_posix == 1 and OS != "mac"', {
786           'copies': [{
787             'destination': '<(PRODUCT_DIR)/plugins',
788             'files': ['<(PRODUCT_DIR)/libtest_netscape_plugin.so'],
789           }],
790         }],
791       ],
792     }
793   ],
794   'conditions': [
795     ['OS=="mac" or OS=="win"', {
796       'targets': [
797         {
798           'target_name': 'layout_test_helper',
799           'type': 'executable',
800           'sources': [
801             'shell/renderer/test_runner/helper/layout_test_helper_mac.mm',
802             'shell/renderer/test_runner/helper/layout_test_helper_win.cc',
803           ],
804           'conditions': [
805             ['OS=="mac"', {
806               'link_settings': {
807                 'libraries': [
808                   '$(SDKROOT)/System/Library/Frameworks/AppKit.framework',
809                 ],
810               },
811             }],
812           ],
813         },
814       ],
815     }],  # OS=="mac" or OS=="win"
816     ['OS=="mac"', {
817       'targets': [
818         {
819           'target_name': 'content_shell_framework',
820           'type': 'shared_library',
821           'product_name': '<(content_shell_product_name) Framework',
822           'mac_bundle': 1,
823           'mac_bundle_resources': [
824             'shell/app/English.lproj/HttpAuth.xib',
825             'shell/app/English.lproj/MainMenu.xib',
826             '<(PRODUCT_DIR)/content_shell.pak',
827             'shell/app/framework-Info.plist',
828           ],
829           'mac_bundle_resources!': [
830             'shell/app/framework-Info.plist',
831           ],
832           'xcode_settings': {
833             # The framework is placed within the .app's Framework
834             # directory.  DYLIB_INSTALL_NAME_BASE and
835             # LD_DYLIB_INSTALL_NAME affect -install_name.
836             'DYLIB_INSTALL_NAME_BASE':
837                 '@executable_path/../Frameworks',
838             # See /build/mac/copy_framework_unversioned.sh for
839             # information on LD_DYLIB_INSTALL_NAME.
840             'LD_DYLIB_INSTALL_NAME':
841                 '$(DYLIB_INSTALL_NAME_BASE:standardizepath)/$(WRAPPER_NAME)/$(PRODUCT_NAME)',
843             'INFOPLIST_FILE': 'shell/app/framework-Info.plist',
844           },
845           'dependencies': [
846             'content_shell_lib',
847           ],
848           'include_dirs': [
849             '..',
850           ],
851           'sources': [
852             'shell/app/shell_content_main.cc',
853             'shell/app/shell_content_main.h',
854           ],
855           'postbuilds': [
856             {
857               # Modify the Info.plist as needed.  The script explains why
858               # this is needed.  This is also done in the chrome target.
859               # The framework needs the Breakpad keys if this feature is
860               # enabled.  It does not need the Keystone keys; these always
861               # come from the outer application bundle.  The framework
862               # doesn't currently use the SCM keys for anything,
863               # but this seems like a really good place to store them.
864               'postbuild_name': 'Tweak Info.plist',
865               'action': ['../build/mac/tweak_info_plist.py',
866                          '--breakpad=1',
867                          '--keystone=0',
868                          '--scm=1',
869                          '--version=<(content_shell_version)',
870                          '--branding=<(content_shell_product_name)'],
871             },
872           ],
873           'copies': [
874             {
875               # Copy FFmpeg binaries for audio/video support.
876               'destination': '<(PRODUCT_DIR)/$(CONTENTS_FOLDER_PATH)/Libraries',
877               'files': [
878                 '<(PRODUCT_DIR)/ffmpegsumo.so',
879               ],
880             },
881             {
882               'destination': '<(PRODUCT_DIR)/$(CONTENTS_FOLDER_PATH)/Resources',
883               'files': [
884                 '<(PRODUCT_DIR)/crash_inspector',
885                 '<(PRODUCT_DIR)/crash_report_sender.app'
886               ],
887             },
888           ],
889           'conditions': [
890             ['enable_webrtc==1', {
891               'variables': {
892                 'libpeer_target_type%': 'static_library',
893               },
894               'conditions': [
895                 ['libpeer_target_type!="static_library"', {
896                   'copies': [{
897                    'destination': '<(PRODUCT_DIR)/$(CONTENTS_FOLDER_PATH)/Libraries',
898                    'files': [
899                       '<(PRODUCT_DIR)/libpeerconnection.so',
900                     ],
901                   }],
902                 }],
903               ],
904             }],
905             ['icu_use_data_file_flag==1', {
906               'mac_bundle_resources': [
907                 '<(PRODUCT_DIR)/icudtl.dat',
908               ],
909             }],
910             ['v8_use_external_startup_data==1', {
911               'mac_bundle_resources': [
912                 '<(PRODUCT_DIR)/natives_blob.bin',
913                 '<(PRODUCT_DIR)/snapshot_blob.bin',
914               ],
915             }],
916           ],
917         },  # target content_shell_framework
918         {
919           'target_name': 'content_shell_helper_app',
920           'type': 'executable',
921           'variables': { 'enable_wexit_time_destructors': 1, },
922           'product_name': '<(content_shell_product_name) Helper',
923           'mac_bundle': 1,
924           'dependencies': [
925             'content_shell_framework',
926           ],
927           'sources': [
928             'shell/app/shell_main.cc',
929             'shell/app/helper-Info.plist',
930           ],
931           # TODO(mark): Come up with a fancier way to do this.  It should only
932           # be necessary to list helper-Info.plist once, not the three times it
933           # is listed here.
934           'mac_bundle_resources!': [
935             'shell/app/helper-Info.plist',
936           ],
937           # TODO(mark): For now, don't put any resources into this app.  Its
938           # resources directory will be a symbolic link to the browser app's
939           # resources directory.
940           'mac_bundle_resources/': [
941             ['exclude', '.*'],
942           ],
943           'xcode_settings': {
944             'INFOPLIST_FILE': 'shell/app/helper-Info.plist',
945           },
946           'postbuilds': [
947             {
948               # The framework defines its load-time path
949               # (DYLIB_INSTALL_NAME_BASE) relative to the main executable
950               # (chrome).  A different relative path needs to be used in
951               # content_shell_helper_app.
952               'postbuild_name': 'Fix Framework Link',
953               'action': [
954                 'install_name_tool',
955                 '-change',
956                 '@executable_path/../Frameworks/<(content_shell_product_name) Framework.framework/<(content_shell_product_name) Framework',
957                 '@executable_path/../../../<(content_shell_product_name) Framework.framework/<(content_shell_product_name) Framework',
958                 '${BUILT_PRODUCTS_DIR}/${EXECUTABLE_PATH}'
959               ],
960             },
961             {
962               # Modify the Info.plist as needed.  The script explains why this
963               # is needed.  This is also done in the chrome and chrome_dll
964               # targets.  In this case, --breakpad=0, --keystone=0, and --scm=0
965               # are used because Breakpad, Keystone, and SCM keys are
966               # never placed into the helper.
967               'postbuild_name': 'Tweak Info.plist',
968               'action': ['../build/mac/tweak_info_plist.py',
969                          '--breakpad=0',
970                          '--keystone=0',
971                          '--scm=0',
972                          '--version=<(content_shell_version)'],
973             },
974             {
975               # Make sure there isn't any Objective-C in the helper app's
976               # executable.
977               'postbuild_name': 'Verify No Objective-C',
978               'action': [
979                 '../build/mac/verify_no_objc.sh',
980               ],
981             },
982           ],
983           'conditions': [
984             ['component=="shared_library"', {
985               'xcode_settings': {
986                 'LD_RUNPATH_SEARCH_PATHS': [
987                   # Get back from Content Shell.app/Contents/Frameworks/
988                   #                                 Helper.app/Contents/MacOS
989                   '@loader_path/../../../../../..',
990                 ],
991               },
992             }],
993           ],
994         },  # target content_shell_helper_app
995       ],
996     }],  # OS=="mac"
997     ['OS=="android"', {
998       'targets': [
999         {
1000           # TODO(jrg): Update this action and other jni generators to only
1001           # require specifying the java directory and generate the rest.
1002           'target_name': 'content_shell_jni_headers',
1003           'type': 'none',
1004           'sources': [
1005             'shell/android/browsertests_apk/src/org/chromium/content_browsertests_apk/ContentBrowserTestsActivity.java',
1006             'shell/android/java/src/org/chromium/content_shell/ShellLayoutTestUtils.java',
1007             'shell/android/java/src/org/chromium/content_shell/ShellMojoTestUtils.java',
1008             'shell/android/java/src/org/chromium/content_shell/ShellManager.java',
1009             'shell/android/java/src/org/chromium/content_shell/Shell.java',
1010           ],
1011           'variables': {
1012             'jni_gen_package': 'content/shell',
1013           },
1014           'includes': [ '../build/jni_generator.gypi' ],
1015         },
1016         {
1017           'target_name': 'libcontent_shell_content_view',
1018           'type': 'shared_library',
1019           'dependencies': [
1020             'content_shell_jni_headers',
1021             'content_shell_lib',
1022             'content_shell_pak',
1023             # Skia is necessary to ensure the dependencies needed by
1024             # WebContents are included.
1025             '../skia/skia.gyp:skia',
1026             '<(DEPTH)/media/media.gyp:player_android',
1027           ],
1028           'sources': [
1029             'shell/android/shell_library_loader.cc',
1030           ],
1031         },
1032         {
1033           'target_name': 'content_shell_java',
1034           'type': 'none',
1035           'dependencies': [
1036             'content.gyp:content_java',
1037           ],
1038           'variables': {
1039             'java_in_dir': '../content/shell/android/java',
1040             'has_java_resources': 1,
1041             'R_package': 'org.chromium.content_shell',
1042             'R_package_relpath': 'org/chromium/content_shell',
1043           },
1044           'includes': [ '../build/java.gypi' ],
1045         },
1046         {
1047           # content_shell_apk creates a .jar as a side effect. Any java targets
1048           # that need that .jar in their classpath should depend on this target,
1049           # content_shell_apk_java. Dependents of content_shell_apk receive its
1050           # jar path in the variable 'apk_output_jar_path'. This target should
1051           # only be used by targets which instrument content_shell_apk.
1052           'target_name': 'content_shell_apk_java',
1053           'type': 'none',
1054           'dependencies': [
1055             'content_shell_apk',
1056           ],
1057           'includes': [ '../build/apk_fake_jar.gypi' ],
1058         },
1059         {
1060           # GN version: //content/shell/android:content_shell_manifest
1061           'target_name': 'content_shell_manifest',
1062           'type': 'none',
1063           'variables': {
1064             'jinja_inputs': ['shell/android/shell_apk/AndroidManifest.xml.jinja2'],
1065             'jinja_output': '<(SHARED_INTERMEDIATE_DIR)/content_shell_manifest/AndroidManifest.xml',
1066           },
1067           'includes': [ '../build/android/jinja_template.gypi' ],
1068         },
1069         {
1070           # GN version: //content/shell/android:content_shell_apk
1071           'target_name': 'content_shell_apk',
1072           'type': 'none',
1073           'dependencies': [
1074             'content.gyp:content_icudata',
1075             'content.gyp:content_java',
1076             'content.gyp:content_v8_external_data',
1077             'content_java_test_support',
1078             'content_shell_java',
1079             'libcontent_shell_content_view',
1080             '../base/base.gyp:base_java',
1081             '../media/media.gyp:media_java',
1082             '../net/net.gyp:net_java',
1083             '../third_party/mesa/mesa.gyp:osmesa_in_lib_dir',
1084             '../tools/android/forwarder/forwarder.gyp:forwarder',
1085             '../tools/imagediff/image_diff.gyp:image_diff#host',
1086             '../ui/android/ui_android.gyp:ui_java',
1087           ],
1088           'variables': {
1089             'apk_name': 'ContentShell',
1090             'manifest_package_name': 'org.chromium.content_shell_apk',
1091             'android_manifest_path': '<(SHARED_INTERMEDIATE_DIR)/content_shell_manifest/AndroidManifest.xml',
1092             'java_in_dir': 'shell/android/shell_apk',
1093             'resource_dir': 'shell/android/shell_apk/res',
1094             'native_lib_target': 'libcontent_shell_content_view',
1095             'additional_input_paths': ['<(PRODUCT_DIR)/content_shell/assets/content_shell.pak'],
1096             'asset_location': '<(PRODUCT_DIR)/content_shell/assets',
1097             'extra_native_libs': ['<(SHARED_LIB_DIR)/libosmesa.so'],
1098             'conditions': [
1099               ['icu_use_data_file_flag==1', {
1100                 'additional_input_paths': [
1101                   '<(PRODUCT_DIR)/icudtl.dat',
1102                 ],
1103               }],
1104               ['v8_use_external_startup_data==1', {
1105                 'additional_input_paths': [
1106                   '<(PRODUCT_DIR)/natives_blob.bin',
1107                   '<(PRODUCT_DIR)/snapshot_blob.bin',
1108                 ],
1109               }],
1110             ],
1111           },
1112           'includes': [ '../build/java_apk.gypi' ],
1113         },
1114       ],
1115     }],  # OS=="android"
1116     ['OS=="win"', {
1117       'targets': [
1118         {
1119           'target_name': 'content_shell_crash_service',
1120           'type': 'executable',
1121           'dependencies': [
1122             '../base/base.gyp:base',
1123             '../components/components.gyp:breakpad_crash_service',
1124           ],
1125           'include_dirs': [
1126             '..',
1127           ],
1128           'sources': [
1129             'shell/tools/content_shell_crash_service.cc',
1130           ],
1131           'msvs_settings': {
1132             'VCLinkerTool': {
1133               'SubSystem': '2',         # Set /SUBSYSTEM:WINDOWS
1134             },
1135           },
1136         },
1137       ],
1138     }],  # OS=="win"
1139     ['OS=="win" and fastbuild==0 and target_arch=="ia32" and syzyasan==1', {
1140       'variables': {
1141         'dest_dir': '<(PRODUCT_DIR)/syzygy',
1142       },
1143       'targets': [
1144         {
1145           'target_name': 'content_shell_syzyasan',
1146           'type': 'none',
1147           'sources' : [],
1148           # Instrument content_shell with SyzyAsan.
1149           'actions': [
1150             {
1151               'action_name': 'Instrument content_shell with SyzyAsan',
1152               'inputs': [
1153                 '<(PRODUCT_DIR)/content_shell.exe',
1154               ],
1155               'outputs': [
1156                 '<(dest_dir)/content_shell.exe',
1157                 '<(dest_dir)/content_shell.exe.pdb',
1158               ],
1159               'action': [
1160                 'python',
1161                 '<(DEPTH)/chrome/tools/build/win/syzygy/instrument.py',
1162                 '--mode', 'asan',
1163                 '--input_executable', '<(PRODUCT_DIR)/content_shell.exe',
1164                 '--input_symbol', '<(PRODUCT_DIR)/content_shell.exe.pdb',
1165                 '--destination_dir', '<(dest_dir)',
1166               ],
1167             },
1168           ],
1169         },
1170       ],
1171     }],  # OS=="win" and fastbuild==0 and target_arch=="ia32"
1172   ]