scons: Rewrite a couple of conditionals for compatibility with Python 2.3

This commit is contained in:
Ignacio R. Morelle 2015-04-16 05:49:47 -03:00
parent 08c6652a2b
commit bde80f6887

View file

@ -62,9 +62,18 @@ if env['default_prefs_file']:
libwesnoth_core_sources.extend([
game_config_env.Object("game_config.cpp"),
filesystem_env.Object("filesystem_common.cpp"),
filesystem_env.Object("filesystem_boost.cpp") if env["boostfilesystem"] else filesystem_env.Object("filesystem.cpp"),
filesystem_env.Object("gettext_boost.cpp") if env["boostfilesystem"] else filesystem_env.Object("gettext.cpp")
filesystem_env.Object("filesystem_common.cpp")
])
if env["boostfilesystem"]:
libwesnoth_core_sources.extend([
filesystem_env.Object("filesystem_boost.cpp"),
filesystem_env.Object("gettext_boost.cpp")
])
else:
libwesnoth_core_sources.extend([
filesystem_env.Object("filesystem.cpp"),
filesystem_env.Object("gettext.cpp")
])
libwesnoth_core = [env.Library("wesnoth_core", libwesnoth_core_sources)]