From b7bf5f1fad26051892b0adb23936813798292583 Mon Sep 17 00:00:00 2001 From: Emmanuele Bassi Date: Tue, 26 Jun 2018 17:20:33 +0100 Subject: Use Meson to generate the pkgconfig file Meson can generate a compliant pkgconfig file for us, straight from the library we just built, without using a template file. --- atk/meson.build | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'atk') diff --git a/atk/meson.build b/atk/meson.build index 042cd54..4760df8 100644 --- a/atk/meson.build +++ b/atk/meson.build @@ -121,7 +121,7 @@ if host_system == 'windows' atk_sources += atk_win_res endif -libatk = library('atk-@0@'.format(atk_api_version), +libatk = library(atk_api_name, sources: atk_sources + atk_enums + atk_marshals, soversion: atk_soversion, version: atk_libversion, @@ -157,3 +157,10 @@ libatk_dep = declare_dependency(link_with: libatk, dependencies: glib_dep, sources: atk_sources_dep, ) + +pkgconfig.generate(libatk, + name: 'Atk', + description: 'Accessibility Toolkit', + subdirs: atk_api_name, + filebase: 'atk', +) -- cgit v1.2.1