build: Install pkgconfig file to /usr/share/

Because the pkgconfig file is arch-independent,
/usr/share/pkgconfig/ is a better location for it
This commit is contained in:
Jeremy Bicha 2022-03-22 16:22:00 -04:00
parent 3f37380c25
commit e3a37893a8

View file

@ -5,7 +5,7 @@ project('blueprint-compiler',
subdir('docs') subdir('docs')
prefix = get_option('prefix') prefix = get_option('prefix')
libdir = join_paths(prefix, get_option('libdir')) datadir = join_paths(prefix, get_option('datadir'))
py = import('python').find_installation('python3') py = import('python').find_installation('python3')
@ -14,7 +14,7 @@ configure_file(
output: 'blueprint-compiler.pc', output: 'blueprint-compiler.pc',
configuration: { 'VERSION': meson.project_version() }, configuration: { 'VERSION': meson.project_version() },
install: not meson.is_subproject(), install: not meson.is_subproject(),
install_dir: join_paths(libdir, 'pkgconfig'), install_dir: join_paths(datadir, 'pkgconfig'),
) )
install_data( install_data(