engine.build.lua: use RelPath() "everywhere"
This commit is contained in:
parent
fd108cc391
commit
fc64fedb0e
1 changed files with 9 additions and 7 deletions
|
|
@ -7,11 +7,16 @@
|
||||||
-- Output variables: --
|
-- Output variables: --
|
||||||
-- libspectre = path to .lib file --
|
-- libspectre = path to .lib file --
|
||||||
-----------------------------------------------------------
|
-----------------------------------------------------------
|
||||||
|
Import(".bam/path.lua")
|
||||||
|
|
||||||
local settings = CopySettings(global_settings, "Engine")
|
local settings = CopySettings(global_settings, "Spectre")
|
||||||
|
|
||||||
settings.cc.includes:Add("include/")
|
settings.cc.includes:Add(
|
||||||
settings.cc.includes:Add("source/")
|
RelPath("include/"),
|
||||||
|
RelPath("source/"),
|
||||||
|
-- STB
|
||||||
|
RelPath("vendor/stb/include")
|
||||||
|
)
|
||||||
|
|
||||||
if global_settings.debug then
|
if global_settings.debug then
|
||||||
settings.cc.flags:Add("-DSPECTRE_DEBUG")
|
settings.cc.flags:Add("-DSPECTRE_DEBUG")
|
||||||
|
|
@ -26,14 +31,11 @@ end
|
||||||
|
|
||||||
-- FreeType2
|
-- FreeType2
|
||||||
if TARGET_OS == "Win32" then
|
if TARGET_OS == "Win32" then
|
||||||
settings.cc.includes:Add("vendor/FreeType2/include")
|
settings.cc.includes:Add(RelPath("vendor/FreeType2/include"))
|
||||||
else
|
else
|
||||||
settings.cc.includes:Add("/usr/include/freetype2")
|
settings.cc.includes:Add("/usr/include/freetype2")
|
||||||
end
|
end
|
||||||
|
|
||||||
-- STB
|
|
||||||
settings.cc.includes:Add("vendor/stb/include")
|
|
||||||
|
|
||||||
-- Source files
|
-- Source files
|
||||||
-----------------------------------------------------------
|
-----------------------------------------------------------
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue