1 From b2c74f6a3dbe0aee2413800837314136947a4985 Mon Sep 17 00:00:00 2001
2 From: Jan Beich <jbeich@FreeBSD.org>
3 Date: Sat, 15 Feb 2020 02:03:45 +0000
4 Subject: [PATCH] meson/tests: add missing dependencies on protocol headers
6 In file included from ../tests/connection-test.c:43:
7 In file included from ../tests/test-compositor.h:30:
8 ../src/wayland-client.h:40:10: fatal error: 'wayland-client-protocol.h' file not found
9 #include "wayland-client-protocol.h"
10 ^~~~~~~~~~~~~~~~~~~~~~~~~~~
11 In file included from ../tests/display-test.c:45:
12 In file included from ../src/wayland-server.h:104:
13 src/wayland-server-protocol.h:4454:2: error: unterminated /* comment
16 In file included from ../tests/cpp-compile-test.cpp:2:
17 In file included from src/wayland-server-protocol.h:8:
18 In file included from ../src/wayland-server.h:104:
19 src/wayland-server-protocol.h:3:2: error: unterminated conditional directive
20 #ifndef WAYLAND_SERVER_PROTOCOL_H
22 ../tests/headers-protocol-test.c:33:2: error: including wayland-server-protocol.h did not include wayland-server.h!
23 #error including wayland-server-protocol.h did not include wayland-server.h!
25 In file included from ../tests/headers-protocol-test.c:26:
26 In file included from src/wayland-client-protocol.h:8:
27 In file included from ../src/wayland-client.h:40:
28 src/wayland-client-protocol.h:1358:2: error: unterminated conditional directive
29 #ifndef WL_SHM_FORMAT_ENUM
31 In file included from ../tests/protocol-logger-test.c:34:
32 In file included from ../src/wayland-client.h:40:
33 src/wayland-client-protocol.h:2613:1: error: unterminated /* comment
36 ../tests/resources-test.c:49:36: error: use of undeclared identifier 'wl_seat_interface'
37 res = wl_resource_create(client, &wl_seat_interface, 4, 0);
39 Upstream-Status: Backport
40 Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
42 tests/meson.build | 26 ++++++++++++++++++--------
43 1 file changed, 18 insertions(+), 8 deletions(-)
45 diff --git a/tests/meson.build b/tests/meson.build
46 index c28a2a3..f1af7b4 100644
47 --- a/tests/meson.build
48 +++ b/tests/meson.build
49 @@ -69,7 +69,7 @@ test(
52 'cpp-compile-test.cpp',
53 - wayland_server_protocol_core_h,
54 + wayland_server_protocol_h,
55 include_directories: src_inc
58 @@ -91,17 +91,25 @@ tests = {
60 'client-test': [ wayland_server_protocol_h ],
62 + wayland_client_protocol_h,
63 + wayland_server_protocol_h,
64 tests_server_protocol_h,
65 tests_client_protocol_c,
68 - 'connection-test': [ wayland_server_protocol_h ],
69 + 'connection-test': [
70 + wayland_client_protocol_h,
71 + wayland_server_protocol_h,
73 'event-loop-test': [ wayland_server_protocol_h ],
75 'interface-test': [ wayland_client_protocol_h ],
78 - 'sanity-test' : [ wayland_server_protocol_h ],
80 + wayland_client_protocol_h,
81 + wayland_server_protocol_h,
84 wayland_client_protocol_h,
85 wayland_server_protocol_h,
86 @@ -116,7 +124,7 @@ tests = {
87 files('../src/wayland-server.c'),
88 wayland_server_protocol_h,
90 - 'resources-test': [ wayland_server_protocol_core_h ],
91 + 'resources-test': [ wayland_server_protocol_h ],
93 wayland_client_protocol_h,
94 wayland_server_protocol_h,
95 @@ -126,14 +134,16 @@ tests = {
96 wayland_server_protocol_h,
98 'protocol-logger-test': [
99 - wayland_server_protocol_core_h,
100 - wayland_client_protocol_core_h,
101 + wayland_client_protocol_h,
102 + wayland_server_protocol_h,
105 + wayland_client_protocol_h,
106 + wayland_server_protocol_h,
107 'headers-protocol-test.c',
108 - 'headers-protocol-core-test.c',
109 - wayland_server_protocol_core_h,
110 wayland_client_protocol_core_h,
111 + wayland_server_protocol_core_h,
112 + 'headers-protocol-core-test.c',
114 'os-wrappers-test': [],