[libdazzle: 1/2] Add libdazzle-1.0 pkg-config package to gir XML file.
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libdazzle: 1/2] Add libdazzle-1.0 pkg-config package to gir XML file.
- Date: Sat, 31 Mar 2018 20:04:50 +0000 (UTC)
commit 2815e7e5b5ba4bf0b8faf95baf853f5f42c6a252
Author: Tomasz Miąsko <tomasz miasko gmail com>
Date: Sat Mar 31 00:00:00 2018 +0000
Add libdazzle-1.0 pkg-config package to gir XML file.
This ensures that languages that generate compile time bindings can
obtain appropriate compilations and linking flags from pkg-config.
export_packages option in meson gnome.generate_gir translates into
--pkg-export=libdazzle-1.0 for g-ir-scanner, which in turn translates
into one additional line in Dazzle-1.0.gir file:
```
<package name="libdazzle-1.0"/>
```
src/meson.build | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
---
diff --git a/src/meson.build b/src/meson.build
index 33d42e4..ce750cf 100644
--- a/src/meson.build
+++ b/src/meson.build
@@ -115,6 +115,8 @@ libdazzle_dep = declare_dependency(
include_directories: include_directories('.'),
)
+libdazzle_package = 'libdazzle-@0@'.format(apiversion)
+
if get_option('with_introspection')
libdazzle_gir = gnome.generate_gir(libdazzle,
@@ -128,6 +130,7 @@ if get_option('with_introspection')
install: true,
install_dir_gir: girdir,
install_dir_typelib: typelibdir,
+ export_packages: libdazzle_package,
extra_args: [ '--c-include=dazzle.h', '--quiet' ],
)
@@ -151,7 +154,7 @@ pkgg.generate(
subdirs: libdazzle_header_subdir,
version: meson.project_version(),
name: 'Dazzle',
- filebase: 'libdazzle-@0@'.format(apiversion),
+ filebase: libdazzle_package,
description: 'Razzle Dazzle for Gtk+ 3.x applications',
requires: 'gtk+-3.0',
install_dir: join_paths(libdir, 'pkgconfig'),
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]