## Process this file with automake to create Makefile.in. EXTRA_DIST = \ boundaries.utf8 \ GraphemeBreakTest.txt DISTCLEANFILES = all-unicode.txt AM_CPPFLAGS = \ -DSRCDIR=\"$(srcdir)\" \ -I$(top_srcdir) \ $(PANGO_DEBUG_FLAGS) \ $(GLIB_CFLAGS) \ $(XFT_CFLAGS) \ $(CAIRO_CFLAGS) \ $(FREETYPE_CFLAGS) \ $(X_CFLAGS) if HAVE_XFT AM_CPPFLAGS += -DHAVE_X endif if HAVE_XFT AM_CPPFLAGS += -DHAVE_XFT endif if HAVE_FREETYPE AM_CPPFLAGS += -DHAVE_FREETYPE endif if HAVE_WIN32 AM_CPPFLAGS += -DHAVE_WIN32 endif if CROSS_COMPILING TESTS = else TESTS = $(check_PROGRAMS) endif TESTS_ENVIRONMENT = \ srcdir=$(srcdir) \ G_TEST_SRCDIR=$(abs_srcdir) \ G_TEST_BUILDDIR=$(abs_builddir) check_PROGRAMS = \ testboundaries \ testboundaries_ucd \ testcolor \ testscript \ markup-parse \ test-layout \ test-font \ testattributes \ $(NULL) if HAVE_CAIRO check_PROGRAMS += testiter test-pangocairo-threads endif if HAVE_FREETYPE check_PROGRAMS += test-ot-tags endif TEST_PANGO_LIBS = ../pango/libpango-$(PANGO_API_VERSION).la TEST_PANGOFT2_LIBS = $(TEST_PANGO_LIBS) ../pango/libpangoft2-$(PANGO_API_VERSION).la TEST_PANGOCAIRO_LIBS = $(TEST_PANGO_LIBS) ../pango/libpangocairo-$(PANGO_API_VERSION).la test_layout_SOURCES = \ test-layout.c \ test-common.c \ test-common.h \ $(NULL) testattributes_SOURCES = \ testattributes.c \ test-common.c \ test-common.h \ $(NULL) gen_all_unicode_LDADD = $(GLIB_LIBS) testboundaries_LDADD = $(TEST_PANGO_LIBS) $(GLIB_LIBS) testboundaries_ucd_LDADD = $(TEST_PANGO_LIBS) $(GLIB_LIBS) testcolor_LDADD = $(TEST_PANGO_LIBS) $(GLIB_LIBS) testiter_LDADD = $(TEST_PANGOCAIRO_LIBS) $(GLIB_LIBS) testscript_LDADD = $(TEST_PANGO_LIBS) $(GLIB_LIBS) test_ot_tags_LDADD = $(TEST_PANGOFT2_LIBS) $(GLIB_LIBS) test_pangocairo_threads_LDADD = $(TEST_PANGOCAIRO_LIBS) $(CAIRO_LIBS) $(GLIB_LIBS) dump_boundaries_LDADD = $(TEST_PANGO_LIBS) $(GLIB_LIBS) markup_parse_LDADD = $(TEST_PANGOCAIRO_LIBS) $(GLIB_LIBS) test_layout_LDADD = $(TEST_PANGOCAIRO_LIBS) $(GLIB_LIBS) test_font_LDADD = $(TEST_PANGOCAIRO_LIBS) $(GLIB_LIBS) testattributes_LDADD = $(TEST_PANGOCAIRO_LIBS) $(GLIB_LIBS) if HAVE_CXX check_PROGRAMS += cxx-test endif cxx_test_SOURCES = cxx-test.cpp all-unicode.txt: gen-all-unicode$(EXEEXT) ./gen-all-unicode > all-unicode.txt noinst_PROGRAMS = $(check_PROGRAMS) gen-all-unicode dump-boundaries markup_tests = \ valid-1 valid-2 valid-3 valid-4 \ fail-1 \ $(NULL) all_markup_data = \ $(addprefix markups/,$(markup_tests:=.markup) $(markup_tests:=.expected)) layout_tests = \ valid-1 valid-2 \ $(NULL) all_layout_data = \ $(addprefix layouts/,$(layout_tests:=.markup) $(layout_tests:=.expected)) EXTRA_DIST += $(all_markup_data) $(all_layout_data) if BUILDOPT_INSTALL_TESTS insttestdir=$(libexecdir)/installed-tests/$(PACKAGE) insttest_PROGRAMS = $(check_PROGRAMS) testdatadir = $(insttestdir) nobase_testdata_DATA = \ all-unicode.txt \ boundaries.utf8 \ GraphemeBreakTest.txt \ $(all_markup_data) \ $(all_layout_data) testmetadir = $(datadir)/installed-tests/$(PACKAGE) testmeta_DATA = $(check_PROGRAMS:=.test) %.test: %$(EXEEXT) Makefile $(AM_V_GEN) (echo '[Test]' > $@.tmp; \ echo 'Type=session' >> $@.tmp; \ echo 'Exec=$(libexecdir)/installed-tests/$(PACKAGE)/$<' >> $@.tmp; \ mv $@.tmp $@) endif -include $(top_srcdir)/git.mk