1
0
mirror of https://github.com/pdf2htmlEX/pdf2htmlEX.git synced 2024-12-22 04:50:09 +00:00
pdf2htmlEX/buildScripts/buildPoppler

112 lines
4.6 KiB
Plaintext
Raw Permalink Normal View History

#!/bin/sh
2019-11-21 13:31:28 +00:00
# This shell script builds the latest poppler
2019-11-21 13:31:28 +00:00
echo ""
echo "-------------------------------------------------------------------"
echo "BUILDING Poppler (using CMake)"
echo "-------------------------------------------------------------------"
echo ""
2020-06-02 11:58:27 +00:00
set -ev
2019-11-21 13:31:28 +00:00
cd poppler
mkdir build
cd build
cmake \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX=$PDF2HTMLEX_PREFIX \
-DENABLE_UNSTABLE_API_ABI_HEADERS=OFF \
-DBUILD_GTK_TESTS=OFF \
-DBUILD_QT5_TESTS=OFF \
2023-12-18 10:39:47 +00:00
-DBUILD_QT6_TESTS=OFF \
-DBUILD_CPP_TESTS=OFF \
2023-12-18 10:39:47 +00:00
-DBUILD_MANUAL_TESTS=OFF \
-DENABLE_BOOST=OFF \
-DENABLE_SPLASH=ON \
-DENABLE_UTILS=OFF \
-DENABLE_CPP=OFF \
-DENABLE_GLIB=ON \
-DENABLE_GOBJECT_INTROSPECTION=OFF \
-DENABLE_GTK_DOC=OFF \
-DENABLE_QT5=OFF \
2023-12-18 10:39:47 +00:00
-DENABLE_QT6=OFF \
-DENABLE_LIBOPENJPEG="none" \
-DENABLE_DCTDECODER="libjpeg" \
2023-12-18 10:39:47 +00:00
-DENABLE_CMS="none" \
-DENABLE_LCMS=OFF \
-DENABLE_LIBCURL=OFF \
2023-12-18 10:39:47 +00:00
-DENABLE_LIBTIFF=OFF \
-DWITH_TIFF=OFF \
-DWITH_NSS3=OFF \
-DENABLE_NSS3=OFF \
-DENABLE_GPGME=OFF \
-DENABLE_ZLIB=ON \
-DENABLE_ZLIB_UNCOMPRESS=OFF \
-DUSE_FLOAT=OFF \
-DBUILD_SHARED_LIBS=OFF \
-DRUN_GPERF_IF_PRESENT=OFF \
-DEXTRA_WARN=OFF \
2020-06-02 11:58:27 +00:00
-DWITH_JPEG=ON \
-DWITH_PNG=ON \
-DWITH_Cairo=ON \
..
2019-11-25 16:04:50 +00:00
make $MAKE_PARALLEL
###############################################################
# Poppler CMakeLists.text build options (2020/05/31):
# ENABLE_UNSTABLE_API_ABI_HEADERS=OFF "Install API/ABI unstable xpdf headers."
# BUILD_GTK_TESTS=OFF "Whether to compile the GTK+ test programs."
# BUILD_QT5_TESTS=OFF "Whether to compile the Qt5 test programs."
# BUILD_CPP_TESTS=OFF "Whether to compile the CPP test programs."
# ENABLE_SPLASH=ON "Build the Splash graphics backend."
# ENABLE_UTILS=OFF "Compile poppler command line utils."
# ENABLE_CPP=ON "Compile poppler cpp wrapper."
# ENABLE_GLIB=ON "Compile poppler glib wrapper."
# ENABLE_GOBJECT_INTROSPECTION=ON "Whether to generate GObject introspection."
# ENABLE_GTK_DOC=OFF "Whether to generate glib API documentation."
# ENABLE_QT5=OFF "Compile poppler qt5 wrapper."
#
# ENABLE_LIBOPENJPEG="none"
#
# "Use libopenjpeg for JPX streams. Possible values: openjpeg2,
# unmaintained, none. 'unmaintained' gives you the internal unmaintained
# decoder. Use at your own risk. 'none' compiles no JPX decoder at all.
# Default: openjpeg2"
#
# ENABLE_CMS="lcms2"
#
# "Use color management system. Possible values: lcms2, none. 'none'
# disables color management system."
#
# ENABLE_DCTDECODER="libjpeg"
#
# "Use libjpeg for DCT streams. Possible values: libjpeg, unmaintained,
# none. will use libjpeg if available or fail if not. 'unmaintained' gives
# you the internal unmaintained decoder. Use at your own risk. 'none'
# compiles no DCT decoder at all. Default: libjpeg"
#
# ENABLE_LIBCURL=OFF "Build libcurl based HTTP support."
# ENABLE_ZLIB=ON "Build with zlib."
# ENABLE_ZLIB_UNCOMPRESS=OFF "Use zlib to uncompress flate streams (not totally safe)."
# USE_FLOAT=OFF "Use single precision arithmetic in the Splash backend"
# BUILD_SHARED_LIBS=OFF "Build poppler as a shared library"
# RUN_GPERF_IF_PRESENT=OFF "Run gperf if it is found"
# EXTRA_WARN=OFF "Enable extra compile warnings"
# The following packages are optional and only used if found:
# JPEG is required by pdf2htmlEX
# PNG is required by pdf2htmlEX
# TIFF is not used by pdf2htmlEX
# NSS3 is not used by pdf2htmlEX?
# CAIRO is required by pdf2htmlEX
# GLIB is requrired by pdf2htmlEX
# GObjectIntrospection is not needed by pdf2htmlEX?
# Iconv is only used if ENABLE_CPP
#
# They can be explicitly DISABLED using ENABLE_XXXX:BOOL=OFF where XXXX is
# the package name