diff options
author | David Robillard <d@drobilla.net> | 2020-10-20 22:01:48 +0200 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2020-10-20 22:01:48 +0200 |
commit | 83c4baa25e24920cc6da2e1f87118bc47ed35851 (patch) | |
tree | 8d46a9270071ea883e30ab57ba502edd4be8c038 /wscript | |
parent | a87395423915f913b819291b3b4920501cccdf95 (diff) | |
download | pugl-83c4baa25e24920cc6da2e1f87118bc47ed35851.tar.gz pugl-83c4baa25e24920cc6da2e1f87118bc47ed35851.tar.bz2 pugl-83c4baa25e24920cc6da2e1f87118bc47ed35851.zip |
Split stub backends into separate files
This makes things more consistent between platforms and backends.
Diffstat (limited to 'wscript')
-rw-r--r-- | wscript | 11 |
1 files changed, 10 insertions, 1 deletions
@@ -350,6 +350,10 @@ def build(bld): uselib=['GDI32', 'USER32'], source=lib_source + ['pugl/detail/win.c']) + build_backend('win', 'stub', + uselib=['GDI32', 'USER32'], + source=['pugl/detail/win_stub.c']) + if bld.env.HAVE_GL: build_backend('win', 'gl', uselib=['GDI32', 'USER32', 'GL'], @@ -386,6 +390,10 @@ def build(bld): uselib=['M', 'X11', 'XSYNC', 'XCURSOR', 'XRANDR'], source=lib_source + ['pugl/detail/x11.c']) + build_backend('x11', 'stub', + uselib=['X11'], + source=['pugl/detail/x11_stub.c']) + if bld.env.HAVE_GL: glx_lib = 'GLX' if bld.env.LIB_GLX else 'GL' build_backend('x11', 'gl', @@ -395,7 +403,8 @@ def build(bld): if bld.env.HAVE_CAIRO: build_backend('x11', 'cairo', uselib=['CAIRO', 'X11'], - source=['pugl/detail/x11_cairo.c']) + source=['pugl/detail/x11_cairo.c', + 'pugl/detail/x11_stub.c']) def build_example(prog, source, platform, backend, **kwargs): lang = 'cxx' if source[0].endswith('.cpp') else 'c' |