diff options
| author | David Robillard <d@drobilla.net> | 2019-11-21 10:09:40 +0100 | 
|---|---|---|
| committer | David Robillard <d@drobilla.net> | 2019-11-21 10:09:40 +0100 | 
| commit | 9685d6632a9ac5b786c147a935b319f92f10efb2 (patch) | |
| tree | 8a76cf066a05f48f17c1415c6cc2113335eb52ad /wscript | |
| parent | ce90f7ccfbbf4a8a272eb1426bf8f9a0958a412d (diff) | |
Cleanup: Fix flake8 warnings
Diffstat (limited to 'wscript')
| -rw-r--r-- | wscript | 14 | 
1 files changed, 7 insertions, 7 deletions
@@ -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',  | 
