aboutsummaryrefslogtreecommitdiff
path: root/wscript
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2019-06-25 19:49:56 +0200
committerDavid Robillard <d@drobilla.net>2019-06-27 19:41:48 +0200
commita6878f88c187d5957f22b9023fabe350ea702e5c (patch)
treea24b9b6a658d55beae7701d716a8ea0feb0759a4 /wscript
parent6e0b096f960cf876c5e375f916b8dbea9430d367 (diff)
Build test programs in bundles on MacOS
This makes keyboard events work in pugl_test.
Diffstat (limited to 'wscript')
-rw-r--r--wscript7
1 files changed, 6 insertions, 1 deletions
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)