summaryrefslogtreecommitdiffstats
path: root/winddk.py
diff options
context:
space:
mode:
authorJosé Fonseca <[email protected]>2008-02-25 14:46:53 +0900
committerJosé Fonseca <[email protected]>2008-02-25 14:46:53 +0900
commitefd336887f9c46e66b304def0aa5fc5e16dc990f (patch)
tree2fc99a6af87abb951e3521f24fa7bfefb1696b63 /winddk.py
parent2bebeef81bd723b0b09c748d5e3331e51b48db60 (diff)
Cleanup scons files.
Diffstat (limited to 'winddk.py')
-rw-r--r--winddk.py20
1 files changed, 17 insertions, 3 deletions
diff --git a/winddk.py b/winddk.py
index a54abf0e928..3dcf9027e5c 100644
--- a/winddk.py
+++ b/winddk.py
@@ -63,13 +63,27 @@ def get_winddk_paths(env, version=None):
if 'BASEDIR' in os.environ:
WINDDKdir = os.environ['BASEDIR']
else:
- WINDDKdir = "C:\\WINDDK\\3790.1830"
+ #WINDDKdir = "C:\\WINDDK\\3790.1830"
+ WINDDKdir = "C:/WINDDK/3790.1830"
exe_paths.append( os.path.join(WINDDKdir, 'bin') )
- exe_paths.append( os.path.join(WINDDKdir, 'bin\\x86') )
- include_paths.append( os.path.join(WINDDKdir, 'inc\\wxp') )
+ exe_paths.append( os.path.join(WINDDKdir, 'bin/x86') )
+ include_paths.append( os.path.join(WINDDKdir, 'inc/wxp') )
lib_paths.append( os.path.join(WINDDKdir, 'lib') )
+ target_os = 'wxp'
+ target_cpu = 'i386'
+
+ env['SDK_INC_PATH'] = os.path.join(WINDDKdir, 'inc', target_os)
+ env['CRT_INC_PATH'] = os.path.join(WINDDKdir, 'inc/crt')
+ env['DDK_INC_PATH'] = os.path.join(WINDDKdir, 'inc/ddk', target_os)
+ env['WDM_INC_PATH'] = os.path.join(WINDDKdir, 'inc/ddk/wdm', target_os)
+
+ env['SDK_LIB_PATH'] = os.path.join(WINDDKdir, 'lib', target_os, target_cpu)
+ env['CRT_LIB_PATH'] = os.path.join(WINDDKdir, 'lib/crt', target_cpu)
+ env['DDK_LIB_PATH'] = os.path.join(WINDDKdir, 'lib', target_os, target_cpu)
+ env['WDM_LIB_PATH'] = os.path.join(WINDDKdir, 'lib', target_os, target_cpu)
+
include_path = string.join( include_paths, os.pathsep )
lib_path = string.join(lib_paths, os.pathsep )
exe_path = string.join(exe_paths, os.pathsep )