aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2019-11-21 10:09:40 +0100
committerDavid Robillard <d@drobilla.net>2019-11-21 10:09:40 +0100
commit9685d6632a9ac5b786c147a935b319f92f10efb2 (patch)
tree8a76cf066a05f48f17c1415c6cc2113335eb52ad
parentce90f7ccfbbf4a8a272eb1426bf8f9a0958a412d (diff)
downloadpugl-9685d6632a9ac5b786c147a935b319f92f10efb2.tar.gz
pugl-9685d6632a9ac5b786c147a935b319f92f10efb2.tar.bz2
pugl-9685d6632a9ac5b786c147a935b319f92f10efb2.zip
Cleanup: Fix flake8 warnings
-rw-r--r--wscript14
1 files changed, 7 insertions, 7 deletions
diff --git a/wscript b/wscript
index 0bc939c..5ea944d 100644
--- a/wscript
+++ b/wscript
@@ -82,17 +82,17 @@ def configure(conf):
else:
conf.check_cc(lib='X11', uselib_store='X11')
if not Options.options.no_gl:
+ glx_fragment = """#include <GL/glx.h>
+ int main(void) { glXSwapBuffers(0, 0); return 0; }"""
+
conf.check_cc(lib='GLX', uselib_store='GLX', mandatory=False)
conf.check_cc(lib='GL', uselib_store='GL', mandatory=False)
- conf.check_cc(
- fragment="""#include <GL/glx.h>
- int main(void) { glXSwapBuffers(0, 0); return 0; }""",
- lib='GLX' if conf.env.LIB_GLX else 'GL',
- mandatory=False,
- msg='Checking for GLX')
+ conf.check_cc(fragment=glx_fragment,
+ lib='GLX' if conf.env.LIB_GLX else 'GL',
+ mandatory=False,
+ msg='Checking for GLX')
conf.env.HAVE_GL = conf.env.LIB_GL or conf.env.LIB_GLX
-
# Check for Cairo via pkg-config
if not Options.options.no_cairo:
autowaf.check_pkg(conf, 'cairo',