vendor/FreeType2/build.lua: use RelPath() "everywhere"
This commit is contained in:
parent
7967eaea2a
commit
82cfe55a91
1 changed files with 2 additions and 3 deletions
5
vendor/FreeType2/build.lua
vendored
5
vendor/FreeType2/build.lua
vendored
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue