Readded the option to disable built-in editor to scons script.

This commit is contained in:
Sergey Popov 2008-10-04 14:19:57 +00:00
parent 9f8cf8935a
commit 97a7b74bb0
2 changed files with 6 additions and 1 deletions

View file

@ -59,6 +59,7 @@ opts.AddOptions(
PathOption('mandir', 'sets the man pages directory to a non-default location', "$datarootdir/man", PathOption.PathAccept),
PathOption('docdir', 'sets the doc directory to a non-default location', "$datarootdir/doc/wesnoth", PathOption.PathAccept),
PathOption('python_site_packages_dir', 'sets the directory where python modules are installed', "lib/python/site-packages/wesnoth", PathOption.PathAccept),
BoolOption('editor', 'Enable editor', True),
BoolOption('lowmem', 'Set to reduce memory usage by removing extra functionality', False),
BoolOption('nls','enable compile/install of gettext message catalogs',True),
PathOption('prefix', 'autotools-style installation prefix', "/usr/local", PathOption.PathAccept),
@ -292,6 +293,9 @@ if env['lowmem']:
if env['internal_data']:
env.Append(CPPDEFINES = "USE_INTERNAL_DATA")
if not env["editor"]:
env.Append(CPPDEFINES = "DISABLE_EDITOR2")
if have_X:
env.Append(CPPDEFINES = "_X11")

View file

@ -272,7 +272,8 @@ wesnoth_editor2_sources = Split("""
editor2/mouse_action.cpp
""")
wesnoth_sources += wesnoth_editor2_sources
if env["editor"]:
wesnoth_sources += wesnoth_editor2_sources
libwesnoth_extras = env.Library("wesnoth_extras", wesnoth_sources)
#