[grilo-plugins/wip/mschraal/add-pkgconfig: 3/3] build: Add pkgconfig file
- From: Marinus Schraal <mschraal src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [grilo-plugins/wip/mschraal/add-pkgconfig: 3/3] build: Add pkgconfig file
- Date: Tue, 7 Aug 2018 05:51:46 +0000 (UTC)
commit 1890a6ec9f3fa9f59d26d68867034c8a0b2e6ef2
Author: Marinus Schraal <mschraal gnome org>
Date: Tue Jul 31 10:48:37 2018 +0200
build: Add pkgconfig file
Add a pkgconfig file, so consumer projects can depend on a specific
grilo-plugins version.
Closes: #10
grilo-plugins-0.3.pc.in | 3 +++
meson.build | 10 ++++++++++
2 files changed, 13 insertions(+)
---
diff --git a/grilo-plugins-0.3.pc.in b/grilo-plugins-0.3.pc.in
new file mode 100644
index 0000000..8b2bb78
--- /dev/null
+++ b/grilo-plugins-0.3.pc.in
@@ -0,0 +1,3 @@
+Name: Grilo Framework Plugins
+Description: Plugins for the Grilo Framework
+Version: @VERSION@
diff --git a/meson.build b/meson.build
index 19cd2cc..5521cfa 100644
--- a/meson.build
+++ b/meson.build
@@ -36,6 +36,16 @@ gmodule_dep = dependency('gmodule-2.0', version: glib2_required_info, required:
gobject_dep = dependency('gobject-2.0', version: glib2_required_info, required: true)
grilo_dep = dependency('grilo-0.3', version: grilo_required_info, required: true)
+pkgconf = configuration_data()
+pkgconf.set('VERSION', plugin_version)
+
+pkgconfig_file = 'grilo-plugins-@0@.@1@'.format(grl_major, grl_minor)
+
+configure_file(input: pkgconfig_file + '.pc.in',
+ output: pkgconfig_file + '.pc',
+ configuration: pkgconf,
+ install_dir: '@0@/pkgconfig'.format(get_option('libdir')))
+
avahi_client_dep = dependency('avahi-client', required: false)
avahi_glib_dep = dependency('avahi-glib', required: false)
avahi_gobject_dep = dependency('avahi-gobject', required: false)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]