package/wayland: install wayland-scanner to $(HOST)
authorYann E. MORIN <yann.morin.1998@free.fr>
Thu, 10 Oct 2013 21:05:20 +0000 (23:05 +0200)
committerPeter Korsgaard <peter@korsgaard.com>
Thu, 10 Oct 2013 22:07:25 +0000 (00:07 +0200)
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>
package/wayland/wayland.mk

index 0810536b7a0069f5ad7ab7aaf1a04263b5ac4fc7..013d4015685718ff25d0fce2924fd639fa9010b6 100644 (file)
@@ -22,7 +22,9 @@ WAYLAND_CONF_OPT = --disable-scanner
 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