summaryrefslogtreecommitdiff
path: root/cpp/Makefile.am
blob: 91fb15c309d787af184ec1f16152e2fe5f04c10a (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
SUBDIRS = . tests

lib_LTLIBRARIES = libpoppler-cpp.la

libpoppler_cpp_includedir = $(includedir)/poppler/cpp
libpoppler_cpp_include_HEADERS =		\
	poppler-document.h			\
	poppler-embedded-file.h			\
	poppler-font.h				\
	poppler-global.h			\
	poppler-image.h				\
	poppler-page.h				\
	poppler-page-renderer.h			\
	poppler-page-transition.h		\
	poppler-rectangle.h			\
	poppler-toc.h				\
	$(builddir)/poppler-version.h

libpoppler_cpp_la_SOURCES =			\
	poppler-document.cpp			\
	poppler-document-private.h		\
	poppler-embedded-file.cpp		\
	poppler-embedded-file-private.h		\
	poppler-font.cpp			\
	poppler-global.cpp			\
	poppler-image.cpp			\
	poppler-image-private.h			\
	poppler-page.cpp			\
	poppler-page-private.h			\
	poppler-page-renderer.cpp		\
	poppler-page-transition.cpp		\
	poppler-private.cpp			\
	poppler-private.h			\
	poppler-rectangle.cpp			\
	poppler-toc.cpp				\
	poppler-toc-private.h			\
	poppler-version.cpp

if BUILD_LIBJPEG
libjpeg_includes = $(LIBJPEG_CFLAGS)
endif

if BUILD_LIBTIFF
libtiff_includes = $(LIBTIFF_CFLAGS)
endif

if BUILD_LIBOPENJPEG
libjpeg2000_includes = $(LIBOPENJPEG_CFLAGS)
endif

if BUILD_LIBPNG
libpng_includes = $(LIBPNG_CFLAGS)
endif

libpoppler_cpp_la_CPPFLAGS =			\
	-I$(top_srcdir)				\
	-I$(top_srcdir)/goo			\
	-I$(top_srcdir)/poppler			\
	$(libjpeg_includes)			\
	$(libtiff_includes)			\
	$(libjpeg2000_includes)			\
	$(libpng_includes)

libpoppler_cpp_la_CXXFLAGS =			\
	-Dpoppler_cpp_EXPORTS

libpoppler_cpp_la_LIBADD =			\
	$(top_builddir)/poppler/libpoppler.la	\
	$(LIBICONV)

libpoppler_cpp_la_LDFLAGS =			\
	-version-info 3:0:3			\
	@create_shared_lib@			\
	@auto_import_flags@