examples/build.lua: Use libspectre_settings.
This commit is contained in:
parent
9dc3a49207
commit
4222d89eb2
1 changed files with 2 additions and 13 deletions
|
|
@ -4,24 +4,13 @@
|
||||||
-- --
|
-- --
|
||||||
--------------------------------
|
--------------------------------
|
||||||
|
|
||||||
local settings = CopySettings(global_settings, "Example")
|
|
||||||
|
|
||||||
-- Include spectre headers.
|
local settings = TableMerge(libspectre_settings, global_settings)
|
||||||
settings.cc.includes:Add("include/")
|
SetSettingsPrefix(settings, "Examples")
|
||||||
|
|
||||||
-- Link with spectre.
|
-- Link with spectre.
|
||||||
settings.link.extrafiles:Add(libspectre)
|
settings.link.extrafiles:Add(libspectre)
|
||||||
|
|
||||||
if TARGET_OS == "Win32" then
|
|
||||||
|
|
||||||
-- Windows needs to link against these.
|
|
||||||
settings.link.libs:Add("opengl32", "gdi32", "user32")
|
|
||||||
elseif TARGET_OS == "Unix" then
|
|
||||||
|
|
||||||
-- Unix nees dl and X11 libs.
|
|
||||||
settings.link.libs:Add("dl", 'X11', 'Xrandr', 'freetype')
|
|
||||||
end
|
|
||||||
|
|
||||||
-- For now, to get examples working
|
-- For now, to get examples working
|
||||||
-- we copy the whole assets directory.
|
-- we copy the whole assets directory.
|
||||||
assets = CopyDir(PathJoin(paths.build, paths.examples), "assets")
|
assets = CopyDir(PathJoin(paths.build, paths.examples), "assets")
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue