Use precise define names for LV2 version configure checks.
This commit is contained in:
parent
0a60077a61
commit
324ab35abc
@ -67,7 +67,7 @@
|
||||
#include "lv2/lv2plug.in/ns/ext/resize-port/resize-port.h"
|
||||
#include "lv2/lv2plug.in/ns/extensions/ui/ui.h"
|
||||
#include "lv2/lv2plug.in/ns/ext/patch/patch.h"
|
||||
#ifdef HAVE_NEW_LV2
|
||||
#ifdef HAVE_LV2_1_2_0
|
||||
#include "lv2/lv2plug.in/ns/ext/buf-size/buf-size.h"
|
||||
#include "lv2/lv2plug.in/ns/ext/options/options.h"
|
||||
#endif
|
||||
@ -348,13 +348,13 @@ LV2Plugin::init(const void* c_plugin, framecnt_t rate)
|
||||
_features[6] = &_log_feature;
|
||||
|
||||
unsigned n_features = 7;
|
||||
#ifdef HAVE_NEW_LV2
|
||||
#ifdef HAVE_LV2_1_2_0
|
||||
_features[n_features++] = &_def_state_feature;
|
||||
#endif
|
||||
|
||||
lv2_atom_forge_init(&_impl->forge, _uri_map.urid_map());
|
||||
|
||||
#ifdef HAVE_NEW_LV2
|
||||
#ifdef HAVE_LV2_1_2_0
|
||||
LV2_URID atom_Int = _uri_map.uri_to_id(LV2_ATOM__Int);
|
||||
LV2_Options_Option options[] = {
|
||||
{ LV2_OPTIONS_INSTANCE, 0, _uri_map.uri_to_id(LV2_BUF_SIZE__minBlockLength),
|
||||
|
@ -265,8 +265,8 @@ def configure(conf):
|
||||
if Options.options.lv2:
|
||||
autowaf.check_pkg(conf, 'lv2', uselib_store='LV2',
|
||||
atleast_version='1.0.0', mandatory=True)
|
||||
autowaf.check_pkg(conf, 'lv2', uselib_store='NEW_LV2',
|
||||
atleast_version='1.0.15', mandatory=False)
|
||||
autowaf.check_pkg(conf, 'lv2', uselib_store='LV2_1_2_0',
|
||||
atleast_version='1.2.0', mandatory=False)
|
||||
autowaf.check_pkg(conf, 'serd-0', uselib_store='SERD',
|
||||
atleast_version='0.14.0', mandatory=True)
|
||||
autowaf.check_pkg(conf, 'sord-0', uselib_store='SORD',
|
||||
|
@ -7,7 +7,7 @@
|
||||
#define LV2_SUPPORT 1
|
||||
#define HAVE_SUIL 1
|
||||
#define HAVE_LV2 1
|
||||
#define HAVE_NEW_LV2 1
|
||||
#define HAVE_LV2_1_2_0 1
|
||||
/* Comment out the above lines to build Mixbus without LV2 support */
|
||||
#endif
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user