Makefile.am 5.43 KB
Newer Older
Kristian Høgsberg's avatar
Kristian Høgsberg committed
1
2
3
4
5
6
7
8
if BUILD_SPLASH_OUTPUT

splash_sources =				\
	SplashOutputDev.cc

splash_headers =				\
	SplashOutputDev.h

9
10
11
splash_includes =				\
	$(SPLASH_CFLAGS)

Kristian Høgsberg's avatar
Kristian Høgsberg committed
12
splash_libs =					\
13
	$(SPLASH_LIBS)				\
Kristian Høgsberg's avatar
Kristian Høgsberg committed
14
15
	$(top_builddir)/splash/libsplash.la

16
17
endif

18
19
if BUILD_POPPLER_QT4

Albert Astals Cid's avatar
Albert Astals Cid committed
20
poppler_arthur = libpoppler-arthur.la
21

Albert Astals Cid's avatar
Albert Astals Cid committed
22
23
libpoppler_arthur_la_SOURCES =			\
	ArthurOutputDev.h			\
24
25
26
	ArthurOutputDev.cc

arthur_includes =				\
27
	$(POPPLER_QT4_CFLAGS)
28
29
30
31
32
33

arthur_libs =					\
	$(POPPLER_QT4_LIBS)

endif

Albert Astals Cid's avatar
Albert Astals Cid committed
34

Kristian Høgsberg's avatar
Kristian Høgsberg committed
35
36
37

if BUILD_CAIRO_OUTPUT

38
poppler_cairo = libpoppler-cairo.la
Kristian Høgsberg's avatar
Kristian Høgsberg committed
39
40
41
42

cairo_includes =				\
	$(CAIRO_CFLAGS)

43
44
45
cairo_libs =					\
	$(CAIRO_LIBS)

46
47
48
49
libpoppler_cairo_la_SOURCES =			\
	CairoFontEngine.cc			\
	CairoFontEngine.h			\
	CairoOutputDev.cc			\
50
51
52
	CairoOutputDev.h			\
	CairoRescaleBox.cc			\
	CairoRescaleBox.h
Kristian Høgsberg's avatar
Kristian Høgsberg committed
53
54
55

endif

56
57
58
59
60
61
62
63
if BUILD_LIBJPEG

libjpeg_sources =				\
	DCTStream.h				\
	DCTStream.cc

libjpeg_libs =					\
	$(LIBJPEG_LIBS)
64
65
libjpeg_includes =				\
	$(LIBJPEG_CFLAGS)
66
67

endif
Kristian Høgsberg's avatar
Kristian Høgsberg committed
68

69
70
71
72
if BUILD_LIBPNG

libpng_libs =					\
	$(LIBPNG_LIBS)
73
74
libpng_includes =				\
	$(LIBPNG_CFLAGS)
75
76
77

endif

78
79
80
81
82
83
84
85
86
if BUILD_LIBTIFF

libtiff_libs =					\
	$(LIBTIFF_LIBS)
libtiff_includes =				\
	$(LIBTIFF_CFLAGS)

endif

87
88
89
90
91
92
93
94
if BUILD_LIBOPENJPEG

libjpeg2000_sources =				\
	JPEG2000Stream.h			\
	JPEG2000Stream.cc

libjpeg2000_libs =				\
	$(LIBOPENJPEG_LIBS)
95
96
libjpeg2000_includes =				\
	$(LIBOPENJPEG_CFLAGS)
97
98
99
100
101
102
103
104
105
106

else

libjpeg2000_sources =				\
	JPXStream.h			\
	JPXStream.cc

endif


107
108
109
110
111
112
113
114
115
116
117
if BUILD_ZLIB

zlib_sources =					\
	FlateStream.h				\
	FlateStream.cc

zlib_libs = 					\
	$(ZLIB_LIBS)

endif

Hib Eris's avatar
Hib Eris committed
118
119
120
121
122
123
124
125
126
if BUILD_LIBCURL

libcurl_libs =					\
	$(LIBCURL_LIBS)

