gallium: remove unused vars
[mesa.git] / SConstruct
index 8c8a82b38ec9725e7a0937bb487162066b5fdf40..4f19b16a0d24ec697d6fc3ead7e9b5279a028a75 100644 (file)
@@ -52,9 +52,12 @@ opts.Add(ListOption('winsys', 'winsys drivers to build', default_winsys,
                      ['xlib', 'intel', 'gdi'])) 
 
 env = Environment(
-       MSVS_VERSION = '7.1',
-       options = opts, 
-       ENV = os.environ)
+       options = opts,
+       tools = ['gallium'],
+       toolpath = ['scons'],   
+       ENV = os.environ,
+)
+
 Help(opts.GenerateHelpText(env))
 
 # replicate options values in local variables
@@ -82,25 +85,6 @@ Export([
 
 #######################################################################
 # Environment setup
-#
-# TODO: put the compiler specific settings in separate files
-# TODO: auto-detect as much as possible
-
-if platform == 'winddk':
-       env.Tool('winddk', ['scons'])
-       
-       env.Append(CPPPATH = [
-               env['SDK_INC_PATH'],
-               env['DDK_INC_PATH'],
-               env['WDM_INC_PATH'],
-               env['CRT_INC_PATH'],
-       ])
-
-if platform == 'wince':
-       env.Tool('evc', ['scons'])
-
-common.generate(env)
-
 
 # Includes
 env.Append(CPPPATH = [
@@ -111,13 +95,6 @@ env.Append(CPPPATH = [
 ])
 
 
-# x86 assembly
-if x86:
-       if gcc: 
-               env.Append(CFLAGS = '-m32')
-               env.Append(CXXFLAGS = '-m32')
-
-
 # Posix
 if platform in ('posix', 'linux', 'freebsd', 'darwin'):
        env.Append(CPPDEFINES = [
@@ -182,6 +159,6 @@ Export('env')
 
 SConscript(
        'src/SConscript',
-       build_dir = common.make_build_dir(env),
+       build_dir = env['build'],
        duplicate = 0 # http://www.scons.org/doc/0.97/HTML/scons-user/x2261.html
 )