diff --git a/Makefile b/Makefile index f2587371e..6523df71b 100644 --- a/Makefile +++ b/Makefile @@ -391,6 +391,9 @@ install: install -m 644 \ source/backend/CarlaBackend.h \ source/backend/CarlaHost.h \ + source/backend/CarlaEngine.hpp \ + source/backend/CarlaPlugin.hpp \ + source/modules/CarlaNative.h \ $(DESTDIR)$(PREFIX)/include/carla/ install -m 644 \ @@ -417,6 +420,7 @@ install: cd $(CURDIR) # Link resources for lv2 plugin + rm -rf $(DESTDIR)$(PREFIX)/lib/lv2/carla-native.lv2/resources $(LINK) $(PREFIX)/share/carla/resources/ $(DESTDIR)$(PREFIX)/lib/lv2/carla-native.lv2/ # Adjust PREFIX value in script files diff --git a/source/backend/engine/CarlaEngineNative.cpp b/source/backend/engine/CarlaEngineNative.cpp index b3c8c4aef..826c6c1ba 100644 --- a/source/backend/engine/CarlaEngineNative.cpp +++ b/source/backend/engine/CarlaEngineNative.cpp @@ -1623,10 +1623,10 @@ static const NativePluginDescriptor carlaPatchbayDesc = { }; #endif -// ----------------------------------------------------------------------- - CARLA_BACKEND_END_NAMESPACE +// ----------------------------------------------------------------------- + CARLA_EXPORT void carla_register_native_plugin_carla(); @@ -1639,6 +1639,17 @@ void carla_register_native_plugin_carla() #endif } +// ----------------------------------------------------------------------- + +CARLA_EXPORT +const NativePluginDescriptor* get_carla_native_plugin(); + +const NativePluginDescriptor* get_carla_native_plugin() +{ + CARLA_BACKEND_USE_NAMESPACE; + return &carlaRackDesc; +} + // ----------------------------------------------------------------------- // Extra stuff for linking purposes diff --git a/source/plugin/carla-native-lv2.cpp b/source/plugin/carla-native-lv2.cpp index d28ea10b1..80f116050 100644 --- a/source/plugin/carla-native-lv2.cpp +++ b/source/plugin/carla-native-lv2.cpp @@ -134,6 +134,7 @@ public: fHost.handle = this; fHost.resourceDir = resourceDir.dup(); fHost.uiName = nullptr; + fHost.uiParentId = 0; fHost.get_buffer_size = host_get_buffer_size; fHost.get_sample_rate = host_get_sample_rate;