diff options
author | David Robillard <d@drobilla.net> | 2011-03-28 04:45:17 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2011-03-28 04:45:17 +0000 |
commit | 5156533c363696533efe9ccefc21be3537287cf4 (patch) | |
tree | 01fb720da3b624788d7539df9a9a9629f5e62c54 | |
parent | 10bd8ed7ee7b61988373152a78830c2e5fdc9ac5 (diff) | |
download | autowaf-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.py | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -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') |