Pin Chrome's shortcut to the Win10 Start menu on install and OS upgrade.
[chromium-blink-merge.git] / chrome / chrome_exe.gypi
blob5d8194c753fa493bfb9ae2ee0985ea9cc97fb52b
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   'targets': [
7     {
8       'target_name': 'chrome',
9       'type': 'none',
10       'dependencies': [ 'chrome_initial', ],
11       'conditions': [
12         ['OS=="linux" and clang_type_profiler==1', {
13           'dependencies!': [
14             '<(DEPTH)/base/allocator/allocator.gyp:type_profiler',
15           ],
16         }],
17         ['OS == "win"', {
18           'actions': [
19             {
20               'variables': {
21                 'reorder_py_path': '<(DEPTH)/build/win/reorder-imports.py',
22                 # See comment in chrome_dll.gypi in the hardlink_to_output
23                 # target for why this cannot be 'initial' like the DLL.
24                 'exe_input_path':'$(OutDir)\\initialexe',
25                 'exe_output_path':'<(PRODUCT_DIR)',
26               },
27               'action_name': 'reorder_imports',
28               'inputs': [
29                 '<(reorder_py_path)',
30                 '$(OutDir)\\initialexe\\chrome.exe',
31               ],
32               'outputs': [
33                 '<(PRODUCT_DIR)\\chrome.exe',
34                 '<(PRODUCT_DIR)\\chrome.exe.pdb',
35               ],
36               'action': [
37                 'python',
38                 '<(reorder_py_path)',
39                 '-i', '<(exe_input_path)',
40                 '-o', '<(exe_output_path)',
41                 '-a', '<(target_arch)',
42               ],
43               'message': 'Reordering Imports',
44             },
45           ],
46         }],
47       ],
48     },
49     {
50       # GN version: //chrome
51       'target_name': 'chrome_initial',
52       'type': 'executable',
53       # Name the exe chrome.exe, not chrome_initial.exe.
54       'product_name': 'chrome',
55       'mac_bundle': 1,
56       'variables': {
57         'use_system_xdg_utils%': 0,
58         'enable_wexit_time_destructors': 1,
59       },
60       'sources': [
61         # Note that due to InitializeSandboxInfo, this must be directly linked
62         # into chrome.exe, not into a dependent.
63         '<(DEPTH)/content/app/startup_helper_win.cc',
64         '<(DEPTH)/content/public/common/content_switches.cc',
65         'app/chrome_exe_load_config_win.cc',
66         'app/chrome_exe_main_aura.cc',
67         'app/chrome_exe_main_mac.cc',
68         'app/chrome_exe_main_win.cc',
69         'app/chrome_exe_resource.h',
70         'app/chrome_watcher_client_win.cc',
71         'app/chrome_watcher_client_win.h',
72         'app/chrome_watcher_command_line_win.cc',
73         'app/chrome_watcher_command_line_win.h',
74         'app/client_util.cc',
75         'app/client_util.h',
76         'app/kasko_client.cc',
77         'app/kasko_client.h',
78         'app/signature_validator_win.cc',
79         'app/signature_validator_win.h',
80       ],
81       'mac_bundle_resources': [
82         'app/app-Info.plist',
83       ],
84       # TODO(mark): Come up with a fancier way to do this.  It should only
85       # be necessary to list app-Info.plist once, not the three times it is
86       # listed here.
87       'mac_bundle_resources!': [
88         'app/app-Info.plist',
89       ],
90       'xcode_settings': {
91         'CHROMIUM_STRIP_SAVE_FILE': 'app/app.saves',
92         'INFOPLIST_FILE': 'app/app-Info.plist',
93       },
94       'conditions': [
95         ['order_profiling!=0 and (chromeos==1 or OS=="linux")', {
96           'dependencies' : [
97             '../tools/cygprofile/cygprofile.gyp:cygprofile',
98           ],
99         }],
100         ['order_text_section!=""', {
101           'target_conditions' : [
102             ['_toolset=="target"', {
103               'ldflags': [
104                 '-Wl,-section-ordering-file=<(order_text_section)' ],
105             }],
106           ]
107         }],
108         ['OS == "win"', {
109           'dependencies': [
110             'chrome_watcher',
111             'chrome_watcher_client',
112             '../components/components.gyp:browser_watcher_client',
113           ],
114           'conditions': [
115             ['kasko==1', {
116               'dependencies': [
117                 'kasko_dll',
118               ],
119             }],
120           ],
121         }],
122         ['OS == "android"', {
123           # Don't put the 'chrome' target in 'all' on android
124           'suppress_wildcard': 1,
125         }],
126         ['os_posix == 1 and OS != "mac" and OS != "android"', {
127           'actions': [
128             {
129               'action_name': 'manpage',
130               'conditions': [
131                 [ 'branding == "Chrome"', {
132                   'variables': {
133                     'name': 'Google Chrome',
134                     'filename': 'google-chrome',
135                     'confdir': 'google-chrome',
136                   },
137                 }, { # else branding!="Chrome"
138                   'variables': {
139                     'name': 'Chromium',
140                     'filename': 'chromium-browser',
141                     'confdir': 'chromium',
142                   },
143                 }],
144               ],
145               'inputs': [
146                 'tools/build/linux/sed.py',
147                 'app/resources/manpage.1.in',
148               ],
149               'outputs': [
150                 '<(PRODUCT_DIR)/chrome.1',
151               ],
152               'action': [
153                 'python',
154                 'tools/build/linux/sed.py',
155                 'app/resources/manpage.1.in',
156                 '<@(_outputs)',
157                 '-e', 's/@@NAME@@/<(name)/',
158                 '-e', 's/@@FILENAME@@/<(filename)/',
159                 '-e', 's/@@CONFDIR@@/<(confdir)/',
160               ],
161               'message': 'Generating manpage'
162             },
163           ],
164           'conditions': [
165             ['use_allocator!="none"', {
166                 'dependencies': [
167                   '<(allocator_target)',
168                 ],
169               },
170             ],
171             ['profiling==0 and linux_disable_pie==0', {
172               'ldflags': [
173                 '-pie',
174               ],
175             }],
176             ['use_system_xdg_utils==0', {
177               'copies': [
178                 {
179                   'destination': '<(PRODUCT_DIR)',
180                   'files': ['tools/build/linux/chrome-wrapper',
181                             '../third_party/xdg-utils/scripts/xdg-mime',
182                             '../third_party/xdg-utils/scripts/xdg-settings',
183                             'app/theme/<(branding_path_component)/product_logo_48.png',
184                             ],
185                 },
186               ],
187             }],
188             # x11 build. Needed for chrome_main.cc initialization of libraries.
189             ['use_x11==1', {
190               'dependencies': [
191                 '../build/linux/system.gyp:x11',
192                 '../build/linux/system.gyp:xext',
193               ],
194             }],
195             ['OS=="linux" and enable_plugins==1', {
196               'dependencies': [
197                 '../pdf/pdf.gyp:pdf',
198               ],
199             }],
200           ],
201           'sources': [
202             'app/chrome_dll_resource.h',
203             'app/chrome_main.cc',
204             'app/chrome_main_delegate.cc',
205             'app/chrome_main_delegate.h',
206           ],
207           'dependencies': [
208             # On Linux, link the dependencies (libraries) that make up actual
209             # Chromium functionality directly into the executable.
210             '<@(chromium_browser_dependencies)',
211             '<@(chromium_child_dependencies)',
212             '../content/content.gyp:content_app_both',
213             # Needed for chrome_main.cc initialization of libraries.
214             '../build/linux/system.gyp:pangocairo',
215             # Needed to use the master_preferences functions
216             'installer_util',
217           ],
218         }],
219         ['OS=="mac"', {
220           'conditions': [
221             ['mac_breakpad==1', {
222               'variables': {
223                 # A real .dSYM is needed for dump_syms to operate on.
224                 'mac_real_dsym': 1,
225               },
226               'xcode_settings': {
227                 # With mac_real_dsym set, strip_from_xcode won't be used.
228                 # Specify CHROMIUM_STRIP_SAVE_FILE directly to Xcode.
229                 'STRIPFLAGS': '-s $(CHROMIUM_STRIP_SAVE_FILE)',
230               },
231               'dependencies': [
232                 '../breakpad/breakpad.gyp:dump_syms',
233                 '../breakpad/breakpad.gyp:symupload',
234               ],
235               # The "Dump Symbols" post-build step is in a target_conditions
236               # block so that it will follow the "Strip If Needed" step if that
237               # is also being used.  There is no standard configuration where
238               # both of these steps occur together, but Mark likes to use this
239               # configuration sometimes when testing Breakpad-enabled builds
240               # without the time overhead of creating real .dSYM files.  When
241               # both "Dump Symbols" and "Strip If Needed" are present, "Dump
242               # Symbols" must come second because "Strip If Needed" creates
243               # a fake .dSYM that dump_syms needs to fake dump.  Since
244               # "Strip If Needed" is added in a target_conditions block in
245               # common.gypi, "Dump Symbols" needs to be in an (always true)
246               # target_conditions block.
247               'target_conditions': [
248                 ['1 == 1', {
249                   'postbuilds': [
250                     {
251                       'postbuild_name': 'Dump Symbols',
252                       'variables': {
253                         'dump_product_syms_path':
254                             'tools/build/mac/dump_product_syms',
255                       },
256                       'action': ['<(dump_product_syms_path)',
257                                  '<(branding)'],
258                     },
259                   ],
260                 }],
261               ],
262             }],  # mac_breakpad
263           ],
264           'product_name': '<(mac_product_name)',
265           'xcode_settings': {
266             # chrome/app/app-Info.plist has:
267             #   CFBundleIdentifier of CHROMIUM_BUNDLE_ID
268             #   CFBundleName of CHROMIUM_SHORT_NAME
269             #   CFBundleSignature of CHROMIUM_CREATOR
270             # Xcode then replaces these values with the branded values we set
271             # as settings on the target.
272             'CHROMIUM_BUNDLE_ID': '<(mac_bundle_id)',
273             'CHROMIUM_CREATOR': '<(mac_creator)',
274             'CHROMIUM_SHORT_NAME': '<(branding)',
275           },
276           'dependencies': [
277             '../components/components.gyp:chrome_manifest_bundle',
278             'helper_app',
279             'infoplist_strings_tool',
280             # On Mac, make sure we've built chrome_dll, which contains all of
281             # the library code with Chromium functionality.
282             'chrome_dll',
283           ],
284           'mac_bundle_resources': [
285             'app/theme/<(branding_path_component)/mac/app.icns',
286             'app/theme/<(branding_path_component)/mac/document.icns',
287             'browser/ui/cocoa/applescript/scripting.sdef',
288             '<(PRODUCT_DIR)/<(mac_bundle_id).manifest',
289           ],
290           'actions': [
291             {
292               # Generate the InfoPlist.strings file
293               'action_name': 'Generate InfoPlist.strings files',
294               'variables': {
295                 'tool_path': '<(PRODUCT_DIR)/infoplist_strings_tool',
296                 # Unique dir to write to so the [lang].lproj/InfoPlist.strings
297                 # for the main app and the helper app don't name collide.
298                 'output_path': '<(INTERMEDIATE_DIR)/app_infoplist_strings',
299                 'branding_name': '<(branding_path_component)_strings',
300               },
301               'inputs': [
302                 '<(tool_path)',
303                 '<(version_path)',
304                 # TODO: remove this helper when we have loops in GYP
305                 '>!@(<(apply_locales_cmd) \'<(grit_out_dir)/<(branding_name)_ZZLOCALE.pak\' <(locales))',
306               ],
307               'outputs': [
308                 # TODO: remove this helper when we have loops in GYP
309                 '>!@(<(apply_locales_cmd) -d \'<(output_path)/ZZLOCALE.lproj/InfoPlist.strings\' <(locales))',
310               ],
311               'action': [
312                 '<(tool_path)',
313                 '-b', '<(branding_name)',
314                 '-v', '<(version_path)',
315                 '-g', '<(grit_out_dir)',
316                 '-o', '<(output_path)',
317                 '-t', 'main',
318                 '<@(locales)',
319               ],
320               'message': 'Generating the language InfoPlist.strings files',
321               'process_outputs_as_mac_bundle_resources': 1,
322             },
323           ],
324           'copies': [
325             {
326               'destination': '<(PRODUCT_DIR)/<(mac_product_name).app/Contents/Versions/<(version_full)',
327               'files': [
328                 '<(PRODUCT_DIR)/<(mac_product_name) Helper.app',
329               ],
330             },
331           ],
332           'postbuilds': [
333             {
334               'postbuild_name': 'Copy <(mac_product_name) Framework.framework',
335               'action': [
336                 '../build/mac/copy_framework_unversioned.sh',
337                 '${BUILT_PRODUCTS_DIR}/<(mac_product_name) Framework.framework',
338                 '${BUILT_PRODUCTS_DIR}/${CONTENTS_FOLDER_PATH}/Versions/<(version_full)',
339               ],
340             },
341             {
342               # Modify the Info.plist as needed.  The script explains why this
343               # is needed.  This is also done in the helper_app and chrome_dll
344               # targets.  Use --breakpad=0 to not include any Breakpad
345               # information; that all goes into the framework's Info.plist.
346               # Keystone information is included if Keystone is enabled.  The
347               # application reads Keystone keys from this plist and not the
348               # framework's, and the ticket will reference this Info.plist to
349               # determine the tag of the installed product.  Use --scm=1 to
350               # include SCM information.
351               'postbuild_name': 'Tweak Info.plist',
352               'action': ['<(tweak_info_plist_path)',
353                          '--breakpad=0',
354                          '--keystone=<(mac_keystone)',
355                          '--scm=1',
356                          '--bundle_id=<(mac_bundle_id)'],
357             },
358             {
359               'postbuild_name': 'Clean up old versions',
360               'action': [
361                 'tools/build/mac/clean_up_old_versions',
362                 '<(version_full)'
363               ],
364             },
365             {
366               # This postbuid step is responsible for creating the following
367               # helpers:
368               #
369               # For unofficial Chromium branding, Chromium Helper EH.app and
370               # Chromium Helper NP.app are created from Chromium Helper.app.
371               # For official Google Chrome branding, Google Chrome Helper
372               # EH.app and Google Chrome Helper NP.app are created from
373               # Google Chrome Helper.app.
374               #
375               # The EH helper is marked for an executable heap. The NP helper
376               # is marked for no PIE (ASLR).
377               #
378               # Normally, applications shipping as part of offical builds with
379               # Google Chrome branding have dsymutil (dwarf-with-dsym,
380               # mac_real_dsym) and dump_syms (mac_breakpad) run on them to
381               # produce a .dSYM bundle and a Breakpad .sym file. This is
382               # unnecessary for the "More Helpers" because they're identical
383               # to the original helper except for the bits in their Mach-O
384               # headers that change to enable or disable special features.
385               # Each .dSYM is identified by UUID stored in a Mach-O file's
386               # LC_UUID load command. Because the "More Helpers" share a UUID
387               # with the original helper, there's no need to run dsymutil
388               # again. All helpers can share the same .dSYM. Special handling
389               # is performed in chrome/tools/build/mac/dump_product_syms to
390               # prepare their Breakpad symbol files.
391               'postbuild_name': 'Make More Helpers',
392               'action': [
393                 '../build/mac/make_more_helpers.sh',
394                 'Versions/<(version_full)',
395                 '<(mac_product_name)',
396               ],
397             },
398             {
399               # Make sure there isn't any Objective-C in the browser app's
400               # executable.
401               'postbuild_name': 'Verify No Objective-C',
402               'action': [
403                 '../build/mac/verify_no_objc.sh',
404               ],
405             },
406           ],  # postbuilds
407         }, {  # OS != "mac"
408           'conditions': [
409             # TODO:  add a:
410             #   'product_name': 'chromium'
411             # whenever we convert the rest of the infrastructure
412             # (buildbots etc.) to understand the branding gyp define.
413             # NOTE: chrome/app/theme/chromium/BRANDING and
414             # chrome/app/theme/google_chrome/BRANDING have the short name
415             # "chrome" etc.; should we try to extract from there instead?
416           ],
417           'dependencies': [
418             '../components/components.gyp:startup_metric_utils',
419             'chrome_resources.gyp:packed_extra_resources',
420             'chrome_resources.gyp:packed_resources',
421             # Copy Flash Player files to PRODUCT_DIR if applicable. Let the .gyp
422             # file decide what to do on a per-OS basis; on Mac, internal plugins
423             # go inside the framework, so this dependency is in chrome_dll.gypi.
424             '../third_party/adobe/flash/flash_player.gyp:flapper_binaries',
425             # Copy CDM files to PRODUCT_DIR if applicable. Let the .gyp
426             # file decide what to do on a per-OS basis; on Mac, internal plugins
427             # go inside the framework, so this dependency is in chrome_dll.gypi.
428             '../third_party/widevine/cdm/widevine_cdm.gyp:widevinecdmadapter',
429           ],
430         }],
431         ['chrome_multiple_dll', {
432           'defines': ['CHROME_MULTIPLE_DLL'],
433         }],
434         ['OS=="linux"', {
435           'conditions': [
436             ['branding=="Chrome"', {
437               'dependencies': [
438                 'linux_installer_configs',
439               ],
440             }],
441             # For now, do not build nacl_helper when disable_nacl=1
442             # http://code.google.com/p/gyp/issues/detail?id=239
443             ['disable_nacl==0', {
444               'dependencies': [
445                 '../native_client/src/trusted/service_runtime/linux/nacl_bootstrap.gyp:nacl_helper_bootstrap',
446                 '../components/nacl.gyp:nacl_helper',
447                 '../components/nacl_nonsfi.gyp:nacl_helper_nonsfi',
448               ],
449             }],
450           ],
451           'dependencies': [
452             '../sandbox/sandbox.gyp:sandbox',
453           ],
454         }],
455         ['OS=="win"', {
456           'dependencies': [
457             'chrome_dll',
458             'chrome_nacl_win64',
459             'chrome_process_finder',
460             'chrome_version_resources',
461             'installer_util',
462             'image_pre_reader',
463             '../base/base.gyp:base',
464             '../crypto/crypto.gyp:crypto',
465             '../breakpad/breakpad.gyp:breakpad_handler',
466             '../breakpad/breakpad.gyp:breakpad_sender',
467             '../chrome_elf/chrome_elf.gyp:chrome_elf',
468             '../components/components.gyp:crash_component',
469             '../sandbox/sandbox.gyp:sandbox',
470             '../ui/gfx/gfx.gyp:gfx',
471             '../win8/metro_driver/metro_driver.gyp:metro_driver',
472             '../win8/delegate_execute/delegate_execute.gyp:*',
473           ],
474           'sources': [
475             '<(SHARED_INTERMEDIATE_DIR)/chrome_version/chrome_exe_version.rc',
476             'app/chrome_crash_reporter_client.cc',
477             'app/chrome_crash_reporter_client.h',
478             'app/chrome_exe.rc',
479             'common/crash_keys.cc',
480             'common/crash_keys.h',
481           ],
482           'sources!': [
483             # We still want the _win entry point for sandbox, etc.
484             'app/chrome_exe_main_aura.cc',
485           ],
486           'msvs_settings': {
487             'VCLinkerTool': {
488               'ImportLibrary': '$(OutDir)\\lib\\chrome_exe.lib',
489               'OutputFile': '$(OutDir)\\initialexe\\chrome.exe',
490               'DelayLoadDLLs': [
491                 'dbghelp.dll',
492                 'dwmapi.dll',
493                 'uxtheme.dll',
494                 'ole32.dll',
495                 'oleaut32.dll',
496               ],
497               'AdditionalDependencies': [
498                 'wintrust.lib',
499                 'crypt32.lib'
500               ],
501               'conditions': [
502                 ['asan==0', {
503                   # Set /SUBSYSTEM:WINDOWS for chrome.exe itself, except for the
504                   # AddressSanitizer build where console output is important.
505                   'SubSystem': '2',
506                 }],
507               ],
508             },
509             'VCManifestTool': {
510               'AdditionalManifestFiles': [
511                 '$(ProjectDir)\\app\\chrome.exe.manifest',
512                 '<(SHARED_INTERMEDIATE_DIR)/chrome/app/version_assembly/version_assembly.manifest',
513               ],
514             },
515           },
516           'conditions': [
517             ['configuration_policy==1', {
518               'dependencies': [
519                 '<(DEPTH)/components/components.gyp:policy',
520               ],
521             }],
522           ],
523           'actions': [
524             {
525               'action_name': 'first_run',
526               'inputs': [
527                   'app/FirstRun',
528               ],
529               'outputs': [
530                   '<(PRODUCT_DIR)/First Run',
531               ],
532               'action': ['python', '../build/cp.py', '<@(_inputs)', '<@(_outputs)'],
533               'message': 'Copy first run complete sentinel file',
534             },
535             {
536               # GN version: //chrome/app/version_assembly:chrome_exe_manifest
537               'action_name': 'chrome_exe_manifest',
538               'includes': [
539                   'app/version_assembly/chrome_exe_manifest_action.gypi',
540               ],
541             },
542             {
543               # GN version: //chrome/app/version_assembly:version_assembly_manifest
544               'action_name': 'version_assembly_manifest',
545               'includes': [
546                   'app/version_assembly/version_assembly_manifest_action.gypi',
547               ],
548             },
549           ],
550         }, {  # 'OS!="win"
551           'sources!': [
552             'app/client_util.cc',
553           ],
554         }],
555         ['OS=="win" and component=="shared_library"', {
556           'defines': ['COMPILE_CONTENT_STATICALLY'],
557         }],
558       ],
559     },
560   ],
561   'conditions': [
562     ['OS=="win"', {
563       'targets': [
564         {
565           'target_name': 'image_pre_reader',
566           'type': 'static_library',
567           'sources': [
568             'app/image_pre_reader_win.cc',
569             'app/image_pre_reader_win.h',
570           ],
571           'dependencies': [
572              '../base/base.gyp:base',
573           ],
574         },
575       ],
576       'conditions': [
577         ['disable_nacl!=1 and target_arch=="ia32"', {
578           'targets': [
579             {
580               'target_name': 'chrome_nacl_win64',
581               'type': 'executable',
582               'product_name': 'nacl64',
583               'sources': [
584                 '../content/app/startup_helper_win.cc',
585                 '../content/common/sandbox_init_win.cc',
586                 '../content/common/sandbox_win.cc',
587                 '../content/public/common/content_switches.cc',
588                 '../content/public/common/sandboxed_process_launcher_delegate.cc',
589                 '<(SHARED_INTERMEDIATE_DIR)/chrome_version/nacl64_exe_version.rc',
590                 'app/chrome_crash_reporter_client.cc',
591                 'common/crash_keys.cc',
592                 'nacl/nacl_exe_win_64.cc',
593               ],
594               'dependencies': [
595                 'chrome_version_resources',
596                 'installer_util_nacl_win64',
597                 '../base/base.gyp:base_i18n_nacl_win64',
598                 '../base/base.gyp:base_win64',
599                 '../base/base.gyp:base_static_win64',
600                 '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations_win64',
601                 '../breakpad/breakpad.gyp:breakpad_handler_win64',
602                 '../breakpad/breakpad.gyp:breakpad_sender_win64',
603                 '../components/components.gyp:breakpad_win64',
604                 '../chrome/common_constants.gyp:common_constants_win64',
605                 '../components/nacl.gyp:nacl_win64',
606                 '../crypto/crypto.gyp:crypto_nacl_win64',
607                 '../ipc/ipc.gyp:ipc_win64',
608                 '../sandbox/sandbox.gyp:sandbox_win64',
609               ],
610               'defines': [
611                 '<@(nacl_win64_defines)',
612                 'COMPILE_CONTENT_STATICALLY',
613               ],
614               'include_dirs': [
615                 '<(SHARED_INTERMEDIATE_DIR)/chrome',
616               ],
617               'msvs_settings': {
618                 'VCLinkerTool': {
619                   'ImportLibrary': '$(OutDir)\\lib\\nacl64_exe.lib',
620                   'SubSystem': '2',         # Set /SUBSYSTEM:WINDOWS
621                 },
622               },
623               'configurations': {
624                 'Common_Base': {
625                   'msvs_target_platform': 'x64',
626                 },
627               },
628               'conditions': [
629                 ['configuration_policy==1', {
630                   'dependencies': [
631                     '<(DEPTH)/components/components.gyp:policy_win64',
632                   ],
633                 }],
634               ],
635             },
636           ],
637         }, {  # else (disable_nacl==1)
638           'targets': [
639             {
640               'target_name': 'chrome_nacl_win64',
641               'type': 'none',
642               'sources': [],
643             },
644           ],
645         }],
646       ],
647     }],
648     ['test_isolation_mode != "noop"', {
649       'targets': [
650         {
651           'target_name': 'chrome_run',
652           'type': 'none',
653           'dependencies': [
654             'chrome',
655             # Runtime dependencies
656             '../third_party/mesa/mesa.gyp:osmesa',
657           ],
658           'includes': [
659             '../build/isolate.gypi',
660           ],
661           'sources': [
662             'chrome.isolate',
663           ],
664           'conditions': [
665             ['OS=="win"', {
666               'dependencies': [
667                 'chrome_nacl_win64',
668               ],
669             }],
670           ],
671         },
672       ],
673     }],
674   ],