From 5e938a08db1b9a49e27318733c227287b51cd387 Mon Sep 17 00:00:00 2001 From: "Ignacio R. Morelle" Date: Thu, 16 Apr 2015 05:53:44 -0300 Subject: [PATCH] scons: Rewrite a conditional for compatibility with Python 2.3 --- src/SConscript | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/src/SConscript b/src/SConscript index 58be546e5abd..56b8f364fd20 100644 --- a/src/SConscript +++ b/src/SConscript @@ -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)]