From f12095fb512a4dc5e18c639be4474787e7053856 Mon Sep 17 00:00:00 2001 From: oy Date: Sun, 4 Dec 2011 22:28:58 +0100 Subject: fixed win64 building --- other/freetype/freetype.lua | 20 ++++++++++++++------ other/freetype/lib/freetype.lib | Bin 42320 -> 0 bytes 2 files changed, 14 insertions(+), 6 deletions(-) delete mode 100644 other/freetype/lib/freetype.lib (limited to 'other/freetype') 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 Binary files a/other/freetype/lib/freetype.lib and /dev/null differ -- cgit 1.4.1