From eb705533b55e07664a0b47b6814ad8f980766d1f Mon Sep 17 00:00:00 2001 From: Alex Date: Thu, 3 Nov 2022 14:08:22 +0100 Subject: [PATCH] feat: jsoncpp wrap --- meson.build | 2 +- subprojects/jsoncpp.wrap | 9 +++++++++ 2 files changed, 10 insertions(+), 1 deletion(-) create mode 100644 subprojects/jsoncpp.wrap diff --git a/meson.build b/meson.build index 6e5e19b8..355a3c06 100644 --- a/meson.build +++ b/meson.build @@ -87,7 +87,7 @@ wayland_protos = dependency('wayland-protocols') gtkmm = dependency('gtkmm-3.0', version : ['>=3.22.0']) dbusmenu_gtk = dependency('dbusmenu-gtk3-0.4', required: get_option('dbusmenu-gtk')) giounix = dependency('gio-unix-2.0', required: (get_option('dbusmenu-gtk').enabled() or get_option('logind').enabled() or get_option('upower_glib').enabled())) -jsoncpp = dependency('jsoncpp', version : ['>=1.9.2']) +jsoncpp = dependency('jsoncpp', version : ['>=1.9.2'], fallback : ['jsoncpp', 'jsoncpp_dep']) sigcpp = dependency('sigc++-2.0') libinotify = dependency('libinotify', required: false) libepoll = dependency('epoll-shim', required: false) diff --git a/subprojects/jsoncpp.wrap b/subprojects/jsoncpp.wrap new file mode 100644 index 00000000..ee3eb2e1 --- /dev/null +++ b/subprojects/jsoncpp.wrap @@ -0,0 +1,9 @@ +[wrap-file] +directory = jsoncpp-1.9.5 +source_url = https://github.com/open-source-parsers/jsoncpp/archive/1.9.5.tar.gz +source_filename = jsoncpp-1.9.5.tar.gz +source_hash = f409856e5920c18d0c2fb85276e24ee607d2a09b5e7d5f0a371368903c275da2 + +[provide] +jsoncpp = jsoncpp_dep +