build: use public-code when using the local wayland-scanner
The core wayland interfaces are public, via the libwayland-server and libwayland-client DSOs. Hence use "public-code" cmdline option, instead of the deprecated code". As the host wayland-scanner may not know about the new option, use the legacy "code". Signed-off-by: Emil Velikov <emil.velikov@collabora.com> Reviewed-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk> Reviewed-by: Derek Foreman <derekf@osg.samsung.com>
This commit is contained in:
parent
9b76def674
commit
ab6b156920
|
@ -95,7 +95,11 @@ nodist_libwayland_client_la_SOURCES = \
|
||||||
pkgconfig_DATA += src/wayland-client.pc src/wayland-server.pc
|
pkgconfig_DATA += src/wayland-client.pc src/wayland-server.pc
|
||||||
|
|
||||||
protocol/%-protocol.c : $(top_srcdir)/protocol/%.xml
|
protocol/%-protocol.c : $(top_srcdir)/protocol/%.xml
|
||||||
|
if USE_HOST_SCANNER
|
||||||
$(AM_V_GEN)$(MKDIR_P) $(dir $@) && $(wayland_scanner) code $< $@
|
$(AM_V_GEN)$(MKDIR_P) $(dir $@) && $(wayland_scanner) code $< $@
|
||||||
|
else
|
||||||
|
$(AM_V_GEN)$(MKDIR_P) $(dir $@) && $(wayland_scanner) public-code $< $@
|
||||||
|
endif
|
||||||
|
|
||||||
protocol/%-server-protocol.h : $(top_srcdir)/protocol/%.xml
|
protocol/%-server-protocol.h : $(top_srcdir)/protocol/%.xml
|
||||||
$(AM_V_GEN)$(MKDIR_P) $(dir $@) && $(wayland_scanner) server-header $< $@
|
$(AM_V_GEN)$(MKDIR_P) $(dir $@) && $(wayland_scanner) server-header $< $@
|
||||||
|
|
Loading…
Reference in New Issue
Block a user