[gnome-notes] Add generated biji-marshalers.h to libbiji dependency sources
- From: Isaque Galdino de Araujo <igaldino src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-notes] Add generated biji-marshalers.h to libbiji dependency sources
- Date: Sun, 18 Apr 2021 21:52:47 +0000 (UTC)
commit c860d4d28c3f65ab4ed50e3b38806c7b96705889
Author: Michael Forney <mforney mforney org>
Date: Fri Apr 9 21:45:13 2021 -0700
Add generated biji-marshalers.h to libbiji dependency sources
The meson manual states that
> Each target that depends on a generated header should add that
> header to it's sources, as seen above with libfoo and myexe. This
> is because there is no way for Meson or the backend to know that
> myexe depends on foo.h just because libfoo does, it could be a
> private header.
Since biji-marshalers.h is included by the libbiji public header
libbiji.h, it must be added as a source to all targets that depend
on libbiji. This can be done by adding it to the sources of
libbiji_dep.
Fixes #157.
src/libbiji/meson.build | 13 ++++++-------
1 file changed, 6 insertions(+), 7 deletions(-)
---
diff --git a/src/libbiji/meson.build b/src/libbiji/meson.build
index b778eed..580b46e 100644
--- a/src/libbiji/meson.build
+++ b/src/libbiji/meson.build
@@ -24,11 +24,9 @@ sources = files(
'../bjb-utils.c',
)
-marshalers = 'biji-marshalers'
-
-sources += gnome.genmarshal(
- marshalers,
- sources: marshalers + '.list',
+marshalers = gnome.genmarshal(
+ 'biji-marshalers',
+ sources: 'biji-marshalers.list',
prefix: '_biji_marshal'
)
@@ -38,7 +36,7 @@ cflags = []
libbiji = static_library(
'biji',
- sources: sources,
+ sources: sources + marshalers,
include_directories: top_inc,
dependencies: deps,
c_args: cflags
@@ -47,5 +45,6 @@ libbiji = static_library(
libbiji_dep = declare_dependency(
link_with: libbiji,
include_directories: include_directories('.'),
- dependencies: deps
+ dependencies: deps,
+ sources: marshalers[1],
)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]