aboutsummaryrefslogtreecommitdiffstats
path: root/wscript
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2020-03-08 17:47:13 +0100
committerDavid Robillard <d@drobilla.net>2020-03-08 17:47:13 +0100
commit5f2e299a2f0d86e450340079930b98651103722f (patch)
treeac2b5aeb4d3ddd67b726f22c885224a825474b3e /wscript
parentf1f50a738e10873c483b7425ae7da963114b7719 (diff)
downloadpugl-5f2e299a2f0d86e450340079930b98651103722f.tar.gz
pugl-5f2e299a2f0d86e450340079930b98651103722f.tar.bz2
pugl-5f2e299a2f0d86e450340079930b98651103722f.zip
Move demo programs to examples directory
These are not really tests, but examples or demos, which has caused some confusion in the past. So, move them, and make room for actual tests.
Diffstat (limited to 'wscript')
-rw-r--r--wscript27
1 files changed, 14 insertions, 13 deletions
diff --git a/wscript b/wscript
index 2392e4f..44ec5ac 100644
--- a/wscript
+++ b/wscript
@@ -184,7 +184,7 @@ def build(bld):
bld.install_files(detaildir, bld.path.ant_glob('pugl/detail/*.h'))
bld.install_files(detaildir, bld.path.ant_glob('pugl/detail/*.c'))
- # Library dependencies of pugl libraries (for buiding tests)
+ # Library dependencies of pugl libraries (for building examples)
deps = {}
def build_pugl_lib(name, **kwargs):
@@ -282,7 +282,7 @@ def build(bld):
uselib=['CAIRO', 'X11'],
source=['pugl/detail/x11_cairo.c'])
- def build_test(prog, source, platform, backend, **kwargs):
+ def build_example(prog, source, platform, backend, **kwargs):
use = ['pugl_%s_static' % platform,
'pugl_%s_%s_static' % (platform, backend)]
@@ -311,25 +311,26 @@ def build(bld):
if bld.env.BUILD_TESTS:
for s in ('rect.vert', 'rect.frag'):
- # Copy shaders to build directory for test programs
+ # Copy shaders to build directory for example programs
bld(features = 'subst',
is_copy = True,
source = 'shaders/%s' % s,
target = 'shaders/%s' % s)
if bld.env.HAVE_GL:
- build_test('pugl_test', ['test/pugl_test.c'],
- platform, 'gl', uselib=['GL', 'M'])
- build_test('pugl_print_events', ['test/pugl_print_events.c'],
- platform, 'stub')
- build_test('pugl_gl3_test',
- ['test/pugl_gl3_test.c', 'test/glad/glad.c'],
- platform, 'gl', uselib=['DL', 'GL', 'M'])
+ build_example('pugl_embed_demo', ['examples/pugl_embed_demo.c'],
+ platform, 'gl', uselib=['GL', 'M'])
+ build_example('pugl_print_events',
+ ['examples/pugl_print_events.c'],
+ platform, 'stub')
+ build_example('pugl_gl3_demo',
+ ['examples/pugl_gl3_demo.c', 'examples/glad/glad.c'],
+ platform, 'gl', uselib=['DL', 'GL', 'M'])
if bld.env.HAVE_CAIRO:
- build_test('pugl_cairo_test', ['test/pugl_cairo_test.c'],
- platform, 'cairo',
- uselib=['M', 'CAIRO'])
+ build_example('pugl_cairo_demo', ['examples/pugl_cairo_demo.c'],
+ platform, 'cairo',
+ uselib=['M', 'CAIRO'])
if bld.env.DOCS:
bld(features = 'subst',