From c5c4a6e935eecc2d2dac7bb9cccd36057b8dc123 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Fri, 23 Dec 2011 02:41:56 +0000 Subject: Add LilvState API for handling plugin state. This makes it simple to save and restore plugin state both in memory and on disk, as well as save presets in a host-sharable way since the disk format is identical to the LV2 presets format. git-svn-id: http://svn.drobilla.net/lad/trunk/lilv@3899 a436a847-0d15-0410-975c-d299462d15a1 --- wscript | 38 +++++++++++++++++++++++++++++++------- 1 file changed, 31 insertions(+), 7 deletions(-) (limited to 'wscript') diff --git a/wscript b/wscript index 8858413..13a382f 100644 --- a/wscript +++ b/wscript @@ -8,7 +8,7 @@ import waflib.Options as Options import waflib.Logs as Logs # Version of this package (even if built as a child) -LILV_VERSION = '0.8.0' +LILV_VERSION = '0.9.0' LILV_MAJOR_VERSION = '0' # Library version (UNIX style major, minor, micro) @@ -65,19 +65,40 @@ def configure(conf): conf.line_just = 51 autowaf.configure(conf) autowaf.display_header('Lilv Configuration') + conf.env.append_unique('CFLAGS', '-std=c99') autowaf.check_pkg(conf, 'lv2core', uselib_store='LV2CORE', mandatory=True) autowaf.check_pkg(conf, 'serd-0', uselib_store='SERD', atleast_version='0.7.0', mandatory=True) autowaf.check_pkg(conf, 'sord-0', uselib_store='SORD', atleast_version='0.5.0', mandatory=True) + autowaf.check_pkg(conf, 'lv2-lv2plug.in-ns-ext-state', + uselib_store='LV2_STATE', mandatory=True) + + conf.check_cc(function_name='wordexp', + header_name='wordexp.h', + defines='_POSIX_SOURCE', + define_name='HAVE_WORDEXP', + mandatory=False) + + conf.check_cc(function_name='lockf', + header_name='unistd.h', + defines='_BSD_SOURCE', + define_name='HAVE_LOCKF', + mandatory=False) + + conf.check_cc(function_name='fileno', + header_name='stdio.h', + defines='_POSIX_SOURCE', + define_name='HAVE_FILENO', + mandatory=False) + + conf.check_cc(function_name='mkdir', + header_name=['sys/stat.h','sys/types.h'], + defines='_POSIX_SOURCE', + define_name='HAVE_MKDIR', + mandatory=False) - conf.check(function_name='wordexp', - header_name='wordexp.h', - define_name='HAVE_WORDEXP', - mandatory=False) - - conf.env.append_unique('CFLAGS', '-std=c99') autowaf.define(conf, 'LILV_VERSION', LILV_VERSION) if Options.options.dyn_manifest: autowaf.define(conf, 'LILV_DYN_MANIFEST', 1) @@ -131,6 +152,8 @@ def configure(conf): bool(conf.env['BUILD_TESTS'])) autowaf.display_msg(conf, "Dynamic manifest support", bool(conf.env['LILV_DYN_MANIFEST'])) + autowaf.display_msg(conf, "State/Preset support", + conf.is_defined('HAVE_LV2_STATE')) autowaf.display_msg(conf, "Python bindings", conf.is_defined('LILV_PYTHON')) print('') @@ -154,6 +177,7 @@ def build(bld): src/port.c src/query.c src/scalepoint.c + src/state.c src/ui.c src/util.c src/world.c -- cgit v1.2.1