Browse Source

Adjust makefile for hylia (link) support

tags/1.9.7b
falkTX 7 years ago
parent
commit
5395b339a9
3 changed files with 86 additions and 15 deletions
  1. +20
    -11
      Makefile
  2. +17
    -4
      source/Makefile.mk
  3. +49
    -0
      source/modules/hylia/Makefile

+ 20
- 11
Makefile View File

@@ -65,6 +65,10 @@ ifeq ($(HAVE_DGL),true)
ALL_LIBS += $(MODULEDIR)/dgl.a
endif

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

ifeq ($(MACOS_OR_WIN32),true)
ALL_LIBS += $(MODULEDIR)/juce_audio_devices.a
ALL_LIBS += $(MODULEDIR)/juce_audio_processors.a
@@ -819,30 +823,35 @@ endif
features:
@echo "$(tS)---> Main features $(tE)"
ifeq ($(HAVE_PYQT),true)
@echo "Front-End: $(ANS_YES)(Using $(FEV))"
@echo "Front-End: $(ANS_YES)(Using $(FEV))"
ifneq ($(WIN32),true)
@echo "LV2 plugin: $(ANS_YES)"
@echo "LV2 plugin: $(ANS_YES)"
else
@echo "LV2 plugin: $(ANS_NO) $(mZ)Not available for Windows$(mE)"
@echo "LV2 plugin: $(ANS_NO) $(mZ)Not available for Windows$(mE)"
endif
ifeq ($(LINUX),true)
ifeq ($(HAVE_X11),true)
@echo "VST plugin: $(ANS_YES)"
@echo "VST plugin: $(ANS_YES)"
else # HAVE_X11
@echo "VST plugin: $(ANS_NO) $(mS)X11 missing$(mE)"
@echo "VST plugin: $(ANS_NO) $(mS)X11 missing$(mE)"
endif
else # LINUX
@echo "VST plugin: $(ANS_NO) $(mZ)Linux only$(mE)"
@echo "VST plugin: $(ANS_NO) $(mZ)Linux only$(mE)"
endif
else
@echo "Front-End: $(ANS_NO) $(mS)Missing PyQt$(mE)"
@echo "LV2 plugin: $(ANS_NO) $(mS)No front-end$(mE)"
@echo "VST plugin: $(ANS_NO) $(mS)No front-end$(mE)"
endif
ifeq ($(HAVE_HYLIA),true)
@echo "Link support:$(ANS_YES)"
else
@echo "Front-End: $(ANS_NO) $(mS)Missing PyQt$(mE)"
@echo "LV2 plugin: $(ANS_NO) $(mS)No front-end$(mE)"
@echo "VST plugin: $(ANS_NO) $(mS)No front-end$(mE)"
@echo "Link support:$(ANS_NO) $(mZ)Linux, MacOS and Windows only$(mE)"
endif
ifeq ($(HAVE_LIBLO),true)
@echo "OSC support:$(ANS_YES)"
@echo "OSC support: $(ANS_YES)"
else
@echo "OSC support:$(ANS_NO) $(mS)Missing liblo$(mE)"
@echo "OSC support: $(ANS_NO) $(mS)Missing liblo$(mE)"
endif
@echo ""



+ 17
- 4
source/Makefile.mk View File

@@ -166,12 +166,14 @@ endif

ifeq ($(MACOS_OR_WIN32),true)
HAVE_DGL = true
HAVE_HYLIA = true
else
HAVE_GTK2 = $(shell pkg-config --exists gtk+-2.0 && echo true)
HAVE_GTK3 = $(shell pkg-config --exists gtk+-3.0 && echo true)
ifeq ($(LINUX),true)
HAVE_ALSA = $(shell pkg-config --exists alsa && echo true)
HAVE_DGL = $(shell pkg-config --exists gl x11 && echo true)
HAVE_HYLIA = true
HAVE_NTK = $(shell pkg-config --exists ntk ntk_images && echo true)
HAVE_PULSEAUDIO = $(shell pkg-config --exists libpulse-simple && echo true)
HAVE_X11 = $(shell pkg-config --exists x11 && echo true)
@@ -286,6 +288,14 @@ ifeq ($(HAVE_DGL),true)
BASE_FLAGS += -DHAVE_DGL
endif

