1
0
Fork 0

examples/build.lua: Use libspectre_settings.

This commit is contained in:
Henrik Hautakoski 2022-09-12 19:34:48 +02:00
parent 9dc3a49207
commit 4222d89eb2

View file

@ -4,24 +4,13 @@
-- --
--------------------------------
local settings = CopySettings(global_settings, "Example")
-- Include spectre headers.
settings.cc.includes:Add("include/")
local settings = TableMerge(libspectre_settings, global_settings)
SetSettingsPrefix(settings, "Examples")
-- Link with spectre.
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
-- we copy the whole assets directory.
assets = CopyDir(PathJoin(paths.build, paths.examples), "assets")