[gtksourceview/meson-0.60-deps: 2/3] meson.build: Look for libxml2 via CMake too




commit 199991be188423be8f63e99c0bd8e1d8be3ad89f
Author: Chun-wei Fan <fanchunwei src gnome org>
Date:   Mon Jun 27 18:17:11 2022 +0800

    meson.build: Look for libxml2 via CMake too
    
    Use the Meson 0.60.0 new feature to look for both the libxml-2.0 pkg-config
    file and then the CMake LibXml2 name so that CMake will try to find the libxml2
    headers and libraries manually, before using the fallback libxml2 build,
    which is sadly quite a bit older than the current libxml2 release.

 meson.build | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
---
diff --git a/meson.build b/meson.build
index e7057827..9054a4d3 100644
--- a/meson.build
+++ b/meson.build
@@ -84,7 +84,8 @@ glib_dep = dependency('glib-2.0', version: glib_req)
 gobject_dep = dependency('gobject-2.0', version: glib_req)
 gio_dep = dependency('gio-2.0', version: glib_req)
 gtk_dep = dependency('gtk4', version: gtk_req)
-libxml_dep = dependency('libxml-2.0', version: libxml_req,
+libxml_dep = dependency(['libxml-2.0', 'LibXml2'],
+                        version: libxml_req,
                         fallback : ['libxml2', 'xml2lib_dep'])
 fribidi_dep = dependency('fribidi', version: fribidi_req)
 fontconfig_dep = dependency('fontconfig', required: false)


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