diff options
author | David Robillard <d@drobilla.net> | 2011-02-10 23:58:27 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2011-02-10 23:58:27 +0000 |
commit | 7cc22c3fd0ee9f931a43d6f54be2b3be1cb09050 (patch) | |
tree | ee77159b74b3bae4c22da20d41b20b55936f9490 /wscript | |
parent | 82d13210b607736e81c8e4fb06d8fadd89e01ab8 (diff) | |
download | lilv-7cc22c3fd0ee9f931a43d6f54be2b3be1cb09050.tar.gz lilv-7cc22c3fd0ee9f931a43d6f54be2b3be1cb09050.tar.bz2 lilv-7cc22c3fd0ee9f931a43d6f54be2b3be1cb09050.zip |
Make directory separator (e.g. '/') and path separator (e.g. ':') compile-time parameters.
git-svn-id: http://svn.drobilla.net/lad/trunk/slv2@2914 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'wscript')
-rw-r--r-- | wscript | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -1,5 +1,6 @@ #!/usr/bin/env python import autowaf +import sys import Options # Version of this package (even if built as a child) @@ -87,6 +88,13 @@ def configure(conf): conf.env['BASH_COMPLETION'] = Options.options.bash_completion autowaf.define(conf, 'SLV2_DEFAULT_LV2_PATH', Options.options.default_lv2_path) + if sys.platform == 'win32': + autowaf.define(conf, 'SLV2_PATH_SEP', ';') + autowaf.define(conf, 'SLV2_DIR_SEP', '\\') + else: + autowaf.define(conf, 'SLV2_PATH_SEP', ':') + autowaf.define(conf, 'SLV2_DIR_SEP', '/') + if conf.env['USE_JACK']: autowaf.check_header(conf, 'lv2/lv2plug.in/ns/ext/event/event.h', 'HAVE_LV2_EVENT') autowaf.check_header(conf, 'lv2/lv2plug.in/ns/ext/uri-map/uri-map.h', 'HAVE_LV2_URI_MAP') |