From 1485cfb36cbdc2a079f73be16670cb3e64567852 Mon Sep 17 00:00:00 2001 From: Matt Jolly Date: Tue, 16 Jul 2024 21:23:28 +1000 Subject: Generate pkg-config files directly - Remove 'pkgconfig' subdir - use meson 'pkgconfig' module to generate and install appropriate .pc files when required. - add `rc_path` variable to installed pkgconfig files Signed-off-by: Matt Jolly --- pkgconfig/meson.build | 24 ------------------------ 1 file changed, 24 deletions(-) delete mode 100644 pkgconfig/meson.build (limited to 'pkgconfig/meson.build') diff --git a/pkgconfig/meson.build b/pkgconfig/meson.build deleted file mode 100644 index 424b6ee0..00000000 --- a/pkgconfig/meson.build +++ /dev/null @@ -1,24 +0,0 @@ -if get_option('pkgconfig') -pkgconfig_dir = get_option('libdir') / 'pkgconfig' - -pkgconfig_conf_data = configuration_data() -if rootprefix != '/' - pkgconfig_conf_data.set('PREFIX', rootprefix) -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 -endif -- cgit v1.2.3