libcurl_includes =				\
	$(LIBCURL_CFLAGS)

curl_headers =					\
Hib Eris's avatar
Hib Eris committed
127
128
	CurlCachedFile.h			\
	CurlPDFDocBuilder.h
Hib Eris's avatar
Hib Eris committed
129
130

curl_sources =					\
Hib Eris's avatar
Hib Eris committed
131
132
	CurlCachedFile.cc			\
	CurlPDFDocBuilder.cc
Hib Eris's avatar
Hib Eris committed
133
134
135

endif

136
if USE_CMS
Albert Astals Cid's avatar
Albert Astals Cid committed
137
cms_includes = $(LCMS_CFLAGS)
138
cms_libs = $(LCMS_LIBS)
139
140
endif

Kristian Høgsberg's avatar
Kristian Høgsberg committed
141
142
INCLUDES =					\
	-I$(top_srcdir)				\
143
	-I$(top_srcdir)/goo			\
Albert Astals Cid's avatar
Albert Astals Cid committed
144
	$(cms_includes)				\
145
	$(splash_includes)			\
Kristian Høgsberg's avatar
Kristian Høgsberg committed
146
	$(cairo_includes)			\
147
	$(arthur_includes)			\
148
	$(libjpeg_includes)			\
149
	$(libtiff_includes)			\
150
	$(libjpeg2000_includes)			\
151
	$(libpng_includes)			\
Hib Eris's avatar
Hib Eris committed
152
	$(libcurl_includes)			\
153
154
	$(FREETYPE_CFLAGS)			\
	$(FONTCONFIG_CFLAGS)
Kristian Høgsberg's avatar
Kristian Høgsberg committed
155
156
157

lib_LTLIBRARIES = libpoppler.la

Albert Astals Cid's avatar
Albert Astals Cid committed
158
159
noinst_LTLIBRARIES = $(poppler_cairo)		\
	$(poppler_arthur)
160

161
162
163
CFLAGS+=$(PTHREAD_CFLAGS)
CXXFLAGS+=$(PTHREAD_CFLAGS)

Kristian Høgsberg's avatar
Kristian Høgsberg committed
164
165
166
libpoppler_la_LIBADD =				\
	$(top_builddir)/goo/libgoo.la		\
	$(top_builddir)/fofi/libfofi.la		\
167
	$(cms_libs)				\
Kristian Høgsberg's avatar
Kristian Høgsberg committed
168
	$(splash_libs)				\
169
	$(libtiff_libs)				\
170
	$(libjpeg_libs)				\
171
	$(libpng_libs)				\
172
	$(zlib_libs)				\
Hib Eris's avatar
Hib Eris committed
173
	$(libcurl_libs)				\
174
	$(libjpeg2000_libs)			\
175
	$(FREETYPE_LIBS)			\
Albert Astals Cid's avatar
Albert Astals Cid committed
176
	$(FONTCONFIG_LIBS)			\
177
	$(PTHREAD_LIBS)				\
Albert Astals Cid's avatar
Albert Astals Cid committed
178
	$(win32_libs)
Kristian Høgsberg's avatar
Kristian Høgsberg committed
179

Albert Astals Cid's avatar
0.21.2    
Albert Astals Cid committed
180
libpoppler_la_LDFLAGS = -version-info 31:0:0 @create_shared_lib@ @auto_import_flags@
Albert Astals Cid's avatar
Albert Astals Cid committed
181

182
183
if ENABLE_XPDF_HEADERS

Kristian Høgsberg's avatar
Kristian Høgsberg committed
184
185
186
poppler_includedir = $(includedir)/poppler
poppler_include_HEADERS =	\
	$(splash_headers)	\
Hib Eris's avatar
Hib Eris committed
187
	$(curl_headers)		\
Kristian Høgsberg's avatar
Kristian Høgsberg committed
188
189
190
191
	Annot.h			\
	Array.h			\
	BuiltinFont.h		\
	BuiltinFontTables.h	\
