From: Emil Velikov <[email protected]>

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

Signed-off-by: Emil Velikov <[email protected]>
---
 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

_______________________________________________
wayland-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/wayland-devel

Reply via email to