mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Make the full vcvars env available for the benefit of qmake
This commit is contained in:
parent
0f2aff9a4a
commit
b08794a6c2
@ -32,8 +32,11 @@ if iswindows:
|
|||||||
MT = 'mt.exe'
|
MT = 'mt.exe'
|
||||||
win_cc = 'cl.exe'
|
win_cc = 'cl.exe'
|
||||||
win_ld = 'link.exe'
|
win_ld = 'link.exe'
|
||||||
win_inc = [x for x in env['INCLUDE'].split(';') if x]
|
win_inc = [x for x in env['INCLUDE'].split(os.pathsep) if x]
|
||||||
win_lib = [x for x in env['LIB'].split(';') if x]
|
win_lib = [x for x in env['LIB'].split(os.pathsep) if x]
|
||||||
|
for key in env:
|
||||||
|
if key != 'PATH':
|
||||||
|
os.environ[key] = env[key]
|
||||||
|
|
||||||
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