Browse Source

Export get_carla_native_plugin() in dll, will be needed later

tags/1.9.4
falkTX 10 years ago
parent
commit
f5912911ed
3 changed files with 18 additions and 2 deletions
  1. +4
    -0
      Makefile
  2. +13
    -2
      source/backend/engine/CarlaEngineNative.cpp
  3. +1
    -0
      source/plugin/carla-native-lv2.cpp

+ 4
- 0
Makefile View File

@@ -391,6 +391,9 @@ install:
install -m 644 \ install -m 644 \
source/backend/CarlaBackend.h \ source/backend/CarlaBackend.h \
source/backend/CarlaHost.h \ source/backend/CarlaHost.h \
source/backend/CarlaEngine.hpp \
source/backend/CarlaPlugin.hpp \
source/modules/CarlaNative.h \
$(DESTDIR)$(PREFIX)/include/carla/ $(DESTDIR)$(PREFIX)/include/carla/


install -m 644 \ install -m 644 \
@@ -417,6 +420,7 @@ install:
cd $(CURDIR) cd $(CURDIR)


# Link resources for lv2 plugin # 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/ $(LINK) $(PREFIX)/share/carla/resources/ $(DESTDIR)$(PREFIX)/lib/lv2/carla-native.lv2/


# Adjust PREFIX value in script files # Adjust PREFIX value in script files


+ 13
- 2
source/backend/engine/CarlaEngineNative.cpp View File

@@ -1623,10 +1623,10 @@ static const NativePluginDescriptor carlaPatchbayDesc = {
}; };
#endif #endif


// -----------------------------------------------------------------------

CARLA_BACKEND_END_NAMESPACE CARLA_BACKEND_END_NAMESPACE


// -----------------------------------------------------------------------

CARLA_EXPORT CARLA_EXPORT
void carla_register_native_plugin_carla(); void carla_register_native_plugin_carla();


@@ -1639,6 +1639,17 @@ void carla_register_native_plugin_carla()
#endif #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 // Extra stuff for linking purposes




+ 1
- 0
source/plugin/carla-native-lv2.cpp View File

@@ -134,6 +134,7 @@ public:
fHost.handle = this; fHost.handle = this;
fHost.resourceDir = resourceDir.dup(); fHost.resourceDir = resourceDir.dup();
fHost.uiName = nullptr; fHost.uiName = nullptr;
fHost.uiParentId = 0;


fHost.get_buffer_size = host_get_buffer_size; fHost.get_buffer_size = host_get_buffer_size;
fHost.get_sample_rate = host_get_sample_rate; fHost.get_sample_rate = host_get_sample_rate;


Loading…
Cancel
Save