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.
Damien Lespiau 12 years ago committed by Kristian Høgsberg
parent e302b3ef77
commit ea40bf88bc
  1. 1
      configure.ac
  2. 3
      tests/Makefile.am

@ -224,6 +224,7 @@ fi
AC_CHECK_PROG(RSVG_CONVERT, rsvg-convert, rsvg-convert)
AM_CONDITIONAL(HAVE_RSVG_CONVERT, test -n "$RSVG_CONVERT")
PKG_CHECK_MODULES(SETBACKLIGHT, [libudev libdrm])
if test "x$GCC" = "xyes"; then
my_common_gcc_flags="-Wall -Wextra -Wno-unused-parameter \

@ -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

Loading…
Cancel
Save