Signed-off-by: falkTX <falktx@falktx.com>tags/v2.5.5
@@ -0,0 +1,22 @@ | |||||
/* | |||||
* Carla Plugin Host | |||||
* Copyright (C) 2011-2023 Filipe Coelho <falktx@falktx.com> | |||||
* | |||||
* This program is free software; you can redistribute it and/or | |||||
* modify it under the terms of the GNU General Public License as | |||||
* published by the Free Software Foundation; either version 2 of | |||||
* the License, or any later version. | |||||
* | |||||
* This program is distributed in the hope that it will be useful, | |||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | |||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |||||
* GNU General Public License for more details. | |||||
* | |||||
* For a full copy of the GNU General Public License see the doc/GPL.txt file. | |||||
*/ | |||||
#include "CarlaBridgeUtils.cpp" | |||||
#ifdef CARLA_OS_MAC | |||||
# include "CarlaMacUtils.cpp" | |||||
#endif |
@@ -16,6 +16,7 @@ BUILD_CXX_FLAGS += $(YSFX_FLAGS) | |||||
OBJS = \ | OBJS = \ | ||||
$(OBJDIR)/CachedPlugins.cpp.o \ | $(OBJDIR)/CachedPlugins.cpp.o \ | ||||
$(OBJDIR)/CarlaUtils.cpp.o \ | |||||
$(OBJDIR)/Information.cpp.o \ | $(OBJDIR)/Information.cpp.o \ | ||||
$(OBJDIR)/JUCE.cpp.o \ | $(OBJDIR)/JUCE.cpp.o \ | ||||
$(OBJDIR)/PipeClient.cpp.o \ | $(OBJDIR)/PipeClient.cpp.o \ | ||||
@@ -26,7 +27,8 @@ TARGETS = $(BINDIR)/libcarla_utils$(LIB_EXT) | |||||
# --------------------------------------------------------------------------------------------------------------------- | # --------------------------------------------------------------------------------------------------------------------- | ||||
LIBS = $(MODULEDIR)/lilv.a | |||||
LIBS = $(MODULEDIR)/jackbridge.a | |||||
LIBS += $(MODULEDIR)/lilv.a | |||||
LIBS += $(MODULEDIR)/water.files.a | LIBS += $(MODULEDIR)/water.files.a | ||||
LIBS += $(MODULEDIR)/ysfx.a | LIBS += $(MODULEDIR)/ysfx.a | ||||
@@ -42,6 +44,7 @@ LIBS += $(MODULEDIR)/juce_gui_basics.a | |||||
LIBS += $(MODULEDIR)/juce_gui_extra.a | LIBS += $(MODULEDIR)/juce_gui_extra.a | ||||
endif | endif | ||||
LINK_FLAGS += $(JACKBRIDGE_LIBS) | |||||
LINK_FLAGS += $(LILV_LIBS) | LINK_FLAGS += $(LILV_LIBS) | ||||
LINK_FLAGS += $(WATER_LIBS) | LINK_FLAGS += $(WATER_LIBS) | ||||
LINK_FLAGS += $(YSFX_GRAPHICS_LIBS) | LINK_FLAGS += $(YSFX_GRAPHICS_LIBS) | ||||
@@ -90,16 +93,9 @@ $(BINDIR)/libcarla_utils$(LIB_EXT): $(OBJS) $(LIBS) | |||||
ifeq ($(MACOS),true) | ifeq ($(MACOS),true) | ||||
ifeq ($(USING_JUCE),true) | ifeq ($(USING_JUCE),true) | ||||
$(OBJDIR)/CachedPlugins.cpp.o: CachedPlugins.cpp | |||||
-@mkdir -p $(OBJDIR) | |||||
@echo "Compiling $<" | |||||
$(SILENT)$(CXX) $< $(BUILD_CXX_FLAGS) -std=gnu++14 -c -o $@ | |||||
$(OBJDIR)/CachedPlugins.cpp.o: BUILD_CXX_FLAGS += -std=gnu++14 | |||||
endif | endif | ||||
$(OBJDIR)/Windows.cpp.o: Windows.cpp | |||||
-@mkdir -p $(OBJDIR) | |||||
@echo "Compiling $<" | |||||
$(SILENT)$(CXX) $< $(BUILD_CXX_FLAGS) -ObjC++ -c -o $@ | |||||
$(OBJDIR)/Windows.cpp.o: BUILD_CXX_FLAGS += -ObjC++ | |||||
endif | endif | ||||
$(OBJDIR)/%.cpp.o: %.cpp | $(OBJDIR)/%.cpp.o: %.cpp | ||||
@@ -240,7 +240,7 @@ struct BridgeNonRtServerData { | |||||
// ------------------------------------------------------------------------------------------------------------------- | // ------------------------------------------------------------------------------------------------------------------- | ||||
struct BridgeAudioPool { | |||||
struct CARLA_API BridgeAudioPool { | |||||
float* data; | float* data; | ||||
std::size_t dataSize; | std::size_t dataSize; | ||||
CarlaString filename; | CarlaString filename; | ||||
@@ -263,7 +263,7 @@ struct BridgeAudioPool { | |||||
// ------------------------------------------------------------------------------------------------------------------- | // ------------------------------------------------------------------------------------------------------------------- | ||||
struct BridgeRtClientControl : public CarlaRingBufferControl<SmallStackBuffer> { | |||||
struct CARLA_API BridgeRtClientControl : public CarlaRingBufferControl<SmallStackBuffer> { | |||||
BridgeRtClientData* data; | BridgeRtClientData* data; | ||||
CarlaString filename; | CarlaString filename; | ||||
bool needsSemDestroy; // client only | bool needsSemDestroy; // client only | ||||
@@ -303,7 +303,7 @@ struct BridgeRtClientControl : public CarlaRingBufferControl<SmallStackBuffer> { | |||||
// ------------------------------------------------------------------------------------------------------------------- | // ------------------------------------------------------------------------------------------------------------------- | ||||
struct BridgeNonRtClientControl : public CarlaRingBufferControl<BigStackBuffer> { | |||||
struct CARLA_API BridgeNonRtClientControl : public CarlaRingBufferControl<BigStackBuffer> { | |||||
BridgeNonRtClientData* data; | BridgeNonRtClientData* data; | ||||
CarlaString filename; | CarlaString filename; | ||||
CarlaMutex mutex; | CarlaMutex mutex; | ||||
@@ -332,7 +332,7 @@ struct BridgeNonRtClientControl : public CarlaRingBufferControl<BigStackBuffer> | |||||
// ------------------------------------------------------------------------------------------------------------------- | // ------------------------------------------------------------------------------------------------------------------- | ||||
struct BridgeNonRtServerControl : public CarlaRingBufferControl<HugeStackBuffer> { | |||||
struct CARLA_API BridgeNonRtServerControl : public CarlaRingBufferControl<HugeStackBuffer> { | |||||
BridgeNonRtServerData* data; | BridgeNonRtServerData* data; | ||||
CarlaString filename; | CarlaString filename; | ||||
CarlaMutex mutex; | CarlaMutex mutex; | ||||
@@ -1,6 +1,6 @@ | |||||
/* | /* | ||||
* Carla macOS utils | * Carla macOS utils | ||||
* Copyright (C) 2018-2022 Filipe Coelho <falktx@falktx.com> | |||||
* Copyright (C) 2018-2023 Filipe Coelho <falktx@falktx.com> | |||||
* | * | ||||
* This program is free software; you can redistribute it and/or | * This program is free software; you can redistribute it and/or | ||||
* modify it under the terms of the GNU General Public License as | * modify it under the terms of the GNU General Public License as | ||||
@@ -27,26 +27,28 @@ | |||||
// don't include Foundation.h here | // don't include Foundation.h here | ||||
typedef struct __CFBundle* CFBundleRef; | typedef struct __CFBundle* CFBundleRef; | ||||
CARLA_BACKEND_START_NAMESPACE | |||||
// -------------------------------------------------------------------------------------------------------------------- | // -------------------------------------------------------------------------------------------------------------------- | ||||
// a few public functions | |||||
/* | /* | ||||
* ... | * ... | ||||
*/ | */ | ||||
void initStandaloneApplication(); | |||||
CARLA_PLUGIN_EXPORT void initStandaloneApplication(); | |||||
/* | /* | ||||
* ... | * ... | ||||
*/ | */ | ||||
const char* findBinaryInBundle(const char* const bundleDir); | |||||
CARLA_PLUGIN_EXPORT const char* findBinaryInBundle(const char* const bundleDir); | |||||
/* | /* | ||||
* ... | * ... | ||||
*/ | */ | ||||
bool removeFileFromQuarantine(const char* const filename); | |||||
CARLA_PLUGIN_EXPORT bool removeFileFromQuarantine(const char* const filename); | |||||
// -------------------------------------------------------------------------------------------------------------------- | // -------------------------------------------------------------------------------------------------------------------- | ||||
// and now then private stuff | |||||
CARLA_BACKEND_START_NAMESPACE | |||||
/* | /* | ||||
* ... | * ... | ||||