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