diff options
author | David Robillard <d@drobilla.net> | 2019-06-25 19:49:56 +0200 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2019-06-27 19:41:48 +0200 |
commit | a6878f88c187d5957f22b9023fabe350ea702e5c (patch) | |
tree | a24b9b6a658d55beae7701d716a8ea0feb0759a4 | |
parent | 6e0b096f960cf876c5e375f916b8dbea9430d367 (diff) | |
download | pugl-a6878f88c187d5957f22b9023fabe350ea702e5c.tar.gz pugl-a6878f88c187d5957f22b9023fabe350ea702e5c.tar.bz2 pugl-a6878f88c187d5957f22b9023fabe350ea702e5c.zip |
Build test programs in bundles on MacOS
This makes keyboard events work in pugl_test.
-rw-r--r-- | wscript | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -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) |