aboutsummaryrefslogtreecommitdiffstats
path: root/wscript
diff options
context:
space:
mode:
Diffstat (limited to 'wscript')
-rw-r--r--wscript19
1 files changed, 10 insertions, 9 deletions
diff --git a/wscript b/wscript
index 7e133c7..f6f4773 100644
--- a/wscript
+++ b/wscript
@@ -21,18 +21,18 @@ def options(opt):
autowaf.set_options(opt)
def configure(conf):
- conf.load('compiler_c')
- conf.load('lv2')
- autowaf.configure(conf)
autowaf.display_header('Omins.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.0.0', uselib_store='LV2')
- conf.check(function_name = 'posix_memalign',
- defines = '_POSIX_C_SOURCE=200809L',
- header_name = 'stdlib.h',
- define_name = 'HAVE_POSIX_MEMALIGN',
- mandatory = False)
+ autowaf.check_function(conf, 'c', 'posix_memalign',
+ defines = '_POSIX_C_SOURCE=200809L',
+ header_name = 'stdlib.h',
+ define_name = 'HAVE_POSIX_MEMALIGN',
+ mandatory = False)
# Set env.pluginlib_PATTERN
pat = conf.env.cshlib_PATTERN
@@ -41,6 +41,7 @@ def configure(conf):
conf.env.pluginlib_PATTERN = pat
conf.env.pluginlib_EXT = pat[pat.rfind('.'):]
+ autowaf.display_summary(conf)
autowaf.display_msg(conf, "LV2 bundle directory", conf.env.LV2DIR)
print('')
@@ -78,7 +79,7 @@ def build(bld):
bld(features = 'subst',
is_copy = True,
source = i,
- target = bld.path.get_bld().make_node('omins.lv2/%s' % i),
+ target = 'omins.lv2/%s' % i.name,
install_path = '${LV2DIR}/omins.lv2')
bld(features = 'subst',