Unit tests require all game and server's dependencies.

Reflected this in scons recipe.
This commit is contained in:
Sergey Popov 2008-08-10 18:30:56 +00:00
parent 2b94cfa4f3
commit 38aff56452

View file

@ -215,7 +215,7 @@ if env["prereqs"]:
have_server_prereqs = conf.CheckSDL('SDL_net') or Warning("Server prerequisites are not met. wesnothd and campaignd cannot be built.")
have_test_prereqs = conf.CheckBoost('unit_test_framework', require_version = "1.34.0") or Warning("Boost test not found. Disabling unit tests.")
have_test_prereqs = have_client_prereqs and have_server_prereqs and conf.CheckBoost('unit_test_framework', require_version = "1.34.0") or Warning("Unit tests are disabled because their prerequisites are not met.")
if env["python"]:
env["python"] = (float(sys.version[:3]) >= 2.4) and conf.CheckPython() or Warning("Python >= 2.4 not found. Python extensions will be disabled.")