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