diff options
author | Tim Mayberry <mojofunk@gmail.com> | 2013-07-20 11:44:50 +1000 |
---|---|---|
committer | Tim Mayberry <mojofunk@gmail.com> | 2013-07-22 13:41:14 +1000 |
commit | ed9dd5ca6261ec511c128af67c4ee522084f4e07 (patch) | |
tree | 1f840617eba12fa7b353781ca39711e09ea61551 /wscript | |
parent | 56a6f5285613bd140a71bf476df0e6a822aa7638 (diff) |
Enable lxvst support by default and then disable for build targets that don't support it
Diffstat (limited to 'wscript')
-rw-r--r-- | wscript | 13 |
1 files changed, 9 insertions, 4 deletions
@@ -244,7 +244,7 @@ def set_compiler_flags (conf,opt): print("However, this is tricky and not recommended for beginners.") sys.exit (-1) - if opt.lxvst: + if conf.env['LXVST_SUPPORT'] == True: if conf.env['build_target'] == 'x86_64': conf.env.append_value('CXXFLAGS', "-DLXVST_64BIT") else: @@ -416,7 +416,7 @@ def options(opt): help='Compile with support for LV2 (if Lilv+Suil is available)') opt.add_option('--no-lv2', action='store_false', dest='lv2', help='Do not compile with support for LV2') - opt.add_option('--lxvst', action='store_true', default=False, dest='lxvst', + opt.add_option('--lxvst', action='store_true', default=True, dest='lxvst', help='Compile with support for linuxVST plugins') opt.add_option('--nls', action='store_true', default=True, dest='nls', help='Enable i18n (native language support) (default)') @@ -665,8 +665,13 @@ def configure(conf): conf.env.append_value('CXXFLAGS', '-I' + Options.options.wine_include) autowaf.check_header(conf, 'cxx', 'windows.h', mandatory = True) if opts.lxvst: - conf.define('LXVST_SUPPORT', 1) - conf.env['LXVST_SUPPORT'] = True + if sys.platform == 'darwin': + conf.env['LXVST_SUPPORT'] = False + elif Options.options.dist_target == 'mingw': + conf.env['LXVST_SUPPORT'] = False + else: + conf.define('LXVST_SUPPORT', 1) + conf.env['LXVST_SUPPORT'] = True if bool(conf.env['JACK_SESSION']): conf.define('HAVE_JACK_SESSION', 1) conf.define('WINDOWS_KEY', opts.windows_key) |