@@ -15,22 +15,15 @@ PYRCC ?= pyrcc4 -py3 | |||||
# ------------------------------------------------------------------------------------------------------------------------------------- | # ------------------------------------------------------------------------------------------------------------------------------------- | ||||
HAVE_OPENGL = $(shell pkg-config --exists gl && echo true) | |||||
HAVE_QTCORE = $(shell pkg-config --exists QtCore && echo true) | |||||
ifneq ($(HAVE_OPENGL),true) | |||||
all: | |||||
@echo Error: Missing OpenGL or pkg-config, cannot build | |||||
@exit 1 | |||||
else | |||||
ifneq ($(HAVE_QTCORE),true) | |||||
all: | |||||
@echo Error: Missing QtCore, cannot build | |||||
@exit 1 | |||||
else | |||||
# HAVE_LIBS = $(shell pkg-config --exists freetype2 x11 && echo true) | |||||
# ifneq ($(HAVE_LIBS),true) | |||||
# all | |||||
# @echo Error Missing libraries or pkg-config, cannot build | |||||
# @exit 1 | |||||
# else | |||||
all: CPP RES UI WIDGETS | all: CPP RES UI WIDGETS | ||||
endif | |||||
endif | |||||
# endif | |||||
# ------------------------------------------------------------------------------------------------------------------------------------- | # ------------------------------------------------------------------------------------------------------------------------------------- | ||||
# C++ code | # C++ code | ||||
@@ -53,6 +53,7 @@ BUILD_CXX_FLAGS += -DVESTIGE_HEADER | |||||
# -------------------------------------------------------------- | # -------------------------------------------------------------- | ||||
HAVE_JACK = $(shell pkg-config --exists jack && echo true) | HAVE_JACK = $(shell pkg-config --exists jack && echo true) | ||||
HAVE_OPENGL = $(shell pkg-config --exists gl && echo true) | |||||
HAVE_AF_DEPS = $(shell pkg-config --exists libavcodec libavformat sndfile && echo true) | HAVE_AF_DEPS = $(shell pkg-config --exists libavcodec libavformat sndfile && echo true) | ||||
HAVE_ZYN_DEPS = $(shell pkg-config --exists fftw3 mxml zlib && echo true) | HAVE_ZYN_DEPS = $(shell pkg-config --exists fftw3 mxml zlib && echo true) | ||||
@@ -721,12 +721,6 @@ struct MidiProgramData { | |||||
: bank(0), | : bank(0), | ||||
program(0), | program(0), | ||||
name(nullptr) {} | name(nullptr) {} | ||||
~MidiProgramData() | |||||
{ | |||||
if (name != nullptr) | |||||
delete[] name; | |||||
} | |||||
}; | }; | ||||
/*! | /*! | ||||
@@ -74,11 +74,8 @@ carla-discovery-win64.exe: $(OBJS) $(LIBS_win64) | |||||
# -------------------------------------------------------------- | # -------------------------------------------------------------- | ||||
../libs/lilv.a: | |||||
$(MAKE) -C ../libs/lilv | |||||
../libs/lilv_%.a: | |||||
$(MAKE) -C ../libs/lilv $* | |||||
../libs/%: | |||||
$(MAKE) -C ../libs $* | |||||
# -------------------------------------------------------------- | # -------------------------------------------------------------- | ||||
@@ -1 +0,0 @@ | |||||
../libs/pugl/ |
@@ -18,7 +18,9 @@ | |||||
// still need qt classes check | // still need qt classes check | ||||
//#include "plugin/CarlaPluginInternal.hpp" | //#include "plugin/CarlaPluginInternal.hpp" | ||||
//#include "plugin/DssiPlugin.cpp" | //#include "plugin/DssiPlugin.cpp" | ||||
#include "../widgets/digitalpeakmeter.cpp" | |||||
//#include "../widgets/digitalpeakmeter.cpp" | |||||
#include "CarlaJuceHeader.hpp" | |||||
#if 0 | #if 0 | ||||
#include "CarlaDefines.hpp" | #include "CarlaDefines.hpp" | ||||
@@ -9,8 +9,9 @@ include ../Makefile.mk | |||||
# -------------------------------------------------------------- | # -------------------------------------------------------------- | ||||
BUILD_CXX_FLAGS += -I../backend -I../includes -I../libs -I../utils -Wall -Wextra | BUILD_CXX_FLAGS += -I../backend -I../includes -I../libs -I../utils -Wall -Wextra | ||||
BUILD_CXX_FLAGS += -DWANT_JACK -DWANT_LADSPA -DWANT_DSSI | |||||
BUILD_CXX_FLAGS += -isystem /usr/include/qt4 | |||||
BUILD_CXX_FLAGS += -isystem ../libs/juce | |||||
# BUILD_CXX_FLAGS += -DWANT_JACK -DWANT_LADSPA -DWANT_DSSI | |||||
# BUILD_CXX_FLAGS += -isystem /usr/include/qt4 | |||||
# BUILD_CXX_FLAGS += -isystem ../backend/engine/rtaudio-4.0.11 | # BUILD_CXX_FLAGS += -isystem ../backend/engine/rtaudio-4.0.11 | ||||
# BUILD_CXX_FLAGS += -I/opt/mingw32/include | # BUILD_CXX_FLAGS += -I/opt/mingw32/include | ||||