Browse Source

Always build DGL, even if not using external plugins

tags/v1.9.11
falkTX 6 years ago
parent
commit
3a270f573c
4 changed files with 39 additions and 13 deletions
  1. +4
    -0
      Makefile
  2. +32
    -10
      source/Makefile.mk
  3. +2
    -2
      source/native-plugins/Makefile
  4. +1
    -1
      source/native-plugins/external

+ 4
- 0
Makefile View File

@@ -62,6 +62,10 @@ ALL_LIBS += $(MODULEDIR)/rtmempool.a
ALL_LIBS += $(MODULEDIR)/sfzero.a
ALL_LIBS += $(MODULEDIR)/water.a

ifeq ($(HAVE_DGL),true)
ALL_LIBS += $(MODULEDIR)/dgl.a
endif

ifeq ($(HAVE_HYLIA),true)
ALL_LIBS += $(MODULEDIR)/hylia.a
endif


+ 32
- 10
source/Makefile.mk View File

@@ -202,7 +202,10 @@ HAVE_HYLIA = true
endif
endif

ifneq ($(MACOS_OR_WIN32),true)
ifeq ($(MACOS_OR_WIN32),true)
HAVE_DGL = true
else
HAVE_DGL = $(shell pkg-config --exists gl x11 && echo true)
HAVE_GTK2 = $(shell pkg-config --exists gtk+-2.0 && echo true)
HAVE_GTK3 = $(shell pkg-config --exists gtk+-3.0 && echo true)
HAVE_X11 = $(shell pkg-config --exists x11 && echo true)
@@ -307,8 +310,9 @@ endif
# ---------------------------------------------------------------------------------------------------------------------
# Set base defines

ifeq ($(HAVE_PYQT),true)
BASE_FLAGS += -DHAVE_PYQT
ifeq ($(HAVE_DGL),true)
BASE_FLAGS += -DHAVE_DGL
BASE_FLAGS += -DDGL_NAMESPACE=CarlaDGL -DDGL_FILE_BROWSER_DISABLED -DDGL_NO_SHARED_RESOURCES
endif

ifeq ($(HAVE_FLUIDSYNTH),true)
@@ -331,6 +335,10 @@ ifeq ($(HAVE_LIBMAGIC),true)
BASE_FLAGS += -DHAVE_LIBMAGIC
endif

ifeq ($(HAVE_PYQT),true)
BASE_FLAGS += -DHAVE_PYQT
endif

ifeq ($(HAVE_SNDFILE),true)
BASE_FLAGS += -DHAVE_SNDFILE
endif
@@ -346,11 +354,31 @@ ifeq ($(LINUX_OR_MACOS),true)
LIBDL_LIBS = -ldl
endif

ifeq ($(HAVE_DGL),true)
ifeq ($(MACOS),true)
DGL_LIBS = -framework OpenGL -framework Cocoa
endif
ifeq ($(WIN32),true)
DGL_LIBS = -lopengl32 -lgdi32
endif
ifneq ($(MACOS_OR_WIN32),true)
DGL_FLAGS = $(shell pkg-config --cflags gl x11)
DGL_LIBS = $(shell pkg-config --libs gl x11)
endif
endif

ifeq ($(HAVE_LIBLO),true)
LIBLO_FLAGS = $(shell pkg-config --cflags liblo)
LIBLO_LIBS = $(shell pkg-config --libs liblo)
endif

ifeq ($(HAVE_LIBMAGIC),true)
MAGIC_LIBS += -lmagic
ifeq ($(LINUX_OR_MACOS),true)
MAGIC_LIBS += -lz
endif
endif

ifeq ($(HAVE_FFMPEG),true)
FFMPEG_FLAGS = $(shell pkg-config --cflags libavcodec libavformat libavutil)
FFMPEG_LIBS = $(shell pkg-config --libs libavcodec libavformat libavutil)
@@ -371,13 +399,6 @@ X11_FLAGS = $(shell pkg-config --cflags x11)
X11_LIBS = $(shell pkg-config --libs x11)
endif

ifeq ($(HAVE_LIBMAGIC),true)
MAGIC_LIBS += -lmagic
ifeq ($(LINUX_OR_MACOS),true)
MAGIC_LIBS += -lz
endif
endif

# ---------------------------------------------------------------------------------------------------------------------
# Set libs stuff (part 2)

@@ -459,6 +480,7 @@ endif

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

NATIVE_PLUGINS_LIBS += $(DGL_LIBS)
NATIVE_PLUGINS_LIBS += $(FFMPEG_LIBS)
NATIVE_PLUGINS_LIBS += $(SNDFILE_LIBS)



+ 2
- 2
source/native-plugins/Makefile View File

@@ -53,8 +53,8 @@ OBJS_all = \
# ---------------------------------------------------------------------------------------------------------------------
# Include external plugins, if present

ifneq (,$(wildcard external/Makefile))
include external/Makefile
ifneq (,$(wildcard external/Makefile.mk2))
include external/Makefile.mk2
endif

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


+ 1
- 1
source/native-plugins/external

@@ -1 +1 @@
Subproject commit dbd7b4d5ef8ae0aa0aee9890a09971265a9557db
Subproject commit 5fccac046b09bba67900f675e0aea18ce3b09775

Loading…
Cancel
Save