Check for OpenGL libraries in configure step

This commit is contained in:
Josh Holtrop 2017-11-15 19:26:31 -05:00
parent 4b9987b119
commit 7c65dcfaa2

View File

@ -14,8 +14,10 @@ def configure(conf):
conf.check_cfg(package = "freetype2", uselib_store = "FreeType2", args = "--cflags --libs") conf.check_cfg(package = "freetype2", uselib_store = "FreeType2", args = "--cflags --libs")
if platform.system() == "Linux": if platform.system() == "Linux":
conf.check(header_name = "X11/Xlib.h", global_define = False) conf.check(header_name = "X11/Xlib.h", global_define = False)
conf.check(lib = 'GL', global_define = False)
elif platform.system() == "Windows": elif platform.system() == "Windows":
conf.check(header_name = "windows.h", global_define = False) conf.check(header_name = "windows.h", global_define = False)
conf.check(lib = 'opengl32', global_define = False)
def build(bld): def build(bld):
defines = ['APPNAME="%s"' % APPNAME] defines = ['APPNAME="%s"' % APPNAME]