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