Allow to link against system dependencies
Signed-off-by: falkTX <falktx@falktx.com>
This commit is contained in:
parent
28bcac708f
commit
6675a1e81d
4 changed files with 46 additions and 11 deletions
24
Makefile
24
Makefile
|
@ -18,12 +18,22 @@ SYSDEPS ?= false
|
|||
# --------------------------------------------------------------
|
||||
# Check for system-wide dependencies
|
||||
|
||||
# HAVE_LIBARCHIVE = $(shell pkg-config --exists libarchive && echo true)
|
||||
#
|
||||
# libjansson.a
|
||||
# libsamplerate.a
|
||||
# libspeexdsp.a
|
||||
# libzstd.a
|
||||
ifeq ($(SYSDEPS),true)
|
||||
|
||||
ifneq ($(shell pkg-config --exists jansson && echo true),true)
|
||||
$(error jansson dpendency not installed/available)
|
||||
endif
|
||||
ifneq ($(shell pkg-config --exists libarchive && echo true),true)
|
||||
$(error libarchive dpendency not installed/available)
|
||||
endif
|
||||
ifneq ($(shell pkg-config --exists samplerate && echo true),true)
|
||||
$(error samplerate dpendency not installed/available)
|
||||
endif
|
||||
ifneq ($(shell pkg-config --exists speexdsp && echo true),true)
|
||||
$(error speexdsp dpendency not installed/available)
|
||||
endif
|
||||
|
||||
endif
|
||||
|
||||
# --------------------------------------------------------------
|
||||
|
||||
|
@ -31,7 +41,9 @@ cardinal: deps dgl plugins
|
|||
$(MAKE) all -C src
|
||||
|
||||
deps:
|
||||
ifneq ($(SYSDEPS),true)
|
||||
$(MAKE) all -C deps
|
||||
endif
|
||||
|
||||
dgl:
|
||||
$(MAKE) USE_NANOVG_FBO=true USE_RGBA=true -C dpf/dgl opengl
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue