scons recipe: added cachedir option to specify directory...
...that contains a cache of derived files which can be shared between different build trees.
This commit is contained in:
parent
adf687a620
commit
a08e454b2f
1 changed files with 4 additions and 0 deletions
|
@ -50,6 +50,7 @@ opts.Add(BoolOption('static', 'Set to enable static building of Wesnoth', False)
|
|||
opts.Add(BoolOption('strict', 'Set to strict compilation', False))
|
||||
opts.Add(BoolOption('tinygui', 'Set for GUI reductions for resolutions down to 320x240 (PDAs), resize images before installing', False))
|
||||
opts.Add(BoolOption('verbose', 'Emit progress messages during data installation.', False))
|
||||
opts.Add('cachedir', 'Directory that contains a cache of derived files.', '')
|
||||
|
||||
# FIXME: These are not yet implemented
|
||||
opts.Add(BoolOption('dummy_locales','Set to enable Wesnoth private locales', False))
|
||||
|
@ -102,6 +103,9 @@ be appended to the appropriate variables within scons. You can use this,
|
|||
for example, to point scons at non-default library locations.
|
||||
""" + opts.GenerateHelpText(env))
|
||||
|
||||
if env["cachedir"]:
|
||||
CacheDir(env["cachedir"])
|
||||
|
||||
# Omits the 'test' target
|
||||
all = env.Alias("all", ["wesnoth", "wesnoth_editor", "wesnothd", "campaignd",
|
||||
"cutter", "exploder"])
|
||||
|
|
Loading…
Add table
Reference in a new issue