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