check for and use freetype2
This commit is contained in:
parent
35a2b99970
commit
761078924a
3
wscript
3
wscript
@ -9,6 +9,7 @@ def configure(conf):
|
|||||||
conf.load("compiler_c compiler_cxx")
|
conf.load("compiler_c compiler_cxx")
|
||||||
conf.check(header_name = "getopt.h")
|
conf.check(header_name = "getopt.h")
|
||||||
conf.check_cfg(package = "sdl2", args = "--cflags --libs")
|
conf.check_cfg(package = "sdl2", args = "--cflags --libs")
|
||||||
|
conf.check_cfg(package = "freetype2", args = "--cflags --libs")
|
||||||
|
|
||||||
def build(bld):
|
def build(bld):
|
||||||
includes = [p for p in bld.path.ant_glob("src/**", dir = True) if os.path.isdir(p.abspath())]
|
includes = [p for p in bld.path.ant_glob("src/**", dir = True) if os.path.isdir(p.abspath())]
|
||||||
@ -20,7 +21,7 @@ def build(bld):
|
|||||||
defines = ['GLCXX_GL_INCLUDE="gl3w.h"'],
|
defines = ['GLCXX_GL_INCLUDE="gl3w.h"'],
|
||||||
cxxflags = ["-Wall", "-std=gnu++14"],
|
cxxflags = ["-Wall", "-std=gnu++14"],
|
||||||
lib = ["dl", "GL"],
|
lib = ["dl", "GL"],
|
||||||
uselib = "SDL2")
|
uselib = ["SDL2", "FREETYPE2"])
|
||||||
|
|
||||||
test_libs = []
|
test_libs = []
|
||||||
if re.search(r'linux', platform.platform(), re.IGNORECASE):
|
if re.search(r'linux', platform.platform(), re.IGNORECASE):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user