[libgit2-glib/wip/meson] build: set *_REQUIRED for proper pkgconfig configure



commit 21019321b952d6c35b5c805eda23402c55fa76b5
Author: Igor Gnatenko <ignatenko src gnome org>
Date:   Mon Feb 13 20:25:45 2017 +0100

    build: set *_REQUIRED for proper pkgconfig configure
    
    Right now, we do configure_file() and it expands to nothing which
    makes pkgconfig file just wrong.
    
    Signed-off-by: Igor Gnatenko <ignatenko src gnome org>

 meson.build |   12 ++++++++----
 1 files changed, 8 insertions(+), 4 deletions(-)
---
diff --git a/meson.build b/meson.build
index 8df8117..1850b7d 100644
--- a/meson.build
+++ b/meson.build
@@ -157,12 +157,16 @@ extra_args= []
 core_inc = include_directories('.')
 
 # Required dependencies
-glib = dependency('glib-2.0', version: '>=2.44')
-gobject = dependency('gobject-2.0', version: '>= 2.44')
-gio = dependency('gio-2.0', version: '>=2.44')
+git2_req = '0.25.0'
+glib_req = '2.44.0'
+conf.set('GIT2_REQUIRED', git2_req)
+conf.set('GLIB_REQUIRED', glib_req)
+glib = dependency('glib-2.0', version: '>=' + glib_req)
+gobject = dependency('gobject-2.0', version: '>=' + glib_req)
+gio = dependency('gio-2.0', version: '>=' + glib_req)
 build_gobject = gobject.found()
 
-libgit2 = dependency('libgit2', version: ['>=0.25.0', '<0.26.0'])
+libgit2 = dependency('libgit2', version: '>=' + git2_req)
 
 build_gir = build_gobject
 if get_option('enable-introspection')


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