From a6878f88c187d5957f22b9023fabe350ea702e5c Mon Sep 17 00:00:00 2001 From: David Robillard Date: Tue, 25 Jun 2019 19:49:56 +0200 Subject: Build test programs in bundles on MacOS This makes keyboard events work in pugl_test. --- wscript | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'wscript') diff --git a/wscript b/wscript index 8c71523..5b8dca3 100644 --- a/wscript +++ b/wscript @@ -155,11 +155,16 @@ def build(bld): progs += ['pugl_cairo_test'] for prog in progs: + if bld.env.TARGET_PLATFORM == 'darwin': + target = '{0}.app/Contents/MacOS/{0}'.format(prog) + else: + target = prog + bld(features = 'c cprogram', source = '%s.c' % prog, use = 'libpugl_static', lib = test_libs, - target = prog, + target = target, install_path = '', cflags = test_cflags, **common) -- cgit v1.2.1