2011-04-11 16:46:49 +00:00
|
|
|
include Makefile.decl
|
|
|
|
|
2011-04-13 05:09:09 +00:00
|
|
|
NULL =
|
|
|
|
|
2011-04-11 16:46:49 +00:00
|
|
|
if HAVE_GLIB
|
2011-05-10 23:11:27 +00:00
|
|
|
AM_CPPFLAGS = -I$(top_srcdir)/src/ $(GLIB_CFLAGS) $(GTHREAD_CFLAGS)
|
|
|
|
LDADD = $(top_builddir)/src/libharfbuzz.la $(GLIB_LIBS) $(GTHREAD_LIBS)
|
2011-04-11 16:46:49 +00:00
|
|
|
|
2011-05-06 01:31:04 +00:00
|
|
|
EXTRA_DIST += hb-test.h
|
|
|
|
|
2011-04-11 16:46:49 +00:00
|
|
|
check_PROGRAMS = $(TEST_PROGS)
|
2011-04-28 21:10:44 +00:00
|
|
|
noinst_PROGRAMS = $(TEST_PROGS)
|
2011-04-11 16:46:49 +00:00
|
|
|
|
2011-04-13 05:09:09 +00:00
|
|
|
TEST_PROGS += \
|
2011-05-10 21:37:08 +00:00
|
|
|
test-blob \
|
2011-04-13 05:09:09 +00:00
|
|
|
test-buffer \
|
2011-04-20 06:56:39 +00:00
|
|
|
test-common \
|
2011-05-12 02:52:35 +00:00
|
|
|
test-font \
|
2011-05-02 23:52:47 +00:00
|
|
|
test-object \
|
2011-05-12 05:39:17 +00:00
|
|
|
test-shape \
|
2011-04-20 04:19:20 +00:00
|
|
|
test-unicode \
|
2011-04-13 05:09:09 +00:00
|
|
|
$(NULL)
|
|
|
|
|
2011-05-14 02:46:36 +00:00
|
|
|
TEST_PROGS += \
|
|
|
|
test-ot-tag \
|
|
|
|
$(NULL)
|
2011-04-11 16:46:49 +00:00
|
|
|
|
2011-04-20 07:15:31 +00:00
|
|
|
# Tests for header compilation
|
|
|
|
TEST_PROGS += \
|
|
|
|
test-c \
|
|
|
|
test-cplusplus \
|
|
|
|
$(NULL)
|
|
|
|
test_cplusplus_SOURCES = test-cplusplus.cc
|
|
|
|
test_c_CPPFLAGS = $(AM_CPPFLAGS)
|
|
|
|
test_cplusplus_CPPFLAGS = $(AM_CPPFLAGS)
|
|
|
|
if HAVE_ICU
|
|
|
|
test_c_CPPFLAGS += $(ICU_CFLAGS)
|
|
|
|
test_cplusplus_CPPFLAGS += $(ICU_CFLAGS)
|
|
|
|
endif
|
|
|
|
if HAVE_FREETYPE
|
|
|
|
test_c_CPPFLAGS += $(FREETYPE_CFLAGS)
|
|
|
|
test_cplusplus_CPPFLAGS += $(FREETYPE_CFLAGS)
|
2011-05-02 23:52:47 +00:00
|
|
|
# TODO replace freetype with other stuff in the following test
|
|
|
|
test_object_CPPFLAGS = $(AM_CPPFLAGS) $(FREETYPE_CFLAGS)
|
|
|
|
test_object_LIBS = $(LDADD) $(FREETYPE_LIBS)
|
2011-04-20 07:15:31 +00:00
|
|
|
endif
|
|
|
|
|
2011-04-11 16:46:49 +00:00
|
|
|
|
|
|
|
else
|
|
|
|
check-am:
|
|
|
|
@echo "You need to have glib support enabled to run the tests"
|
|
|
|
@exit 77
|
|
|
|
endif
|
|
|
|
|
|
|
|
-include $(top_srcdir)/git.mk
|