summaryrefslogtreecommitdiffstats
path: root/SConstruct
diff options
context:
space:
mode:
Diffstat (limited to 'SConstruct')
-rw-r--r--SConstruct23
1 files changed, 8 insertions, 15 deletions
diff --git a/SConstruct b/SConstruct
index 219997ca914..6d88d52f00d 100644
--- a/SConstruct
+++ b/SConstruct
@@ -120,21 +120,14 @@ Export([
if platform == 'winddk':
- import ntpath
- escape = env['ESCAPE']
- env.Tool('winddk', '.')
- if 'BASEDIR' in os.environ:
- WINDDK = os.environ['BASEDIR']
- else:
- WINDDK = "C:\\WINDDK\\3790.1830"
- # NOTE: We need this elaborate construct to get the absolute paths and
- # forward slashes to msvc unharmed when cross compiling from posix platforms
- #env.Append(CPPFLAGS = [
- # escape('/I' + ntpath.join(WINDDK, 'inc\\wxp')),
- # escape('/I' + ntpath.join(WINDDK, 'inc\\ddk\\wxp')),
- # escape('/I' + ntpath.join(WINDDK, 'inc\\ddk\\wdm\\wxp')),
- # escape('/I' + ntpath.join(WINDDK, 'inc\\crt')),
- #])
+ env.Tool('winddk', ['.'])
+
+ env.Append(CPPPATH = [
+ env['SDK_INC_PATH'],
+ env['DDK_INC_PATH'],
+ env['WDM_INC_PATH'],
+ env['CRT_INC_PATH'],
+ ])
env.Append(CFLAGS = '/W3')
if debug: