1
0
Fork 0
mirror of https://github.com/davatorium/rofi.git synced 2024-11-18 13:54:36 -05:00

[Meson] Fix pkg-config file generation with meson.

This commit is contained in:
Dave Davenport 2017-10-16 19:18:19 +02:00
parent 12e7b67ddd
commit 65dfa23e2a

View file

@ -239,20 +239,23 @@ install_data(
install_dir: themedir
)
pkgconfig = import('pkgconfig')
pkgconfig.generate(
name: 'rofi',
filebase: 'rofi',
description: 'Header files for rofi plugins',
version: meson.project_version(),
requires_private: [
'glib-2.0 >= 2.40',
'gmodule-2.0',
'cairo',
],
pkg = import('pkgconfig')
pkgconfig_conf = configuration_data()
pkgconfig_conf.set('prefix', get_option('prefix'))
pkgconfig_conf.set('exec_prefix', '${prefix}')
pkgconfig_conf.set('VERSION', meson.project_version())
pkgconfig_conf.set('libdir', join_paths('${prefix}',get_option('libdir')))
pkgconfig_conf.set('includedir', join_paths('${prefix}',get_option('includedir')))
configure_file(
input: 'pkgconfig/rofi.pc.in',
output: 'rofi.pc',
configuration: pkgconfig_conf,
install_dir: join_paths(get_option('libdir'), 'pkgconfig'),
)
test('history test', executable('history.test', [
'test/history-test.c',
],