From ec723c08389bdda830fb1d9741834ddd4ed6ecc8 Mon Sep 17 00:00:00 2001 From: Gergely Polonkai Date: Sat, 12 May 2018 08:29:39 +0200 Subject: [PATCH] Generate the pkg-config file from Meson --- meson.build | 4 +++- src/matrix-glib-0.0.pc.in | 14 -------------- src/meson.build | 9 +++++++++ 3 files changed, 12 insertions(+), 15 deletions(-) delete mode 100644 src/matrix-glib-0.0.pc.in diff --git a/meson.build b/meson.build index 1ddf206..835ea46 100644 --- a/meson.build +++ b/meson.build @@ -1,5 +1,8 @@ project('matrix-glib', 'c', version : '0.0.1') +gnome = import('gnome') +pkg = import('pkgconfig') + sdk_version = meson.project_version() ver_arr = sdk_version.split('.') @@ -33,7 +36,6 @@ matrix_glib_major_minor_version = matrix_glib_major_version + '.' + matrix_glib_ matrix_glib_module_version = lt_current matrix_glib_api_version = matrix_glib_major_version + '.0' -gnome = import('gnome') glib_required = '>= 2.40.0' vala_required = '>= 0.30.0' diff --git a/src/matrix-glib-0.0.pc.in b/src/matrix-glib-0.0.pc.in deleted file mode 100644 index 4454a16..0000000 --- a/src/matrix-glib-0.0.pc.in +++ /dev/null @@ -1,14 +0,0 @@ -prefix=@prefix@ -exec_prefix=@exec_prefix@ -libdir=@libdir@ -datarootdir=@datarootdir@ -datadir=@datadir@ -includedir=@includedir@ - -Name: libmatrix-glib -Description: GObject API for communicating with a Matrix.org Homeserver -URL: http://gergely.polonkai.eu/matrix-glib-sdk -Version: @MATRIX_GLIB_VERSION@ -Requires: glib-2.0 gobject-2.0 gio-2.0 json-glib-1.0 -Libs: -L${libdir} -lmatrix-glib-@MATRIX_GLIB_API_VERSION@ -Cflags: -I${includedir}/matrix-glib-@MATRIX_GLIB_API_VERSION@ diff --git a/src/meson.build b/src/meson.build index a7d2298..8fc3065 100644 --- a/src/meson.build +++ b/src/meson.build @@ -176,3 +176,12 @@ if get_option('introspection') link_with : matrixglib, install : true) endif + +pkg.generate(name : 'libmatrix-glib', + description : 'GObject API for communicating with a Matrix.org Homeserver', + version : matrix_glib_version, + filebase : 'matrix-glib-' + matrix_glib_api_version, + libraries : '-L${libdir} -lmatrix-glib-' + matrix_glib_api_version, + subdirs : 'matrix-glib-' + matrix_glib_api_version, + requires : ['glib-2.0', 'gobject-2.0', 'gio-2.0', 'json-glib-1.0', 'libsoup-2.4'], + url : 'https://gergely.polonkai.eu/matrix-glib-sdk/')