comparison SConstruct @ 277:41e3d1c92753

*revert part2 of fixing warnings because it donĀ“t work with windows fife sdk *added an patch file for fixing it later
author LinuxDonald@33b003aa-7bff-0310-803a-e67f0ece8222
date Tue, 16 Jun 2009 18:30:39 +0000
parents 2a4e53c9c01f
children 94470d79576f
comparison
equal deleted inserted replaced
276:2a4e53c9c01f 277:41e3d1c92753
1 import os, sys 1 import os, sys
2 from utils.util_scripts.path import path as upath 2 from utils.util_scripts.path import path as upath
3 3
4 opts = Variables('options.py', ARGUMENTS) 4 opts = Options('options.py', ARGUMENTS)
5 opts.Add(BoolVariable('debug', 'Build with debuginfos and without optimisations', 1)) 5 opts.Add(BoolOption('debug', 'Build with debuginfos and without optimisations', 1))
6 opts.Add(BoolVariable('tests', 'Build testcases in unit_tests', 0)) 6 opts.Add(BoolOption('tests', 'Build testcases in unit_tests', 0))
7 opts.Add(BoolVariable('noengine', 'Prevents building of engine, use e.g. for util/test tweaking', 0)) 7 opts.Add(BoolOption('noengine', 'Prevents building of engine, use e.g. for util/test tweaking', 0))
8 opts.Add(BoolVariable('opengl', 'Compile OpenGL support', 1)) 8 opts.Add(BoolOption('opengl', 'Compile OpenGL support', 1))
9 opts.Add(EnumVariable('script', 'Selects generated scripting language bindings', 'python', allowed_values=('python', 'lua'))) 9 opts.Add(EnumOption('script', 'Selects generated scripting language bindings', 'python', allowed_values=('python', 'lua')))
10 opts.Add(BoolVariable('profile', 'Build with profiling information', 0)) 10 opts.Add(BoolOption('profile', 'Build with profiling information', 0))
11 opts.Add(BoolVariable('projectfiles_only', "Creates IDE project files only. If defined, won't build code. " + 11 opts.Add(BoolOption('projectfiles_only', "Creates IDE project files only. If defined, won't build code. " +
12 "Note that normal builds generate these files also automatically.", 0)) 12 "Note that normal builds generate these files also automatically.", 0))
13 opts.Add(BoolVariable('utils', 'Build utilities', 0)) 13 opts.Add(BoolOption('utils', 'Build utilities', 0))
14 opts.Add(BoolVariable('ext', 'Build external dependencies', 0)) 14 opts.Add(BoolOption('ext', 'Build external dependencies', 0))
15 opts.Add(BoolVariable('docs', "Generates static analysis documentation into doc-folder. If defined, won't build code", 0)) 15 opts.Add(BoolOption('docs', "Generates static analysis documentation into doc-folder. If defined, won't build code", 0))
16 opts.Add(BoolVariable('zip', 'Enable ZIP archive support', 1)) 16 opts.Add(BoolOption('zip', 'Enable ZIP archive support', 1))
17 opts.Add(BoolVariable('log', 'Enables logging for the engine', 1)) 17 opts.Add(BoolOption('log', 'Enables logging for the engine', 1))
18 18
19 opts.Add(BoolVariable('rend_camzone', 'Enables camera zone renderer', 0)) 19 opts.Add(BoolOption('rend_camzone', 'Enables camera zone renderer', 0))
20 opts.Add(BoolVariable('rend_grid', 'Enables grid renderer', 0)) 20 opts.Add(BoolOption('rend_grid', 'Enables grid renderer', 0))
21 21
22 # Platform-specific prefix directories 22 # Platform-specific prefix directories
23 if sys.platform == 'linux2': 23 if sys.platform == 'linux2':
24 opts.Add(PathVariable('PREFIX', 'Directory to install under', '/usr')) 24 opts.Add(PathOption('PREFIX', 'Directory to install under', '/usr'))
25 25
26 env = Environment(options = opts, ENV = {'PATH' : os.environ['PATH']}) 26 env = Environment(options = opts, ENV = {'PATH' : os.environ['PATH']})
27 env.Replace(SCONS_ROOT_PATH=str(upath('.').abspath())) 27 env.Replace(SCONS_ROOT_PATH=str(upath('.').abspath()))
28 rootp = env['SCONS_ROOT_PATH'] 28 rootp = env['SCONS_ROOT_PATH']
29 29