2016-12-14 00:12:03 +03:00
|
|
|
pkg_conf = configuration_data()
|
|
|
|
prefix = get_option('prefix')
|
|
|
|
pkg_conf.set('prefix', prefix)
|
|
|
|
pkg_conf.set('VERSION', meson.project_version())
|
2018-09-23 23:58:18 +03:00
|
|
|
pkg_conf.set('hexchatlibdir', join_paths('${prefix}', plugindir))
|
|
|
|
pkg_conf.set('includedir', join_paths('${prefix}', get_option('includedir')))
|
2016-12-14 00:12:03 +03:00
|
|
|
|
|
|
|
configure_file(
|
|
|
|
input: 'hexchat-plugin.pc.in',
|
|
|
|
output: 'hexchat-plugin.pc',
|
|
|
|
configuration: pkg_conf,
|
|
|
|
install: true,
|
|
|
|
install_dir: join_paths(get_option('libdir'), 'pkgconfig'),
|
|
|
|
)
|