diff options
author | José Fonseca <jfonseca@vmware.com> | 2009-04-14 21:39:54 +0100 |
---|---|---|
committer | José Fonseca <jfonseca@vmware.com> | 2009-04-14 21:43:10 +0100 |
commit | 71793e0f7907421d5bee619ae524e5178c6f3f32 (patch) | |
tree | 840feb8be508bf121b54a09ef7cb5be44caa23ed /scons/gallium.py | |
parent | 5ccbccb3c17b675c4206fd1b3821cbb74997720a (diff) | |
download | external_mesa3d-71793e0f7907421d5bee619ae524e5178c6f3f32.zip external_mesa3d-71793e0f7907421d5bee619ae524e5178c6f3f32.tar.gz external_mesa3d-71793e0f7907421d5bee619ae524e5178c6f3f32.tar.bz2 |
scons: Support winddk 6001.18002.
Diffstat (limited to 'scons/gallium.py')
-rw-r--r-- | scons/gallium.py | 20 |
1 files changed, 7 insertions, 13 deletions
diff --git a/scons/gallium.py b/scons/gallium.py index e2cd054..696ddd0 100644 --- a/scons/gallium.py +++ b/scons/gallium.py @@ -252,21 +252,24 @@ def generate(env): # http://msdn2.microsoft.com/en-us/library/6dwk3a1z.aspx, 'WIN32_LEAN_AND_MEAN', ] - if msvc: + if msvc and env['toolchain'] != 'winddk': cppdefines += [ 'VC_EXTRALEAN', '_CRT_SECURE_NO_DEPRECATE', ] if debug: cppdefines += ['_DEBUG'] - if platform == 'winddk': + if env['toolchain'] == 'winddk': # Mimic WINDDK's builtin flags. See also: # - WINDDK's bin/makefile.new i386mk.inc for more info. # - buildchk_wxp_x86.log files, generated by the WINDDK's build # - http://alter.org.ua/docs/nt_kernel/vc8_proj/ + if machine == 'x86': + cppdefines += ['_X86_', 'i386'] + if machine == 'x86_64': + cppdefines += ['_AMD64_', 'AMD64'] + if platform == 'winddk': cppdefines += [ - ('_X86_', '1'), - ('i386', '1'), 'STD_CALL', ('CONDITION_HANDLING', '1'), ('NT_INST', '0'), @@ -309,15 +312,6 @@ def generate(env): cppdefines += ['PIPE_SUBSYSTEM_WINDOWS_CE_OGL'] env.Append(CPPDEFINES = cppdefines) - # C preprocessor includes - if platform == 'winddk': - env.Append(CPPPATH = [ - env['SDK_INC_PATH'], - env['DDK_INC_PATH'], - env['WDM_INC_PATH'], - env['CRT_INC_PATH'], - ]) - # C compiler options cflags = [] if gcc: |