xref: /OK3568_Linux_fs/buildroot/package/capnproto/capnproto.mk (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1################################################################################
2#
3# capnproto
4#
5################################################################################
6
7CAPNPROTO_VERSION = 0.8.0
8CAPNPROTO_SITE = $(call github,capnproto,capnproto,v$(CAPNPROTO_VERSION))
9CAPNPROTO_LICENSE = MIT
10CAPNPROTO_LICENSE_FILES = LICENSE
11CAPNPROTO_CPE_ID_VENDOR = capnproto
12CAPNPROTO_INSTALL_STAGING = YES
13# Fetched from Github with no configure script
14CAPNPROTO_AUTORECONF = YES
15CAPNPROTO_CONF_OPTS = --with-external-capnp
16# Needs the capnproto compiler on the host to generate C++ code from message
17# definitions
18CAPNPROTO_DEPENDENCIES = host-autoconf host-capnproto
19ifeq ($(BR2_TOOLCHAIN_HAS_LIBATOMIC),y)
20CAPNPROTO_CONF_ENV += LIBS=-latomic
21endif
22# The actual source to be compiled is within a 'c++' subdirectory
23CAPNPROTO_SUBDIR = c++
24
25ifeq ($(BR2_PACKAGE_OPENSSL),y)
26CAPNPROTO_CONF_OPTS += --with-openssl
27CAPNPROTO_DEPENDENCIES += openssl
28else
29CAPNPROTO_CONF_OPTS += --without-openssl
30endif
31
32$(eval $(autotools-package))
33$(eval $(host-autotools-package))
34