Skip to content

Commit

Permalink
scons: remove SDL_net dependency from unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
loonycyborg committed Jun 9, 2016
1 parent 3ee7fe2 commit 101e5d3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
2 changes: 1 addition & 1 deletion SConstruct
Expand Up @@ -457,7 +457,7 @@ if env["prereqs"]:
test_env = client_env.Clone()
conf = test_env.Configure(**configure_args)

have_test_prereqs = have_client_prereqs and conf.CheckBoost('unit_test_framework') and conf.CheckSDL("SDL2_net", header_file = "SDL_net") \
have_test_prereqs = have_client_prereqs and conf.CheckBoost('unit_test_framework') \
or Warning("WARN: Unit tests are disabled because their prerequisites are not met")
test_env = conf.Finish()
if not have_test_prereqs and "test" in env["default_targets"]:
Expand Down
6 changes: 2 additions & 4 deletions src/SConscript
Expand Up @@ -22,7 +22,6 @@ libwesnoth_core_sources = Split("""
map/map.cpp
md5.cpp
mt_rng.cpp
network.cpp
seed_rng.cpp
serialization/binary_or_text.cpp
serialization/parser.cpp
Expand All @@ -40,8 +39,6 @@ libwesnoth_core_sources = Split("""
version.cpp
""")

libwesnoth_core_sources.extend(campaignd_env.Object("network_worker.cpp", EXTRA_DEFINE = env['raw_sockets'] and "NETWORK_USE_RAW_SOCKETS" or None))

game_config_env = campaignd_env.Clone()
filesystem_env = campaignd_env.Clone()
if env["PLATFORM"] != "win32":
Expand Down Expand Up @@ -631,6 +628,8 @@ campaignd_sources = Split("""
campaign_server/addon_utils.cpp
campaign_server/blacklist.cpp
server/input_stream.cpp
network.cpp
network_worker.cpp
""")

if env["PLATFORM"] == "win32": env["fifodir"] = ""
Expand Down Expand Up @@ -716,7 +715,6 @@ test_sources = Split("""
tests/test_make_enum.cpp
tests/test_map_location.cpp
tests/test_mp_connect.cpp
tests/test_network_worker.cpp
tests/test_recall_list.cpp
tests/test_rng.cpp
tests/test_sdl_utils.cpp
Expand Down

0 comments on commit 101e5d3

Please sign in to comment.