mirror of
https://github.com/kovidgoyal/calibre.git
synced 2026-05-29 10:12:34 -04:00
Enable building of extensions that need the DDK on windows
This commit is contained in:
@@ -17,7 +17,7 @@ OSX_SDK = '/Developer/SDKs/MacOSX10.4u.sdk'
|
||||
|
||||
os.environ['MACOSX_DEPLOYMENT_TARGET'] = '10.4'
|
||||
|
||||
NMAKE = RC = msvc = MT = win_inc = win_lib = None
|
||||
NMAKE = RC = msvc = MT = win_inc = win_lib = win_ddk = None
|
||||
if iswindows:
|
||||
from distutils import msvc9compiler
|
||||
msvc = msvc9compiler.MSVCCompiler()
|
||||
@@ -25,6 +25,8 @@ if iswindows:
|
||||
NMAKE = msvc.find_exe('nmake.exe')
|
||||
RC = msvc.find_exe('rc.exe')
|
||||
SDK = os.environ.get('WINSDK', r'C:\Program Files\Microsoft SDKs\Windows\v6.0A')
|
||||
DDK = os.environ.get('WINDDK', r'Q:\WinDDK\7600.16385.0')
|
||||
win_ddk = [DDK+'\\inc\\'+x for x in ('api',)]
|
||||
win_inc = os.environ['include'].split(';')
|
||||
win_lib = os.environ['lib'].split(';')
|
||||
for p in win_inc:
|
||||
|
||||
Reference in New Issue
Block a user