Makefile.am 1.1 KB
Newer Older
B
Behdad Esfahbod 已提交
1 2
include Makefile.decl

B
Behdad Esfahbod 已提交
3 4
NULL =

B
Behdad Esfahbod 已提交
5
if HAVE_GLIB
6 7
AM_CPPFLAGS = -I$(top_srcdir)/src/ $(GLIB_CFLAGS) $(GTHREAD_CFLAGS)
LDADD = $(top_builddir)/src/libharfbuzz.la $(GLIB_LIBS) $(GTHREAD_LIBS)
B
Behdad Esfahbod 已提交
8

9 10
EXTRA_DIST += hb-test.h

B
Behdad Esfahbod 已提交
11
check_PROGRAMS = $(TEST_PROGS)
B
Behdad Esfahbod 已提交
12
noinst_PROGRAMS = $(TEST_PROGS)
B
Behdad Esfahbod 已提交
13

B
Behdad Esfahbod 已提交
14
TEST_PROGS += \
B
Behdad Esfahbod 已提交
15
	test-blob \
B
Behdad Esfahbod 已提交
16
	test-buffer \
17
	test-common \
18
	test-font \
19
	test-object \
20
	test-shape \
21
	test-unicode \
B
Behdad Esfahbod 已提交
22 23
	$(NULL)

24 25 26
TEST_PROGS += \
	test-ot-tag \
	$(NULL)
B
Behdad Esfahbod 已提交
27

28 29 30 31 32 33 34 35 36 37 38 39 40 41 42
# 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)
43 44 45
# TODO replace freetype with other stuff in the following test
test_object_CPPFLAGS = $(AM_CPPFLAGS) $(FREETYPE_CFLAGS)
test_object_LIBS = $(LDADD) $(FREETYPE_LIBS)
46 47
endif

B
Behdad Esfahbod 已提交
48 49 50 51 52 53 54 55

else
check-am:
	@echo "You need to have glib support enabled to run the tests"
	@exit 77
endif

-include $(top_srcdir)/git.mk