aboutsummaryrefslogtreecommitdiff
path: root/pkgconfig/meson.build
blob: e3d44fa6c0abe2e52053ece73dc3963d9f184efa (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
pkgconfig_dir =	get_option('libdir') / 'pkgconfig'

pkgconfig_conf_data = configuration_data()
if root_prefix != '/'
  pkgconfig_conf_data.set('PREFIX', root_prefix)
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