2011-11-05 07:32:40 -06:00
|
|
|
if ENABLE_UNIT_TESTS
|
2012-06-10 07:21:05 -06:00
|
|
|
SUBDIRS= .
|
2014-05-02 13:27:46 -06:00
|
|
|
noinst_PROGRAMS = list string
|
2012-06-10 07:21:05 -06:00
|
|
|
if XORG
|
|
|
|
# Tests that require at least some DDX functions in order to fully link
|
|
|
|
# For now, requires xf86 ddx, could be adjusted to use another
|
2014-12-21 04:41:44 -07:00
|
|
|
SUBDIRS += xi1 xi2
|
2015-09-16 13:10:19 -06:00
|
|
|
noinst_PROGRAMS += xkb input xtest misc fixes xfree86 os signal-logging touch
|
|
|
|
if RES
|
|
|
|
noinst_PROGRAMS += hashtabletest
|
|
|
|
endif
|
2012-06-10 07:21:05 -06:00
|
|
|
endif
|
2010-07-27 13:02:24 -06:00
|
|
|
check_LTLIBRARIES = libxservertest.la
|
|
|
|
|
2011-11-05 07:32:40 -06:00
|
|
|
TESTS=$(noinst_PROGRAMS)
|
2012-06-10 07:21:05 -06:00
|
|
|
TESTS_ENVIRONMENT = $(XORG_MALLOC_DEBUG_ENV)
|
2010-07-27 13:02:24 -06:00
|
|
|
|
2011-11-05 07:32:40 -06:00
|
|
|
AM_CFLAGS = $(DIX_CFLAGS) @XORG_CFLAGS@
|
2016-05-29 06:02:34 -06:00
|
|
|
AM_CPPFLAGS = $(XORG_INCS)
|
2012-06-10 07:21:05 -06:00
|
|
|
if XORG
|
2014-05-02 13:27:46 -06:00
|
|
|
AM_CPPFLAGS += -I$(top_srcdir)/hw/xfree86/parser \
|
2012-06-10 07:21:05 -06:00
|
|
|
-I$(top_srcdir)/hw/xfree86/ddc \
|
2011-11-05 07:32:40 -06:00
|
|
|
-I$(top_srcdir)/hw/xfree86/i2c -I$(top_srcdir)/hw/xfree86/modes \
|
2013-06-07 11:28:45 -06:00
|
|
|
-I$(top_srcdir)/hw/xfree86/ramdac -I$(top_srcdir)/hw/xfree86/dri \
|
2014-05-02 13:27:46 -06:00
|
|
|
-I$(top_srcdir)/hw/xfree86/dri2 -I$(top_srcdir)/dri3
|
2012-06-10 07:21:05 -06:00
|
|
|
endif
|
2013-06-07 11:28:45 -06:00
|
|
|
TEST_LDADD=libxservertest.la $(XORG_SYS_LIBS) $(XSERVER_SYS_LIBS) $(GLX_SYS_LIBS)
|
2010-07-27 13:02:24 -06:00
|
|
|
|
|
|
|
if SPECIAL_DTRACE_OBJECTS
|
|
|
|
TEST_LDADD += $(OS_LIB) $(DIX_LIB)
|
|
|
|
endif
|
|
|
|
|
|
|
|
xkb_LDADD=$(TEST_LDADD)
|
|
|
|
input_LDADD=$(TEST_LDADD)
|
|
|
|
xtest_LDADD=$(TEST_LDADD)
|
2011-11-05 07:32:40 -06:00
|
|
|
misc_LDADD=$(TEST_LDADD)
|
|
|
|
fixes_LDADD=$(TEST_LDADD)
|
2012-06-10 07:21:05 -06:00
|
|
|
xfree86_LDADD=$(TEST_LDADD)
|
|
|
|
touch_LDADD=$(TEST_LDADD)
|
2013-06-07 11:28:45 -06:00
|
|
|
signal_logging_LDADD=$(TEST_LDADD)
|
2014-09-27 11:52:59 -06:00
|
|
|
hashtabletest_LDADD=$(TEST_LDADD)
|
2013-06-07 11:28:45 -06:00
|
|
|
os_LDADD=$(TEST_LDADD)
|
2010-07-27 13:02:24 -06:00
|
|
|
|
2012-06-10 07:21:05 -06:00
|
|
|
libxservertest_la_LIBADD = $(XSERVER_LIBS)
|
|
|
|
if XORG
|
2013-06-07 11:28:45 -06:00
|
|
|
|
2014-09-27 11:52:59 -06:00
|
|
|
nodist_libxservertest_la_SOURCES = sdksyms.c
|
2012-06-10 07:21:05 -06:00
|
|
|
libxservertest_la_LIBADD += \
|
2010-07-27 13:02:24 -06:00
|
|
|
$(top_builddir)/hw/xfree86/loader/libloader.la \
|
|
|
|
$(top_builddir)/hw/xfree86/os-support/libxorgos.la \
|
|
|
|
$(top_builddir)/hw/xfree86/common/libcommon.la \
|
2016-05-29 06:02:34 -06:00
|
|
|
$(top_builddir)/hw/xfree86/parser/libxf86config.la \
|
2010-07-27 13:02:24 -06:00
|
|
|
$(top_builddir)/hw/xfree86/dixmods/libdixmods.la \
|
|
|
|
$(top_builddir)/hw/xfree86/modes/libxf86modes.la \
|
|
|
|
$(top_builddir)/hw/xfree86/ramdac/libramdac.la \
|
|
|
|
$(top_builddir)/hw/xfree86/ddc/libddc.la \
|
|
|
|
$(top_builddir)/hw/xfree86/i2c/libi2c.la \
|
|
|
|
$(top_builddir)/hw/xfree86/dixmods/libxorgxkb.la \
|
2016-05-29 06:02:34 -06:00
|
|
|
$(top_builddir)/Xext/libXvidmode.la \
|
2010-07-27 13:02:24 -06:00
|
|
|
@XORG_LIBS@
|
2012-06-10 07:21:05 -06:00
|
|
|
|
2014-09-27 11:52:59 -06:00
|
|
|
BUILT_SOURCES = sdksyms.c
|
|
|
|
CLEANFILES = sdksyms.c
|
|
|
|
|
|
|
|
sdksyms.c: $(top_builddir)/hw/xfree86/sdksyms.c
|
|
|
|
$(AM_V_GEN)$(LN_S) $(top_builddir)/hw/xfree86/sdksyms.c
|
|
|
|
|
2013-06-07 11:28:45 -06:00
|
|
|
if DRI
|
|
|
|
libxservertest_la_LIBADD += $(top_builddir)/hw/xfree86/dri/libdri.la
|
|
|
|
endif
|
|
|
|
|
|
|
|
if DRI2
|
|
|
|
libxservertest_la_LIBADD += $(top_builddir)/hw/xfree86/dri2/libdri2.la
|
|
|
|
endif
|
|
|
|
|
2014-05-02 13:27:46 -06:00
|
|
|
if DRI3
|
|
|
|
libxservertest_la_LIBADD += $(top_builddir)/dri3/libdri3.la
|
|
|
|
endif
|
|
|
|
|
2012-06-10 07:21:05 -06:00
|
|
|
else
|
|
|
|
nodist_libxservertest_la_SOURCES = \
|
|
|
|
ddxstubs.c \
|
2014-09-27 11:52:59 -06:00
|
|
|
$(top_srcdir)/mi/miinitext.c
|
2012-06-10 07:21:05 -06:00
|
|
|
|
|
|
|
libxservertest_la_LIBADD += \
|
|
|
|
$(top_builddir)/damageext/libdamageext.la \
|
|
|
|
$(top_builddir)/fb/libfb.la \
|
|
|
|
$(top_builddir)/fb/libwfb.la \
|
|
|
|
$(top_builddir)/miext/damage/libdamage.la \
|
|
|
|
$(top_builddir)/miext/sync/libsync.la \
|
|
|
|
$(top_builddir)/randr/librandr.la \
|
|
|
|
$(top_builddir)/render/librender.la \
|
|
|
|
$(top_builddir)/Xext/libXext.la \
|
2014-09-27 11:52:59 -06:00
|
|
|
$(top_builddir)/Xext/libXextdpmsstubs.la \
|
2016-05-29 06:02:34 -06:00
|
|
|
$(top_builddir)/Xext/libXvidmode.la \
|
2012-06-10 07:21:05 -06:00
|
|
|
$(top_builddir)/Xi/libXi.la \
|
2014-09-27 11:52:59 -06:00
|
|
|
$(top_builddir)/Xi/libXistubs.la \
|
2012-06-10 07:21:05 -06:00
|
|
|
$(top_builddir)/xfixes/libxfixes.la \
|
|
|
|
$(top_builddir)/xkb/libxkb.la \
|
|
|
|
$(top_builddir)/xkb/libxkbstubs.la
|
|
|
|
|
|
|
|
if COMPOSITE
|
|
|
|
libxservertest_la_LIBADD += \
|
|
|
|
$(top_builddir)/composite/libcomposite.la
|
|
|
|
endif
|
|
|
|
|
|
|
|
if DBE
|
|
|
|
libxservertest_la_LIBADD += \
|
|
|
|
$(top_builddir)/dbe/libdbe.la
|
|
|
|
endif
|
|
|
|
|
|
|
|
if GLX
|
|
|
|
libxservertest_la_LIBADD += \
|
|
|
|
$(top_builddir)/glx/libglx.la
|
|
|
|
endif
|
|
|
|
|
|
|
|
if RECORD
|
|
|
|
libxservertest_la_LIBADD += \
|
|
|
|
$(top_builddir)/record/librecord.la
|
|
|
|
endif
|
|
|
|
|
2014-05-02 13:27:46 -06:00
|
|
|
if DRI3
|
|
|
|
libxservertest_la_LIBADD += \
|
|
|
|
$(top_builddir)/dri3/libdri3.la
|
|
|
|
endif
|
|
|
|
|
2012-06-10 07:21:05 -06:00
|
|
|
if XQUARTZ
|
|
|
|
libxservertest_la_LIBADD += \
|
|
|
|
$(top_builddir)/miext/rootless/librootless.la
|
|
|
|
TEST_LDADD += -lXplugin
|
|
|
|
endif
|
|
|
|
|
|
|
|
if XWIN_MULTIWINDOWEXTWM
|
|
|
|
libxservertest_la_LIBADD += \
|
|
|
|
$(top_builddir)/miext/rootless/librootless.la
|
2011-11-05 07:32:40 -06:00
|
|
|
endif
|
2010-12-05 08:36:02 -07:00
|
|
|
endif
|
2012-06-10 07:21:05 -06:00
|
|
|
|
|
|
|
libxservertest_la_DEPENDENCIES = $(libxservertest_la_LIBADD)
|
|
|
|
endif
|
|
|
|
|
|
|
|
EXTRA_DIST = ddxstubs.c
|
|
|
|
|