mirror of
https://github.com/json-c/json-c.git
synced 2026-09-07 08:36:50 +08:00
meson: fix pkgconfig file
Fix includedir and libdir to have proper paths (not just relative ones to prefix). Using Meson's native pkgconfig module is the best way of doing this. Signed-off-by: Sam James <sam@gentoo.org>
This commit is contained in:
+5
-13
@@ -297,19 +297,11 @@ endif
|
||||
install_headers(installed_headers, subdir: 'json-c')
|
||||
|
||||
# pkg-config file
|
||||
configure_file(
|
||||
input: 'json-c.pc.in',
|
||||
output: 'json-c.pc',
|
||||
install: true,
|
||||
install_dir: get_option('libdir') / 'pkgconfig',
|
||||
configuration: {
|
||||
'prefix': get_option('prefix'),
|
||||
'exec_prefix': get_option('prefix'),
|
||||
'libdir': get_option('libdir'),
|
||||
'includedir': get_option('includedir'),
|
||||
'VERSION': meson.project_version(),
|
||||
'LIBS': '',
|
||||
}
|
||||
pkg = import('pkgconfig')
|
||||
pkg.generate(
|
||||
libjson,
|
||||
description: 'A JSON implementation in C',
|
||||
subdirs: 'json-c',
|
||||
)
|
||||
|
||||
# Optional apps
|
||||
|
||||
Reference in New Issue
Block a user