Browse Source

Move external plugins install to external file

tags/1.9.8
falkTX 7 years ago
parent
commit
25bdf4c025
5 changed files with 48 additions and 42 deletions
  1. +9
    -39
      Makefile
  2. +36
    -0
      source/native-plugins/external/Makefile.mk
  3. +1
    -1
      source/native-plugins/zita-at1.cpp
  4. +1
    -1
      source/native-plugins/zita-bls1.cpp
  5. +1
    -1
      source/native-plugins/zita-rev1.cpp

+ 9
- 39
Makefile View File

@@ -367,7 +367,7 @@ stoat:


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


install:
install_main:
# Create directories # Create directories
install -d $(DESTDIR)$(BINDIR) install -d $(DESTDIR)$(BINDIR)
install -d $(DESTDIR)$(LIBDIR)/carla/jack install -d $(DESTDIR)$(LIBDIR)/carla/jack
@@ -635,42 +635,6 @@ endif


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


ifeq ($(EXPERIMENTAL_PLUGINS),true)
# Install resources (experimental plugins)
install -m 644 \
bin/resources/at1/*.png \
$(DESTDIR)$(DATADIR)/carla/resources/at1

install -m 644 \
bin/resources/bls1/*.png \
$(DESTDIR)$(DATADIR)/carla/resources/bls1

install -m 644 \
bin/resources/rev1/*.png \
$(DESTDIR)$(DATADIR)/carla/resources/rev1

install -m 755 \
bin/resources/at1-ui \
bin/resources/bls1-ui \
bin/resources/rev1-ui \
$(DESTDIR)$(DATADIR)/carla/resources
endif

ifeq ($(HAVE_ZYN_DEPS),true)
ifeq ($(HAVE_ZYN_UI_DEPS),true)
# Install resources (zynaddsubfx)
install -m 644 \
bin/resources/zynaddsubfx/*.png \
$(DESTDIR)$(DATADIR)/carla/resources/zynaddsubfx

install -m 755 \
bin/resources/zynaddsubfx-ui \
$(DESTDIR)$(DATADIR)/carla/resources
endif
endif

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

# Install lv2 plugin # Install lv2 plugin
install -d $(DESTDIR)$(LIBDIR)/lv2/carla.lv2 install -d $(DESTDIR)$(LIBDIR)/lv2/carla.lv2


@@ -733,6 +697,12 @@ ifneq ($(HAVE_PYQT),true)
rm $(DESTDIR)$(LIBDIR)/lv2/carla.lv2/carla-bridge-lv2-modgui rm $(DESTDIR)$(LIBDIR)/lv2/carla.lv2/carla-bridge-lv2-modgui
endif endif


ifneq ($(EXTERNAL_PLUGINS),true)
install_external_plugins:
endif

install: install_main install_external_plugins

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


uninstall: uninstall:
@@ -779,7 +749,7 @@ else
FEV="Qt5" FEV="Qt5"
endif endif


features_print:
features_print_main:
@echo "$(tS)---> Main features $(tE)" @echo "$(tS)---> Main features $(tE)"
ifeq ($(HAVE_PYQT),true) ifeq ($(HAVE_PYQT),true)
@echo "Front-End: $(ANS_YES)(Using $(FEV))" @echo "Front-End: $(ANS_YES)(Using $(FEV))"
@@ -959,7 +929,7 @@ ifneq ($(EXTERNAL_PLUGINS),true)
features_print_external_plugins: features_print_external_plugins:
endif endif


features: features_print features_print_external_plugins
features: features_print_main features_print_external_plugins


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




+ 36
- 0
source/native-plugins/external/Makefile.mk View File

@@ -190,6 +190,42 @@ endif
# --------------------------------------------------------------------------------------------------------------------- # ---------------------------------------------------------------------------------------------------------------------


all: all:

install_external_plugins:
ifeq ($(HAVE_ZYN_DEPS),true)
ifeq ($(HAVE_ZYN_UI_DEPS),true)
# Install resources (zynaddsubfx)
install -m 644 \
bin/resources/zynaddsubfx/*.png \
$(DESTDIR)$(DATADIR)/carla/resources/zynaddsubfx

install -m 755 \
bin/resources/zynaddsubfx-ui \
$(DESTDIR)$(DATADIR)/carla/resources
endif
endif

ifeq ($(EXPERIMENTAL_PLUGINS),true)
# Install resources (experimental plugins)
install -m 644 \
bin/resources/at1/*.png \
$(DESTDIR)$(DATADIR)/carla/resources/at1

install -m 644 \
bin/resources/bls1/*.png \
$(DESTDIR)$(DATADIR)/carla/resources/bls1

install -m 644 \
bin/resources/rev1/*.png \
$(DESTDIR)$(DATADIR)/carla/resources/rev1

install -m 755 \
bin/resources/zita-at1-ui \
bin/resources/zita-bls1-ui \
bin/resources/zita-rev1-ui \
$(DESTDIR)$(DATADIR)/carla/resources
endif

features_print_external_plugins: features_print_external_plugins:
ifeq ($(HAVE_DGL),true) ifeq ($(HAVE_DGL),true)
@echo "DPF Plugins: $(ANS_YES)(with UI)" @echo "DPF Plugins: $(ANS_YES)(with UI)"


+ 1
- 1
source/native-plugins/zita-at1.cpp View File

@@ -49,7 +49,7 @@ public:
}; };


AT1Plugin(const NativeHostDescriptor* const host) AT1Plugin(const NativeHostDescriptor* const host)
: NativePluginAndUiClass(host, "at1-ui"),
: NativePluginAndUiClass(host, "zita-at1-ui"),
fJackClient(), fJackClient(),
jclient(nullptr), jclient(nullptr),
notemask(0xfff) notemask(0xfff)


+ 1
- 1
source/native-plugins/zita-bls1.cpp View File

@@ -45,7 +45,7 @@ public:
}; };


BLS1Plugin(const NativeHostDescriptor* const host) BLS1Plugin(const NativeHostDescriptor* const host)
: NativePluginAndUiClass(host, "bls1-ui"),
: NativePluginAndUiClass(host, "zita-bls1-ui"),
fJackClient(), fJackClient(),
jclient(nullptr) jclient(nullptr)
{ {


+ 1
- 1
source/native-plugins/zita-rev1.cpp View File

@@ -45,7 +45,7 @@ public:
}; };


REV1Plugin(const NativeHostDescriptor* const host, const bool isAmbisonic) REV1Plugin(const NativeHostDescriptor* const host, const bool isAmbisonic)
: NativePluginAndUiClass(host, "rev1-ui"),
: NativePluginAndUiClass(host, "zita-rev1-ui"),
kIsAmbisonic(isAmbisonic), kIsAmbisonic(isAmbisonic),
kNumInputs(2), kNumInputs(2),
kNumOutputs(isAmbisonic ? 4 : 2), kNumOutputs(isAmbisonic ? 4 : 2),


Loading…
Cancel
Save