summaryrefslogtreecommitdiff
path: root/tests/Makefile.am
blob: 3be5b83bd0c8591efe8f5e9ff7f2927aed5a63bf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
## Process this file with automake to create Makefile.in.

if HAVE_XFT
X_DEFINES=-DHAVE_X
else
X_DEFINES=
endif

if HAVE_XFT
XFT_DEFINES=-DHAVE_XFT
else
XFT_DEFINES=
endif

if HAVE_FREETYPE
FT2_DEFINES=-DHAVE_FREETYPE
else
FT2_DEFINES=
endif

if HAVE_WIN32
WIN32_DEFINES=-DHAVE_WIN32
else
WIN32_DEFINES=
endif

INCLUDES =					\
	-I$(top_srcdir)				\
	$(GLIB_CFLAGS)				\
	$(X_CFLAGS)				\
	$(FREETYPE_CFLAGS)			\
	$(X_DEFINES)				\
	$(XFT_DEFINES)				\
	$(FT2_DEFINES)				\
	$(WIN32_DEFINES)			\
	-DG_DISABLE_DEPRECATED

TESTS=runtests.sh

noinst_PROGRAMS = gen-all-unicode dump-boundaries

check_PROGRAMS = testboundaries $(CXX_TEST)

gen_all_unicode_SOURCES = gen-all-unicode.c

testboundaries_SOURCES = testboundaries.c

dump_boundaries_SOURCES = dump-boundaries.c

gen_all_unicode_LDADD = $(GLIB_LIBS)

testboundaries_LDADD = ../pango/libpango.la

dump_boundaries_LDADD = ../pango/libpango.la

if HAVE_CXX
CXX_TEST = cxx-test
cxx_test_SOURCES = cxx-test.C
else
CXX_TEST =
endif

EXTRA_DIST = 			\
	all-unicode.txt		\
	boundaries.utf8		\
	runtests.sh

all-unicode.txt: gen-all-unicode
	./gen-all-unicode > all-unicode.txt

all-local: all-unicode.txt