scons: Rewrite a couple of conditionals for compatibility with Python 2.3
This commit is contained in:
parent
08c6652a2b
commit
bde80f6887
1 changed files with 12 additions and 3 deletions
|
@ -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)]
|
||||
|
|
Loading…
Add table
Reference in a new issue