Skip to content

Commit

Permalink
scons: Rewrite a conditional for compatibility with Python 2.3
Browse files Browse the repository at this point in the history
  • Loading branch information
irydacea committed Apr 16, 2015
1 parent e105d49 commit 5e938a0
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions src/SConscript
Expand Up @@ -66,8 +66,16 @@ 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"),
filesystem_env.Object("gettext.cpp") if env["libintl"] else filesystem_env.Object("gettext_boost.cpp")
filesystem_env.Object("filesystem_boost.cpp")
])

if env["libintl"]:
libwesnoth_core_sources.extend([
filesystem_env.Object("gettext.cpp")
])
else:
libwesnoth_core_sources.extend([
filesystem_env.Object("gettext_boost.cpp")
])

libwesnoth_core = [env.Library("wesnoth_core", libwesnoth_core_sources)]
Expand Down

0 comments on commit 5e938a0

Please sign in to comment.