meson: add missing "wl_proto_headers" dependency for pgolib and vtlib

Dependency chains:

* pgolib -> terminal.c -> terminal.h -> wayland.h
* vtlib -> csi.c -> config.h -> wayland.h

wayland.h includes <primary-selection-unstable-v1.h>, which must be
generated by a custom_target() rule *before* any sources that require
it are built. Failure to fully specify these dependencies can otherwise
result in a race condition, where a dependent source file gets compiled
(and fails with a "header not found" error) before the header itself
has been generated.
This commit is contained in:
Craig Barnes 2020-12-19 22:09:03 +00:00
parent 2a82096749
commit 7dc6036ca9

View file

@ -122,6 +122,7 @@ vtlib = static_library(
'osc.c', 'osc.h',
'sixel.c', 'sixel.h',
'vt.c', 'vt.h',
wl_proto_src + wl_proto_headers,
version,
dependencies: [pixman, fcft, tllist],
link_with: misc,
@ -132,6 +133,7 @@ pgolib = static_library(
'grid.c', 'grid.h',
'selection.c', 'selection.h',
'terminal.c', 'terminal.h',
wl_proto_src + wl_proto_headers,
dependencies: [pixman, fcft, tllist],
link_with: vtlib,
)