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