diff --git a/vendor/FreeType2/build.lua b/vendor/FreeType2/build.lua index b526917..6d6d6e0 100644 --- a/vendor/FreeType2/build.lua +++ b/vendor/FreeType2/build.lua @@ -3,7 +3,6 @@ -- FreeType2 build config -- -- -- -------------------------------- -local basepath = PathDir(ModuleFilename()) -- Modules -------------------------------- @@ -27,7 +26,7 @@ settings = TableDeepCopy(global_settings) settings.labelprefix = "[FT2] " -- Compile flags -settings.cc.includes:Add(PathJoin(basepath, "include")) +settings.cc.includes:Add(RelPath("include")) settings.cc.flags:Add("-DFT2_BUILD_LIBRARY") -- Build target @@ -37,7 +36,7 @@ local obj = {} -- Compile each module to object files. for k,name in pairs(ft_modules) do - local mod_base = PathJoin(basepath, string.format("src/%s/", name)) + local mod_base = RelPath("src/" .. name) local module_file = PathJoin(mod_base, "module.lua") -- Check if we have a module.lua file