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