Browse Source

Keep building not-yet-converted Qt UI files, fixes build

Signed-off-by: falkTX <falktx@falktx.com>
pull/1689/head
falkTX 2 years ago
parent
commit
bb440eb73a
Signed by: falkTX <falktx@falktx.com> GPG Key ID: CDBAA37ABC74FBA0
4 changed files with 33 additions and 23 deletions
  1. +5
    -0
      source/backend/plugin/CarlaPluginCLAP.cpp
  2. +1
    -0
      source/backend/plugin/CarlaPluginVST2.cpp
  3. +25
    -21
      source/frontend/Makefile
  4. +2
    -2
      source/utils/CarlaMacUtils.hpp

+ 5
- 0
source/backend/plugin/CarlaPluginCLAP.cpp View File

@@ -24,6 +24,11 @@

#include "CarlaPluginUI.hpp"

#ifdef CARLA_OS_MAC
# include "CarlaMacUtils.hpp"
# import <Foundation/Foundation.h>
#endif

#include "water/files/File.h"

CARLA_BACKEND_START_NAMESPACE


+ 1
- 0
source/backend/plugin/CarlaPluginVST2.cpp View File

@@ -32,6 +32,7 @@
#include "CarlaPluginUI.hpp"

#ifdef CARLA_OS_MAC
# include "CarlaMacUtils.hpp"
# import <Foundation/Foundation.h>
#endif



+ 25
- 21
source/frontend/Makefile View File

@@ -65,8 +65,6 @@ RES = \
$(BINDIR)/resources/resources_rc.py \
$(BINDIR)/resources/ui_carla_about.py \
$(BINDIR)/resources/ui_carla_about_juce.py \
$(BINDIR)/resources/ui_carla_add_jack.py \
$(BINDIR)/resources/ui_carla_database.py \
$(BINDIR)/resources/ui_carla_edit.py \
$(BINDIR)/resources/ui_carla_host.py \
$(BINDIR)/resources/ui_carla_osc_connect.py \
@@ -76,7 +74,6 @@ RES = \
$(BINDIR)/resources/ui_carla_plugin_compact.py \
$(BINDIR)/resources/ui_carla_plugin_default.py \
$(BINDIR)/resources/ui_carla_plugin_presets.py \
$(BINDIR)/resources/ui_carla_refresh.py \
$(BINDIR)/resources/ui_carla_settings.py \
$(BINDIR)/resources/ui_carla_settings_driver.py \
$(BINDIR)/resources/ui_inputdialog_value.py \
@@ -99,24 +96,24 @@ UI_FILES = $(wildcard pluginlist/*.ui)
UIs = $(UI_FILES:%.ui=%_ui.hpp)
UIs += $(UI_FILES:%.ui=%_ui.py)

# ui_carla_about.py \
# ui_carla_about_juce.py \
# ui_carla_database.py \
# ui_carla_edit.py \
# ui_carla_host.py \
# ui_carla_osc_connect.py \
# ui_carla_parameter.py \
# ui_carla_plugin_calf.py \
# ui_carla_plugin_classic.py \
# ui_carla_plugin_compact.py \
# ui_carla_plugin_default.py \
# ui_carla_plugin_presets.py \
# ui_carla_refresh.py \
# ui_carla_settings.py \
# ui_carla_settings_driver.py \
# ui_inputdialog_value.py \
# ui_midipattern.py \
# ui_xycontroller.py
# old stuff, not yet converted
UIs += \
ui_carla_about.py \
ui_carla_about_juce.py \
ui_carla_edit.py \
ui_carla_host.py \
ui_carla_osc_connect.py \
ui_carla_parameter.py \
ui_carla_plugin_calf.py \
ui_carla_plugin_classic.py \
ui_carla_plugin_compact.py \
ui_carla_plugin_default.py \
ui_carla_plugin_presets.py \
ui_carla_settings.py \
ui_carla_settings_driver.py \
ui_inputdialog_value.py \
ui_midipattern.py \
ui_xycontroller.py

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

@@ -130,6 +127,9 @@ all: $(QMs) $(RES) $(UIs)
%_ui.py: %.ui
$(PYUIC) $< -o $@

ui_%.py: $(RESDIR)/ui/%.ui
$(PYUIC) $< -o $@

resources_rc.py: $(RESDIR)/resources.qrc $(RESDIR)/*/*.png $(RESDIR)/*/*.svg $(RESDIR)/*/*.svgz
$(PYRCC) $< -o $@

@@ -149,6 +149,10 @@ $(BINDIR)/resources/zynaddsubfx-ui: ../native-plugins/resources/zynaddsubfx-ui

clean:
rm -rf $(UIs) $(RES) $(QMs) __pycache__ *.pyc
# old files
rm -f ui_carla_add_jack.py
rm -f ui_carla_database.py
rm -f ui_carla_refresh.py

debug:
$(MAKE) DEBUG=true


+ 2
- 2
source/utils/CarlaMacUtils.hpp View File

@@ -68,8 +68,8 @@ struct BundleLoader {
bool load(const char* const filename);
CFBundleRef getRef() const noexcept;

inline template<typename Func>
Func getSymbol(const CFStringRef name) const
template<typename Func>
inline Func getSymbol(const CFStringRef name) const
{
return reinterpret_cast<Func>(CFBundleGetFunctionPointerForName(getRef(), name));
}


Loading…
Cancel
Save