diff --git a/examples/build.lua b/examples/build.lua index 24ce852..8300bce 100644 --- a/examples/build.lua +++ b/examples/build.lua @@ -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")