Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(119)

Side by Side Diff: pylib/gyp/msvs_emulation.py

Issue 103963007: win ninja: default to embedding manifest to match msvs (Closed) Base URL: http://gyp.googlecode.com/svn/trunk
Patch Set: rebase Created 7 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | test/win/gyptest-link-generate-manifest.py » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright (c) 2012 Google Inc. All rights reserved. 1 # Copyright (c) 2012 Google Inc. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be 2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file. 3 # found in the LICENSE file.
4 4
5 """ 5 """
6 This module helps emulate Visual Studio 2008 behavior on top of other 6 This module helps emulate Visual Studio 2008 behavior on top of other
7 build systems, primarily ninja. 7 build systems, primarily ninja.
8 """ 8 """
9 9
10 import os 10 import os
(...skipping 627 matching lines...) Expand 10 before | Expand all | Expand 10 after
638 def IsUseLibraryDependencyInputs(self, config): 638 def IsUseLibraryDependencyInputs(self, config):
639 """Returns whether the target should be linked via Use Library Dependency 639 """Returns whether the target should be linked via Use Library Dependency
640 Inputs (using component .objs of a given .lib).""" 640 Inputs (using component .objs of a given .lib)."""
641 config = self._TargetConfig(config) 641 config = self._TargetConfig(config)
642 uldi = self._Setting(('VCLinkerTool', 'UseLibraryDependencyInputs'), config) 642 uldi = self._Setting(('VCLinkerTool', 'UseLibraryDependencyInputs'), config)
643 return uldi == 'true' 643 return uldi == 'true'
644 644
645 def IsEmbedManifest(self, config): 645 def IsEmbedManifest(self, config):
646 """Returns whether manifest should be linked into binary.""" 646 """Returns whether manifest should be linked into binary."""
647 config = self._TargetConfig(config) 647 config = self._TargetConfig(config)
648 embed = self._Setting(('VCManifestTool', 'EmbedManifest'), config) 648 embed = self._Setting(('VCManifestTool', 'EmbedManifest'), config,
649 default='true')
649 return embed == 'true' 650 return embed == 'true'
650 651
651 def IsLinkIncremental(self, config): 652 def IsLinkIncremental(self, config):
652 """Returns whether the target should be linked incrementally.""" 653 """Returns whether the target should be linked incrementally."""
653 config = self._TargetConfig(config) 654 config = self._TargetConfig(config)
654 link_inc = self._Setting(('VCLinkerTool', 'LinkIncremental'), config) 655 link_inc = self._Setting(('VCLinkerTool', 'LinkIncremental'), config)
655 return link_inc != '1' 656 return link_inc != '1'
656 657
657 def GetRcflags(self, config, gyp_to_ninja_path): 658 def GetRcflags(self, config, gyp_to_ninja_path):
658 """Returns the flags that need to be added to invocations of the resource 659 """Returns the flags that need to be added to invocations of the resource
(...skipping 284 matching lines...) Expand 10 before | Expand all | Expand 10 after
943 944
944 # To determine processor word size on Windows, in addition to checking 945 # To determine processor word size on Windows, in addition to checking
945 # PROCESSOR_ARCHITECTURE (which reflects the word size of the current 946 # PROCESSOR_ARCHITECTURE (which reflects the word size of the current
946 # process), it is also necessary to check PROCESSOR_ARCHITEW6432 (which 947 # process), it is also necessary to check PROCESSOR_ARCHITEW6432 (which
947 # contains the actual word size of the system when running thru WOW64). 948 # contains the actual word size of the system when running thru WOW64).
948 if ('64' in os.environ.get('PROCESSOR_ARCHITECTURE', '') or 949 if ('64' in os.environ.get('PROCESSOR_ARCHITECTURE', '') or
949 '64' in os.environ.get('PROCESSOR_ARCHITEW6432', '')): 950 '64' in os.environ.get('PROCESSOR_ARCHITEW6432', '')):
950 default_variables['MSVS_OS_BITS'] = 64 951 default_variables['MSVS_OS_BITS'] = 64
951 else: 952 else:
952 default_variables['MSVS_OS_BITS'] = 32 953 default_variables['MSVS_OS_BITS'] = 32
OLDNEW
« no previous file with comments | « no previous file | test/win/gyptest-link-generate-manifest.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698