engine.build.lua: export settings.
This commit is contained in:
parent
82cfe55a91
commit
0170e8181b
1 changed files with 18 additions and 0 deletions
|
|
@ -185,3 +185,21 @@ libspectre = StaticLibrary(settings,
|
||||||
obj,
|
obj,
|
||||||
ft2_obj
|
ft2_obj
|
||||||
)
|
)
|
||||||
|
|
||||||
|
-- Export settings
|
||||||
|
-----------------------------------------------------------
|
||||||
|
local exp = NewSettings()
|
||||||
|
|
||||||
|
-- Headers
|
||||||
|
exp.cc.includes:Add(RelPath("include"))
|
||||||
|
|
||||||
|
-- Additional libraries.
|
||||||
|
if TARGET_OS == "Win32" then
|
||||||
|
-- Windows needs to link against these.
|
||||||
|
exp.link.libs:Add("opengl32", "gdi32", "user32")
|
||||||
|
elseif TARGET_OS == "Unix" then
|
||||||
|
-- Unix nees dl and X11 libs and freetype
|
||||||
|
exp.link.libs:Add("dl", 'X11', 'Xrandr', 'freetype')
|
||||||
|
end
|
||||||
|
|
||||||
|
libspectre_settings = exp
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue