mirror of
https://github.com/jojo61/vdr-plugin-softhdcuvid.git
synced 2023-10-10 13:37:41 +02:00
Provide linked libs by querying pkg-config
This commit is contained in:
parent
7b41b9b45a
commit
65017da5ac
14
Makefile
14
Makefile
@ -159,29 +159,27 @@ endif
|
|||||||
|
|
||||||
ifeq ($(LIBPLACEBO_GL),1)
|
ifeq ($(LIBPLACEBO_GL),1)
|
||||||
CONFIG += -DPLACEBO_GL -DPLACEBO
|
CONFIG += -DPLACEBO_GL -DPLACEBO
|
||||||
LIBS += -lepoxy
|
LIBS += $(shell pkg-config --libs epoxy libplacebo)
|
||||||
LIBS += -lplacebo
|
|
||||||
else
|
else
|
||||||
LIBS += -lEGL
|
LIBS += $(shell pkg-config --libs egl)
|
||||||
endif
|
endif
|
||||||
|
|
||||||
ifeq ($(LIBPLACEBO),1)
|
ifeq ($(LIBPLACEBO),1)
|
||||||
CONFIG += -DPLACEBO
|
CONFIG += -DPLACEBO
|
||||||
LIBS += -lEGL
|
LIBS += $(shell pkg-config --libs egl libplacebo)
|
||||||
LIBS += -lplacebo
|
|
||||||
endif
|
endif
|
||||||
|
|
||||||
ifeq ($(DRM),1)
|
ifeq ($(DRM),1)
|
||||||
PLUGIN = softhddrm
|
PLUGIN = softhddrm
|
||||||
CONFIG += -DUSE_DRM -DVAAPI
|
CONFIG += -DUSE_DRM -DVAAPI
|
||||||
_CFLAGS += $(shell pkg-config --cflags libdrm)
|
_CFLAGS += $(shell pkg-config --cflags libdrm)
|
||||||
LIBS += -lgbm -ldrm -lEGL
|
LIBS += $(shell pkg-config --libs egl gbm libdrm)
|
||||||
endif
|
endif
|
||||||
|
|
||||||
ifeq ($(CUVID),1)
|
ifeq ($(CUVID),1)
|
||||||
#CONFIG += -DUSE_PIP # PIP support
|
#CONFIG += -DUSE_PIP # PIP support
|
||||||
CONFIG += -DCUVID # enable CUVID decoder
|
CONFIG += -DCUVID # enable CUVID decoder
|
||||||
LIBS += -lEGL -lGL
|
LIBS += $(shell pkg-config --libs egl gl)
|
||||||
ifeq ($(YADIF),1)
|
ifeq ($(YADIF),1)
|
||||||
CONFIG += -DYADIF # Yadif only with CUVID
|
CONFIG += -DYADIF # Yadif only with CUVID
|
||||||
endif
|
endif
|
||||||
@ -273,7 +271,7 @@ ifeq ($(CUVID),1)
|
|||||||
LIBS += -lcuda -lnvcuvid
|
LIBS += -lcuda -lnvcuvid
|
||||||
endif
|
endif
|
||||||
|
|
||||||
LIBS += -lGLEW -lGLU -ldl -lglut
|
LIBS += -ldl $(shell pkg-config --libs glew glu glut)
|
||||||
|
|
||||||
### Includes and Defines (add further entries here):
|
### Includes and Defines (add further entries here):
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user