summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2011-03-28 04:45:17 +0000
committerDavid Robillard <d@drobilla.net>2011-03-28 04:45:17 +0000
commit5156533c363696533efe9ccefc21be3537287cf4 (patch)
tree01fb720da3b624788d7539df9a9a9629f5e62c54
parent10bd8ed7ee7b61988373152a78830c2e5fdc9ac5 (diff)
downloadautowaf-5156533c363696533efe9ccefc21be3537287cf4.tar.gz
autowaf-5156533c363696533efe9ccefc21be3537287cf4.tar.bz2
autowaf-5156533c363696533efe9ccefc21be3537287cf4.zip
Use standard LV2_PATH for Windows
git-svn-id: http://svn.drobilla.net/autowaf@41 e2e4594f-ea7b-45dc-bc5a-5f5301e603aa
-rw-r--r--autowaf.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/autowaf.py b/autowaf.py
index 6aa0d42..96239b6 100644
--- a/autowaf.py
+++ b/autowaf.py
@@ -79,6 +79,9 @@ def set_options(opt):
if sys.platform == "darwin":
opt.add_option('--lv2dir', type='string',
help="LV2 bundles [Default: /Library/Audio/Plug-Ins/LV2]")
+ elif sys.platform == "win32":
+ opt.add_option('--lv2dir', type='string',
+ help="LV2 bundles [Default: C:\Program Files\LV2]")
else:
opt.add_option('--lv2dir', type='string',
help="LV2 bundles [Default: LIBDIR/lv2]")
@@ -171,11 +174,15 @@ def configure(conf):
if Options.options.lv2_user:
if sys.platform == "darwin":
conf.env['LV2DIR'] = os.path.join(os.getenv('HOME'), 'Library/Audio/Plug-Ins/LV2')
+ elif sys.platform == "win32":
+ conf.env['LV2DIR'] = os.path.join(os.getenv('APPDATA'), 'LV2')
else:
conf.env['LV2DIR'] = os.path.join(os.getenv('HOME'), '.lv2')
else:
if sys.platform == "darwin":
conf.env['LV2DIR'] = '/Library/Audio/Plug-Ins/LV2'
+ elif sys.platform == "win32":
+ conf.env['LV2DIR'] = os.path.join(os.getenv('PROGRAMFILES'), 'LV2')
else:
conf.env['LV2DIR'] = os.path.join(conf.env['LIBDIR'], 'lv2')