summaryrefslogtreecommitdiff
path: root/pango-view/Makefile.am
blob: 9780c146cf8ce7ecd20145843dacae72c5d5f1ab (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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
## Process this file with automake to create Makefile.in.

TEST_TEXTS =			\
	test-arabic.txt		\
	test-chinese.txt	\
	test-devanagari.txt	\
	test-gurmukhi.txt	\
	test-hebrew.txt		\
	test-ipa.txt		\
	test-justify.txt	\
	test-lao.txt		\
	test-latin.txt		\
	test-long-paragraph.txt	\
	test-mixed.markup	\
	test-mixed.txt		\
	test-nko.txt		\
	test-opentype-language.markup \
	test-syriac.txt		\
	test-tamil.txt		\
	test-thai.txt		\
	test-tibetan.txt	\
	HELLO.txt		\
	GLASS.txt

EXTRA_DIST =			\
	viewer-win32.c		\
	$(TEST_TEXTS)

CLEANFILES = pangorc

INCLUDES =				\
	-I$(top_srcdir)			\
	$(PANGO_DEBUG_FLAGS)		\
	$(GLIB_CFLAGS)			\
	$(XFT_CFLAGS)			\
	$(CAIRO_CFLAGS)			\
	$(FREETYPE_CFLAGS)		\
	$(X_CFLAGS)

noinst_PROGRAMS =
bin_PROGRAMS =

#########################################################
if HAVE_FREETYPE
noinst_PROGRAMS += pangoft2-view

pangoft2_view_SOURCES =					\
	viewer-render.h					\
	viewer-render.c					\
	viewer.h					\
	viewer-main.c					\
	viewer-pangoft2.c				\
	pangoft2-view.c

pangoft2_view_LDADD =					\
	../pango/libpango-$(PANGO_API_VERSION).la	\
	../pango/libpangoft2-$(PANGO_API_VERSION).la	\
	$(GLIB_LIBS)					\
	$(FREETYPE_LIBS)
endif
#########################################################

#########################################################
if HAVE_X
noinst_PROGRAMS += pangox-view

pangox_view_SOURCES =					\
	viewer-render.h					\
	viewer-render.c					\
	viewer.h					\
	viewer-x.h					\
	viewer-x.c					\
	viewer-main.c					\
	viewer-pangox.c					\
	pangox-view.c

pangox_view_LDADD =					\
	../pango/libpango-$(PANGO_API_VERSION).la	\
	../pango/libpangox-$(PANGO_API_VERSION).la	\
	$(GLIB_LIBS)					\
	$(X_LIBS)
endif
#########################################################

#########################################################
if HAVE_XFT
noinst_PROGRAMS += pangoxft-view

pangoxft_view_SOURCES =					\
	viewer-render.h					\
	viewer-render.c					\
	viewer.h					\
	viewer-x.h					\
	viewer-x.c					\
	viewer-main.c					\
	viewer-pangoxft.c				\
	pangoxft-view.c

pangoxft_view_LDADD =					\
	../pango/libpango-$(PANGO_API_VERSION).la	\
	../pango/libpangoft2-$(PANGO_API_VERSION).la	\
	../pango/libpangoxft-$(PANGO_API_VERSION).la	\
	$(GLIB_LIBS)					\
	$(XFT_LIBS)					\
	$(X_LIBS)
endif
#########################################################

#########################################################
if HAVE_CAIRO
if HAVE_X
if HAVE_CAIRO_XLIB
noinst_PROGRAMS += pangocairo-view

pangocairo_view_SOURCES =				\
	viewer-render.h					\
	viewer-render.c					\
	viewer.h					\
	viewer-cairo.h					\
	viewer-cairo.c					\
	viewer-x.h					\
	viewer-x.c					\
	viewer-main.c					\
	viewer-pangocairo.c				\
	pangocairo-view.c

pangocairo_view_LDADD =					\
	../pango/libpango-$(PANGO_API_VERSION).la	\
	../pango/libpangoft2-$(PANGO_API_VERSION).la	\
	../pango/libpangocairo-$(PANGO_API_VERSION).la	\
	$(GLIB_LIBS)					\
	$(CAIRO_LIBS)					\
	$(X_LIBS)
endif
endif
endif
#########################################################

#########################################################
if HAVE_X
bin_PROGRAMS += pango-view
pango_view_SOURCES =					\
	viewer-render.h					\
	viewer-render.c					\
	viewer.h					\
	viewer-x.h					\
	viewer-x.c					\
	viewer-main.c					\
	pango-view.c
pango_view_LDADD =					\
	../pango/libpango-$(PANGO_API_VERSION).la	\
	$(GLIB_LIBS)
if HAVE_X
pango_view_SOURCES +=					\
	viewer-pangox.c
pango_view_LDADD +=					\
	../pango/libpangox-$(PANGO_API_VERSION).la
endif
if HAVE_FREETYPE
pango_view_SOURCES +=					\
	viewer-pangoft2.c
pango_view_LDADD +=					\
	../pango/libpangoft2-$(PANGO_API_VERSION).la	\
	$(FREETYPE_LIBS)
endif
if HAVE_XFT
pango_view_SOURCES +=					\
	viewer-pangoxft.c
pango_view_LDADD +=					\
	../pango/libpangoft2-$(PANGO_API_VERSION).la	\
	../pango/libpangoxft-$(PANGO_API_VERSION).la	\
	$(XFT_LIBS)
endif
if HAVE_CAIRO
if HAVE_CAIRO_XLIB
pango_view_SOURCES +=					\
	viewer-cairo.h					\
	viewer-cairo.c					\
	viewer-pangocairo.c
pango_view_LDADD +=					\
	../pango/libpangoft2-$(PANGO_API_VERSION).la	\
	../pango/libpangocairo-$(PANGO_API_VERSION).la	\
	$(CAIRO_LIBS)
endif
endif
pango_view_LDADD +=					\
	$(X_LIBS)
endif
#########################################################

BUILT_SOURCES = pangorc

pangorc: $(srcdir)/../modules/pangorc
	cp $(srcdir)/../modules/pangorc $@