mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-24 15:20:10 +01:00
Cleanup scons files.
This commit is contained in:
parent
2bebeef81b
commit
efd336887f
2 changed files with 25 additions and 18 deletions
23
SConstruct
23
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:
|
||||
|
|
|
|||
20
winddk.py
20
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 )
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue