about summary refs log tree commit diff
path: root/default.bam
diff options
context:
space:
mode:
authorJohan Althoff <teetow@gmail.com>2009-01-11 12:57:29 +0000
committerJohan Althoff <teetow@gmail.com>2009-01-11 12:57:29 +0000
commit42f84066cbd3af27dc2a0f0b798ca264f28938bf (patch)
tree4faea77ff155863c3a2c8e290f1a12138a42baf8 /default.bam
parent67f4910e8668d71c6474ef24a765718c65cd871c (diff)
downloadzcatch-42f84066cbd3af27dc2a0f0b798ca264f28938bf.tar.gz
zcatch-42f84066cbd3af27dc2a0f0b798ca264f28938bf.zip
fixed so that SDL.dll is copied on windows
Diffstat (limited to 'default.bam')
-rw-r--r--default.bam8
1 files changed, 7 insertions, 1 deletions
diff --git a/default.bam b/default.bam
index e7d26718..a4902b4e 100644
--- a/default.bam
+++ b/default.bam
@@ -88,6 +88,12 @@ AddDependency(server_content_source, server_content_header)
 nethash = CHash("src/game/generated/nethash.c", "src/engine/e_protocol.h", "src/game/generated/g_protocol.hpp", "src/game/tuning.hpp", "src/game/gamecore.cpp", network_header)
 
 client_link_other = {}
+client_depends = {}
+
+if family == "windows" then
+	table.insert(client_depends, Copy(".", "other\\sdl\\vc2005libs\\SDL.dll"))
+end
+	
 
 if config.compiler.value == "cl" then
 	client_link_other = {ResCompile("other/icons/teeworlds.rc")}
@@ -219,7 +225,7 @@ function build(settings)
 		engine, zlib)
 
 	-- make targets
-	c = PseudoTarget("client".."_"..settings.config_name, client_exe)
+	c = PseudoTarget("client".."_"..settings.config_name, client_exe, client_depends)
 	s = PseudoTarget("server".."_"..settings.config_name, server_exe)
 	g = PseudoTarget("game".."_"..settings.config_name, client_exe, server_exe)