Mercurial > fife-parpg
changeset 276:2a4e53c9c01f
*fixed scons warnings part2
*at linux users please test it for me it works
author | LinuxDonald@33b003aa-7bff-0310-803a-e67f0ece8222 |
---|---|
date | Tue, 16 Jun 2009 17:59:20 +0000 |
parents | 8a9cab8f8868 |
children | 41e3d1c92753 |
files | SConstruct |
diffstat | 1 files changed, 16 insertions(+), 16 deletions(-) [+] |
line wrap: on
line diff
--- a/SConstruct Tue Jun 16 17:58:37 2009 +0000 +++ b/SConstruct Tue Jun 16 17:59:20 2009 +0000 @@ -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()))