build: move weston_test_client_protocol_h use

There is no need to special-case this generated header in foreach-tests
if we list it as an order-only dependency implied by dep_test_client.
The viewporter header is already there.

Signed-off-by: Pekka Paalanen <pekka.paalanen@collabora.com>
This commit is contained in:
Pekka Paalanen 2026-02-17 14:57:27 +02:00
parent 4a322fd76c
commit a044dfe1a6
2 changed files with 1 additions and 1 deletions

View file

@ -69,6 +69,7 @@ lib_test_client = static_library(
dep_test_client = declare_dependency(
link_with: lib_test_client,
sources: [
weston_test_client_protocol_h,
viewporter_client_protocol_h,
],
dependencies: [

View file

@ -319,7 +319,6 @@ endif
foreach t : tests
t_name = 'test-' + t.get('name')
t_sources = t.get('sources', [t.get('name') + '-test.c'])
t_sources += weston_test_client_protocol_h
t_deps = [ dep_test_client, dep_libweston_private_h ]
t_deps += t.get('dep_objs', [])