mirror of
https://github.com/wesnoth/wesnoth
synced 2025-04-22 09:26:22 +00:00
scons: refactor, introduce fcn have_i18n_prereqs()
This makes the script a bit more readable
This commit is contained in:
parent
c62d53239c
commit
f9a593fcb4
10
SConstruct
10
SConstruct
@ -370,6 +370,13 @@ if env["prereqs"]:
|
|||||||
conf.CheckSDL("SDL_mixer", require_version = '1.2.12') & \
|
conf.CheckSDL("SDL_mixer", require_version = '1.2.12') & \
|
||||||
conf.CheckSDL("SDL_image", require_version = '1.2.0')
|
conf.CheckSDL("SDL_image", require_version = '1.2.0')
|
||||||
|
|
||||||
|
if env["libintl"]:
|
||||||
|
def have_i18n_prereqs():
|
||||||
|
return conf.CheckGettextLibintl()
|
||||||
|
else:
|
||||||
|
def have_i18n_prereqs():
|
||||||
|
return conf.CheckBoost("locale")
|
||||||
|
|
||||||
have_server_prereqs = (\
|
have_server_prereqs = (\
|
||||||
conf.CheckCPlusPlus(gcc_version = "3.3") & \
|
conf.CheckCPlusPlus(gcc_version = "3.3") & \
|
||||||
have_sdl_net() & \
|
have_sdl_net() & \
|
||||||
@ -380,8 +387,7 @@ if env["prereqs"]:
|
|||||||
conf.CheckBoost("smart_ptr", header_only = True) & \
|
conf.CheckBoost("smart_ptr", header_only = True) & \
|
||||||
conf.CheckBoost("system") & \
|
conf.CheckBoost("system") & \
|
||||||
conf.CheckBoost("filesystem", require_version = "1.44.0") & \
|
conf.CheckBoost("filesystem", require_version = "1.44.0") & \
|
||||||
((not env["libintl"]) or conf.CheckGettextLibintl()) & \
|
have_i18n_prereqs() \
|
||||||
(env["libintl"] or conf.CheckBoost("locale")) \
|
|
||||||
and Info("GOOD: Base prerequisites are met")) \
|
and Info("GOOD: Base prerequisites are met")) \
|
||||||
or Warning("WARN: Base prerequisites are not met")
|
or Warning("WARN: Base prerequisites are not met")
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user