From 5156533c363696533efe9ccefc21be3537287cf4 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Mon, 28 Mar 2011 04:45:17 +0000 Subject: Use standard LV2_PATH for Windows git-svn-id: http://svn.drobilla.net/autowaf@41 e2e4594f-ea7b-45dc-bc5a-5f5301e603aa --- autowaf.py | 7 +++++++ 1 file changed, 7 insertions(+) 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') -- cgit v1.2.1