[gtk-vnc] meson: use pkgconfig module to generate pc files
- From: Daniel P. Berrange <dberrange src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk-vnc] meson: use pkgconfig module to generate pc files
- Date: Wed, 24 Mar 2021 11:00:49 +0000 (UTC)
commit 76968bd3cefb965389a249216b4ea793b90ee81a
Author: Marc-André Lureau <marcandre lureau gmail com>
Date: Wed Mar 24 01:08:34 2021 +0400
meson: use pkgconfig module to generate pc files
Signed-off-by: Marc-André Lureau <marcandre lureau redhat com>
gtk-vnc-2.0.pc.in | 9 ---------
gvnc-1.0.pc.in | 9 ---------
gvncpulse-1.0.pc.in | 9 ---------
meson.build | 31 ++++++++++++++++---------------
4 files changed, 16 insertions(+), 42 deletions(-)
---
diff --git a/meson.build b/meson.build
index 887d890..22c95dd 100644
--- a/meson.build
+++ b/meson.build
@@ -330,27 +330,28 @@ pkgdata.set('VERSION', meson.project_version())
pkgdata.set('GLIB_REQUIRED', glib_min_version)
pkgdata.set('GTK_REQUIRED', gtk_min_version)
-configure_file(
- input: 'gvnc-1.0.pc.in',
- output: 'gvnc-1.0.pc',
- configuration: pkgdata,
- install_dir: gtk_vnc_pkgconfdir,
+pkg = import('pkgconfig')
+pkg.generate(
+ gvnc,
+ description: 'GObject for VNC client connections',
+ requires: [gobject_dep],
+ subdirs: 'gvnc-1.0',
)
if libpulse_dep.found()
- configure_file(
- input: 'gvncpulse-1.0.pc.in',
- output: 'gvncpulse-1.0.pc',
- configuration: pkgdata,
- install_dir: gtk_vnc_pkgconfdir,
+ pkg.generate(
+ gvncpulse,
+ description: 'Pulse audio bridge for VNC client connections',
+ requires: [gvnc],
+ subdirs: 'gvncpulse-1.0',
)
endif
-configure_file(
- input: 'gtk-vnc-2.0.pc.in',
- output: 'gtk-vnc-2.0.pc',
- configuration: pkgdata,
- install_dir: gtk_vnc_pkgconfdir,
+pkg.generate(
+ gtk_vnc,
+ description: 'GTK widget for a VNC client',
+ requires: [gtk_dep, gvnc],
+ subdirs: 'gtk-vnc-2.0',
)
configure_file(
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]