~kennylevinsen/public-inbox

1

[PATCH wlsunset 1/2] meson: explicitly depend on libwayland for includes

Jan Beich
Details
Message ID
<sg9j-nqi9-wny@FreeBSD.org>
DKIM signature
pass
Download raw message
Patch: +1 -1
On BSDs base compiler doesn't search packages by default, making it
easy for vendors to depend only on base system.

FAILED: wlsunset.p/main.c.o
cc -Iwlsunset.p -I. -I.. -Xclang -fcolor-diagnostics -pipe -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -Wpedantic -Werror -std=c11 -g -Wundef -Wunused -Wlogical-op -Wmissing-include-dirs -Wold-style-definition -Wpointer-arith -Wstrict-prototypes -Wimplicit-fallthrough -Wmissing-prototypes -Wno-unknown-warning-option -Wno-unused-command-line-argument -Wvla -Wl,--exclude-libs=ALL -D_USE_MATH_DEFINES -D_XOPEN_SOURCE=700 -MD -MQ wlsunset.p/main.c.o -MF wlsunset.p/main.c.o.d -o wlsunset.p/main.c.o -c ../main.c
../main.c:14:10: fatal error: 'wayland-client-protocol.h' file not found
 #include <wayland-client-protocol.h>
          ^~~~~~~~~~~~~~~~~~~~~~~~~~~
1 error generated.
---
 meson.build | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/meson.build b/meson.build
index 585d895..9d43661 100644
--- a/meson.build
+++ b/meson.build
@@ -50,7 +50,7 @@ rt = cc.find_library('rt')
executable(
	'wlsunset',
	['main.c', 'color_math.c'],
	dependencies: [protocols_dep, m, rt],
	dependencies: [wl_client, protocols_dep, m, rt],
	install: true,
)
Details
Message ID
<KXEJJQ.1NJOYV34LXXB1@kl.wtf>
In-Reply-To
<sg9j-nqi9-wny@FreeBSD.org> (view parent)
DKIM signature
pass
Download raw message
(double-send as client had defaulted back to HTML behind my back)

Applied and added FreeBSD to CI, thanks!
Reply to thread Export thread (mbox)