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

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

Issue 890773004: win: Add NoImportLibrary flag for ninja generator (Closed) Base URL: https://chromium.googlesource.com/external/gyp.git@master
Patch Set: . Created 5 years, 10 months 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
« no previous file with comments | « pylib/gyp/generator/ninja.py ('k') | test/win/gyptest-link-noimportlib.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 389 matching lines...) Expand 10 before | Expand all | Expand 10 after
400 generate_debug_info = self._Setting( 400 generate_debug_info = self._Setting(
401 ('VCLinkerTool', 'GenerateDebugInformation'), config) 401 ('VCLinkerTool', 'GenerateDebugInformation'), config)
402 if generate_debug_info == 'true': 402 if generate_debug_info == 'true':
403 if output_file: 403 if output_file:
404 return expand_special(self.ConvertVSMacros(output_file, config=config)) 404 return expand_special(self.ConvertVSMacros(output_file, config=config))
405 else: 405 else:
406 return default 406 return default
407 else: 407 else:
408 return None 408 return None
409 409
410 def GetNoImportLibrary(self, config):
411 """If NoImportLibrary: true, ninja will not expect the output to include
412 an import library."""
413 config = self._TargetConfig(config)
414 noimplib = self._Setting(('NoImportLibrary',), config)
415 return noimplib == 'true'
416
410 def GetAsmflags(self, config): 417 def GetAsmflags(self, config):
411 """Returns the flags that need to be added to ml invocations.""" 418 """Returns the flags that need to be added to ml invocations."""
412 config = self._TargetConfig(config) 419 config = self._TargetConfig(config)
413 asmflags = [] 420 asmflags = []
414 safeseh = self._Setting(('MASM', 'UseSafeExceptionHandlers'), config) 421 safeseh = self._Setting(('MASM', 'UseSafeExceptionHandlers'), config)
415 if safeseh == 'true': 422 if safeseh == 'true':
416 asmflags.append('/safeseh') 423 asmflags.append('/safeseh')
417 return asmflags 424 return asmflags
418 425
419 def GetCflags(self, config): 426 def GetCflags(self, config):
(...skipping 634 matching lines...) Expand 10 before | Expand all | Expand 10 after
1054 1061
1055 # To determine processor word size on Windows, in addition to checking 1062 # To determine processor word size on Windows, in addition to checking
1056 # PROCESSOR_ARCHITECTURE (which reflects the word size of the current 1063 # PROCESSOR_ARCHITECTURE (which reflects the word size of the current
1057 # process), it is also necessary to check PROCESSOR_ARCHITEW6432 (which 1064 # process), it is also necessary to check PROCESSOR_ARCHITEW6432 (which
1058 # contains the actual word size of the system when running thru WOW64). 1065 # contains the actual word size of the system when running thru WOW64).
1059 if ('64' in os.environ.get('PROCESSOR_ARCHITECTURE', '') or 1066 if ('64' in os.environ.get('PROCESSOR_ARCHITECTURE', '') or
1060 '64' in os.environ.get('PROCESSOR_ARCHITEW6432', '')): 1067 '64' in os.environ.get('PROCESSOR_ARCHITEW6432', '')):
1061 default_variables['MSVS_OS_BITS'] = 64 1068 default_variables['MSVS_OS_BITS'] = 64
1062 else: 1069 else:
1063 default_variables['MSVS_OS_BITS'] = 32 1070 default_variables['MSVS_OS_BITS'] = 32
OLDNEW
« no previous file with comments | « pylib/gyp/generator/ninja.py ('k') | test/win/gyptest-link-noimportlib.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698