aboutsummaryrefslogtreecommitdiff
path: root/package
diff options
context:
space:
mode:
authorGravatar Fabrice Fontaine <fontaine.fabrice@gmail.com>2021-01-10 20:21:24 +0100
committerGravatar Thomas Petazzoni <thomas.petazzoni@bootlin.com>2021-01-18 22:58:22 +0100
commit9d1d4818c39d97ad7a1cdf6e075b9acae6dfff71 (patch)
tree1c22776a8bdfd3573ec4e10f5efd641e779ad96a /package
parent635c59ef725688b7e719939c83daa5126a2c0131 (diff)
downloadbuildroot-9d1d4818c39d97ad7a1cdf6e075b9acae6dfff71.tar.gz
buildroot-9d1d4818c39d97ad7a1cdf6e075b9acae6dfff71.tar.bz2
package/poppler: add gobject-introspection support
Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
Diffstat (limited to 'package')
-rw-r--r--package/poppler/poppler.mk8
1 files changed, 7 insertions, 1 deletions
diff --git a/package/poppler/poppler.mk b/package/poppler/poppler.mk
index 69a3bcace5..8e8dafc715 100644
--- a/package/poppler/poppler.mk
+++ b/package/poppler/poppler.mk
@@ -17,7 +17,6 @@ POPPLER_CONF_OPTS = \
-DBUILD_GTK_TESTS=OFF \
-DBUILD_QT5_TESTS=OFF \
-DBUILD_CPP_TESTS=OFF \
- -DENABLE_GOBJECT_INTROSPECTION=OFF \
-DENABLE_GTK_DOC=OFF
# cmake older than 3.10 requires this to avoid try_run() in FindThreads
@@ -34,6 +33,13 @@ else
POPPLER_CONF_OPTS += -DENABLE_DCTDECODER=none -DWITH_JPEG=OFF
endif
+ifeq ($(BR2_PACKAGE_GOBJECT_INTROSPECTION),y)
+POPPLER_DEPENDENCIES += gobject-introspection
+POPPLER_CONF_OPTS += -DENABLE_GOBJECT_INTROSPECTION=ON
+else
+POPPLER_CONF_OPTS += -DENABLE_GOBJECT_INTROSPECTION=OFF
+endif
+
ifeq ($(BR2_PACKAGE_LIBPNG),y)
POPPLER_DEPENDENCIES += libpng
POPPLER_CONF_OPTS += -DWITH_PNG=ON