Makefile: generate Wayland code as private
authorRémi Denis-Courmont <remi@remlab.net>
Sat, 19 May 2018 16:59:34 +0000 (19:59 +0300)
committerRémi Denis-Courmont <remi@remlab.net>
Sun, 20 May 2018 17:49:12 +0000 (20:49 +0300)
"code" is deprecated in wayland-scanner.

modules/Makefile.am
modules/video_output/Makefile.am

index 5e2151a..c1f423d 100644 (file)
@@ -88,5 +88,5 @@ SUFFIXES += -client-protocol.h -protocol.c .xml
        $(AM_V_at)mv -f -- "$@.tmp" "$@"
 
 .xml-protocol.c:
-       $(AM_V_GEN)$(WAYLAND_SCANNER) code < "$^" > "$@.tmp"
+       $(AM_V_GEN)$(WAYLAND_SCANNER) private-code < "$^" > "$@.tmp"
        $(AM_V_at)mv -f -- "$@.tmp" "$@"
index 7281340..c27daf8 100644 (file)
@@ -200,7 +200,7 @@ video_output/wayland/viewporter-client-protocol.h: \
 
 video_output/wayland/viewporter-protocol.c: \
                $(WAYLAND_PROTOCOLS)/stable/viewporter/viewporter.xml
-       $(AM_V_GEN)$(WAYLAND_SCANNER) code $< $@
+       $(AM_V_GEN)$(WAYLAND_SCANNER) private-code $< $@
 
 libwl_shell_plugin_la_SOURCES = video_output/wayland/shell.c
 libwl_shell_plugin_la_CFLAGS = $(WAYLAND_CLIENT_CFLAGS)
@@ -223,7 +223,7 @@ video_output/wayland/xdg-shell-client-protocol.h: \
 
 video_output/wayland/xdg-shell-protocol.c: \
                $(WAYLAND_PROTOCOLS)/unstable/xdg-shell/xdg-shell-unstable-v5.xml
-       $(AM_V_GEN)$(WAYLAND_SCANNER) code $< $@
+       $(AM_V_GEN)$(WAYLAND_SCANNER) private-code $< $@
 
 video_output/wayland/server-decoration-client-protocol.h: \
                video_output/wayland/server-decoration.xml