2021-08-22 23:39:30 +05:30
|
|
|
pkgconfig_dir = get_option('libdir') / 'pkgconfig'
|
|
|
|
|
|
|
|
pkgconfig_conf_data = configuration_data()
|
2021-09-07 01:00:30 +05:30
|
|
|
if rootprefix != '/'
|
|
|
|
pkgconfig_conf_data.set('PREFIX', rootprefix)
|
2021-08-22 23:39:30 +05:30
|
|
|
else
|
|
|
|
pkgconfig_conf_data.set('PREFIX', '')
|
|
|
|
endif
|
|
|
|
pkgconfig_conf_data.set('LIB', get_option('libdir'))
|
|
|
|
pkgconfig_conf_data.set('VERSION', meson.project_version())
|
|
|
|
|
|
|
|
pkgconfig_files = [
|
|
|
|
'einfo.pc.in',
|
|
|
|
'openrc.pc.in',
|
|
|
|
]
|
|
|
|
|
|
|
|
foreach file : pkgconfig_files
|
|
|
|
configure_file(input : file,
|
|
|
|
output : '@BASENAME@',
|
|
|
|
configuration : pkgconfig_conf_data,
|
|
|
|
install_dir : pkgconfig_dir)
|
|
|
|
endforeach
|