about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--bam.lua9
-rw-r--r--other/freetype/freetype.lua20
-rw-r--r--other/freetype/lib/freetype.libbin42320 -> 0 bytes
-rw-r--r--other/sdl/sdl.lua20
-rw-r--r--other/sdl/vc2005libs/SDL.dllbin343552 -> 0 bytes
-rw-r--r--other/sdl/vc2005libs/SDL.libbin42698 -> 0 bytes
-rw-r--r--other/sdl/vc2005libs/SDLmain.libbin22852 -> 0 bytes
-rw-r--r--src/base/detect.h4
8 files changed, 37 insertions, 16 deletions
diff --git a/bam.lua b/bam.lua
index 46cc18dd..8a7b79c5 100644
--- a/bam.lua
+++ b/bam.lua
@@ -113,8 +113,13 @@ client_depends = {}
 server_link_other = {}
 
 if family == "windows" then
-	table.insert(client_depends, CopyToDirectory(".", "other\\freetype\\lib\\freetype.dll"))
-	table.insert(client_depends, CopyToDirectory(".", "other\\sdl\\vc2005libs\\SDL.dll"))
+	if platform == "win32" then
+		table.insert(client_depends, CopyToDirectory(".", "other\\freetype\\lib32\\freetype.dll"))
+		table.insert(client_depends, CopyToDirectory(".", "other\\sdl\\lib32\\SDL.dll"))
+	else
+		table.insert(client_depends, CopyToDirectory(".", "other\\freetype\\lib64\\freetype.dll"))
+		table.insert(client_depends, CopyToDirectory(".", "other\\sdl\\lib64\\SDL.dll"))
+	end
 
 	if config.compiler.driver == "cl" then
 		client_link_other = {ResCompile("other/icons/teeworlds_cl.rc")}
