diff options
author | Jean Pierre Cimalando <jp-dev@inbox.ru> | 2020-06-01 13:03:16 +0200 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2020-06-13 17:18:26 +0200 |
commit | 2f90b716c29a623b4ec090bb455d2c49b4062f98 (patch) | |
tree | 089d8eee976a0244b56fc103805454aef43ef401 /wscript | |
parent | 81f9debf519c4b54e713a7a36a4ac474340d18fb (diff) | |
download | pugl-2f90b716c29a623b4ec090bb455d2c49b4062f98.tar.gz pugl-2f90b716c29a623b4ec090bb455d2c49b4062f98.tar.bz2 pugl-2f90b716c29a623b4ec090bb455d2c49b4062f98.zip |
Add puglSetCursor()
Diffstat (limited to 'wscript')
-rw-r--r-- | wscript | 9 |
1 files changed, 8 insertions, 1 deletions
@@ -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 <GL/glx.h> 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') |