Fix detection of mt.exe

This commit is contained in:
Kovid Goyal 2015-12-09 22:20:39 +05:30
parent 2f7f2ace66
commit ef7c1a3c69
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -19,13 +19,9 @@ if iswindows:
msvc.initialize()
NMAKE = msvc.find_exe('nmake.exe')
RC = msvc.find_exe('rc.exe')
SDK = os.environ.get('WINSDK', r'C:\Program Files\Microsoft SDKs\Windows\v7.0')
MT = msvc.find_exe('mt.exe')
win_inc = os.environ['include'].split(';')
win_lib = os.environ['lib'].split(';')
for p in win_inc:
if 'SDK' in p:
MT = os.path.join(os.path.dirname(p), 'bin', 'mt.exe')
MT = os.path.join(SDK, 'Bin', 'mt.exe')
QMAKE = 'qmake'
for x in ('qmake-qt5', 'qt5-qmake', 'qmake'):