From dc47ea96a845f3d8f17f98a3c66b81e51dd06337 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Mon, 6 Aug 2012 20:19:50 +0000 Subject: Actually working version of previous commit... --- wscript | 8 +++++--- 1 file 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 -- cgit v1.2.1