[tepl] Meson: Fix pkg-config file when gtksourceview is a subproject
- From: Sébastien Wilmet <swilmet src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tepl] Meson: Fix pkg-config file when gtksourceview is a subproject
- Date: Sun, 26 Apr 2020 12:37:44 +0000 (UTC)
commit b2fed72be4178dc074afd0ac9b1aea5f37c24413
Author: Xavier Claessens <xavier claessens collabora com>
Date: Fri Apr 24 11:32:46 2020 -0400
Meson: Fix pkg-config file when gtksourceview is a subproject
Meson only expects strings and pkg-config dependency objects in the
`requires` argument, but when gtksourceview is built as subproject it's
an internal dependency object instead and that cause Meson to error.
It is rarely needed to put anything in 'requires', meson knows if public
libraries have a pkg-config name it can use. Also meson knows private
dependencies, no need to specify them.
tepl/meson.build | 6 ++----
1 file changed, 2 insertions(+), 4 deletions(-)
---
diff --git a/tepl/meson.build b/tepl/meson.build
index 9899f0a..8c6530e 100644
--- a/tepl/meson.build
+++ b/tepl/meson.build
@@ -138,14 +138,12 @@ TEPL_LIB_DEP = declare_dependency(
dependencies: TEPL_DEPS
)
-PKG_CONFIG.generate(
+PKG_CONFIG.generate(tepl_lib,
filebase: 'tepl-@0@'.format(TEPL_API_VERSION),
name: 'Tepl',
description: 'Text editor product line',
- libraries: tepl_lib,
subdirs: 'tepl-@0@'.format(TEPL_API_VERSION),
- requires: TEPL_PUBLIC_DEPS,
- requires_private: TEPL_PRIVATE_DEPS
+ libraries: TEPL_PUBLIC_DEPS,
)
GNOME.generate_gir(
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]