about summary refs log tree commit diff
path: root/other
diff options
context:
space:
mode:
authoroy <Tom_Adams@web.de>2011-12-04 22:28:58 +0100
committeroy <Tom_Adams@web.de>2011-12-04 22:28:58 +0100
commitf12095fb512a4dc5e18c639be4474787e7053856 (patch)
tree17d840112acdbd678f08b7d8c0b8eb57f91e0dde /other
parent2df6e0d04ddff53dcadc8baefe4a9f2775360131 (diff)
downloadzcatch-f12095fb512a4dc5e18c639be4474787e7053856.tar.gz
zcatch-f12095fb512a4dc5e18c639be4474787e7053856.zip
fixed win64 building
Diffstat (limited to 'other')
-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
6 files changed, 28 insertions, 12 deletions
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 differ