gtk2/testsuite/a11y/state/Makefile.am
Benjamin Otte dfd9150a82 build: Don't link against libgtk and libgdk
libgdk is statically linked these days, so if you link against it, all
of its symbols will exist twice: Once in libgtk.so and once in your
binary.
2016-11-20 11:19:32 +01:00

56 lines
1.4 KiB
Makefile

include $(top_srcdir)/Makefile.decl
check_PROGRAMS = $(TEST_PROGS)
AM_CPPFLAGS = \
-I$(top_srcdir) \
-I$(top_builddir)/gdk \
-I$(top_srcdir)/gdk \
-DGDK_DISABLE_DEPRECATED \
-DGTK_DISABLE_DEPRECATED \
-DGTK_VERSION=\"$(GTK_VERSION)\"\
$(GTK_DEBUG_FLAGS) \
$(GTK_DEP_CFLAGS)
LDADD = \
$(top_builddir)/gtk/libgtk-4.la \
$(GTK_DEP_LIBS)
TESTS_ENVIRONMENT = \
GIO_USE_VOLUME_MONITOR=unix \
GSETTINGS_BACKEND=memory \
G_ENABLE_DIAGNOSTIC=0
test_programs = state-record
testdata = \
focus1.ui focus1.in focus1.out \
focus2.ui focus2.in focus2.out
EXTRA_DIST += $(testdata)
if BUILDOPT_INSTALL_TESTS
insttestdir = $(libexecdir)/installed-tests/$(PACKAGE)
insttest_PROGRAMS = $(test_programs)
statetestdir = $(insttestdir)/state
statetest_DATA = $(testdata)
a11ystate.test: Makefile
$(AM_V_GEN) (echo '[Test]' > $@.tmp; \
echo 'Type=session-exclusive' >> $@.tmp; \
echo 'Output=TAP' >> $@.tmp; \
echo 'Exec=env G_ENABLE_DIAGNOSTIC=0 $(insttestdir)/state-record --tap --directory $(statetestdir)' >> $@.tmp; \
mv $@.tmp $@)
testfiles = a11ystate.test
DISTCLEANFILES = \
$(testfiles)
testmetadir = $(datadir)/installed-tests/$(PACKAGE)
testmeta_DATA = $(testfiles)
endif
-include $(top_srcdir)/git.mk