diff --git a/engine.build.lua b/engine.build.lua index 9b29f92..d5d98ae 100644 --- a/engine.build.lua +++ b/engine.build.lua @@ -185,3 +185,21 @@ libspectre = StaticLibrary(settings, 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