ft: correctly include FreeType

We shouldn't include bundled freetype libs if we found freetype-config

Signed-off-by: Igor Gnatenko <i.gnatenko.brain@gmail.com>
This commit is contained in:
Igor Gnatenko 2014-01-19 13:00:41 +04:00
parent 22fe75245c
commit 174ba36544

View file

@ -23,14 +23,11 @@ FreeType = {
end
local apply = function(option, settings)
-- include path
settings.cc.includes:Add(FreeType.basepath .. "/include")
if option.use_ftconfig == true then
settings.cc.flags:Add("`freetype-config --cflags`")
settings.link.flags:Add("`freetype-config --libs`")
elseif option.use_winlib > 0 then
settings.cc.includes:Add(FreeType.basepath .. "/include")
if option.use_winlib == 32 then
settings.link.libpath:Add(FreeType.basepath .. "/lib32")
else