diff options
author | David Robillard <d@drobilla.net> | 2020-10-03 19:38:55 +0200 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2020-10-04 12:52:37 +0200 |
commit | 0b876c3d4e87b65ea3b3f05ec3274b16600e47fc (patch) | |
tree | 09f4cb47953ac769c8b740900ea9b54ac8639a52 /wscript | |
parent | a36408b7c641e0b9052315aed87ce8e591a6a717 (diff) | |
download | pugl-0b876c3d4e87b65ea3b3f05ec3274b16600e47fc.tar.gz pugl-0b876c3d4e87b65ea3b3f05ec3274b16600e47fc.tar.bz2 pugl-0b876c3d4e87b65ea3b3f05ec3274b16600e47fc.zip |
Add refresh rate hint
Diffstat (limited to 'wscript')
-rw-r--r-- | wscript | 17 |
1 files changed, 12 insertions, 5 deletions
@@ -146,6 +146,8 @@ def configure(conf): if platform == 'darwin': conf.check_cc(framework_name='Cocoa', framework='Cocoa', uselib_store='COCOA') + conf.check_cc(framework_name='Corevideo', framework='Corevideo', + uselib_store='COREVIDEO') if not Options.options.no_gl: conf.check_cc(framework_name='OpenGL', uselib_store='GL', mandatory=False) @@ -176,6 +178,11 @@ def configure(conf): mandatory=False): conf.define('HAVE_XCURSOR', 1) + if conf.check_cc(lib='Xrandr', + uselib_store='XRANDR', + mandatory=False): + conf.define('HAVE_XRANDR', 1) + if not Options.options.no_gl: glx_fragment = """#include <GL/glx.h> int main(void) { glXSwapBuffers(0, 0); return 0; }""" @@ -343,27 +350,27 @@ def build(bld): elif bld.env.TARGET_PLATFORM == 'darwin': platform = 'mac' build_platform('mac', - framework=['Cocoa'], + framework=['Cocoa', 'Corevideo'], source=lib_source + ['pugl/detail/mac.m']) build_backend('mac', 'stub', - framework=['Cocoa'], + framework=['Cocoa', 'Corevideo'], source=['pugl/detail/mac_stub.m']) if bld.env.HAVE_GL: build_backend('mac', 'gl', - framework=['Cocoa', 'OpenGL'], + framework=['Cocoa', 'Corevideo', 'OpenGL'], source=['pugl/detail/mac_gl.m']) if bld.env.HAVE_CAIRO: build_backend('mac', 'cairo', - framework=['Cocoa'], + framework=['Cocoa', 'Corevideo'], uselib=['CAIRO'], source=['pugl/detail/mac_cairo.m']) else: platform = 'x11' build_platform('x11', - uselib=['M', 'X11', 'XSYNC', 'XCURSOR'], + uselib=['M', 'X11', 'XSYNC', 'XCURSOR', 'XRANDR'], source=lib_source + ['pugl/detail/x11.c']) if bld.env.HAVE_GL: |