fix underspecified dependencies on generated headers

Since gmodule-visibility.h is now a custom target and produced at
buildtime, it might not always exist in time for use in other source
files. This was the case for gio-inotify.

Add it as an additional source file to ensure in-time generation.
This commit is contained in:
Eli Schwartz 2023-02-06 22:58:41 -05:00
parent 4177164fd2
commit 740440774a
No known key found for this signature in database
GPG Key ID: CEB167EFB5722BD6

View File

@ -8,7 +8,7 @@ inotify_sources = [
]
inotify_lib = static_library('inotify',
sources : inotify_sources,
sources : [inotify_sources, gmodule_visibility_h],
include_directories : [configinc, glibinc, gmoduleinc],
dependencies : [gioenumtypes_dep, libglib_dep, libgobject_dep],
gnu_symbol_visibility : 'hidden',