Hib Eris's avatar
Hib Eris committed
192
	CachedFile.h		\
Kristian Høgsberg's avatar
Kristian Høgsberg committed
193
194
195
	Catalog.h		\
	CharCodeToUnicode.h	\
	CMap.h			\
196
	DateInfo.h		\
Kristian Høgsberg's avatar
Kristian Høgsberg committed
197
198
199
	Decrypt.h		\
	Dict.h			\
	Error.h			\
200
	FileSpec.h		\
Kristian Høgsberg's avatar
Kristian Høgsberg committed
201
	FontEncodingTables.h	\
202
	FontInfo.h		\
203
	Form.h 			\
Kristian Høgsberg's avatar
Kristian Høgsberg committed
204
205
206
207
	Function.h		\
	Gfx.h			\
	GfxFont.h		\
	GfxState.h		\
208
	GfxState_helpers.h	\
Kristian Høgsberg's avatar
Kristian Høgsberg committed
209
	GlobalParams.h		\
Hib Eris's avatar
Hib Eris committed
210
	Hints.h			\
Kristian Høgsberg's avatar
Kristian Høgsberg committed
211
212
213
	JArithmeticDecoder.h	\
	JBIG2Stream.h		\
	Lexer.h			\
Hib Eris's avatar
Hib Eris committed
214
	Linearization.h 	\
Kristian Høgsberg's avatar
Kristian Høgsberg committed
215
	Link.h			\
216
	LocalPDFDocBuilder.h	\
Hugo Mercier's avatar
Hugo Mercier committed
217
	Movie.h                 \
Kristian Høgsberg's avatar
Kristian Høgsberg committed
218
219
	NameToCharCode.h	\
	Object.h		\
220
	OptionalContent.h	\
Kristian Høgsberg's avatar
Kristian Høgsberg committed
221
222
223
	Outline.h		\
	OutputDev.h		\
	Page.h			\
224
	PageTransition.h	\
Kristian Høgsberg's avatar
Kristian Høgsberg committed
225
226
	Parser.h		\
	PDFDoc.h		\
Hib Eris's avatar
Hib Eris committed
227
	PDFDocBuilder.h		\
Kristian Høgsberg's avatar
Kristian Høgsberg committed
228
	PDFDocEncoding.h	\
Hib Eris's avatar
Hib Eris committed
229
	PDFDocFactory.h		\
Albert Astals Cid's avatar
Albert Astals Cid committed
230
	PopplerCache.h		\
231
	ProfileData.h		\
232
	PreScanOutputDev.h	\
Kristian Høgsberg's avatar
Kristian Høgsberg committed
233
	PSTokenizer.h		\
234
	Rendition.h		\
235
	StdinCachedFile.h	\
236
	StdinPDFDocBuilder.h	\
Kristian Høgsberg's avatar
Kristian Høgsberg committed
237
238
239
240
241
	Stream-CCITT.h		\
	Stream.h		\
	UnicodeMap.h		\
	UnicodeMapTables.h	\
	UnicodeTypeTable.h	\
242
243
244
	UnicodeCClassTables.h	\
	UnicodeCompTables.h	\
	UnicodeDecompTables.h	\
245
	ViewerPreferences.h	\
Kristian Høgsberg's avatar
Kristian Høgsberg committed
246
247
248
249
250
251
252
	XRef.h			\
	CharTypes.h		\
	CompactFontTables.h	\
	ErrorCodes.h		\
	NameToUnicodeTable.h	\
	PSOutputDev.h		\
	TextOutputDev.h		\
253
	SecurityHandler.h	\
254
	UTF.h			\
255
	UTF8.h			\
256
	XpdfPluginAPI.h		\
257
258
	Sound.h
nodist_poppler_include_HEADERS = poppler-config.h
Kristian Høgsberg's avatar
Kristian Høgsberg committed
259

260
261
endif

Kristian Høgsberg's avatar
Kristian Høgsberg committed
262
263
264
libpoppler_la_SOURCES =		\
	$(splash_sources)	\
	$(cairo_sources)	\
