[gssdp/wip/meson: 9/17] meson: Generate pkg-config file
- From: Jens Georg <jensgeorg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gssdp/wip/meson: 9/17] meson: Generate pkg-config file
- Date: Fri, 26 Oct 2018 14:45:33 +0000 (UTC)
commit 88ec2c49c3b087321ec206878ac11e618cfc8bac
Author: Jens Georg <mail jensge org>
Date: Fri Oct 26 16:43:42 2018 +0200
meson: Generate pkg-config file
libgssdp/meson.build | 8 ++++++++
meson.build | 1 +
2 files changed, 9 insertions(+)
---
diff --git a/libgssdp/meson.build b/libgssdp/meson.build
index 779ec16..599ccb3 100644
--- a/libgssdp/meson.build
+++ b/libgssdp/meson.build
@@ -57,6 +57,14 @@ libgssdp = shared_library('gssdp-1.2', sources,
include_directories : include_directories('..'),
install : true)
+pkg.generate(libraries: [ libgssdp ],
+ subdirs: 'gssdp-1.2',
+ version: meson.project_version(),
+ name: 'gssdp-1.2',
+ filebase : 'gssdp-1.2',
+ description: 'GObject-based SSDP library',
+ requires_private: ['gobject-2.0', 'gio-2.0'])
+
gir = gnome.generate_gir(libgssdp,
sources : introspection_sources,
namespace : 'GSSDP',
diff --git a/meson.build b/meson.build
index 11603d6..04dd3d7 100644
--- a/meson.build
+++ b/meson.build
@@ -1,5 +1,6 @@
project('GSSDP', 'c', version: '1.1.0')
gnome = import('gnome')
+pkg = import('pkgconfig')
as_version = meson.project_version() # set in project() below
ver_arr = as_version.split('.')
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]