Commit 9d7a3bf0 authored by Xavier Claessens's avatar Xavier Claessens

Meson: Add glib fallback

parent 816aa8dd
......@@ -76,7 +76,7 @@ json_lib = library(
version: libversion,
soversion: soversion,
include_directories: root_dir,
dependencies: [ gio_dep, gobject_dep, ],
dependencies: [gio_dep],
c_args: json_c_args + common_cflags,
link_args: common_ldflags,
install: true,
......@@ -121,7 +121,7 @@ endif
json_glib_dep = declare_dependency(
link_with: json_lib,
include_directories: root_dir,
dependencies: [ gobject_dep, gio_dep, ],
dependencies: [gio_dep],
sources: [ json_enum_types_h, json_glib_gir ],
)
......
......@@ -34,8 +34,8 @@ json_libexecdir = join_paths(get_option('prefix'), get_option('libexecdir'))
# Dependencies
glib_req_version = '>= 2.44.0'
gobject_dep = dependency('gobject-2.0', version: glib_req_version)
gio_dep = dependency('gio-2.0', version: glib_req_version)
gio_dep = dependency('gio-2.0', version: glib_req_version,
fallback: ['glib', 'libgio_dep'])
# Configurations
cc = meson.get_compiler('c')
......
[wrap-git]
directory=glib
url=https://gitlab.gnome.org/GNOME/glib.git
push-url=git@gitlab.gnome.org:GNOME/glib.git
revision=master
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment