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