Browse Source

Dont use simd for wasm just yet, fix missing APP_EXT usage

Signed-off-by: falkTX <falktx@falktx.com>
tags/v2.5.0
falkTX 2 years ago
parent
commit
71cbec159f
Signed by: falkTX <falktx@falktx.com> GPG Key ID: CDBAA37ABC74FBA0
4 changed files with 28 additions and 26 deletions
  1. +3
    -3
      source/Makefile.mk
  2. +1
    -1
      source/bridges-plugin/Makefile
  3. +21
    -21
      source/bridges-ui/Makefile
  4. +3
    -1
      source/modules/audio_decoder/ad_minimp3.c

+ 3
- 3
source/Makefile.mk View File

@@ -26,11 +26,11 @@ BASE_FLAGS = -Wall -Wextra -pipe -DBUILDING_CARLA -DREAL_BUILD -MD -MP -fno-comm
BASE_OPTS = -O3 -ffast-math -fdata-sections -ffunction-sections BASE_OPTS = -O3 -ffast-math -fdata-sections -ffunction-sections


ifeq ($(CPU_I386_OR_X86_64),true) ifeq ($(CPU_I386_OR_X86_64),true)
BASE_OPTS += -mtune=generic -msse -msse2
BASE_OPTS += -mtune=generic
ifeq ($(WASM),true) ifeq ($(WASM),true)
BASE_OPTS += -msse3 -msimd128
# BASE_OPTS += -msse -msse2 -msse3 -msimd128
else else
BASE_OPTS += -mfpmath=sse
BASE_OPTS += -msse -msse2 -mfpmath=sse
endif endif
endif endif




+ 1
- 1
source/bridges-plugin/Makefile View File

@@ -260,7 +260,7 @@ all: native


