[gegl] meson: add building of pdf-load



commit 366447b5c2a9057fe6e4cf05400cd7c3658bde89
Author: Øyvind Kolås <pippin gimp org>
Date:   Tue Feb 18 12:28:06 2020 +0100

    meson: add building of pdf-load

 meson.build                     | 5 +++++
 meson_options.txt               | 1 +
 operations/external/meson.build | 6 ++++++
 3 files changed, 12 insertions(+)
---
diff --git a/meson.build b/meson.build
index 4a32e03ce..42d2900ff 100644
--- a/meson.build
+++ b/meson.build
@@ -252,6 +252,10 @@ libwebp   = dependency('libwebp',     version:'>=0.5.0',
   required: get_option('webp')
 )
 
+poppler = dependency('poppler-glib', version: '>=0.71.0',
+  required: get_option('poppler')
+)
+
 pygobject3  = dependency('pygobject-3.0', version: '>=3.2.0',
   required: get_option('pygobject')
 )
@@ -368,6 +372,7 @@ message('\n'.join(['',
 '  Cairo:           @0@'.format(cairo.found()),
 '  Pango:           @0@'.format(pango.found()),
 '  pangocairo:      @0@'.format(pangocairo.found()),
+'  poppler:         @0@'.format(poppler.found()),
 '  GDKPixbuf:       @0@'.format(gdk_pixbuf.found()),
 '  JPEG:            @0@'.format(libjpeg.found()),
 '  PNG:             @0@'.format(libpng.found()),
diff --git a/meson_options.txt b/meson_options.txt
index 41bdab15c..9bc643baa 100644
--- a/meson_options.txt
+++ b/meson_options.txt
@@ -24,6 +24,7 @@ option('openexr',       type: 'feature', value: 'auto')
 option('cairo',         type: 'feature', value: 'auto')
 option('pango',         type: 'feature', value: 'auto')
 option('pangocairo',    type: 'feature', value: 'auto')
+option('poppler',       type: 'feature', value: 'auto')
 option('pygobject',     type: 'feature', value: 'auto')
 option('sdl1',          type: 'feature', value: 'disabled')
 option('sdl2',          type: 'feature', value: 'auto')
diff --git a/operations/external/meson.build b/operations/external/meson.build
index 306d26f8b..06cf8e6f4 100644
--- a/operations/external/meson.build
+++ b/operations/external/meson.build
@@ -29,6 +29,12 @@ if libpng.found()
   ]
 endif
 
+if poppler.found()
+  operations += [
+    { 'name': 'pdf-load', 'deps': poppler }
+    ]
+endif
+
 if libjpeg.found()
   operations += [
     { 'name': 'jpg-load', 'deps': libjpeg },


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]