From 2f90b716c29a623b4ec090bb455d2c49b4062f98 Mon Sep 17 00:00:00 2001 From: Jean Pierre Cimalando Date: Mon, 1 Jun 2020 13:03:16 +0200 Subject: Add puglSetCursor() --- wscript | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'wscript') diff --git a/wscript b/wscript index da520e0..ce10d58 100644 --- a/wscript +++ b/wscript @@ -125,6 +125,11 @@ def configure(conf): msg='Checking for function XSyncQueryExtension'): conf.define('HAVE_XSYNC', 1) + if conf.check_cc(lib='Xcursor', + uselib_store='XCURSOR', + mandatory=False): + conf.define('HAVE_XCURSOR', 1) + if not Options.options.no_gl: glx_fragment = """#include int main(void) { glXSwapBuffers(0, 0); return 0; }""" @@ -309,7 +314,7 @@ def build(bld): else: platform = 'x11' build_platform('x11', - uselib=['M', 'X11', 'XSYNC'], + uselib=['M', 'X11', 'XSYNC', 'XCURSOR'], source=lib_source + ['pugl/detail/x11.c']) if bld.env.HAVE_GL: @@ -366,6 +371,8 @@ def build(bld): platform, 'gl', uselib=['GL', 'M']) build_example('pugl_window_demo', ['examples/pugl_window_demo.c'], platform, 'gl', uselib=['GL', 'M']) + build_example('pugl_cursor_demo', ['examples/pugl_cursor_demo.c'], + platform, 'gl', uselib=['GL', 'M']) build_example('pugl_print_events', ['examples/pugl_print_events.c'], platform, 'stub') -- cgit v1.2.1