diff options
author | David Robillard <d@drobilla.net> | 2012-08-06 20:19:50 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2012-08-06 20:19:50 +0000 |
commit | dc47ea96a845f3d8f17f98a3c66b81e51dd06337 (patch) | |
tree | f66b2eca43731ca9c8c63d33550890c0dce43fd7 /wscript | |
parent | 96b579577276106ded731803a94d9223c2795c38 (diff) | |
download | lv2-dc47ea96a845f3d8f17f98a3c66b81e51dd06337.tar.xz |
Actually working version of previous commit...
Diffstat (limited to 'wscript')
-rw-r--r-- | wscript | 8 |
1 files changed, 5 insertions, 3 deletions
@@ -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 |