ifeq ($(HAVE_FLUIDSYNTH),true)
BASE_FLAGS += -DHAVE_FLUIDSYNTH
endif

ifeq ($(HAVE_HYLIA),true)
BASE_FLAGS += -DHAVE_HYLIA
endif

ifeq ($(HAVE_LIBLO),true)
BASE_FLAGS += -DHAVE_LIBLO
endif
@@ -294,10 +304,6 @@ ifeq ($(HAVE_LIBMAGIC),true)
BASE_FLAGS += -DHAVE_LIBMAGIC
endif

ifeq ($(HAVE_FLUIDSYNTH),true)
BASE_FLAGS += -DHAVE_FLUIDSYNTH
endif

ifeq ($(HAVE_LINUXSAMPLER),true)
BASE_FLAGS += -DHAVE_LINUXSAMPLER
endif
@@ -359,7 +365,12 @@ ifneq ($(HAIKU),true)
RTMEMPOOL_LIBS = -lpthread
endif

ifeq ($(UNIX),true)
HYLIA_FLAGS +=
endif

ifeq ($(LINUX),true)
HYLIA_FLAGS = -DLINK_PLATFORM_UNIX=1 -DLINK_PLATFORM_LINUX=1
JACKBRIDGE_LIBS = -ldl -lpthread -lrt
JUCE_CORE_LIBS = -ldl -lpthread -lrt
LILV_LIBS = -ldl -lm -lrt
@@ -381,6 +392,7 @@ endif

ifeq ($(MACOS),true)
DGL_LIBS = -framework OpenGL -framework Cocoa
HYLIA_FLAGS = -DLINK_PLATFORM_UNIX=1 -DLINK_PLATFORM_MACOSX=1
JACKBRIDGE_LIBS = -ldl -lpthread
JUCE_AUDIO_BASICS_LIBS = -framework Accelerate
JUCE_AUDIO_DEVICES_LIBS = -framework AppKit -framework AudioToolbox -framework CoreAudio -framework CoreMIDI
@@ -396,6 +408,7 @@ endif

ifeq ($(WIN32),true)
DGL_LIBS = -lopengl32 -lgdi32
HYLIA_FLAGS = -DLINK_PLATFORM_WINDOWS=1
JACKBRIDGE_LIBS = -lpthread
JUCE_AUDIO_DEVICES_LIBS = -lwinmm -lole32
JUCE_CORE_LIBS = -luuid -lwsock32 -lwininet -lversion -lole32 -lws2_32 -loleaut32 -limm32 -lcomdlg32 -lshlwapi -lrpcrt4 -lwinmm


+ 49
- 0
source/modules/hylia/Makefile View File

@@ -0,0 +1,49 @@
#!/usr/bin/make -f
# Makefile for hylia #
# ------------------ #
# Created by falkTX
#

CWD=../..
MODULENAME=hylia
include ../Makefile.mk

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

BUILD_CXX_FLAGS += $(HYLIA_FLAGS) -I$(CWD) -Ilink
BUILD_CXX_FLAGS += -Wno-multichar -Wno-unused-variable -Wno-uninitialized -Wno-missing-field-initializers

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

OBJS = $(OBJDIR)/hylia.cpp.o

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

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

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

clean:
rm -f $(OBJDIR)/*.o $(MODULEDIR)/$(MODULENAME)*.a

debug:
$(MAKE) DEBUG=true

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

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

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

$(OBJDIR)/%.cpp.o: %.cpp
-@mkdir -p $(OBJDIR)
@echo "Compiling $<"
@$(CXX) $< $(BUILD_CXX_FLAGS) -c -o $@

-include $(OBJS:%.o=%.d)

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

Loading…
Cancel
Save