view patches/scons-warnings-patch.diff @ 290:84f53a4abd91

remove linear pather
author wenlin_fife@33b003aa-7bff-0310-803a-e67f0ece8222
date Wed, 24 Jun 2009 13:52:51 +0000
parents 0aef41764e0f
children
line wrap: on
line source

Index: SConstruct
===================================================================
--- SConstruct	(Revision 2922)
+++ SConstruct	(Arbeitskopie)
@@ -1,27 +1,27 @@
 import os, sys
 from utils.util_scripts.path import path as upath
 
-opts = Options('options.py', ARGUMENTS)
-opts.Add(BoolOption('debug',  'Build with debuginfos and without optimisations', 1))
-opts.Add(BoolOption('tests',  'Build testcases in unit_tests', 0))
-opts.Add(BoolOption('noengine',  'Prevents building of engine, use e.g. for util/test tweaking', 0))
-opts.Add(BoolOption('opengl', 'Compile OpenGL support', 1))
-opts.Add(EnumOption('script', 'Selects generated scripting language bindings', 'python', allowed_values=('python', 'lua')))
-opts.Add(BoolOption('profile', 'Build with profiling information', 0))
-opts.Add(BoolOption('projectfiles_only',  "Creates IDE project files only. If defined, won't build code. " +
+opts = Variables('options.py', ARGUMENTS)
+opts.Add(BoolVariable('debug',  'Build with debuginfos and without optimisations', 1))
+opts.Add(BoolVariable('tests',  'Build testcases in unit_tests', 0))
+opts.Add(BoolVariable('noengine',  'Prevents building of engine, use e.g. for util/test tweaking', 0))
+opts.Add(BoolVariable('opengl', 'Compile OpenGL support', 1))
+opts.Add(EnumVariable('script', 'Selects generated scripting language bindings', 'python', allowed_values=('python', 'lua')))
+opts.Add(BoolVariable('profile', 'Build with profiling information', 0))
+opts.Add(BoolVariable('projectfiles_only',  "Creates IDE project files only. If defined, won't build code. " +
                     "Note that normal builds generate these files also automatically.", 0))
-opts.Add(BoolOption('utils',  'Build utilities', 0))
-opts.Add(BoolOption('ext',  'Build external dependencies', 0))
-opts.Add(BoolOption('docs',  "Generates static analysis documentation into doc-folder. If defined, won't build code", 0))
-opts.Add(BoolOption('zip', 'Enable ZIP archive support', 1))
-opts.Add(BoolOption('log', 'Enables logging for the engine', 1))
+opts.Add(BoolVariable('utils',  'Build utilities', 0))
+opts.Add(BoolVariable('ext',  'Build external dependencies', 0))
+opts.Add(BoolVariable('docs',  "Generates static analysis documentation into doc-folder. If defined, won't build code", 0))
+opts.Add(BoolVariable('zip', 'Enable ZIP archive support', 1))
+opts.Add(BoolVariable('log', 'Enables logging for the engine', 1))
 
-opts.Add(BoolOption('rend_camzone', 'Enables camera zone renderer', 0))
-opts.Add(BoolOption('rend_grid', 'Enables grid renderer', 0))
+opts.Add(BoolVariable('rend_camzone', 'Enables camera zone renderer', 0))
+opts.Add(BoolVariable('rend_grid', 'Enables grid renderer', 0))
 
 # Platform-specific prefix directories
 if sys.platform == 'linux2':
-	opts.Add(PathOption('PREFIX', 'Directory to install under', '/usr'))
+	opts.Add(PathVariable('PREFIX', 'Directory to install under', '/usr'))
 
 env = Environment(options = opts, ENV = {'PATH' : os.environ['PATH']})
 env.Replace(SCONS_ROOT_PATH=str(upath('.').abspath()))