aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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)