From 495f83c7f13349930df3526789d09c75c1312bd4 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Thu, 16 Feb 2012 23:16:37 +0000 Subject: Implement real-time safe sample loading. --- plugins/eg-sampler.lv2/wscript | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'plugins/eg-sampler.lv2/wscript') diff --git a/plugins/eg-sampler.lv2/wscript b/plugins/eg-sampler.lv2/wscript index cbff316..3cb51dc 100644 --- a/plugins/eg-sampler.lv2/wscript +++ b/plugins/eg-sampler.lv2/wscript @@ -33,6 +33,11 @@ def configure(conf): autowaf.check_pkg(conf, 'lv2-lv2plug.in-ns-ext-message', uselib_store='LV2_MESSAGE') + conf.check(function_name='mlock', + header_name='sys/mman.h', + define_name='HAVE_MLOCK', + mandatory=False) + autowaf.check_pkg(conf, 'sndfile', uselib_store='SNDFILE', atleast_version='1.0.0', mandatory=True) autowaf.check_pkg(conf, 'gtk+-2.0', uselib_store='GTK2', @@ -81,7 +86,7 @@ def build(bld): # Build plugin library obj = bld(features = 'c cshlib', env = penv, - source = 'sampler.c', + source = ['sampler.c', 'zix/ring.c'], name = 'sampler', target = '%s/sampler' % bundle, install_path = '${LV2DIR}/%s' % bundle, -- cgit v1.2.1