Browse Source

Misc fixing

tags/1.9.4
falkTX 10 years ago
parent
commit
ad05ed4d0a
2 changed files with 13 additions and 6 deletions
  1. +11
    -4
      source/Makefile.mk
  2. +2
    -2
      source/utils/CarlaThread.hpp

+ 11
- 4
source/Makefile.mk View File

@@ -62,7 +62,7 @@ CFLAGS += -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes
CXXFLAGS += -Wnon-virtual-dtor -Woverloaded-virtual CXXFLAGS += -Wnon-virtual-dtor -Woverloaded-virtual
ifeq ($(LINUX),true) ifeq ($(LINUX),true)
CFLAGS += -isystem /opt/kxstudio/include CFLAGS += -isystem /opt/kxstudio/include
CXXFLAGS += -isystem /opt/kxstudio/include -isystem /usr/include/qt4
CXXFLAGS += -isystem /opt/kxstudio/include -isystem /usr/include/qt5
endif endif
ifeq ($(MACOS),true) ifeq ($(MACOS),true)
CFLAGS += -isystem /opt/local/include/ CFLAGS += -isystem /opt/local/include/
@@ -70,7 +70,7 @@ CXXFLAGS += -isystem /opt/local/include/
endif endif
ifeq ($(WIN32),true) ifeq ($(WIN32),true)
CFLAGS += -isystem /opt/mingw32/include CFLAGS += -isystem /opt/mingw32/include
CXXFLAGS += -isystem /opt/mingw32/include -isystem /opt/mingw32/include/qt4
CXXFLAGS += -isystem /opt/mingw32/include -isystem /opt/mingw32/include/qt5
endif endif
endif endif


@@ -120,8 +120,8 @@ endif
# -------------------------------------------------------------- # --------------------------------------------------------------
# Check for qt, set default version (prefer qt4) # Check for qt, set default version (prefer qt4)


HAVE_QT4 = $(shell pkg-config --exists QtCore QtGui && echo true)
HAVE_QT5 = $(shell pkg-config --exists Qt5Core Qt5Gui Qt5Widgets && echo true)
HAVE_QT4 = $(shell pkg-config --exists QtCore QtGui Qt5Xml && echo true)
HAVE_QT5 = $(shell pkg-config --exists Qt5Core Qt5Gui Qt5Xml Qt5Widgets && echo true)


ifeq ($(HAVE_QT5),true) ifeq ($(HAVE_QT5),true)
DEFAULT_QT=5 DEFAULT_QT=5
@@ -239,10 +239,17 @@ endif
LIBLO_FLAGS = $(shell pkg-config --cflags liblo) LIBLO_FLAGS = $(shell pkg-config --cflags liblo)
LIBLO_LIBS = $(shell pkg-config --libs liblo) LIBLO_LIBS = $(shell pkg-config --libs liblo)


ifeq ($(DEFAULT_QT),5)
QTCORE_FLAGS = $(shell pkg-config --cflags Qt5Core)
QTCORE_LIBS = $(shell pkg-config --libs Qt5Core)
QTXML_FLAGS = $(shell pkg-config --cflags Qt5Xml)
QTXML_LIBS = $(shell pkg-config --libs Qt5Xml)
else
QTCORE_FLAGS = $(shell pkg-config --cflags QtCore) QTCORE_FLAGS = $(shell pkg-config --cflags QtCore)
QTCORE_LIBS = $(shell pkg-config --libs QtCore) QTCORE_LIBS = $(shell pkg-config --libs QtCore)
QTXML_FLAGS = $(shell pkg-config --cflags QtXml) QTXML_FLAGS = $(shell pkg-config --cflags QtXml)
QTXML_LIBS = $(shell pkg-config --libs QtXml) QTXML_LIBS = $(shell pkg-config --libs QtXml)
endif


ifeq ($(HAVE_CSOUND),true) ifeq ($(HAVE_CSOUND),true)
CSOUND_FLAGS = $(shell pkg-config --cflags sndfile) -DUSE_DOUBLE=1 CSOUND_FLAGS = $(shell pkg-config --cflags sndfile) -DUSE_DOUBLE=1


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

@@ -30,7 +30,7 @@ protected:
/* /*
* Constructor. * Constructor.
*/ */
CarlaThread(const char* const threadName = nullptr) noexcept
CarlaThread(const char* const threadName = nullptr) /*noexcept*/
: fName(threadName), : fName(threadName),
fShouldExit(false) fShouldExit(false)
{ {
@@ -40,7 +40,7 @@ protected:
/* /*
* Destructor. * Destructor.
*/ */
virtual ~CarlaThread() noexcept
virtual ~CarlaThread() /*noexcept*/
{ {
CARLA_SAFE_ASSERT(! isThreadRunning()); CARLA_SAFE_ASSERT(! isThreadRunning());




Loading…
Cancel
Save