clean: clean:
rm -f $(OBJDIR)/*.o rm -f $(OBJDIR)/*.o
rm -f $(BINDIR)/$(MODULENAME)-native
rm -f $(BINDIR)/$(MODULENAME)-native$(APP_EXT)
rm -f $(BINDIR)/$(MODULENAME)-posix32 rm -f $(BINDIR)/$(MODULENAME)-posix32
rm -f $(BINDIR)/$(MODULENAME)-posix64 rm -f $(BINDIR)/$(MODULENAME)-posix64
rm -f $(BINDIR)/$(MODULENAME)-win*.exe rm -f $(BINDIR)/$(MODULENAME)-win*.exe


+ 21
- 21
source/bridges-ui/Makefile View File

@@ -114,13 +114,13 @@ doxygen: carla_bridge.doxygen


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


ui_lv2-gtk2: $(BINDIR)/$(MODULENAME)-lv2-gtk2
ui_lv2-gtk3: $(BINDIR)/$(MODULENAME)-lv2-gtk3
ui_lv2-qt4: $(BINDIR)/$(MODULENAME)-lv2-qt4
ui_lv2-qt5: $(BINDIR)/$(MODULENAME)-lv2-qt5
ui_lv2-x11: $(BINDIR)/$(MODULENAME)-lv2-x11
ui_lv2-cocoa: $(BINDIR)/$(MODULENAME)-lv2-cocoa
ui_lv2-windows: $(BINDIR)/$(MODULENAME)-lv2-windows.exe
ui_lv2-gtk2: $(BINDIR)/$(MODULENAME)-lv2-gtk2$(APP_EXT)
ui_lv2-gtk3: $(BINDIR)/$(MODULENAME)-lv2-gtk3$(APP_EXT)
ui_lv2-qt4: $(BINDIR)/$(MODULENAME)-lv2-qt4$(APP_EXT)
ui_lv2-qt5: $(BINDIR)/$(MODULENAME)-lv2-qt5$(APP_EXT)
ui_lv2-x11: $(BINDIR)/$(MODULENAME)-lv2-x11$(APP_EXT)
ui_lv2-cocoa: $(BINDIR)/$(MODULENAME)-lv2-cocoa$(APP_EXT)
ui_lv2-windows: $(BINDIR)/$(MODULENAME)-lv2-windows$(APP_EXT)


# --------------------------------------------------------------------------------------------------------------------- # ---------------------------------------------------------------------------------------------------------------------
# Common libs # Common libs
@@ -145,9 +145,9 @@ OBJS_GTK2 = \
$(OBJDIR)/CarlaBridgeFormatLV2.cpp-gtk2.o \ $(OBJDIR)/CarlaBridgeFormatLV2.cpp-gtk2.o \
$(OBJDIR)/CarlaBridgeToolkitGtk.cpp-gtk2.o $(OBJDIR)/CarlaBridgeToolkitGtk.cpp-gtk2.o


$(BINDIR)/$(MODULENAME)-lv2-gtk2: $(OBJS_GTK2) $(LIBS)
$(BINDIR)/$(MODULENAME)-lv2-gtk2$(APP_EXT): $(OBJS_GTK2) $(LIBS)
-@mkdir -p $(BINDIR) -@mkdir -p $(BINDIR)
@echo "Linking $(MODULENAME)-lv2-gtk2"
@echo "Linking $(MODULENAME)-lv2-gtk2$(APP_EXT)"
$(SILENT)$(CXX) $(OBJS_GTK2) $(BUILD_CXX_FLAGS) $(LIBS_START) $(LIBS) $(LIBS_END) $(LINK_GTK2_FLAGS) -o $@ $(SILENT)$(CXX) $(OBJS_GTK2) $(BUILD_CXX_FLAGS) $(LIBS_START) $(LIBS) $(LIBS_END) $(LINK_GTK2_FLAGS) -o $@


$(OBJDIR)/%.cpp-gtk2.o: %.cpp $(OBJDIR)/%.cpp-gtk2.o: %.cpp
@@ -165,9 +165,9 @@ OBJS_GTK3 = \
$(OBJDIR)/CarlaBridgeFormatLV2.cpp-gtk3.o \ $(OBJDIR)/CarlaBridgeFormatLV2.cpp-gtk3.o \
$(OBJDIR)/CarlaBridgeToolkitGtk.cpp-gtk3.o $(OBJDIR)/CarlaBridgeToolkitGtk.cpp-gtk3.o


$(BINDIR)/$(MODULENAME)-lv2-gtk3: $(OBJS_GTK3) $(LIBS)
$(BINDIR)/$(MODULENAME)-lv2-gtk3$(APP_EXT): $(OBJS_GTK3) $(LIBS)
-@mkdir -p $(BINDIR) -@mkdir -p $(BINDIR)
@echo "Linking $(MODULENAME)-lv2-gtk3"
@echo "Linking $(MODULENAME)-lv2-gtk3$(APP_EXT)"
$(SILENT)$(CXX) $(OBJS_GTK3) $(BUILD_CXX_FLAGS) $(LIBS_START) $(LIBS) $(LIBS_END) $(LINK_GTK3_FLAGS) -o $@ $(SILENT)$(CXX) $(OBJS_GTK3) $(BUILD_CXX_FLAGS) $(LIBS_START) $(LIBS) $(LIBS_END) $(LINK_GTK3_FLAGS) -o $@


$(OBJDIR)/%.cpp-gtk3.o: %.cpp $(OBJDIR)/%.cpp-gtk3.o: %.cpp
@@ -185,9 +185,9 @@ OBJS_QT4 = \
$(OBJDIR)/CarlaBridgeFormatLV2.cpp-qt4.o \ $(OBJDIR)/CarlaBridgeFormatLV2.cpp-qt4.o \
$(OBJDIR)/CarlaBridgeToolkitQt.cpp-qt4.o $(OBJDIR)/CarlaBridgeToolkitQt.cpp-qt4.o


$(BINDIR)/$(MODULENAME)-lv2-qt4: $(OBJS_QT4) $(LIBS) $(MODULEDIR)/theme.qt4.a
$(BINDIR)/$(MODULENAME)-lv2-qt4$(APP_EXT): $(OBJS_QT4) $(LIBS) $(MODULEDIR)/theme.qt4.a
-@mkdir -p $(BINDIR) -@mkdir -p $(BINDIR)
@echo "Linking $(MODULENAME)-lv2-qt4"
@echo "Linking $(MODULENAME)-lv2-qt4$(APP_EXT)"
$(SILENT)$(CXX) $(OBJS_QT4) $(BUILD_CXX_FLAGS) $(LIBS_START) $(LIBS) $(LIBS_END) $(MODULEDIR)/theme.qt4.a $(LINK_QT4_FLAGS) -o $@ $(SILENT)$(CXX) $(OBJS_QT4) $(BUILD_CXX_FLAGS) $(LIBS_START) $(LIBS) $(LIBS_END) $(MODULEDIR)/theme.qt4.a $(LINK_QT4_FLAGS) -o $@


$(OBJDIR)/%.cpp-qt4.o: %.cpp $(OBJDIR)/CarlaBridgeToolkitQt4.moc $(OBJDIR)/resources.qt4.cpp $(OBJDIR)/%.cpp-qt4.o: %.cpp $(OBJDIR)/CarlaBridgeToolkitQt4.moc $(OBJDIR)/resources.qt4.cpp
@@ -215,9 +215,9 @@ OBJS_QT5 = \
$(OBJDIR)/CarlaBridgeFormatLV2.cpp-qt5.o \ $(OBJDIR)/CarlaBridgeFormatLV2.cpp-qt5.o \
$(OBJDIR)/CarlaBridgeToolkitQt.cpp-qt5.o $(OBJDIR)/CarlaBridgeToolkitQt.cpp-qt5.o


$(BINDIR)/$(MODULENAME)-lv2-qt5: $(OBJS_QT5) $(LIBS) $(MODULEDIR)/theme.qt5.a
$(BINDIR)/$(MODULENAME)-lv2-qt5$(APP_EXT): $(OBJS_QT5) $(LIBS) $(MODULEDIR)/theme.qt5.a
-@mkdir -p $(BINDIR) -@mkdir -p $(BINDIR)
@echo "Linking $(MODULENAME)-lv2-qt5"
@echo "Linking $(MODULENAME)-lv2-qt5$(APP_EXT)"
$(SILENT)$(CXX) $(OBJS_QT5) $(BUILD_CXX_FLAGS) $(LIBS_START) $(LIBS) $(LIBS_END) $(MODULEDIR)/theme.qt5.a $(LINK_QT5_FLAGS) -o $@ $(SILENT)$(CXX) $(OBJS_QT5) $(BUILD_CXX_FLAGS) $(LIBS_START) $(LIBS) $(LIBS_END) $(MODULEDIR)/theme.qt5.a $(LINK_QT5_FLAGS) -o $@


$(OBJDIR)/%.cpp-qt5.o: %.cpp $(OBJDIR)/CarlaBridgeToolkitQt5.moc $(OBJDIR)/resources.qt5.cpp $(OBJDIR)/%.cpp-qt5.o: %.cpp $(OBJDIR)/CarlaBridgeToolkitQt5.moc $(OBJDIR)/resources.qt5.cpp
@@ -245,9 +245,9 @@ OBJS_X11 = \
$(OBJDIR)/CarlaBridgeFormatLV2.cpp-x11.o \ $(OBJDIR)/CarlaBridgeFormatLV2.cpp-x11.o \
$(OBJDIR)/CarlaBridgeToolkitNative.cpp-x11.o $(OBJDIR)/CarlaBridgeToolkitNative.cpp-x11.o


$(BINDIR)/$(MODULENAME)-lv2-x11: $(OBJS_X11) $(LIBS)
$(BINDIR)/$(MODULENAME)-lv2-x11$(APP_EXT): $(OBJS_X11) $(LIBS)
-@mkdir -p $(BINDIR) -@mkdir -p $(BINDIR)
@echo "Linking $(MODULENAME)-lv2-x11"
@echo "Linking $(MODULENAME)-lv2-x11$(APP_EXT)"
$(SILENT)$(CXX) $(OBJS_X11) $(BUILD_CXX_FLAGS) $(LIBS_START) $(LIBS) $(LIBS_END) $(LINK_X11_FLAGS) -o $@ $(SILENT)$(CXX) $(OBJS_X11) $(BUILD_CXX_FLAGS) $(LIBS_START) $(LIBS) $(LIBS_END) $(LINK_X11_FLAGS) -o $@


$(OBJDIR)/%.cpp-x11.o: %.cpp $(OBJDIR)/%.cpp-x11.o: %.cpp
@@ -265,9 +265,9 @@ OBJS_COCOA = \
$(OBJDIR)/CarlaBridgeFormatLV2.cpp-cocoa.o \ $(OBJDIR)/CarlaBridgeFormatLV2.cpp-cocoa.o \
$(OBJDIR)/CarlaBridgeToolkitNative.cpp-cocoa.o $(OBJDIR)/CarlaBridgeToolkitNative.cpp-cocoa.o


$(BINDIR)/$(MODULENAME)-lv2-cocoa: $(OBJS_COCOA) $(LIBS)
$(BINDIR)/$(MODULENAME)-lv2-cocoa$(APP_EXT): $(OBJS_COCOA) $(LIBS)
-@mkdir -p $(BINDIR) -@mkdir -p $(BINDIR)
@echo "Linking $(MODULENAME)-lv2-cocoa"
@echo "Linking $(MODULENAME)-lv2-cocoa$(APP_EXT)"
$(SILENT)$(CXX) $(OBJS_COCOA) $(BUILD_CXX_FLAGS) $(LIBS_START) $(LIBS) $(LIBS_END) $(LINK_COCOA_FLAGS) -o $@ $(SILENT)$(CXX) $(OBJS_COCOA) $(BUILD_CXX_FLAGS) $(LIBS_START) $(LIBS) $(LIBS_END) $(LINK_COCOA_FLAGS) -o $@


$(OBJDIR)/%.cpp-cocoa.o: %.cpp $(OBJDIR)/%.cpp-cocoa.o: %.cpp
@@ -285,9 +285,9 @@ OBJS_WINDOWS = \
$(OBJDIR)/CarlaBridgeFormatLV2.cpp-windows.o \ $(OBJDIR)/CarlaBridgeFormatLV2.cpp-windows.o \
$(OBJDIR)/CarlaBridgeToolkitNative.cpp-windows.o $(OBJDIR)/CarlaBridgeToolkitNative.cpp-windows.o


$(BINDIR)/$(MODULENAME)-lv2-windows.exe: $(OBJS_WINDOWS) $(LIBS)
$(BINDIR)/$(MODULENAME)-lv2-windows$(APP_EXT): $(OBJS_WINDOWS) $(LIBS)
-@mkdir -p $(BINDIR) -@mkdir -p $(BINDIR)
@echo "Linking $(MODULENAME)-lv2-windows.exe"
@echo "Linking $(MODULENAME)-lv2-windows$(APP_EXT)"
$(SILENT)$(CXX) $(OBJS_WINDOWS) $(BUILD_CXX_FLAGS) $(LIBS_START) $(LIBS) $(LIBS_END) $(LINK_WINDOWS_FLAGS) -o $@ $(SILENT)$(CXX) $(OBJS_WINDOWS) $(BUILD_CXX_FLAGS) $(LIBS_START) $(LIBS) $(LIBS_END) $(LINK_WINDOWS_FLAGS) -o $@


$(OBJDIR)/%.cpp-windows.o: %.cpp $(OBJDIR)/%.cpp-windows.o: %.cpp


+ 3
- 1
source/modules/audio_decoder/ad_minimp3.c View File

@@ -27,7 +27,9 @@


// disable SIMD for macos-old builds // disable SIMD for macos-old builds
#include "CarlaDefines.h" #include "CarlaDefines.h"
#if defined(CARLA_OS_MAC) && !defined(CARLA_PROPER_CPP11_SUPPORT)
#if defined(CARLA_OS_WASM)
# define MINIMP3_NO_SIMD
#elif defined(CARLA_OS_MAC) && !defined(CARLA_PROPER_CPP11_SUPPORT)
# define MINIMP3_NO_SIMD # define MINIMP3_NO_SIMD
#endif #endif




Loading…
Cancel
Save