[gnome-control-center/gbsneto/cleanups] common: Depend on generated sources
- From: Georges Basile Stavracas Neto <gbsneto src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-control-center/gbsneto/cleanups] common: Depend on generated sources
- Date: Wed, 15 Dec 2021 15:36:44 +0000 (UTC)
commit 234d1aadb78dfea16d001569bcb71a6807598c03
Author: Georges Basile Stavracas Neto <georges stavracas gmail com>
Date: Wed Dec 15 11:17:57 2021 -0300
common: Depend on generated sources
Generated sources need to be generated before files that
use them can be built.
Add a separate dependency on them, and make the various
libraries under panels/common/ depend on these sources.
panels/common/meson.build | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
---
diff --git a/panels/common/meson.build b/panels/common/meson.build
index 5e2a862e4..20b9dcf16 100644
--- a/panels/common/meson.build
+++ b/panels/common/meson.build
@@ -24,6 +24,10 @@ common_sources += gnome.mkenums(
vtail: ' { 0, NULL, NULL }\n };\n etype = g_@type@_register_static ("@EnumName@", values);\n
}\n return etype;\n}\n'
)
+generates_sources_dep = declare_dependency(
+ sources: common_sources,
+)
+
sources = files(
'cc-hostname-entry.c',
'cc-time-entry.c',
@@ -34,7 +38,7 @@ libwidgets = static_library(
'widgets',
sources: sources,
include_directories: top_inc,
- dependencies: common_deps + [ polkit_gobject_dep ]
+ dependencies: common_deps + [ generates_sources_dep, polkit_gobject_dep ]
)
libwidgets_dep = declare_dependency(
include_directories: common_inc,
@@ -68,6 +72,7 @@ sources += gnome.compile_resources(
)
deps = common_deps + [
+ generates_sources_dep,
gnome_desktop_dep,
dependency('fontconfig')
]
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]