From c85f3ab4c7d4c1e793519a400f10fc8499459d80 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Tue, 24 May 2011 20:52:22 +0000 Subject: Remove use of ingen-config.h in soon-to-be-public headers. Make Lilv dependency mandatory. Reduce dependency on ingen-config.h. git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@3316 a436a847-0d15-0410-975c-d299462d15a1 --- src/shared/World.cpp | 16 +++------------- 1 file changed, 3 insertions(+), 13 deletions(-) (limited to 'src/shared/World.cpp') diff --git a/src/shared/World.cpp b/src/shared/World.cpp index f29e6ef8..f2af34a7 100644 --- a/src/shared/World.cpp +++ b/src/shared/World.cpp @@ -15,16 +15,16 @@ * 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ -#include "ingen-config.h" #include + #include #include #include -#ifdef HAVE_LILV + #include "lilv/lilv.h" -#endif #include "raul/log.hpp" #include "sord/sordmm.hpp" + #include "ingen/EngineBase.hpp" #include "shared/runtime_paths.hpp" #include "shared/LV2Features.hpp" @@ -104,18 +104,12 @@ public: , lv2_features(NULL) , rdf_world(new Sord::World()) , uris(new Shared::LV2URIMap()) -#ifdef HAVE_LILV , lilv_world(lilv_world_new()) -#else - , lilv_world(NULL) -#endif { -#ifdef HAVE_LILV lv2_features = new Ingen::Shared::LV2Features(); lv2_features->add_feature(LV2_URI_MAP_URI, uris); lv2_features->add_feature(LV2_URI_UNMAP_URI, uris->unmap_feature()); lilv_world_load_all(lilv_world); -#endif // Set up RDF namespaces rdf_world->add_prefix("dc", "http://purl.org/dc/elements/1.1/"); @@ -142,10 +136,8 @@ public: interface_factories.clear(); script_runners.clear(); -#ifdef HAVE_LILV lilv_world_free(lilv_world); lilv_world = NULL; -#endif delete rdf_world; rdf_world = NULL; @@ -209,9 +201,7 @@ SharedPtr World::store() { return _impl->store Raul::Configuration* World::conf() { return _impl->conf; } LV2Features* World::lv2_features() { return _impl->lv2_features; } -#ifdef HAVE_LILV LilvWorld* World::lilv_world() { return _impl->lilv_world; } -#endif Sord::World* World::rdf_world() { return _impl->rdf_world; } SharedPtr World::uris() { return _impl->uris; } -- cgit v1.2.1