diff options
-rw-r--r-- | Makefile.am | 6 | ||||
-rw-r--r-- | configure.ac | 15 | ||||
-rw-r--r-- | cpp/Makefile.am | 32 |
3 files changed, 52 insertions, 1 deletions
diff --git a/Makefile.am b/Makefile.am index 2a752622..87209a61 100644 --- a/Makefile.am +++ b/Makefile.am @@ -25,11 +25,15 @@ qt4_subdir = qt4 qt4_pc_file = poppler-qt4.pc endif +if BUILD_POPPLER_CPP +cpp_subdir = cpp +endif + if BUILD_UTILS utils_subdir = utils endif -SUBDIRS = goo fofi $(splash_subdir) poppler $(utils_subdir) $(glib_subdir) $(qt_subdir) test $(qt4_subdir) +SUBDIRS = goo fofi $(splash_subdir) poppler $(utils_subdir) $(glib_subdir) $(qt_subdir) test $(qt4_subdir) $(cpp_subdir) EXTRA_DIST = \ README-XPDF \ diff --git a/configure.ac b/configure.ac index 7a8ca19c..28d1b67b 100644 --- a/configure.ac +++ b/configure.ac @@ -444,6 +444,19 @@ fi AM_CONDITIONAL(BUILD_POPPLER_QT4, test "x$enable_poppler_qt4" = "xyes") +dnl +dnl CPP frontend +dnl + +AC_ARG_ENABLE(poppler-cpp, + AC_HELP_STRING([--disable-poppler-cpp], + [Don't compile poppler cpp wrapper.]), + enable_poppler_cpp=$enableval, + enable_poppler_cpp="yes") + +AM_CONDITIONAL(BUILD_POPPLER_CPP, test "x$enable_poppler_cpp" = "xyes") + + AC_ARG_ENABLE(gtk-test, AC_HELP_STRING([--disable-gtk-test], [Don't compile GTK+ test program.]), @@ -552,6 +565,7 @@ qt4/Makefile qt4/src/Makefile qt4/tests/Makefile qt4/demos/Makefile +cpp/Makefile poppler.pc poppler-cairo.pc poppler-splash.pc @@ -569,6 +583,7 @@ echo " qt wrapper: $enable_poppler_qt" echo " qt4 wrapper: $enable_poppler_qt4" echo " glib wrapper: $enable_poppler_glib" echo " use GDK: $enable_gdk" +echo " cpp wrapper: $enable_poppler_cpp" echo " use gtk-doc: $enable_gtk_doc" echo " use libjpeg: $enable_libjpeg" echo " use libpng: $enable_libpng" diff --git a/cpp/Makefile.am b/cpp/Makefile.am new file mode 100644 index 00000000..58b8dd1f --- /dev/null +++ b/cpp/Makefile.am @@ -0,0 +1,32 @@ +INCLUDES = \ + -I$(top_srcdir) \ + -I$(top_srcdir)/goo \ + -I$(top_srcdir)/poppler + + +poppler_includedir = $(includedir)/poppler/cpp +poppler_include_HEADERS = \ + poppler-document.h \ + poppler-embedded-file.h \ + poppler-font.h \ + poppler-global.h \ + poppler-page.h \ + poppler-page-transition.h \ + poppler-rectangle.h \ + poppler-toc.h + +lib_LTLIBRARIES = libpoppler-cpp.la +libpoppler_cpp_la_SOURCES = \ + poppler-document.cpp \ + poppler-embedded-file.cpp \ + poppler-font.cpp \ + poppler-global.cpp \ + poppler-page.cpp \ + poppler-page-transition.cpp \ + poppler-private.cpp \ + poppler-toc.cpp + +libpoppler_cpp_la_LIBADD = \ + $(top_builddir)/poppler/libpoppler.la + +libpoppler_cpp_la_LDFLAGS = -version-info 1:0:1 @create_shared_lib@ |