aboutsummaryrefslogtreecommitdiffstats
path: root/wscript
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2012-08-06 20:19:50 +0000
committerDavid Robillard <d@drobilla.net>2012-08-06 20:19:50 +0000
commitdc47ea96a845f3d8f17f98a3c66b81e51dd06337 (patch)
treef66b2eca43731ca9c8c63d33550890c0dce43fd7 /wscript
parent96b579577276106ded731803a94d9223c2795c38 (diff)
downloadlv2-dc47ea96a845f3d8f17f98a3c66b81e51dd06337.tar.xz
Actually working version of previous commit...
Diffstat (limited to 'wscript')
-rw-r--r--wscript8
1 files changed, 5 insertions, 3 deletions
diff --git a/wscript b/wscript
index a645efe..fdc9dc8 100644
--- a/wscript
+++ b/wscript
@@ -28,9 +28,7 @@ def options(opt):
dest='build_tests', help="Build unit tests")
opt.add_option('--no-plugins', action='store_true', default=False,
dest='no_plugins', help="Do not build example plugins")
- opt.add_option('--copy-headers', action='store_true',
- default=(Options.platform != 'win32' and
- hasattr(os.path, 'relpath')),
+ opt.add_option('--copy-headers', action='store_true', default=False,
dest='copy_headers',
help='Copy headers instead of linking to bundle')
opt.recurse('lv2/lv2plug.in/ns/lv2core')
@@ -49,6 +47,10 @@ def configure(conf):
else:
conf.env.append_unique('CFLAGS', '-std=c99')
+ if Options.platform == 'win32' or not hasattr(os.path, 'relpath'):
+ Logs.warn('System does not support linking headers, copying')
+ Options.options.copy_headers = True
+
conf.env['BUILD_TESTS'] = Options.options.build_tests
conf.env['BUILD_PLUGINS'] = not Options.options.no_plugins
conf.env['COPY_HEADERS'] = Options.options.copy_headers