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:
parent
12e7b67ddd
commit
65dfa23e2a
1 changed files with 14 additions and 11 deletions
25
meson.build
25
meson.build
|
@ -239,20 +239,23 @@ install_data(
|
||||||
install_dir: themedir
|
install_dir: themedir
|
||||||
)
|
)
|
||||||
|
|
||||||
pkgconfig = import('pkgconfig')
|
pkg = import('pkgconfig')
|
||||||
pkgconfig.generate(
|
pkgconfig_conf = configuration_data()
|
||||||
name: 'rofi',
|
pkgconfig_conf.set('prefix', get_option('prefix'))
|
||||||
filebase: 'rofi',
|
pkgconfig_conf.set('exec_prefix', '${prefix}')
|
||||||
description: 'Header files for rofi plugins',
|
pkgconfig_conf.set('VERSION', meson.project_version())
|
||||||
version: meson.project_version(),
|
pkgconfig_conf.set('libdir', join_paths('${prefix}',get_option('libdir')))
|
||||||
requires_private: [
|
pkgconfig_conf.set('includedir', join_paths('${prefix}',get_option('includedir')))
|
||||||
'glib-2.0 >= 2.40',
|
|
||||||
'gmodule-2.0',
|
configure_file(
|
||||||
'cairo',
|
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', executable('history.test', [
|
||||||
'test/history-test.c',
|
'test/history-test.c',
|
||||||
],
|
],
|
||||||
|
|
Loading…
Reference in a new issue