From f31c1c2532accd38c4c25be2447bcb60eaf8eb0f Mon Sep 17 00:00:00 2001 From: Josh Holtrop Date: Fri, 8 Jul 2016 20:45:31 -0400 Subject: [PATCH] tweak wscript: avoid define for having header; rename freetype2 uselib_store --- wscript | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/wscript b/wscript index e27f275..ed455a6 100644 --- a/wscript +++ b/wscript @@ -10,9 +10,9 @@ def options(opt): def configure(conf): conf.load("compiler_c compiler_cxx") - conf.check(header_name = "getopt.h") + conf.check(header_name = "getopt.h", global_define = False) conf.check_cfg(package = "sdl2", args = "--cflags --libs") - conf.check_cfg(package = "freetype2", args = "--cflags --libs") + conf.check_cfg(package = "freetype2", uselib_store = "FreeType2", args = "--cflags --libs") def build(bld): defines = ['APPNAME="%s"' % APPNAME] @@ -26,7 +26,7 @@ def build(bld): defines = ['GLCXX_GL_INCLUDE="gl3w.h"'] + defines, cxxflags = ["-Wall", "-std=gnu++14"], lib = ["dl", "GL"], - uselib = ["SDL2", "FREETYPE2"]) + uselib = ["SDL2", "FreeType2"]) test_libs = [] if re.search(r'linux', platform.platform(), re.IGNORECASE):