diff options
author | Patrick Griffis <pgriffis@igalia.com> | 2021-09-21 11:08:42 -0500 |
---|---|---|
committer | Patrick Griffis <pgriffis@igalia.com> | 2021-09-21 11:08:42 -0500 |
commit | 6047da31cfeb7f9fb33499dcc8db3b6fabc75428 (patch) | |
tree | 463445a64754fae03fc762f184cc88f290de12aa | |
parent | b579c2074fb7a254f9b441b3581c64f3a2cb52b7 (diff) | |
download | geocode-glib-6047da31cfeb7f9fb33499dcc8db3b6fabc75428.tar.gz |
build: Expose libsoup API version in pkg-configpgriffis/soupapiversion
This allows projects that depend on geocode-glib to ensure the
correct version of libsoup is matched at build time.
-rw-r--r-- | geocode-glib/meson.build | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/geocode-glib/meson.build b/geocode-glib/meson.build index 940dc7b..970860f 100644 --- a/geocode-glib/meson.build +++ b/geocode-glib/meson.build @@ -79,6 +79,12 @@ libgcglib = shared_library('geocode-glib', install_headers(headers, subdir: header_subdir) +if get_option('soup2') + soup_api_version = '2.4' +else + soup_api_version = '3.0' +endif + pkgconf = import('pkgconfig') pkgconf.generate(libraries: libgcglib, version: gclib_version, @@ -89,6 +95,7 @@ pkgconf.generate(libraries: libgcglib, requires: 'gio-2.0', variables: [ 'apiversion=' + gclib_api_version, + 'soupapiversion=' + soup_api_version, ]) gir = find_program('g-ir-scanner', required: false) |