[PATCH 5/5] wayland-scanner.mk: default --object-type to static

Emil Velikov emil.l.velikov at gmail.com
Wed Jul 26 13:56:21 UTC 2017


From: Emil Velikov <emil.velikov at collabora.com>

Unlike the core wayland library, it's recommended that one statically
embeds the protocol within their binary.

Signed-off-by: Emil Velikov <emil.velikov at collabora.com>
---
 wayland-scanner.mk | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/wayland-scanner.mk b/wayland-scanner.mk
index 0a72062..57f91f0 100644
--- a/wayland-scanner.mk
+++ b/wayland-scanner.mk
@@ -1,5 +1,5 @@
 %-protocol.c : $(wayland_protocoldir)/%.xml
-	$(AM_V_GEN)$(wayland_scanner) code < $< > $@
+	$(AM_V_GEN)$(wayland_scanner) --object-type=static code < $< > $@
 
 %-server-protocol.h : $(wayland_protocoldir)/%.xml
 	$(AM_V_GEN)$(wayland_scanner) server-header < $< > $@
-- 
2.13.0



More information about the wayland-devel mailing list