Browse Source

Add stub for carla-lv2-single

tags/1.9.8
falkTX 8 years ago
parent
commit
6dbd9ff5a6
3 changed files with 51 additions and 1 deletions
  1. +0
    -1
      source/libjack/libjack_time.cpp
  2. +12
    -0
      source/plugin/Makefile
  3. +39
    -0
      source/plugin/carla-lv2-single.cpp

+ 0
- 1
source/libjack/libjack_time.cpp View File

@@ -15,7 +15,6 @@
* For a full copy of the GNU General Public License see the doc/GPL.txt file. * For a full copy of the GNU General Public License see the doc/GPL.txt file.
*/ */


// need to include this first
#include "libjack.hpp" #include "libjack.hpp"


CARLA_BACKEND_USE_NAMESPACE CARLA_BACKEND_USE_NAMESPACE


+ 12
- 0
source/plugin/Makefile View File

@@ -103,6 +103,7 @@ endif
# ---------------------------------------------------------------------------------------------------------------------------- # ----------------------------------------------------------------------------------------------------------------------------


TARGETS = \ TARGETS = \
$(BINDIR)/carla-lv2-single$(LIB_EXT) \
$(BINDIR)/carla.lv2/carla$(LIB_EXT) \ $(BINDIR)/carla.lv2/carla$(LIB_EXT) \
$(BINDIR)/carla.lv2/manifest.ttl $(BINDIR)/carla.lv2/manifest.ttl


@@ -129,12 +130,18 @@ clean:
rm -f $(OBJDIR)/*.o $(TARGETS) rm -f $(OBJDIR)/*.o $(TARGETS)
rm -f $(BINDIR)/carla.lv2/*.* rm -f $(BINDIR)/carla.lv2/*.*
rm -f $(BINDIR)/carla-lv2-export$(APP_EXT) rm -f $(BINDIR)/carla-lv2-export$(APP_EXT)
rm -f $(BINDIR)/carla-lv2-single$(LIB_EXT)


debug: debug:
$(MAKE) DEBUG=true $(MAKE) DEBUG=true


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


$(BINDIR)/carla-lv2-single$(LIB_EXT): $(OBJDIR)/carla-lv2-single.cpp.o $(LIBS)
-@mkdir -p $(BINDIR)
@echo "Linking carla-lv2-single$(LIB_EXT)"
@$(CXX) $< $(LIBS_START) $(LIBS) $(LIBS_END) $(SHARED) $(LINK_FLAGS) -o $@

$(BINDIR)/carla.lv2/carla$(LIB_EXT): $(OBJDIR)/carla-lv2.cpp.o $(LIBS) $(BINDIR)/carla.lv2/carla$(LIB_EXT): $(OBJDIR)/carla-lv2.cpp.o $(LIBS)
-@mkdir -p $(BINDIR)/carla.lv2 -@mkdir -p $(BINDIR)/carla.lv2
@echo "Linking carla.lv2/carla$(LIB_EXT)" @echo "Linking carla.lv2/carla$(LIB_EXT)"
@@ -172,6 +179,11 @@ $(OBJDIR)/carla-lv2.cpp.o: carla-lv2.cpp
@echo "Compiling $<" @echo "Compiling $<"
@$(CXX) $< $(BUILD_CXX_FLAGS) -c -o $@ @$(CXX) $< $(BUILD_CXX_FLAGS) -c -o $@


$(OBJDIR)/carla-lv2-single.cpp.o: carla-lv2-single.cpp
-@mkdir -p $(OBJDIR)
@echo "Compiling $<"
@$(CXX) $< $(BUILD_CXX_FLAGS) -c -o $@

$(OBJDIR)/carla-vst.cpp.rack-fx.o: carla-vst.cpp $(OBJDIR)/carla-vst.cpp.rack-fx.o: carla-vst.cpp
-@mkdir -p $(OBJDIR) -@mkdir -p $(OBJDIR)
@echo "Compiling $< (RackFX)" @echo "Compiling $< (RackFX)"


+ 39
- 0
source/plugin/carla-lv2-single.cpp View File

@@ -0,0 +1,39 @@
/*
* Carla LV2 Single Plugin
* Copyright (C) 2017 Filipe Coelho <falktx@falktx.com>
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License as
* published by the Free Software Foundation; either version 2 of
* the License, or any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* For a full copy of the GNU General Public License see the doc/GPL.txt file.
*/

#include "CarlaLv2Utils.hpp"

// -----------------------------------------------------------------------
// Startup code

CARLA_EXPORT
const LV2_Descriptor* lv2_descriptor(uint32_t index)
{
carla_debug("lv2_descriptor(%i)", index);

return nullptr;
}

CARLA_EXPORT
const LV2UI_Descriptor* lv2ui_descriptor(uint32_t index)
{
carla_debug("lv2ui_descriptor(%i)", index);

return nullptr;
}

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

Loading…
Cancel
Save