diff options
author | Emmanuele Bassi <ebassi@gnome.org> | 2021-10-17 14:14:52 +0100 |
---|---|---|
committer | Emmanuele Bassi <ebassi@gmail.com> | 2021-10-21 11:06:15 +0000 |
commit | 1a10919062cf9906a84e6c36f3c8c510173fd5e1 (patch) | |
tree | eb51fbdf42efe03dc905531b915e9e4662f122fa | |
parent | 34399b5e7907ad056a7ac69f8e66851e3bd1d403 (diff) | |
download | libgweather-1a10919062cf9906a84e6c36f3c8c510173fd5e1.tar.gz |
build: Use a variable for the pkg-config name
It seems that some of the targets using the pkg-config file name do not
like it when we directly pass a formatted string object.
-rw-r--r-- | libgweather/meson.build | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/libgweather/meson.build b/libgweather/meson.build index 8262832..da24cf9 100644 --- a/libgweather/meson.build +++ b/libgweather/meson.build @@ -39,6 +39,8 @@ libgweather_darwin_versions = [ '@0@.@1@'.format(current + 1, interface_age), ] +gweather_pc = 'gweather@0@'.format(libgweather_api) + config_h = configuration_data() config_h.set_quoted('GETTEXT_PACKAGE', GETTEXT_PACKAGE) config_h.set_quoted('LOCATIONS_GETTEXT_PACKAGE', LOCATIONS_GETTEXT_PACKAGE) @@ -194,7 +196,7 @@ if build_gir includes: ['Gio-2.0'], symbol_prefix: 'gweather', identifier_prefix: 'GWeather', - export_packages: 'gweather'.format(libgweather_api), + export_packages: gweather_pc, header: 'libgweather/gweather.h', extra_args: [ '--warn-all', @@ -218,7 +220,7 @@ libgweather_dep = declare_dependency( ) if build_vapi and build_gir - gnome.generate_vapi('gweather@0@'.format(libgweather_api), + gnome.generate_vapi(gweather_pc, sources: gweather_gir[0], packages: ['gio-2.0'], metadata_dirs: '.', @@ -227,7 +229,7 @@ if build_vapi and build_gir endif pkgconfig.generate( - filebase: 'gweather@0@'.format(libgweather_api), + filebase: gweather_pc, name: 'GWeather', description: 'Gather weather information from online services', version: meson.project_version(), |