aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCraig Barnes <craigbarnes@protonmail.com>2020-12-19 22:09:03 +0000
committerCraig Barnes <craigbarnes@protonmail.com>2020-12-19 22:09:03 +0000
commit7dc6036ca920d3d34d956c4498e20458f3afa89d (patch)
tree3506a8468cf00eb9e641483eaa162de21b7fe5ed
parentterm: fix builds with debug logging enabled (diff)
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.
-rw-r--r--meson.build2
1 files changed, 2 insertions, 0 deletions
diff --git a/meson.build b/meson.build
index 4370acc0..282f7360 100644
--- a/meson.build
+++ b/meson.build
@@ -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,
)