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