Query pkg-config for libplacebo library location

The location of libplacebo could vary between systems, as it's
fast-changing library with very dynamic API. This could force having
various versions on the system for different applications. Use
pkg-config to provide location of targeted libplacebo version, by
providing custom PKG_CONFIG_PATH environmet variable.
This commit is contained in:
Tomasz Maciej Nowak 2023-02-18 16:59:45 +01:00
parent 65017da5ac
commit 4e96489e35
1 changed files with 2 additions and 0 deletions

View File

@ -159,6 +159,7 @@ endif
ifeq ($(LIBPLACEBO_GL),1)
CONFIG += -DPLACEBO_GL -DPLACEBO
_CFLAGS += $(shell pkg-config --cflags libplacebo)
LIBS += $(shell pkg-config --libs epoxy libplacebo)
else
LIBS += $(shell pkg-config --libs egl)
@ -166,6 +167,7 @@ endif
ifeq ($(LIBPLACEBO),1)
CONFIG += -DPLACEBO
_CFLAGS += $(shell pkg-config --cflags libplacebo)
LIBS += $(shell pkg-config --libs egl libplacebo)
endif