| @@ -423,6 +423,7 @@ install: | |||||
| install -d $(DESTDIR)$(LIBDIR)/python3/dist-packages | install -d $(DESTDIR)$(LIBDIR)/python3/dist-packages | ||||
| install -d $(DESTDIR)$(DATADIR) | install -d $(DESTDIR)$(DATADIR) | ||||
| install -d $(DESTDIR)$(DATADIR)/carla | install -d $(DESTDIR)$(DATADIR)/carla | ||||
| install -d $(DESTDIR)$(DATADIR)/carla/resources | |||||
| install -d $(DESTDIR)$(INCLUDEDIR) | install -d $(DESTDIR)$(INCLUDEDIR) | ||||
| install -d $(DESTDIR)$(INCLUDEDIR)/carla | install -d $(DESTDIR)$(INCLUDEDIR)/carla | ||||
| install -d $(DESTDIR)$(INCLUDEDIR)/carla/includes | install -d $(DESTDIR)$(INCLUDEDIR)/carla/includes | ||||
| @@ -432,7 +433,6 @@ ifeq ($(HAVE_PYQT),true) | |||||
| # Create directories (gui) | # Create directories (gui) | ||||
| install -d $(DESTDIR)$(LIBDIR)/carla/styles | install -d $(DESTDIR)$(LIBDIR)/carla/styles | ||||
| install -d $(DESTDIR)$(DATADIR)/applications | install -d $(DESTDIR)$(DATADIR)/applications | ||||
| install -d $(DESTDIR)$(DATADIR)/carla/resources | |||||
| install -d $(DESTDIR)$(DATADIR)/icons | install -d $(DESTDIR)$(DATADIR)/icons | ||||
| install -d $(DESTDIR)$(DATADIR)/icons/hicolor | install -d $(DESTDIR)$(DATADIR)/icons/hicolor | ||||
| install -d $(DESTDIR)$(DATADIR)/icons/hicolor/16x16 | install -d $(DESTDIR)$(DATADIR)/icons/hicolor/16x16 | ||||
| @@ -730,9 +730,11 @@ endif | |||||
| rm -rf $(DESTDIR)$(LIBDIR)/lv2/carla.lv2/resources | rm -rf $(DESTDIR)$(LIBDIR)/lv2/carla.lv2/resources | ||||
| $(LINK) $(DATADIR)/carla/resources $(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 | # Link styles for lv2 plugin | ||||
| rm -rf $(DESTDIR)$(LIBDIR)/lv2/carla.lv2/styles | rm -rf $(DESTDIR)$(LIBDIR)/lv2/carla.lv2/styles | ||||
| $(LINK) $(LIBDIR)/carla/styles $(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) | ifneq ($(HAVE_PYQT),true) | ||||
| # Remove gui files for non-gui build | # Remove gui files for non-gui build | ||||
| rm $(DESTDIR)$(LIBDIR)/carla/carla-bridge-lv2-modgui | rm $(DESTDIR)$(LIBDIR)/carla/carla-bridge-lv2-modgui | ||||
| rm $(DESTDIR)$(LIBDIR)/lv2/carla.lv2/carla-bridge-lv2-modgui | |||||
| endif | endif | ||||
| # ---------------------------------------------------------------------------------------------------------------------------- | # ---------------------------------------------------------------------------------------------------------------------------- | ||||
| @@ -171,6 +171,10 @@ if not os.path.exists(CARLA_LIBDIR): | |||||
| print("Carla library folder does not exist, is Carla installed?") | print("Carla library folder does not exist, is Carla installed?") | ||||
| sys.exit(2) | 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 | # Check for existing arch binary | ||||
| @@ -287,6 +287,10 @@ endif | |||||
| # -------------------------------------------------------------- | # -------------------------------------------------------------- | ||||
| # Set base defines | # Set base defines | ||||
| ifeq ($(HAVE_PYQT),true) | |||||
| BASE_FLAGS += -DHAVE_PYQT | |||||
| endif | |||||
| ifeq ($(HAVE_DGL),true) | ifeq ($(HAVE_DGL),true) | ||||
| BASE_FLAGS += -DHAVE_DGL | BASE_FLAGS += -DHAVE_DGL | ||||
| endif | endif | ||||
| @@ -20,6 +20,7 @@ | |||||
| #ifdef CARLA_OS_WIN | #ifdef CARLA_OS_WIN | ||||
| # define DISABLE_PLUGINS_FOR_WINDOWS_BUILD | # define DISABLE_PLUGINS_FOR_WINDOWS_BUILD | ||||
| # undef HAVE_PYQT | |||||
| #endif | #endif | ||||
| // ----------------------------------------------------------------------- | // ----------------------------------------------------------------------- | ||||
| @@ -88,12 +89,12 @@ void carla_register_all_native_plugins(void) | |||||
| // MIDI file and sequencer | // MIDI file and sequencer | ||||
| carla_register_native_plugin_midifile(); | carla_register_native_plugin_midifile(); | ||||
| #ifndef DISABLE_PLUGINS_FOR_WINDOWS_BUILD | |||||
| #ifdef HAVE_PYQT | |||||
| carla_register_native_plugin_midipattern(); | carla_register_native_plugin_midipattern(); | ||||
| #endif | #endif | ||||
| // Carla | // Carla | ||||
| #ifndef DISABLE_PLUGINS_FOR_WINDOWS_BUILD | |||||
| #ifdef HAVE_PYQT | |||||
| carla_register_native_plugin_carla(); | carla_register_native_plugin_carla(); | ||||
| #endif | #endif | ||||
| @@ -113,7 +114,7 @@ void carla_register_all_native_plugins(void) | |||||
| carla_register_native_plugin_distrho_vectorjuice(); | carla_register_native_plugin_distrho_vectorjuice(); | ||||
| carla_register_native_plugin_distrho_wobblejuice(); | carla_register_native_plugin_distrho_wobblejuice(); | ||||
| #ifndef DISABLE_PLUGINS_FOR_WINDOWS_BUILD | |||||
| #ifdef HAVE_PYQT | |||||
| // External-UI plugins | // External-UI plugins | ||||
| carla_register_native_plugin_bigmeter(); | carla_register_native_plugin_bigmeter(); | ||||
| carla_register_native_plugin_notes(); | carla_register_native_plugin_notes(); | ||||
| @@ -20,7 +20,8 @@ | |||||
| #include "CarlaUtils.hpp" | #include "CarlaUtils.hpp" | ||||
| #ifdef CARLA_OS_WIN | #ifdef CARLA_OS_WIN | ||||
| #define DISABLE_PLUGINS_FOR_WINDOWS_BUILD | |||||
| # define DISABLE_PLUGINS_FOR_WINDOWS_BUILD | |||||
| # undef HAVE_PYQT | |||||
| #endif | #endif | ||||
| #undef DESCFUNCS | #undef DESCFUNCS | ||||
| @@ -209,7 +210,7 @@ static const NativePluginDescriptor sNativePluginDescriptors[] = { | |||||
| /* copyright */ "GNU GPL v2+", | /* copyright */ "GNU GPL v2+", | ||||
| DESCFUNCS | DESCFUNCS | ||||
| }, | }, | ||||
| #ifndef DISABLE_PLUGINS_FOR_WINDOWS_BUILD | |||||
| #ifdef HAVE_PYQT | |||||
| { | { | ||||
| /* category */ NATIVE_PLUGIN_CATEGORY_UTILITY, | /* category */ NATIVE_PLUGIN_CATEGORY_UTILITY, | ||||
| /* hints */ static_cast<NativePluginHints>(NATIVE_PLUGIN_IS_RTSAFE | /* hints */ static_cast<NativePluginHints>(NATIVE_PLUGIN_IS_RTSAFE | ||||
| @@ -234,7 +235,7 @@ static const NativePluginDescriptor sNativePluginDescriptors[] = { | |||||
| // ----------------------------------------------------------------------- | // ----------------------------------------------------------------------- | ||||
| // Carla | // Carla | ||||
| #ifndef DISABLE_PLUGINS_FOR_WINDOWS_BUILD | |||||
| #ifdef HAVE_PYQT | |||||
| { | { | ||||
| /* category */ NATIVE_PLUGIN_CATEGORY_OTHER, | /* category */ NATIVE_PLUGIN_CATEGORY_OTHER, | ||||
| /* hints */ static_cast<NativePluginHints>(NATIVE_PLUGIN_IS_SYNTH | /* hints */ static_cast<NativePluginHints>(NATIVE_PLUGIN_IS_SYNTH | ||||
| @@ -546,7 +547,7 @@ static const NativePluginDescriptor sNativePluginDescriptors[] = { | |||||
| // ----------------------------------------------------------------------- | // ----------------------------------------------------------------------- | ||||
| // External-UI plugins | // External-UI plugins | ||||
| #ifndef DISABLE_PLUGINS_FOR_WINDOWS_BUILD | |||||
| #ifdef HAVE_PYQT | |||||
| { | { | ||||
| /* category */ NATIVE_PLUGIN_CATEGORY_UTILITY, | /* category */ NATIVE_PLUGIN_CATEGORY_UTILITY, | ||||
| /* hints */ static_cast<NativePluginHints>(NATIVE_PLUGIN_IS_RTSAFE | /* hints */ static_cast<NativePluginHints>(NATIVE_PLUGIN_IS_RTSAFE | ||||