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>
This commit is contained in:
parent
f01428bd96
commit
99a58be104
@ -1124,6 +1124,13 @@ subdir('meta')
|
|||||||
|
|
||||||
mutter_built_sources += mutter_enum_types
|
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,
|
libmutter = shared_library(libmutter_name,
|
||||||
mutter_sources,
|
mutter_sources,
|
||||||
mutter_built_sources,
|
mutter_built_sources,
|
||||||
@ -1148,6 +1155,7 @@ libmutter = shared_library(libmutter_name,
|
|||||||
libmutter_dep = declare_dependency(
|
libmutter_dep = declare_dependency(
|
||||||
link_with: libmutter,
|
link_with: libmutter,
|
||||||
include_directories: mutter_includes,
|
include_directories: mutter_includes,
|
||||||
|
sources: mutter_built_headers,
|
||||||
dependencies: [
|
dependencies: [
|
||||||
libmutter_cogl_dep,
|
libmutter_cogl_dep,
|
||||||
libmutter_clutter_dep,
|
libmutter_clutter_dep,
|
||||||
|
Loading…
Reference in New Issue
Block a user