From 94f4cc1038ce747ae5deb4a25542bfe72335f197 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Mon, 10 Oct 2011 01:37:22 +0000 Subject: Remove lv2config --- plugins/eg-sampler.lv2/sampler.ttl | 12 +++++++++--- plugins/eg-sampler.lv2/wscript | 12 ++++++++++++ 2 files changed, 21 insertions(+), 3 deletions(-) (limited to 'plugins') diff --git a/plugins/eg-sampler.lv2/sampler.ttl b/plugins/eg-sampler.lv2/sampler.ttl index e944d0a..f411206 100644 --- a/plugins/eg-sampler.lv2/sampler.ttl +++ b/plugins/eg-sampler.lv2/sampler.ttl @@ -15,10 +15,11 @@ # ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF # OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. -@prefix doap: . -@prefix foaf: . -@prefix lv2: . +@prefix doap: . +@prefix foaf: . +@prefix lv2: . @prefix lv2ev: . +@prefix ui: . a lv2:Plugin ; @@ -28,6 +29,7 @@ lv2:optionalFeature lv2:hardRtCapable , , ; + ui:ui ; lv2:port [ a lv2:InputPort , lv2ev:EventPort ; @@ -42,3 +44,7 @@ lv2:symbol "out" ; lv2:name "Out" ] . + + + a ui:GtkUI ; + ui:binary . diff --git a/plugins/eg-sampler.lv2/wscript b/plugins/eg-sampler.lv2/wscript index a4b6535..9dd0b61 100644 --- a/plugins/eg-sampler.lv2/wscript +++ b/plugins/eg-sampler.lv2/wscript @@ -29,6 +29,8 @@ def configure(conf): autowaf.check_header(conf, 'c', 'lv2/lv2plug.in/ns/ext/persist/persist.h') 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', + atleast_version='2.18.0', mandatory=False) conf.env.append_value('CFLAGS', '-std=c99') @@ -68,3 +70,13 @@ def build(bld): install_path = '${LV2DIR}/%s' % bundle, use = 'SNDFILE') + # Build UI library + if bld.is_defined('HAVE_GTK2'): + obj = bld(features = 'c cshlib', + env = penv, + source = 'sampler_ui.c', + name = 'sampler_ui', + target = '%s/sampler_ui' % bundle, + install_path = '${LV2DIR}/%s' % bundle, + use = 'GTK2') + -- cgit v1.2.1