[gvfs/wip/hadess/libplist-2.2] afc: Add support for libplist-2.2



commit 6fe267a6049eb1d509b6f126dbc7abc35e10c1aa
Author: Bastien Nocera <hadess hadess net>
Date:   Tue Jun 16 13:28:35 2020 +0200

    afc: Add support for libplist-2.2
    
    Which changed name from libplist to libplist-2.0 to embed its API
    version number in the library name.

 meson.build | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)
---
diff --git a/meson.build b/meson.build
index 1750f65c..9d5fd639 100644
--- a/meson.build
+++ b/meson.build
@@ -357,7 +357,10 @@ config_h.set('HAVE_LOGIND', enable_logind)
 enable_afc = get_option('afc')
 if enable_afc
   libimobiledevice_dep = dependency('libimobiledevice-1.0', version: '>= 1.2')
-  libplist_dep = dependency('libplist', version: '>= 0.15')
+  libplist_dep = dependency('libplist-2.0', required: false)
+  if not libplist.found()
+    libplist_dep = dependency('libplist', version: '>= 0.15')
+  endif
 endif
 
 # *** Check if we should build with GOA volume monitor ***


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