Enable building of extensions that need the DDK on windows

This commit is contained in:
Kovid Goyal
2010-01-01 22:28:47 -07:00
parent a6635dfb55
commit 487588bb75
3 changed files with 11 additions and 6 deletions
+3 -1
View File
@@ -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: