Browse Source

Update to latest carla, dpf, and pugl, needs testing

Signed-off-by: falkTX <falktx@falktx.com>
tags/22.06
falkTX 2 years ago
parent
commit
bcd1b9e273
Signed by: falkTX <falktx@falktx.com> GPG Key ID: CDBAA37ABC74FBA0
7 changed files with 19 additions and 30 deletions
  1. +3
    -1
      Makefile
  2. +1
    -1
      carla
  3. +1
    -1
      dpf
  4. +0
    -6
      jucewrapper/CMakeLists.txt
  5. +1
    -1
      plugins/Cardinal/src/plugincontext.hpp
  6. +13
    -17
      src/CardinalUI.cpp
  7. +0
    -3
      src/Makefile.cardinal.mk

+ 3
- 1
Makefile View File

@@ -199,7 +199,9 @@ carla:
ifneq ($(STATIC_BUILD),true)
$(MAKE) static-plugin -C carla $(CARLA_EXTRA_ARGS) \
CAN_GENERATE_LV2_TTL=false \
STATIC_PLUGIN_TARGET=true
CUSTOM_DPF_PATH=$(CURDIR)/dpf \
STATIC_PLUGIN_TARGET=true \
USING_CUSTOM_DPF=true
endif

deps:


+ 1
- 1
carla

@@ -1 +1 @@
Subproject commit 8371c3c395e6e4d9d34ea2b0f7e5557eb0171a7a
Subproject commit 36beab5b13b39744b7dc23a2bef57b02756b39ec

+ 1
- 1
dpf

@@ -1 +1 @@
Subproject commit 01fc1622154ed931ccb4e15ebf3dbb9625747c63
Subproject commit 114031ee99257b7c02cfc66cf01d56bef3c6d315

+ 0
- 6
jucewrapper/CMakeLists.txt View File

@@ -28,9 +28,6 @@ set_property(TARGET native_plugins PROPERTY IMPORTED_LOCATION "${PROJECT_SOURCE_
add_library(audio_decoder STATIC IMPORTED)
set_property(TARGET audio_decoder PROPERTY IMPORTED_LOCATION "${PROJECT_SOURCE_DIR}/../carla/build/modules/Release/audio_decoder.a")

add_library(carla_dgl STATIC IMPORTED)
set_property(TARGET carla_dgl PROPERTY IMPORTED_LOCATION "${PROJECT_SOURCE_DIR}/../carla/build/modules/Release/dgl.a")

add_library(jackbridge STATIC IMPORTED)
set_property(TARGET jackbridge PROPERTY IMPORTED_LOCATION "${PROJECT_SOURCE_DIR}/../carla/build/modules/Release/jackbridge.min.a")

@@ -173,7 +170,6 @@ target_link_libraries(Cardinal
carla_plugin
native_plugins
audio_decoder
carla_dgl
jackbridge
lilv
rtmempool
@@ -264,7 +260,6 @@ target_link_libraries(CardinalFX
carla_plugin
native_plugins
audio_decoder
carla_dgl
jackbridge
lilv
rtmempool
@@ -355,7 +350,6 @@ target_link_libraries(CardinalSynth
carla_plugin
native_plugins
audio_decoder
carla_dgl
jackbridge
lilv
rtmempool


+ 1
- 1
plugins/Cardinal/src/plugincontext.hpp View File

@@ -21,7 +21,7 @@
#include "DistrhoUtils.hpp"

#ifndef HEADLESS
# include "dgl/Base.hpp"
# include "../dgl/Base.hpp"
#else
# include "extra/LeakDetector.hpp"
#endif


+ 13
- 17
src/CardinalUI.cpp View File

@@ -47,17 +47,8 @@ GLFWAPI const char* glfwGetClipboardString(GLFWwindow*)
DISTRHO_SAFE_ASSERT_RETURN(context != nullptr, nullptr);
DISTRHO_SAFE_ASSERT_RETURN(context->ui != nullptr, nullptr);

const char* mimeType = nullptr;
size_t dataSize = 0;

if (const void* const clipboard = context->ui->getClipboard(mimeType, dataSize))
{
if (mimeType == nullptr || std::strcmp(mimeType, "text/plain") != 0)
return nullptr;
return static_cast<const char*>(clipboard);
}

return nullptr;
size_t dataSize;
return static_cast<const char*>(context->ui->getClipboard(dataSize));
}

GLFWAPI void glfwSetClipboardString(GLFWwindow*, const char* const text)
@@ -268,7 +259,6 @@ class CardinalUI : public CardinalBaseUI,
{
if (context->window != nullptr)
WindowParametersSave(context->window);
rack::contextSet(nullptr);
}
};

@@ -619,13 +609,8 @@ protected:
switch (ev.button)
{
case 1: button = GLFW_MOUSE_BUTTON_LEFT; break;
#ifdef DISTRHO_OS_MAC
case 2: button = GLFW_MOUSE_BUTTON_RIGHT; break;
case 3: button = GLFW_MOUSE_BUTTON_MIDDLE; break;
#else
case 2: button = GLFW_MOUSE_BUTTON_MIDDLE; break;
case 3: button = GLFW_MOUSE_BUTTON_RIGHT; break;
#endif
default:
button = ev.button;
break;
@@ -778,6 +763,17 @@ protected:
setState("windowSize", sizeString);
}

uint32_t uiClipboardDataOffer() override
{
const std::vector<ClipboardDataOffer> offers(getClipboardDataOfferTypes());

for (const ClipboardDataOffer offer : offers)
if (std::strcmp(offer.type, "text/plain") == 0)
return offer.id;

return 0;
}

void uiFocus(const bool focus, const CrossingMode mode) override
{
if (focus)


+ 0
- 3
src/Makefile.cardinal.mk View File

@@ -38,9 +38,6 @@ CARLA_EXTRA_LIBS += $(CARLA_BUILD_DIR)/modules/$(CARLA_BUILD_TYPE)/carla_engine_
CARLA_EXTRA_LIBS += $(CARLA_BUILD_DIR)/modules/$(CARLA_BUILD_TYPE)/carla_plugin.a
CARLA_EXTRA_LIBS += $(CARLA_BUILD_DIR)/modules/$(CARLA_BUILD_TYPE)/native-plugins.a
CARLA_EXTRA_LIBS += $(CARLA_BUILD_DIR)/modules/$(CARLA_BUILD_TYPE)/audio_decoder.a
ifneq ($(HEADLESS),true)
CARLA_EXTRA_LIBS += $(CARLA_BUILD_DIR)/modules/$(CARLA_BUILD_TYPE)/dgl.a
endif
CARLA_EXTRA_LIBS += $(CARLA_BUILD_DIR)/modules/$(CARLA_BUILD_TYPE)/jackbridge.min.a
CARLA_EXTRA_LIBS += $(CARLA_BUILD_DIR)/modules/$(CARLA_BUILD_TYPE)/lilv.a
CARLA_EXTRA_LIBS += $(CARLA_BUILD_DIR)/modules/$(CARLA_BUILD_TYPE)/rtmempool.a


Loading…
Cancel
Save