Skip to content

Commit

Permalink
scons: Rewrite a couple of conditionals for compatibility with Python…
Browse files Browse the repository at this point in the history
… 2.3
  • Loading branch information
irydacea committed Apr 16, 2015
1 parent 08c6652 commit bde80f6
Showing 1 changed file with 12 additions and 3 deletions.
15 changes: 12 additions & 3 deletions src/SConscript
Expand Up @@ -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)]
Expand Down

0 comments on commit bde80f6

Please sign in to comment.