Browse Source

More USING_RTAUDIO setup, build jackbridge.min.a

Signed-off-by: falkTX <falktx@falktx.com>
tags/v2.4.1
parent
commit
93cbcaf9cb
4 changed files with 25 additions and 8 deletions
  1. +1
    -1
      Makefile
  2. +4
    -0
      source/Makefile.mk
  3. +12
    -6
      source/backend/engine/CarlaEngine.cpp
  4. +8
    -1
      source/jackbridge/Makefile

+ 1
- 1
Makefile View File

@@ -78,7 +78,7 @@ ifeq ($(USING_JUCE_GUI_EXTRA),true)
endif
endif

ifneq ($(USING_JUCE_AUDIO_DEVICES),true)
ifeq ($(USING_RTAUDIO),true)
3RD_LIBS += $(MODULEDIR)/rtaudio.a
3RD_LIBS += $(MODULEDIR)/rtmidi.a
endif


+ 4
- 0
source/Makefile.mk View File

@@ -218,6 +218,10 @@ ifeq ($(USING_JUCE_GUI_EXTRA),true)
BASE_FLAGS += -DUSING_JUCE_GUI_EXTRA
endif

ifeq ($(USING_RTAUDIO),true)
BASE_FLAGS += -DUSING_RTAUDIO
endif

# ---------------------------------------------------------------------------------------------------------------------
# Set app extension



+ 12
- 6
source/backend/engine/CarlaEngine.cpp View File

@@ -101,7 +101,8 @@ uint CarlaEngine::getDriverCount()
#ifndef BUILD_BRIDGE
# ifdef USING_JUCE_AUDIO_DEVICES
count += getJuceApiCount();
# else
# endif
# ifdef USING_RTAUDIO
count += getRtAudioApiCount();
# endif
#endif
@@ -127,7 +128,8 @@ const char* CarlaEngine::getDriverName(const uint index2)
return getJuceApiName(index);
index -= count;
}
# else
# endif
# ifdef USING_RTAUDIO
if (const uint count = getRtAudioApiCount())
{
if (index < count)
@@ -161,7 +163,8 @@ const char* const* CarlaEngine::getDriverDeviceNames(const uint index2)
return getJuceApiDeviceNames(index);
index -= count;
}
# else
# endif
# ifdef USING_RTAUDIO
if (const uint count = getRtAudioApiCount())
{
if (index < count)
@@ -198,7 +201,8 @@ const EngineDriverDeviceInfo* CarlaEngine::getDriverDeviceInfo(const uint index2
return getJuceDeviceInfo(index, deviceName);
index -= count;
}
# else
# endif
# ifdef USING_RTAUDIO
if (const uint count = getRtAudioApiCount())
{
if (index < count)
@@ -231,7 +235,8 @@ bool CarlaEngine::showDriverDeviceControlPanel(const uint index2, const char* co
return showJuceDeviceControlPanel(index, deviceName);
index -= count;
}
# else
# endif
# ifdef USING_RTAUDIO
if (const uint count = getRtAudioApiCount())
{
if (index < count)
@@ -281,7 +286,8 @@ CarlaEngine* CarlaEngine::newDriverByName(const char* const driverName)
return newJuce(AUDIO_API_DIRECTSOUND);
if (std::strcmp(driverName, "WASAPI") == 0 || std::strcmp(driverName, "Windows Audio") == 0)
return newJuce(AUDIO_API_WASAPI);
# else
# endif
# ifdef USING_RTAUDIO
// -------------------------------------------------------------------
// common



+ 8
- 1
source/jackbridge/Makefile View File

@@ -54,6 +54,7 @@ endif
# ---------------------------------------------------------------------------------------------------------------------

OBJS = $(OBJDIR)/JackBridge1.cpp.o $(OBJDIR)/JackBridge2.cpp.o
OBJS_min = $(OBJDIR)/JackBridge2.cpp.o
OBJS_arm32 = $(OBJDIR)/JackBridge1.cpp.arm32.o $(OBJDIR)/JackBridge2.cpp.arm32.o
OBJS_posix32 = $(OBJDIR)/JackBridge1.cpp.posix32.o $(OBJDIR)/JackBridge2.cpp.posix32.o
OBJS_posix64 = $(OBJDIR)/JackBridge1.cpp.posix64.o $(OBJDIR)/JackBridge2.cpp.posix64.o
@@ -69,7 +70,7 @@ OBJS_win32e = $(OBJDIR)/JackBridgeExport.cpp.win32e.o

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

all: $(MODULEDIR)/$(MODULENAME).a
all: $(MODULEDIR)/$(MODULENAME).a $(MODULEDIR)/$(MODULENAME).min.a

ifeq ($(WIN32),true)
posix32:
@@ -112,6 +113,12 @@ $(MODULEDIR)/$(MODULENAME).a: $(OBJS)
@rm -f $@
@$(AR) crs $@ $^

$(MODULEDIR)/$(MODULENAME).min.a: $(OBJS_min)
-@mkdir -p $(MODULEDIR)
@echo "Creating $(MODULENAME).min.a"
@rm -f $@
@$(AR) crs $@ $^

$(MODULEDIR)/$(MODULENAME).arm32.a: $(OBJS_arm32)
-@mkdir -p $(MODULEDIR)
@echo "Creating $(MODULENAME).arm32.a"


Loading…
Cancel
Save