diff options
Diffstat (limited to 'wscript')
-rw-r--r-- | wscript | 33 |
1 files changed, 17 insertions, 16 deletions
@@ -23,26 +23,26 @@ def options(ctx): help='ideal sample rate for oscillator wave tables [Default: 48000]') def configure(conf): - conf.load('compiler_c') - conf.load('lv2') - autowaf.configure(conf) autowaf.display_header('Blop.LV2 Configuration') + conf.load('compiler_c', cache=True) + conf.load('lv2', cache=True) + conf.load('autowaf', cache=True) autowaf.check_pkg(conf, 'lv2', atleast_version='1.2.0', uselib_store='LV2') - conf.check(function_name = 'sinf', - header_name = 'math.h', - lib = 'm', - define_name = 'HAVE_SINF', - mandatory = False) + autowaf.check_function(conf, 'c', 'sinf', + header_name = 'math.h', + lib = 'm', + define_name = 'HAVE_SINF', + mandatory = False) - conf.check_cc(define_name = 'HAVE_LIBDL', - lib = 'dl', - mandatory = False) + conf.check_cc(define_name = 'HAVE_LIBDL', + lib = 'dl', + mandatory = False) + + autowaf.check_function(conf, 'c', 'getopt_long', + header_name = 'getopt.h') - conf.check_cc(define_name = 'HAVE_GETOPT_LONG', - header_name = 'getopt.h', - function_name = 'getopt_long') conf.write_config_header('blop_config.h', remove=False) @@ -55,6 +55,7 @@ def configure(conf): conf.define('BLOP_SHLIB_EXT', conf.env.pluginlib_EXT) + autowaf.display_summary(conf) autowaf.display_msg(conf, 'LV2 bundle directory', conf.env.LV2DIR) autowaf.display_msg(conf, 'Ideal sampling rate', Options.options.rate) @@ -85,12 +86,12 @@ def build(bld): bld(features = 'subst', is_copy = True, source = i, - target = bld.path.get_bld().make_node('blop.lv2/%s' % i), + target = 'blop.lv2/%s' % i.name, install_path = '${LV2DIR}/blop.lv2') bld(features = 'subst', source = 'blop.lv2/manifest.ttl.in', - target = bld.path.get_bld().make_node('blop.lv2/manifest.ttl'), + target = 'blop.lv2/manifest.ttl', LIB_EXT = bld.env.pluginlib_EXT, install_path = '${LV2DIR}/blop.lv2') |