Generate the pkg-config file from Meson
This commit is contained in:
parent
6df0952352
commit
ec723c0838
@ -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'
|
||||
|
@ -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@
|
@ -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/')
|
||||
|
Loading…
Reference in New Issue
Block a user