tests: Use pkg-config to find setbacklight CFLAGS and libs

setbacklight depends on udev and drm, one cannot just add the -l flags
if you want to support unusual install paths.
This commit is contained in:
Damien Lespiau
2012-07-25 14:51:09 +01:00
committed by Kristian Høgsberg
parent e302b3ef77
commit ea40bf88bc
2 changed files with 3 additions and 1 deletions
+2 -1
View File
@@ -35,6 +35,7 @@ setbacklight_SOURCES = \
$(top_srcdir)/src/libbacklight.c \
$(top_srcdir)/src/libbacklight.h
setbacklight_LDADD = -ludev -ldrm
setbacklight_CFLAGS = $(AM_CFLAGS) $(SETBACKLIGHT_CFLAGS)
setbacklight_LDADD = $(SETBACKLIGHT_LIBS)
EXTRA_DIST = weston-test