1
0
Fork 0

vendor/FreeType2/build.lua: use RelPath() "everywhere"

This commit is contained in:
Henrik Hautakoski 2022-09-10 21:47:00 +02:00
parent 7967eaea2a
commit 82cfe55a91

View file

@ -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