1
0
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:
Tomasz Maciej Nowak 2023-02-18 16:45:08 +01:00
parent 7b41b9b45a
commit 65017da5ac

View File

@ -159,29 +159,27 @@ endif
ifeq ($(LIBPLACEBO_GL),1)
CONFIG += -DPLACEBO_GL -DPLACEBO
LIBS += -lepoxy
LIBS += -lplacebo
LIBS += $(shell pkg-config --libs epoxy libplacebo)
else
LIBS += -lEGL
LIBS += $(shell pkg-config --libs egl)
endif
ifeq ($(LIBPLACEBO),1)
CONFIG += -DPLACEBO
LIBS += -lEGL
LIBS += -lplacebo
LIBS += $(shell pkg-config --libs egl libplacebo)
endif
ifeq ($(DRM),1)
PLUGIN = softhddrm
CONFIG += -DUSE_DRM -DVAAPI
_CFLAGS += $(shell pkg-config --cflags libdrm)
LIBS += -lgbm -ldrm -lEGL
LIBS += $(shell pkg-config --libs egl gbm libdrm)
endif
ifeq ($(CUVID),1)
#CONFIG += -DUSE_PIP # PIP support
CONFIG += -DCUVID # enable CUVID decoder
LIBS += -lEGL -lGL
LIBS += $(shell pkg-config --libs egl gl)
ifeq ($(YADIF),1)
CONFIG += -DYADIF # Yadif only with CUVID
endif
@ -273,7 +271,7 @@ ifeq ($(CUVID),1)
LIBS += -lcuda -lnvcuvid
endif
LIBS += -lGLEW -lGLU -ldl -lglut
LIBS += -ldl $(shell pkg-config --libs glew glu glut)
### Includes and Defines (add further entries here):