Browse Source

Don't export ext-ui plugins if pyqt is missing, and tweak install

tags/1.9.8
falkTX 7 years ago
parent
commit
5fd7bcffb0
5 changed files with 21 additions and 8 deletions
  1. +4
    -1
      Makefile
  2. +4
    -0
      data/carla-single
  3. +4
    -0
      source/Makefile.mk
  4. +4
    -3
      source/native-plugins/_all.c
  5. +5
    -4
      source/native-plugins/_data.cpp

+ 4
- 1
Makefile View File

@@ -423,6 +423,7 @@ install:
install -d $(DESTDIR)$(LIBDIR)/python3/dist-packages
install -d $(DESTDIR)$(DATADIR)
install -d $(DESTDIR)$(DATADIR)/carla
install -d $(DESTDIR)$(DATADIR)/carla/resources
install -d $(DESTDIR)$(INCLUDEDIR)
install -d $(DESTDIR)$(INCLUDEDIR)/carla
install -d $(DESTDIR)$(INCLUDEDIR)/carla/includes
@@ -432,7 +433,6 @@ ifeq ($(HAVE_PYQT),true)
# Create directories (gui)
install -d $(DESTDIR)$(LIBDIR)/carla/styles
install -d $(DESTDIR)$(DATADIR)/applications
install -d $(DESTDIR)$(DATADIR)/carla/resources
install -d $(DESTDIR)$(DATADIR)/icons
install -d $(DESTDIR)$(DATADIR)/icons/hicolor
install -d $(DESTDIR)$(DATADIR)/icons/hicolor/16x16
@@ -730,9 +730,11 @@ endif
rm -rf $(DESTDIR)$(LIBDIR)/lv2/carla.lv2/resources
$(LINK) $(DATADIR)/carla/resources $(DESTDIR)$(LIBDIR)/lv2/carla.lv2/resources

ifeq ($(HAVE_PYQT),true)
# Link styles for lv2 plugin
rm -rf $(DESTDIR)$(LIBDIR)/lv2/carla.lv2/styles
$(LINK) $(LIBDIR)/carla/styles $(DESTDIR)$(LIBDIR)/lv2/carla.lv2/styles
endif

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

@@ -767,6 +769,7 @@ endif
ifneq ($(HAVE_PYQT),true)
# Remove gui files for non-gui build
rm $(DESTDIR)$(LIBDIR)/carla/carla-bridge-lv2-modgui
rm $(DESTDIR)$(LIBDIR)/lv2/carla.lv2/carla-bridge-lv2-modgui
endif

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


+ 4
- 0
data/carla-single View File

@@ -171,6 +171,10 @@ if not os.path.exists(CARLA_LIBDIR):
print("Carla library folder does not exist, is Carla installed?")
sys.exit(2)

if not os.path.exists(CARLA_RESDIR):
print("Carla resource folder does not exist, is Carla installed?")
sys.exit(2)

# --------------------------------------------------------------------------------------------------------
# Check for existing arch binary



+ 4
- 0
source/Makefile.mk View File

@@ -287,6 +287,10 @@ endif
# --------------------------------------------------------------
# Set base defines

ifeq ($(HAVE_PYQT),true)
BASE_FLAGS += -DHAVE_PYQT
endif

ifeq ($(HAVE_DGL),true)
BASE_FLAGS += -DHAVE_DGL
endif


+ 4
- 3
source/native-plugins/_all.c View File

@@ -20,6 +20,7 @@

#ifdef CARLA_OS_WIN
# define DISABLE_PLUGINS_FOR_WINDOWS_BUILD
# undef HAVE_PYQT
#endif

// -----------------------------------------------------------------------
@@ -88,12 +89,12 @@ void carla_register_all_native_plugins(void)

// MIDI file and sequencer
carla_register_native_plugin_midifile();
#ifndef DISABLE_PLUGINS_FOR_WINDOWS_BUILD
#ifdef HAVE_PYQT
carla_register_native_plugin_midipattern();
#endif

// Carla
#ifndef DISABLE_PLUGINS_FOR_WINDOWS_BUILD
#ifdef HAVE_PYQT
carla_register_native_plugin_carla();
#endif

@@ -113,7 +114,7 @@ void carla_register_all_native_plugins(void)
carla_register_native_plugin_distrho_vectorjuice();
carla_register_native_plugin_distrho_wobblejuice();

#ifndef DISABLE_PLUGINS_FOR_WINDOWS_BUILD
#ifdef HAVE_PYQT
// External-UI plugins
carla_register_native_plugin_bigmeter();
carla_register_native_plugin_notes();


+ 5
- 4
source/native-plugins/_data.cpp View File

@@ -20,7 +20,8 @@
#include "CarlaUtils.hpp"

#ifdef CARLA_OS_WIN
#define DISABLE_PLUGINS_FOR_WINDOWS_BUILD
# define DISABLE_PLUGINS_FOR_WINDOWS_BUILD
# undef HAVE_PYQT
#endif

#undef DESCFUNCS
@@ -209,7 +210,7 @@ static const NativePluginDescriptor sNativePluginDescriptors[] = {
/* copyright */ "GNU GPL v2+",
DESCFUNCS
},
#ifndef DISABLE_PLUGINS_FOR_WINDOWS_BUILD
#ifdef HAVE_PYQT
{
/* category */ NATIVE_PLUGIN_CATEGORY_UTILITY,
/* hints */ static_cast<NativePluginHints>(NATIVE_PLUGIN_IS_RTSAFE
@@ -234,7 +235,7 @@ static const NativePluginDescriptor sNativePluginDescriptors[] = {
// -----------------------------------------------------------------------
// Carla

#ifndef DISABLE_PLUGINS_FOR_WINDOWS_BUILD
#ifdef HAVE_PYQT
{
/* category */ NATIVE_PLUGIN_CATEGORY_OTHER,
/* hints */ static_cast<NativePluginHints>(NATIVE_PLUGIN_IS_SYNTH
@@ -546,7 +547,7 @@ static const NativePluginDescriptor sNativePluginDescriptors[] = {
// -----------------------------------------------------------------------
// External-UI plugins

#ifndef DISABLE_PLUGINS_FOR_WINDOWS_BUILD
#ifdef HAVE_PYQT
{
/* category */ NATIVE_PLUGIN_CATEGORY_UTILITY,
/* hints */ static_cast<NativePluginHints>(NATIVE_PLUGIN_IS_RTSAFE


Loading…
Cancel
Save