[gthumb] meson: started porting



commit 4dc5cf5f6373594c2fd3204ca48519282e80b382
Author: Paolo Bacchilega <paobac src gnome org>
Date:   Thu Oct 19 18:39:55 2017 +0200

    meson: started porting

 gthumb/gth-browser-actions-callbacks.c |    2 +-
 gthumb/make-authors-tab.sh             |    3 +
 gthumb/make-header.sh                  |    6 +-
 gthumb/meson.build                     |  296 +++++++++++++++++++++++++++
 meson.build                            |  345 ++++++++++++++++++++++++++++++++
 meson_options.txt                      |   83 ++++++++
 6 files changed, 732 insertions(+), 3 deletions(-)
---
diff --git a/gthumb/gth-browser-actions-callbacks.c b/gthumb/gth-browser-actions-callbacks.c
index 9ff0c59..7a7fc96 100644
--- a/gthumb/gth-browser-actions-callbacks.c
+++ b/gthumb/gth-browser-actions-callbacks.c
@@ -150,7 +150,7 @@ gth_application_activate_about (GSimpleAction *action,
                                         NULL);
 
        gtk_show_about_dialog (GTK_WINDOW (window),
-                              "version", VERSION,
+                              "version", PACKAGE_VERSION,
                               "copyright", "Copyright \xc2\xa9 2001-2013 Free Software Foundation, Inc.",
                               "comments", _("An image viewer and browser for GNOME."),
                               "authors", authors,
diff --git a/gthumb/make-authors-tab.sh b/gthumb/make-authors-tab.sh
new file mode 100755
index 0000000..e99c2c3
--- /dev/null
+++ b/gthumb/make-authors-tab.sh
@@ -0,0 +1,3 @@
+infile="$1"
+outfile="$2"
+sed -e 's/^/"/' -e 's/$/",/' < $infile > $outfile
diff --git a/gthumb/make-header.sh b/gthumb/make-header.sh
index 9d2384d..c0cd66b 100755
--- a/gthumb/make-header.sh
+++ b/gthumb/make-header.sh
@@ -1,12 +1,14 @@
 #!/bin/sh
 
-template="$1"
+outfile="$1"
+infile="$2"
 
 shift
+shift
 includes="\\\\n"
 for i in "$@"; do
        includes="${includes}#include <gthumb/"$i">\\\\n"
 done
 
 sed -e 's|@@|'"$includes"'|' -e 's|\\n|\
-|g' $template
+|g' < $infile > $outfile
diff --git a/gthumb/meson.build b/gthumb/meson.build
new file mode 100644
index 0000000..c80a388
--- /dev/null
+++ b/gthumb/meson.build
@@ -0,0 +1,296 @@
+# Sources
+
+public_header_files = [
+  'cairo-scale.h',
+  'cairo-utils.h',
+  'color-utils.h',
+  'dom.h',
+  'gfixed.h',
+  'gimp-op.h',
+  'gio-utils.h',
+  'glib-utils.h',
+  'gnome-desktop-thumbnail.h',
+  'gsignature.h',
+  'gth-accel-button.h',
+  'gth-auto-paned.h',
+  'gth-async-task.h',
+  'gth-buffer-data.h',
+  'gth-browser.h',
+  'gth-color-manager.h',
+  'gth-color-scale.h',
+  'gth-delete-task.h',
+  'gth-duplicable.h',
+  'gth-empty-list.h',
+  'gth-extensions.h',
+  'gth-file-chooser-dialog.h',
+  'gth-error.h',
+  'gth-file-data.h',
+  'gth-file-list.h',
+  'gth-file-properties.h',
+  'gth-file-selection.h',
+  'gth-file-source.h',
+  'gth-file-source-vfs.h',
+  'gth-file-store.h',
+  'gth-file-tool.h',
+  'gth-file-view.h',
+  'gth-filter.h',
+  'gth-filterbar.h',
+  'gth-filter-editor-dialog.h',
+  'gth-filter-file.h',
+  'gth-filter-grid.h',
+  'gth-folder-tree.h',
+  'gth-grid-view.h',
+  'gth-histogram.h',
+  'gth-histogram-view.h',
+  'gth-hook.h',
+  'gth-icc-profile.h',
+  'gth-icon-cache.h',
+  'gth-image.h',
+  'gth-image-dragger.h',
+  'gth-image-history.h',
+  'gth-image-list-task.h',
+  'gth-image-loader.h',
+  'gth-image-navigator.h',
+  'gth-image-overview.h',
+  'gth-image-preloader.h',
+  'gth-image-saver.h',
+  'gth-image-selector.h',
+  'gth-image-task.h',
+  'gth-image-task-chain.h',
+  'gth-image-utils.h',
+  'gth-image-viewer.h',
+  'gth-image-viewer-tool.h',
+  'gth-info-bar.h',
+  'gth-load-file-data-task.h',
+  'gth-location-bar.h',
+  'gth-location-chooser.h',
+  'gth-main.h',
+  'gth-menu-manager.h',
+  'gth-metadata.h',
+  'gth-metadata-chooser.h',
+  'gth-metadata-provider.h',
+  'gth-monitor.h',
+  'gth-multipage.h',
+  'gth-overwrite-dialog.h',
+  'gth-paned.h',
+  'gth-preferences.h',
+  'gth-progress-dialog.h',
+  'gth-request-dialog.h',
+  'gth-save-file-data-task.h',
+  'gth-save-image-task.h',
+  'gth-screensaver.h',
+  'gth-sidebar.h',
+  'gth-statusbar.h',
+  'gth-source-tree.h',
+  'gth-string-list.h',
+  'gth-tags-entry.h',
+  'gth-tags-file.h',
+  'gth-task.h',
+  'gth-test.h',
+  'gth-test-aspect-ratio.h',
+  'gth-test-category.h',
+  'gth-test-chain.h',
+  'gth-test-selector.h',
+  'gth-test-simple.h',
+  'gth-thumb-loader.h',
+  'gth-time.h',
+  'gth-time-selector.h',
+  'gth-toolbox.h',
+  'gth-uri-list.h',
+  'gth-user-dir.h',
+  'gth-viewer-page.h',
+  'gth-window.h',
+  'gtk-utils.h',
+  'gvaluehash.h',
+  'main.h',
+  'pixbuf-cache.h',
+  'pixbuf-io.h',
+  'pixbuf-utils.h',
+  'typedefs.h',
+  'zlib-utils.h'
+]
+
+enum_files = gnome.mkenums_simple('gth-enum-types', sources: files(public_header_files))
+
+marshal_files = gnome.genmarshal('gth-marshal', prefix : 'gth_marshal', sources : 'gth-marshal.list' )
+
+public_header_files += [ 'gth-enum-types.h', 'gth-marshal.h' ]
+
+gthumb_h = custom_target('gthumb.h',
+  input : 'gthumb.h.template',
+  output : 'gthumb.h',
+  command : [ find_program('make-header.sh'), '@OUTPUT@', '@INPUT@', public_header_files ],
+  build_by_default : true
+)
+
+authors_tab = custom_target('authors.tab',
+  input : join_paths(meson.source_root(), 'AUTHORS'),
+  output : 'AUTHORS.tab',
+  command : [ find_program('make-authors-tab.sh'), '@INPUT@', '@OUTPUT@' ],
+  build_by_default : true
+)
+
+gresource_files = gnome.compile_resources('gth-resources', 'gthumb.gresource.xml', c_name : 'gth')
+
+source_files = files(
+  'cairo-scale.c',
+  'cairo-utils.c',
+  'color-utils.c',
+  'dlg-location.c',
+  'dlg-personalize-filters.c',
+  'dlg-preferences.c',
+  'dlg-preferences-browser.c',
+  'dlg-preferences-extensions.c',
+  'dlg-preferences-general.c',
+  'dlg-sort-order.c',
+  'dom.c',
+  'gimp-op.c',
+  'gio-utils.c',
+  'glib-utils.c',
+  'gsignature.c',
+  'gth-accel-button.c',
+  'gth-application.c',
+  'gth-auto-paned.c',
+  'gth-async-task.c',
+  'gth-browser.c',
+  'gth-browser-actions-callbacks.c',
+  'gth-buffer-data.c',
+  'gth-color-manager.c',
+  'gth-color-scale.c',
+  'gth-delete-task.c',
+  'gth-duplicable.c',
+  'gth-empty-list.c',
+  'gth-error.c',
+  'gth-extensions.c',
+  'gth-file-chooser-dialog.c',
+  'gth-file-data.c',
+  'gth-file-details.c',
+  'gth-file-list.c',
+  'gth-file-properties.c',
+  'gth-file-selection.c',
+  'gth-file-source.c',
+  'gth-file-source-vfs.c',
+  'gth-file-store.c',
+  'gth-file-tool.c',
+  'gth-file-view.c',
+  'gth-filter.c',
+  'gth-filterbar.c',
+  'gth-filter-editor-dialog.c',
+  'gth-filter-file.c',
+  'gth-filter-grid.c',
+  'gth-folder-tree.c',
+  'gth-grid-view.c',
+  'gth-histogram.c',
+  'gth-histogram-view.c',
+  'gth-hook.c',
+  'gth-icc-profile.c',
+  'gth-icon-cache.c',
+  'gth-image.c',
+  'gth-image-dragger.c',
+  'gth-image-history.c',
+  'gth-image-list-task.c',
+  'gth-image-loader.c',
+  'gth-image-navigator.c',
+  'gth-image-overview.c',
+  'gth-image-preloader.c',
+  'gth-image-saver.c',
+  'gth-image-selector.c',
+  'gth-image-task.c',
+  'gth-image-task-chain.c',
+  'gth-image-utils.c',
+  'gth-image-viewer.c',
+  'gth-image-viewer-tool.c',
+  'gth-info-bar.c',
+  'gth-load-file-data-task.c',
+  'gth-location-bar.c',
+  'gth-location-chooser.c',
+  'gth-main.c',
+  'gth-main-default-hooks.c',
+  'gth-main-default-metadata.c',
+  'gth-main-default-sort-types.c',
+  'gth-main-default-tests.c',
+  'gth-main-default-types.c',
+  'gth-menu-manager.c',
+  'gth-metadata.c',
+  'gth-metadata-chooser.c',
+  'gth-metadata-provider.c',
+  'gth-metadata-provider-file.c',
+  'gth-monitor.c',
+  'gth-multipage.c',
+  'gth-overwrite-dialog.c',
+  'gth-paned.c',
+  'gth-preferences.c',
+  'gth-progress-dialog.c',
+  'gth-request-dialog.c',
+  'gth-save-file-data-task.c',
+  'gth-save-image-task.c',
+  'gth-screensaver.c',
+  'gth-sidebar.c',
+  'gth-source-tree.c',
+  'gth-statusbar.c',
+  'gth-string-list.c',
+  'gth-tags-entry.c',
+  'gth-tags-file.c',
+  'gth-task.c',
+  'gth-test.c',
+  'gth-test-aspect-ratio.c',
+  'gth-test-category.c',
+  'gth-test-chain.c',
+  'gth-test-selector.c',
+  'gth-test-simple.c',
+  'gth-thumb-loader.c',
+  'gth-time.c',
+  'gth-time-selector.c',
+  'gth-toolbox.c',
+  'gth-trash-task.c',
+  'gth-uri-list.c',
+  'gth-user-dir.c',
+  'gth-viewer-page.c',
+  'gth-window.c',
+  'gth-window-title.c',
+  'gtk-utils.c',
+  'gvaluehash.c',
+  'main.c',
+  'main-migrate-catalogs.c',
+  'pixbuf-cache.c',
+  'pixbuf-io.c',
+  'pixbuf-utils.c',
+  'zlib-utils.c'
+)
+
+other_files = files(
+  'gnome-desktop-thumbnail.c',
+  'gnome-thumbnail-pixbuf-utils.c'
+)
+
+# Build targets
+
+executable('gthumb', 
+  sources : [ 
+    config_file, 
+    source_files, 
+    other_files,
+    gresource_files, 
+    marshal_files,
+    enum_files
+  ],     
+  dependencies : [ 
+    common_dep,    
+    exiv2_dep,
+    clutter_deps,
+    gstreamer_deps,
+    libchamplain_deps,
+    lcms2_dep,
+    colord_dep,
+    tiff_dep,
+    libwebp_dep,
+    libraw_dep,
+    librsvg_dep,
+    webkit2_dep,
+    libsecret_dep,
+    libbrasero_dep    
+  ],
+  include_directories : config_inc,
+  c_args : c_args,
+  install : true
+)
diff --git a/meson.build b/meson.build
new file mode 100644
index 0000000..dc98781
--- /dev/null
+++ b/meson.build
@@ -0,0 +1,345 @@
+project('gthumb', ['c', 'cpp'],
+  license : 'GPL2+',
+  version : '3.5.3',
+  meson_version : '>=0.43'
+)
+
+glib_version = '>=2.36.0'
+gtk_version = '>=3.16'
+exiv2_version = '>=0.21'
+clutter_version = '>=1.12.0'
+clutter_gtk_version = '>=1.0.0'
+gstreamer_version = '>=1.0.0'
+libraw_version = '>=0.14'
+libsoup_version = '>=2.42'
+libsecret_version = '>=0.11'
+libbrasero_version = '>=3.2.0'
+libchamplain_version = '>=0.12.0'
+librsvg_version = '>=2.34.0'
+libwebp_version = '>=0.2.0'
+libjson_glib_version = '>=0.15.0'
+webkit2_version = '>=1.10.0'
+lcms2_version = '>=2.6'
+colord_version = '>=1.3'
+
+version_array = meson.project_version().split('.')
+api_version = '.'.join([version_array[0], version_array[1]])
+
+gnome = import('gnome')
+i18n = import('i18n')
+gettext_package = meson.project_name()
+c_comp = meson.get_compiler('c')
+prefix = get_option('prefix')
+datadir = join_paths(prefix, get_option('datadir'))
+pkgdatadir = join_paths(datadir, meson.project_name())
+pkgincludedir = join_paths(prefix, 'include', meson.project_name())
+pkglibdir = join_paths(prefix, 'lib', meson.project_name())
+if get_option('run-in-place')
+  uidir = join_paths(meson.source_root(), 'data', 'ui')
+  icondir = join_paths(meson.source_root(), 'data', 'icons')
+  extensionsdir = join_paths(meson.build_root(), 'extensions')
+else
+  uidir = join_paths(pkgdatadir, 'ui')
+  icondir = join_paths(pkgdatadir, 'icons')
+  extensionsdir = join_paths(pkglibdir, 'extensions')
+endif
+
+# Dependencies
+
+if get_option('exiv2')
+  exiv2_dep = dependency('exiv2', version : exiv2_version, required : false)
+  use_exiv2 = exiv2_dep.found()
+else
+  use_exiv2 = false
+endif
+
+if get_option('clutter')
+  clutter_dep = dependency('clutter-1.0', version : clutter_version, required : false)
+  clutter_gtk_dep = dependency('clutter-gtk-1.0', version : clutter_gtk_version, required : false)
+  clutter_deps = [ clutter_dep, clutter_gtk_dep ]
+  use_clutter = clutter_dep.found() and clutter_gtk_dep.found()
+else
+  use_clutter = false
+endif
+
+if get_option('gstreamer')
+  gstreamer_dep = dependency('gstreamer-1.0', version : gstreamer_version, required : false)
+  gstreamer_plugins_base_dep = dependency('gstreamer-plugins-base-1.0', version : gstreamer_version, 
required : false)
+  gstreamer_video_dep = dependency('gstreamer-video-1.0', version : gstreamer_version, required : false)
+  gstreamer_deps = [ gstreamer_dep, gstreamer_plugins_base_dep, gstreamer_video_dep ]
+  use_gstreamer = gstreamer_dep.found() and gstreamer_plugins_base_dep.found() and 
gstreamer_video_dep.found()
+else
+  use_gstreamer = false
+endif
+
+if get_option('libchamplain')
+  libchamplain_dep = dependency('champlain-0.12', version : libchamplain_version, required : false)
+  libchamplain_gtk_dep = dependency('champlain-gtk-0.12', version : libchamplain_version, required : false)
+  libchamplain_deps = [ libchamplain_dep, libchamplain_gtk_dep ]
+  use_libchamplain = libchamplain_dep.found() and libchamplain_gtk_dep.found()
+else
+  use_libchamplain = false
+endif
+
+if get_option('lcms2')
+  lcms2_dep = dependency('lcms2', version : lcms2_version, required : false)
+  use_lcms2 = lcms2_dep.found()
+else
+  use_lcms2 = false
+endif
+
+if get_option('colord')
+  colord_dep = dependency('colord', version : colord_version, required : false)
+  use_colord = colord_dep.found()
+else
+  use_colord = false
+endif
+
+# timezone
+
+have_tm_gmtoff = c_comp.has_member('struct tm', 'tm_gmtoff', prefix : '#include<time.h>')
+if not have_tm_gmtoff
+  code = '''#include <time.h>
+            int main() { timezone = 1; }'''
+  have_timezone = c_comp.compiles(code, name : 'timezone variable is defined')
+  if have_timezone
+    code = '''#include <time.h>    
+              int main() { altzone = 1; }'''
+    have_altzone = c_comp.compiles(code, name : 'altzone variable is defined')    
+  else
+    error('unable to find a way to determine timezone')
+  endif 
+endif
+
+# libjpeg
+
+libz_dep = dependency('zlib')
+libm_dep = c_comp.find_library('m')
+libjpeg_dep = c_comp.find_library('jpeg')
+if libjpeg_dep.found()
+  jpeg_dep = [ libm_dep, libz_dep, libjpeg_dep ]
+endif
+
+code = '''#include <stdio.h>
+#include <jpeglib.h>
+#if JPEG_LIB_VERSION < 80
+#error "wrong version"
+#endif
+int main(int c, char**v) { return 0; }'''
+have_libjpeg_80 = c_comp.compiles(code, name : 'libjpeg version is 8 or greater', dependencies : jpeg_dep)
+
+have_progressive_jpeg = c_comp.has_function('jpeg_simple_progression', prefix : '#include 
<stdio.h>\n#include<jpeglib.h>', dependencies : jpeg_dep)
+
+# tiff
+
+if get_option('libtiff')
+  libtiff_dep = c_comp.find_library('tiff')
+  use_libtiff = libtiff_dep.found()
+  tiff_dep = [ libm_dep, libz_dep, libtiff_dep ]  
+else
+  use_libtiff = false
+endif
+
+if get_option('libwebp')
+  libwebp_dep = dependency('libwebp', version : libwebp_version, required : false)
+  use_libwebp = libwebp_dep.found()
+else
+  use_libwebp = false
+endif
+
+if get_option('libraw')
+  libraw_dep = dependency('libraw', version : libraw_version, required : false)
+  use_libraw = libraw_dep.found()
+else
+  use_libraw = false
+endif
+
+if get_option('librsvg')
+  librsvg_dep = dependency('librsvg-2.0', version : librsvg_version, required : false)
+  use_librsvg = librsvg_dep.found()
+else
+  use_librsvg = false
+endif
+
+use_libsecret = false
+if get_option('webservices')
+  libsoup_dep = dependency('libsoup-2.4', version : libsoup_version, required : false)
+  libjson_glib_dep = dependency('json-glib-1.0', version : libjson_glib_version, required : false)
+  webkit2_dep = dependency('webkit2gtk-4.0', version : webkit2_version, required : false)
+  with_webservices = libsoup_dep.found() and libjson_glib_dep.found() and webkit2_dep.found()
+  
+  if with_webservices and get_option('libsecret')
+    libsecret_dep = dependency('libsecret-1', version : libsecret_version, required : false)
+    use_libsecret = libsecret_dep.found()
+  endif  
+else
+  with_webservices = false
+endif
+
+if get_option('libbrasero')
+  libbrasero_dep = dependency('libbrasero-burn3', version : libbrasero_version, required : false)
+  use_libbrasero = libbrasero_dep.found()
+else
+  use_libbrasero = false
+endif
+
+# web albums
+
+bison = find_program('bison', required : false)
+flex = find_program('flex', required : false)
+with_webalbums = bison.found() and flex.found()
+
+vector_ops = (c_comp.get_id() == 'gcc') and (c_comp.version().version_compare('>=4.0.7'))
+
+common_dep = [
+  libm_dep,
+  dependency('threads'),
+  dependency('glib-2.0', version : glib_version),
+  dependency('gthread-2.0'),
+  dependency('gmodule-2.0'),
+  dependency('gio-unix-2.0'),
+  dependency('gtk+-3.0', version : gtk_version),
+  dependency('libpng'),
+  dependency('zlib'),
+  jpeg_dep,
+  dependency('gsettings-desktop-schemas')
+]
+
+# config.h
+
+config_data = configuration_data()
+config_data.set_quoted('GETTEXT_PACKAGE', gettext_package)
+config_data.set_quoted('PACKAGE_NAME', meson.project_name())
+config_data.set_quoted('PACKAGE_VERSION', meson.project_version())
+config_data.set_quoted('GTHUMB_API_VERSION', api_version)
+config_data.set_quoted('GTHUMB_LOCALEDIR', join_paths(prefix, get_option('localedir')))
+config_data.set_quoted('GTHUMB_UI_DIR', uidir)
+config_data.set_quoted('GTHUMB_ICON_DIR', icondir)
+config_data.set_quoted('GTHUMB_EXTENSIONS_UI_DIR', uidir)
+config_data.set_quoted('GTHUMB_EXTENSIONS_DIR', extensionsdir)
+if get_option('buildtype').contains('debug')
+  config_data.set('DEBUG', 1)
+endif
+if get_option('run-in-place')
+  config_data.set('RUN_IN_PLACE', 1)
+endif
+if use_exiv2
+  config_data.set('HAVE_EXIV2_020', 1)
+endif
+if use_clutter
+  config_data.set('HAVE_CLUTTER', 1)
+endif
+if use_gstreamer
+  config_data.set('HAVE_GSTREAMER', 1)
+endif
+if use_libchamplain
+  config_data.set('HAVE_LIBCHAMPLAIN', 1)
+endif
+if use_lcms2
+  config_data.set('HAVE_LCMS2', 1)
+endif
+if use_colord
+  config_data.set('HAVE_COLORD', 1)
+endif
+if have_tm_gmtoff
+  config_data.set('HAVE_TM_GMTOFF', 1)
+else
+  if have_timezone
+    config_data.set('HAVE_TIMEZONE', 1)
+    if have_altzone
+      config_data.set('HAVE_ALTZONE', 1)
+    endif
+  endif
+endif
+config_data.set('HAVE_LIBJPEG', 1)
+if have_libjpeg_80
+  config_data.set('HAVE_LIBJPEG_80', 1)
+endif
+if have_progressive_jpeg
+  config_data.set('HAVE_PROGRESSIVE_JPEG', 1)
+endif
+if use_libtiff
+  config_data.set('HAVE_LIBTIFF', 1)
+endif
+if use_libwebp
+  config_data.set('HAVE_LIBWEBP', 1)  
+  config_data.set('WEBP_IS_UNKNOWN_TO_GLIB', 1) # Define to 1 if webp images area not recognized by the glib 
functions 
+endif
+if use_libraw
+  config_data.set('HAVE_LIBRAW', 1)
+endif
+if use_librsvg
+  config_data.set('HAVE_LIBRSVG', 1)
+endif
+if use_libsecret
+  config_data.set('HAVE_LIBSECRET', 1)
+endif
+if with_webservices
+  config_data.set('WITH_WEB_SERVICES', 1)
+endif
+if use_libbrasero
+  config_data.set('HAVE_LIBBRASERO', 1)
+endif
+config_file = configure_file(output : 'config.h', configuration : config_data)
+config_inc = include_directories('.')
+
+# C args
+
+c_args = []
+if get_option('buildtype').contains('debug')
+  test_args = [ 
+    '-Wall', 
+    '-Wcast-align', 
+    '-Wtype-limits', 
+    '-Wclobbered', 
+    '-Wempty-body', 
+    '-Wignored-qualifiers', 
+    '-Wmissing-prototypes',
+    '-Wnested-externs', 
+    '-Wpointer-arith', 
+    '-Wno-sign-compare', 
+    '-Wformat-security'
+  ]
+else
+  c_args += [ '-Wno-deprecated-declarations' ]
+  test_args = [ '-Wall' ]
+endif
+c_args += c_comp.get_supported_arguments(test_args)
+
+# Subdirectories
+
+#subdir('data')
+#subdir('extensions')
+subdir('gthumb')
+#subdir('help')
+#subdir('po')
+
+# Summary
+
+summary = [
+  'configuration summary:',
+  '',
+  '           project: @0@ @1@'.format(meson.project_name(), meson.project_version()),
+  '               api: @0@'.format(api_version),
+  '            prefix: @0@'.format(prefix),
+  '      run in place: @0@'.format(get_option('run-in-place')),
+  '             exiv2: @0@'.format(use_exiv2),
+  '           clutter: @0@'.format(use_clutter),
+  '         gstreamer: @0@'.format(use_gstreamer),
+  '      libchamplain: @0@'.format(use_libchamplain),
+  '             lcms2: @0@'.format(use_lcms2),
+  '            colord: @0@'.format(use_colord),
+  '       libjpeg >=8: @0@'.format(have_libjpeg_80),
+  '  progressive jpeg: @0@'.format(have_progressive_jpeg),
+  '              tiff: @0@'.format(use_libtiff),
+  '              webp: @0@'.format(use_libwebp),
+  '               raw: @0@'.format(use_libraw),
+  '               svg: @0@'.format(use_librsvg),
+  '      web services: @0@'.format(with_webservices),
+  '         libsecret: @0@'.format(use_libsecret), 
+  '        libbrasero: @0@'.format(use_libbrasero),  
+  '        web albums: @0@'.format(with_webalbums),
+  '        vector ops: @0@'.format(vector_ops),
+  ''
+]
+message('\n'.join(summary))
diff --git a/meson_options.txt b/meson_options.txt
new file mode 100644
index 0000000..70bbf46
--- /dev/null
+++ b/meson_options.txt
@@ -0,0 +1,83 @@
+option('run-in-place', 
+  type : 'boolean', 
+  value : false, 
+  description : 'Load extensions and other resources from the source tree'
+)
+
+option('exiv2', 
+  type : 'boolean', 
+  value : true, 
+  description : 'Use exiv2 to read and write metadata'
+)
+
+option('clutter', 
+  type : 'boolean', 
+  value : true, 
+  description : 'Use clutter to make animated slideshows'
+)
+
+option('gstreamer', 
+  type : 'boolean', 
+  value : true, 
+  description : 'Use gstreamer to play multimedia files and to view the metadata'
+)
+
+option('libchamplain', 
+  type : 'boolean', 
+  value : false, 
+  description : 'Use libchamplain to show the position the image refers to'
+)
+
+option('lcms2', 
+  type : 'boolean', 
+  value : true, 
+  description : 'Use lcms2 to get color management support'
+)
+
+option('colord', 
+  type : 'boolean', 
+  value : true, 
+  description : 'Use colord to read the monitor color profile'
+)
+
+option('libtiff', 
+  type : 'boolean', 
+  value : true, 
+  description : 'Use libtiff to load Tiff images'
+)
+
+option('libwebp', 
+  type : 'boolean', 
+  value : true, 
+  description : 'Use libwebp to load WebP images'
+)
+
+option('libraw', 
+  type : 'boolean', 
+  value : true, 
+  description : 'Use libraw to load RAW images'
+)
+
+option('librsvg', 
+  type : 'boolean', 
+  value : true, 
+  description : 'Use librsvg to load SVG images'
+)
+
+option('libsecret', 
+  type : 'boolean', 
+  value : true, 
+  description : 'Use libsecret to save web service account data'
+)
+
+option('webservices', 
+  type : 'boolean', 
+  value : true, 
+  description : 'Compile extensions that import/export images from web services'
+)
+
+option('libbrasero', 
+  type : 'boolean', 
+  value : true, 
+  description : 'Use libbrasero to save images and metadata to discs'
+)


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