diff options
author | Jonas Ã…dahl <jadahl@gmail.com> | 2023-05-11 20:23:18 +0200 |
---|---|---|
committer | Carlos Garnacho <carlosg@gnome.org> | 2023-05-15 13:06:40 +0200 |
commit | 99a58be10481b5d1ca29ff4f4ca3e0091728f4b5 (patch) | |
tree | 9c982473b98526e469b24575a92949a580b2b95b | |
parent | f01428bd96724e440748be11ff325cbc1c7c4c3e (diff) | |
download | mutter-99a58be10481b5d1ca29ff4f4ca3e0091728f4b5.tar.gz |
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: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/3000>
-rw-r--r-- | src/meson.build | 8 |
1 files changed, 8 insertions, 0 deletions
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, |