[libmediaart/ebassi/build: 1/3] build: Export the pkg-config file in the GIR
- From: Emmanuele Bassi <ebassi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libmediaart/ebassi/build: 1/3] build: Export the pkg-config file in the GIR
- Date: Mon, 17 May 2021 14:57:52 +0000 (UTC)
commit 30955f586bc71883f953d236bb18edbbc3998d58
Author: Emmanuele Bassi <ebassi gnome org>
Date: Mon May 17 14:11:56 2021 +0100
build: Export the pkg-config file in the GIR
Tools that parse the GIR need the exported package.
libmediaart/meson.build | 11 ++++++++---
1 file changed, 8 insertions(+), 3 deletions(-)
---
diff --git a/libmediaart/meson.build b/libmediaart/meson.build
index 20f0942..c43fb9e 100644
--- a/libmediaart/meson.build
+++ b/libmediaart/meson.build
@@ -41,6 +41,11 @@ libmediaart = shared_library(
install: true,
)
+gir_args = [
+ '--quiet',
+ '-DLIBMEDIAART_COMPILATION',
+]
+
libmediaart_gir_and_typelib = gnome.generate_gir(libmediaart,
sources: libmediaart_sources + libmediaart_introspection_sources + libmediaart_public_headers,
nsversion: libmediaart_api_version,
@@ -48,9 +53,9 @@ libmediaart_gir_and_typelib = gnome.generate_gir(libmediaart,
identifier_prefix: 'MediaArt',
symbol_prefix: 'media_art',
includes: ['Gio-2.0', 'GObject-2.0'],
- extra_args: libmediaart_cflags + [
- '--c-include=libmediaart/mediaart.h',
- ],
+ header: 'libmediaart/mediaart.h',
+ export_packages: 'libmediaart-' + libmediaart_api_version,
+ extra_args: gir_args,
install: true
)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]