265
	$(arthur_sources)	\
266
	$(libjpeg_sources)	\
267
	$(zlib_sources)		\
268
	$(libjpeg2000_sources)	\
Hib Eris's avatar
Hib Eris committed
269
	$(curl_sources)		\
Kristian Høgsberg's avatar
Kristian Høgsberg committed
270
271
272
273
	Annot.cc		\
	Array.cc 		\
	BuiltinFont.cc		\
	BuiltinFontTables.cc	\
Hib Eris's avatar
Hib Eris committed
274
	CachedFile.cc		\
Kristian Høgsberg's avatar
Kristian Høgsberg committed
275
276
277
	Catalog.cc 		\
	CharCodeToUnicode.cc	\
	CMap.cc			\
278
	DateInfo.cc		\
Kristian Høgsberg's avatar
Kristian Høgsberg committed
279
280
281
	Decrypt.cc		\
	Dict.cc 		\
	Error.cc 		\
282
	FileSpec.cc		\
Kristian Høgsberg's avatar
Kristian Høgsberg committed
283
	FontEncodingTables.cc	\
284
	Form.cc 		\
285
	FontInfo.cc		\
Kristian Høgsberg's avatar
Kristian Høgsberg committed
286
287
288
289
290
	Function.cc		\
	Gfx.cc 			\
	GfxFont.cc 		\
	GfxState.cc		\
	GlobalParams.cc		\
Hib Eris's avatar
Hib Eris committed
291
	Hints.cc		\
Kristian Høgsberg's avatar
Kristian Høgsberg committed
292
293
294
	JArithmeticDecoder.cc	\
	JBIG2Stream.cc		\
	Lexer.cc 		\
Hib Eris's avatar
Hib Eris committed
295
	Linearization.cc 	\
Kristian Høgsberg's avatar
Kristian Høgsberg committed
296
	Link.cc 		\
297
	LocalPDFDocBuilder.cc	\
Hugo Mercier's avatar
Hugo Mercier committed
298
	Movie.cc                \
Kristian Høgsberg's avatar
Kristian Høgsberg committed
299
300
	NameToCharCode.cc	\
	Object.cc 		\
301
	OptionalContent.cc	\
Kristian Høgsberg's avatar
Kristian Høgsberg committed
302
303
304
	Outline.cc		\
	OutputDev.cc 		\
	Page.cc 		\
305
	PageTransition.cc	\
Kristian Høgsberg's avatar
Kristian Høgsberg committed
306
307
308
	Parser.cc 		\
	PDFDoc.cc 		\
	PDFDocEncoding.cc	\
Hib Eris's avatar
Hib Eris committed
309
	PDFDocFactory.cc	\
310
	PopplerCache.cc		\
311
	ProfileData.cc		\
312
	PreScanOutputDev.cc \
Kristian Høgsberg's avatar
Kristian Høgsberg committed
313
	PSTokenizer.cc		\
314
	Rendition.cc		\
315
	StdinCachedFile.cc	\
316
	StdinPDFDocBuilder.cc	\
Kristian Høgsberg's avatar
Kristian Høgsberg committed
317
	Stream.cc 		\
318
	strtok_r.cpp		\
Kristian Høgsberg's avatar
Kristian Høgsberg committed
319
320
	UnicodeMap.cc		\
	UnicodeTypeTable.cc	\
321
	UTF.cc                  \
322
	ViewerPreferences.cc	\
Kristian Høgsberg's avatar
Kristian Høgsberg committed
323
324
	XRef.cc			\
	PSOutputDev.cc		\
325
326
	TextOutputDev.cc	\
	PageLabelInfo.h		\
327
	PageLabelInfo.cc	\
328
	SecurityHandler.cc	\
Albert Astals Cid's avatar
Albert Astals Cid committed
329
	Sound.cc		\
330
	XpdfPluginAPI.cc
331

332
333
EXTRA_DIST = gen-unicode-tables.py	\
             GlobalParamsWin.cc