diff --git a/libpkgconf/meson.build b/libpkgconf/meson.build index 64db65a..5c393b0 100644 --- a/libpkgconf/meson.build +++ b/libpkgconf/meson.build @@ -8,5 +8,5 @@ install_headers('libpkgconf.h', 'iter.h', 'bsdstubs.h', 'libpkgconf-api.h', - subdir : 'libpkgconf') + subdir : 'pkgconf/libpkgconf') diff --git a/meson.build b/meson.build index bf5904f..d5697e0 100644 --- a/meson.build +++ b/meson.build @@ -45,7 +45,7 @@ cdata.set('abs_top_builddir', meson.build_root()) subdir('libpkgconf') -libpkgconf = shared_library('pkgconf', +libpkgconf = library('pkgconf', 'libpkgconf/argvsplit.c', 'libpkgconf/audit.c', 'libpkgconf/bsdstubs.c', @@ -66,6 +66,14 @@ libpkgconf = shared_library('pkgconf', soversion : '3', ) +pkg = import('pkgconfig') +pkg.generate(libpkgconf, + name : 'libpkgconf', + description : 'a library for accessing and manipulating development framework configuration', + url: 'http://github.com/pkgconf/pkgconf', + filebase : 'libpkgconf', + subdirs: ['pkgconf'], +) pkgconf_exe = executable('pkgconf', 'cli/main.c', @@ -89,3 +97,5 @@ install_man('man/pkg.m4.7') install_man('man/pc.5') install_man('man/pkgconf-personality.5') install_data('pkg.m4', install_dir: 'share/aclocal') +install_data('AUTHORS', install_dir: 'share/doc/pkgconf') +install_data('README.md', install_dir: 'share/doc/pkgconf') \ No newline at end of file