diff --git a/other/freetype/freetype.lua b/other/freetype/freetype.lua
index 5b871dcc..aa5af22d 100644
--- a/other/freetype/freetype.lua
+++ b/other/freetype/freetype.lua
@@ -5,7 +5,7 @@ FreeType = {
 		local check = function(option, settings)
 			option.value = false
 			option.use_ftconfig = false
-			option.use_win32lib = false
+			option.use_winlib = 0
 			option.lib_path = nil
 			
 			if ExecuteSilent("freetype-config") > 0 and ExecuteSilent("freetype-config --cflags") == 0 then
@@ -15,7 +15,10 @@ FreeType = {
 				
 			if platform == "win32" then
 				option.value = true
-				option.use_win32lib = true
+				option.use_winlib = 32
+			elseif platform == "win64" then
+				option.value = true
+				option.use_winlib = 64
 			end
 		end
 		
@@ -27,8 +30,12 @@ FreeType = {
 				settings.cc.flags:Add("`freetype-config --cflags`")
 				settings.link.flags:Add("`freetype-config --libs`")
 				
-			elseif option.use_win32lib == true then
-				settings.link.libpath:Add(FreeType.basepath .. "/lib")
+			elseif option.use_winlib > 0 then
+				if option.use_winlib == 32 then
+					settings.link.libpath:Add(FreeType.basepath .. "/lib32")
+				else
+					settings.link.libpath:Add(FreeType.basepath .. "/lib64")
+				end
 				settings.link.libs:Add("freetype")
 			end
 		end
@@ -36,13 +43,14 @@ FreeType = {
 		local save = function(option, output)
 			output:option(option, "value")
 			output:option(option, "use_ftconfig")
-			output:option(option, "use_win32lib")
+			output:option(option, "use_winlib")
 		end
 		
 		local display = function(option)
 			if option.value == true then
 				if option.use_ftconfig == true then return "using freetype-config" end
-				if option.use_win32lib == true then return "using supplied win32 libraries" end
+				if option.use_winlib == 32 then return "using supplied win32 libraries" end
+				if option.use_winlib == 64 then return "using supplied win64 libraries" end
 				return "using unknown method"
 			else
 				if option.required then
diff --git a/other/freetype/lib/freetype.lib b/other/freetype/lib/freetype.lib
deleted file mode 100644
index 35c49a52..00000000
--- a/other/freetype/lib/freetype.lib
+++ /dev/null
Binary files differdiff --git a/other/sdl/sdl.lua b/other/sdl/sdl.lua
index 23b287c7..14183205 100644
--- a/other/sdl/sdl.lua
+++ b/other/sdl/sdl.lua
@@ -5,7 +5,7 @@ SDL = {
 		local check = function(option, settings)
 			option.value = false
 			option.use_sdlconfig = false
-			option.use_win32sdl = false
+			option.use_winlib = 0
 			option.use_osxframework = false
 			option.lib_path = nil
 			
@@ -16,7 +16,10 @@ SDL = {
 			
 			if platform == "win32" then
 				option.value = true
-				option.use_win32sdl = true
+				option.use_winlib = 32
+			elseif platform == "win64" then
+				option.value = true
+				option.use_winlib = 64
 			end
 			
 			if platform == "macosx" then
@@ -37,9 +40,13 @@ SDL = {
 				client_settings.cc.includes:Add("/Library/Frameworks/SDL.framework/Headers")
 			end
 
-			if option.use_win32sdl == true then
+			if option.use_winlib > 0 then
 				settings.cc.includes:Add(SDL.basepath .. "/include")
-				settings.link.libpath:Add(SDL.basepath .. "/vc2005libs")
+				if option.use_winlib == 32 then
+					settings.link.libpath:Add(SDL.basepath .. "/lib32")
+				else
+					settings.link.libpath:Add(SDL.basepath .. "/lib64")
+				end
 				settings.link.libs:Add("SDL")
 				settings.link.libs:Add("SDLmain")
 			end
@@ -48,14 +55,15 @@ SDL = {
 		local save = function(option, output)
 			output:option(option, "value")
 			output:option(option, "use_sdlconfig")
-			output:option(option, "use_win32sdl")
+			output:option(option, "use_winlib")
 			output:option(option, "use_osxframework")
 		end
 		
 		local display = function(option)
 			if option.value == true then
 				if option.use_sdlconfig == true then return "using sdl-config" end
-				if option.use_win32sdl == true then return "using supplied win32 libraries" end
+				if option.use_winlib == 32 then return "using supplied win32 libraries" end
+				if option.use_winlib == 64 then return "using supplied win64 libraries" end
 				if option.use_osxframework == true then return "using osx framework" end
 				return "using unknown method"
 			else
diff --git a/other/sdl/vc2005libs/SDL.dll b/other/sdl/vc2005libs/SDL.dll
deleted file mode 100644
index 429ae545..00000000
--- a/other/sdl/vc2005libs/SDL.dll
+++ /dev/null
Binary files differdiff --git a/other/sdl/vc2005libs/SDL.lib b/other/sdl/vc2005libs/SDL.lib
deleted file mode 100644
index f4e860f8..00000000
--- a/other/sdl/vc2005libs/SDL.lib
+++ /dev/null
Binary files differdiff --git a/other/sdl/vc2005libs/SDLmain.lib b/other/sdl/vc2005libs/SDLmain.lib
deleted file mode 100644
index 825c03b9..00000000
--- a/other/sdl/vc2005libs/SDLmain.lib
+++ /dev/null
Binary files differdiff --git a/src/base/detect.h b/src/base/detect.h
index eb12244c..0e2ef86a 100644
--- a/src/base/detect.h
+++ b/src/base/detect.h
@@ -101,7 +101,7 @@
 	#endif
 #endif
 
-#if defined(__ia64__)
+#if defined(__ia64__) || defined(_M_IA64)
 	#define CONF_ARCH_IA64 1
 	#define CONF_ARCH_STRING "ia64"
 	#if !defined(CONF_ARCH_ENDIAN_LITTLE) && !defined(CONF_ARCH_ENDIAN_BIG)
@@ -109,7 +109,7 @@
 	#endif
 #endif
 
-#if defined(__amd64__) || defined(__x86_64__)
+#if defined(__amd64__) || defined(__x86_64__) || defined(_M_X64)
 	#define CONF_ARCH_AMD64 1
 	#define CONF_ARCH_STRING "amd64"
 	#if !defined(CONF_ARCH_ENDIAN_LITTLE) && !defined(CONF_ARCH_ENDIAN_BIG)