Browse Source

Specify windows library definitions for carla plugins

Signed-off-by: falkTX <falktx@falktx.com>
tags/v2.2.0-RC1
falkTX 4 years ago
parent
commit
ecfb17316c
Signed by: falkTX <falktx@falktx.com> GPG Key ID: CDBAA37ABC74FBA0
6 changed files with 42 additions and 8 deletions
  1. +19
    -8
      source/plugin/Makefile
  2. +4
    -0
      source/plugin/win-def/carla-lv2_dsp+ui.def
  3. +3
    -0
      source/plugin/win-def/carla-lv2_dsp.def
  4. +3
    -0
      source/plugin/win-def/carla-lv2_ui.def
  5. +13
    -0
      source/plugin/win-def/carla-native-plugin.def
  6. +0
    -0
      source/plugin/win-def/carla-vst.def

+ 19
- 8
source/plugin/Makefile View File

@@ -129,6 +129,17 @@ endif
SYMBOLS_VST = -Wl,-exported_symbol,_VSTPluginMain
endif

ifeq ($(WIN32),true)
SYMBOLS_NATIVE = win-def/carla-native-plugin.def
ifeq ($(HAVE_PYQT),true)
SYMBOLS_LV2 = win-def/carla-lv2_dsp+ui.def
SYMBOLS_LV2_UI = win-def/carla-lv2_ui.def
else
SYMBOLS_LV2 = win-def/carla-lv2_dsp.def
endif
SYMBOLS_VST = win-def/carla-vst.def
endif

# ---------------------------------------------------------------------------------------------------------------------
# Other libs

@@ -315,25 +326,25 @@ $(BINDIR)/CarlaVstFxShell$(LIB_EXT): $(OBJDIR)/carla-vst.cpp.shellfx.o $(OBJDIR)
@$(CXX) $^ $(LIBS_START) $(LIBS) $(LIBS_END) $(SHARED) $(SYMBOLS_VST) $(NATIVE_LINK_FLAGS) -o $@

ifeq ($(WIN32),true)
$(BINDIR)/CarlaVstShellBridged.dll: $(OBJDIR)/carla-vst-export-bridged.cpp.synth.o carla-vst-export.def
$(BINDIR)/CarlaVstShellBridged.dll: $(OBJDIR)/carla-vst-export-bridged.cpp.synth.o
-@mkdir -p $(BINDIR)
@echo "Linking CarlaVstShellBridged.dll"
@$(CXX) $^ $(SHARED) $(LINK_FLAGS) -o $@
@$(CXX) $^ $(SHARED) $(SYMBOLS_VST) $(LINK_FLAGS) -o $@

$(BINDIR)/CarlaVstFxShellBridged.dll: $(OBJDIR)/carla-vst-export-bridged.cpp.fx.o carla-vst-export.def
$(BINDIR)/CarlaVstFxShellBridged.dll: $(OBJDIR)/carla-vst-export-bridged.cpp.fx.o
-@mkdir -p $(BINDIR)
@echo "Linking CarlaVstFxShellBridged.dll"
@$(CXX) $^ $(SHARED) $(LINK_FLAGS) -o $@
@$(CXX) $^ $(SHARED) $(SYMBOLS_VST) $(LINK_FLAGS) -o $@
else
$(BINDIR)/CarlaVstShellBridged.dll.so: $(OBJDIR)/carla-vst.cpp.shell.o $(OBJDIR)/carla-vst-export.cpp.dll.o carla-vst-export.def
$(BINDIR)/CarlaVstShellBridged.dll.so: $(OBJDIR)/carla-vst.cpp.shell.o $(OBJDIR)/carla-vst-export.cpp.dll.o
-@mkdir -p $(BINDIR)
@echo "Linking CarlaVstShellBridged.dll.so"
@$(WINECC) $^ $(LIBS_START) $(LIBS_wine) $(LIBS_END) $(SHARED) $(WINE_LINK_FLAGS) -o $@
@$(WINECC) $^ $(LIBS_START) $(LIBS_wine) $(LIBS_END) $(SHARED) $(SYMBOLS_VST) $(WINE_LINK_FLAGS) -o $@

$(BINDIR)/CarlaVstFxShellBridged.dll.so: $(OBJDIR)/carla-vst.cpp.shellfx.o $(OBJDIR)/carla-vst-export.cpp.dll.o carla-vst-export.def
$(BINDIR)/CarlaVstFxShellBridged.dll.so: $(OBJDIR)/carla-vst.cpp.shellfx.o $(OBJDIR)/carla-vst-export.cpp.dll.o
-@mkdir -p $(BINDIR)
@echo "Linking CarlaVstFxShellBridged.dll.so"
@$(WINECC) $^ $(LIBS_START) $(LIBS_wine) $(LIBS_END) $(SHARED) $(WINE_LINK_FLAGS) -o $@
@$(WINECC) $^ $(LIBS_START) $(LIBS_wine) $(LIBS_END) $(SHARED) $(SYMBOLS_VST) $(WINE_LINK_FLAGS) -o $@
endif

# ---------------------------------------------------------------------------------------------------------------------


+ 4
- 0
source/plugin/win-def/carla-lv2_dsp+ui.def View File

@@ -0,0 +1,4 @@
LIBRARY CarlaLV2
DESCRIPTION 'Carla LV2 Plugin'
EXPORTS lv2_descriptor
EXPORTS lv2ui_descriptor

+ 3
- 0
source/plugin/win-def/carla-lv2_dsp.def View File

@@ -0,0 +1,3 @@
LIBRARY CarlaLV2
DESCRIPTION 'Carla LV2 Plugin'
EXPORTS lv2_descriptor

+ 3
- 0
source/plugin/win-def/carla-lv2_ui.def View File

@@ -0,0 +1,3 @@
LIBRARY CarlaLV2UI
DESCRIPTION 'Carla LV2 UI'
EXPORTS lv2ui_descriptor

+ 13
- 0
source/plugin/win-def/carla-native-plugin.def View File

@@ -0,0 +1,13 @@
LIBRARY CarlaNativePlugin
DESCRIPTION 'Carla Native Plugin'
EXPORTS carla_get_native_rack_plugin
EXPORTS carla_get_native_patchbay_plugin
EXPORTS carla_get_native_patchbay16_plugin
EXPORTS carla_get_native_patchbay32_plugin
EXPORTS carla_get_native_patchbay64_plugin
EXPORTS carla_get_native_patchbay_cv_plugin
EXPORTS carla_create_native_plugin_host_handle
EXPORTS carla_host_handle_free
EXPORTS carla_get_native_plugin_engine
EXPORTS carla_get_library_filename
EXPORTS carla_get_library_folder

source/plugin/carla-vst-export.def → source/plugin/win-def/carla-vst.def View File


Loading…
Cancel
Save