From 99a58be10481b5d1ca29ff4f4ca3e0091728f4b5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jonas=20=C3=85dahl?= Date: Thu, 11 May 2023 20:23:18 +0200 Subject: [PATCH] build: Set built headers as libmutter_dep sources This should help avoiding compiling objects depending on built headers to fail if they happen to be built before the sources are built. Part-of: --- src/meson.build | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/meson.build b/src/meson.build index 2a2767fba..4af81aa8c 100644 --- a/src/meson.build +++ b/src/meson.build @@ -1124,6 +1124,13 @@ subdir('meta') mutter_built_sources += mutter_enum_types +mutter_built_headers = [] +foreach built_source : mutter_built_sources + if built_source.full_path().endswith('.h') + built_headers += [built_source] + endif +endforeach + libmutter = shared_library(libmutter_name, mutter_sources, mutter_built_sources, @@ -1148,6 +1155,7 @@ libmutter = shared_library(libmutter_name, libmutter_dep = declare_dependency( link_with: libmutter, include_directories: mutter_includes, + sources: mutter_built_headers, dependencies: [ libmutter_cogl_dep, libmutter_clutter_dep,