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