mirror of
https://github.com/tiagovignatti/intel-gpu-tools.git
synced 2025-06-08 16:36:14 +00:00
tests: make testdisplay non-optional
Not testing modesetting should not be an option. Also this hopefully prevents testdisplay build-breakage from lingering on for days like it has in the past. And we want to eventually test the gem/kms cross-section, i.e. pageflips. Acked-by: Chris Wilson <chris@chris-wilson.co.uk> Signed-Off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
This commit is contained in:
parent
f07e4d1885
commit
08ccec1ec7
21
configure.ac
21
configure.ac
@ -55,23 +55,10 @@ XORG_DEFAULT_OPTIONS
|
||||
PKG_CHECK_MODULES(DRM, [libdrm_intel >= 2.4.30 libdrm])
|
||||
PKG_CHECK_MODULES(PCIACCESS, [pciaccess >= 0.10])
|
||||
|
||||
PKG_CHECK_MODULES(CAIRO, cairo, [HAVE_CAIRO=yes], [HAVE_CAIRO=no])
|
||||
if test "x$HAVE_CAIRO" = xyes; then
|
||||
AC_DEFINE(HAVE_CAIRO, 1, [Have cairo support])
|
||||
fi
|
||||
AM_CONDITIONAL(HAVE_CAIRO, [test "x$HAVE_CAIRO" = xyes])
|
||||
|
||||
PKG_CHECK_MODULES(LIBUDEV, libudev, [HAVE_LIBUDEV=yes], [HAVE_LIBUDEV=no])
|
||||
if test "x$HAVE_LIBUDEV" = xyes; then
|
||||
AC_DEFINE(HAVE_LIBUDEV, 1, [Have libudev support])
|
||||
fi
|
||||
AM_CONDITIONAL(HAVE_LIBUDEV, [test "x$HAVE_LIBUDEV" = xyes])
|
||||
|
||||
PKG_CHECK_MODULES(GLIB, glib-2.0, [HAVE_GLIB=yes], [HAVE_GLIB=no])
|
||||
if test "x$HAVE_GLIB" = xyes; then
|
||||
AC_DEFINE(HAVE_GLIB, 1, [Have glib support])
|
||||
fi
|
||||
AM_CONDITIONAL(HAVE_GLIB, [test "x$HAVE_GLIB" = xyes])
|
||||
# for testdisplay
|
||||
PKG_CHECK_MODULES(CAIRO, cairo)
|
||||
PKG_CHECK_MODULES(LIBUDEV, libudev)
|
||||
PKG_CHECK_MODULES(GLIB, glib-2.0)
|
||||
|
||||
# -----------------------------------------------------------------------------
|
||||
# Configuration options
|
||||
|
@ -91,15 +91,9 @@ AM_CFLAGS = $(DRM_CFLAGS) $(CWARNFLAGS) \
|
||||
-I$(srcdir)/../lib
|
||||
LDADD = ../lib/libintel_tools.la $(PCIACCESS_LIBS) $(DRM_LIBS)
|
||||
|
||||
if HAVE_CAIRO
|
||||
if HAVE_LIBUDEV
|
||||
if HAVE_GLIB
|
||||
TESTS_progs += testdisplay
|
||||
LDADD += $(CAIRO_LIBS) $(LIBUDEV_LIBS) $(GLIB_LIBS)
|
||||
AM_CFLAGS += $(CAIRO_CFLAGS) $(LIBUDEV_CFLAGS) $(GLIB_CFLAGS)
|
||||
endif
|
||||
endif
|
||||
endif
|
||||
|
||||
gem_fence_thrash_CFLAGS = $(AM_CFLAGS) $(THREAD_CFLAGS)
|
||||
gem_fence_thrash_LDADD = $(LDADD) -lpthread
|
||||
|
Loading…
x
Reference in New Issue
Block a user