wayland-scanner is needed by weston.
[Peter: use $(INSTALL), fixup white space]
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Cc: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
define WAYLAND_BUILD_SCANNER
(cd $(@D)/src/; \
$(HOSTCC) $(HOST_CFLAGS) $(HOST_LDFLAGS) \
- -o wayland-scanner scanner.c wayland-util.c -lexpat)
+ -o wayland-scanner scanner.c wayland-util.c -lexpat; \
+ $(INSTALL) -m 0755 -D wayland-scanner \
+ $(HOST_DIR)/usr/bin/wayland-scanner)
endef
WAYLAND_POST_CONFIGURE_HOOKS += WAYLAND_BUILD_SCANNER