xref: /OK3568_Linux_fs/buildroot/package/waylandpp/waylandpp.mk (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1################################################################################
2#
3# waylandpp
4#
5################################################################################
6
7WAYLANDPP_VERSION = 0.2.8
8WAYLANDPP_SITE = $(call github,NilsBrause,waylandpp,$(WAYLANDPP_VERSION))
9WAYLANDPP_LICENSE = MIT, GPL-3.0+ (wayland_scanner)
10WAYLANDPP_LICENSE_FILES = LICENSE scanner/gpl-3.0.txt
11WAYLANDPP_INSTALL_STAGING = YES
12# pugixml is needed only to build the host version of wayland-scanner++
13HOST_WAYLANDPP_DEPENDENCIES = host-pugixml host-pkgconf host-wayland
14WAYLANDPP_DEPENDENCIES = libegl host-pkgconf wayland host-waylandpp
15
16# host variant of wayland-scanner++ is needed for building the target
17# package
18HOST_WAYLANDPP_CONF_OPTS = \
19	-DBUILD_LIBRARIES=OFF \
20	-DBUILD_SCANNER=ON
21
22WAYLANDPP_CONF_OPTS = \
23	-DBUILD_LIBRARIES=ON \
24	-DBUILD_SCANNER=OFF \
25	-DWAYLAND_SCANNERPP=$(HOST_DIR)/bin/wayland-scanner++
26
27$(eval $(cmake-package))
28$(eval $(host-cmake-package))
29