From e9316dfaf7cdcdedabdf7de9891e2051edfd7d48 Mon Sep 17 00:00:00 2001 From: Josh Holtrop Date: Fri, 1 Jul 2016 19:20:48 -0400 Subject: [PATCH] check for and build with SDL2 --- wscript | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/wscript b/wscript index 50e1648..9ae04c5 100644 --- a/wscript +++ b/wscript @@ -8,6 +8,7 @@ def options(opt): def configure(conf): conf.load("compiler_c compiler_cxx") conf.check(header_name = "getopt.h") + conf.check_cfg(package = "sdl2", args = "--cflags --libs") def build(bld): includes = [p for p in bld.path.ant_glob("src/**", dir = True) if os.path.isdir(p.abspath())] @@ -18,7 +19,8 @@ def build(bld): includes = includes, defines = ['GLCXX_GL_INCLUDE="gl3w.h"'], cxxflags = ["-Wall", "-std=gnu++14"], - lib = ["dl", "GL"]) + lib = ["dl", "GL"], + uselib = "SDL2") test_libs = [] if re.search(r'linux', platform.platform(), re.IGNORECASE):