mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Fix detection of mt.exe
This commit is contained in:
parent
2f7f2ace66
commit
ef7c1a3c69
@ -19,13 +19,9 @@ if iswindows:
|
|||||||
msvc.initialize()
|
msvc.initialize()
|
||||||
NMAKE = msvc.find_exe('nmake.exe')
|
NMAKE = msvc.find_exe('nmake.exe')
|
||||||
RC = msvc.find_exe('rc.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_inc = os.environ['include'].split(';')
|
||||||
win_lib = os.environ['lib'].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'
|
QMAKE = 'qmake'
|
||||||
for x in ('qmake-qt5', 'qt5-qmake', 'qmake'):
|
for x in ('qmake-qt5', 'qt5-qmake', 'qmake'):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user