buildroot/package/c-capnproto/c-capnproto.mk
Joel Carlson b6a06140cd c-capnproto: add package
Adds the c-capnproto package. This creates a C plugin for the regular
capnproto capnpc compiler. It supports only serialization (no RPC).

Since it depends on capnproto, the package selects capnproto and has the
same requirements as capnproto.

The host version is always needed for the code generator, which is what
gets called by packages using it. The target version is also always
needed for the library. Therefore, no Config.in.host option is needed.

We need to use the git download method because the package has
submodules. The submodule is gtest, which is not really needed, but it's
complicated to remove the dependency.

The version is the latest upstream git hash. It is version 0.3 with just
two patches applied: one to the README file, and a fix submitted by us.

Signed-off-by: Joel Carlson <JoelsonCarl@gmail.com>
[Arnout:
 - use latest upstream version which has patch already applied;
 - mark in Config.in that dependencies come from capnproto;
 - add some newlines to .mk file;
 - updated commit message.]
Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
2019-08-01 11:47:04 +02:00

25 lines
844 B
Makefile

################################################################################
#
# c-capnproto
#
################################################################################
C_CAPNPROTO_VERSION = 9053ebe6eeb2ae762655b982e27c341cb568366d
C_CAPNPROTO_SITE = https://github.com/opensourcerouting/c-capnproto.git
C_CAPNPROTO_SITE_METHOD = git
C_CAPNPROTO_GIT_SUBMODULES = YES
C_CAPNPROTO_LICENSE = MIT
C_CAPNPROTO_LICENSE_FILES = COPYING
C_CAPNPROTO_INSTALL_STAGING = YES
# Fetched from git with no configure script
C_CAPNPROTO_AUTORECONF = YES
# As a plugin for capnproto's capnpc, requires capnproto. Needs to be on the
# host to generate C code from message definitions.
C_CAPNPROTO_DEPENDENCIES = host-c-capnproto capnproto
HOST_C_CAPNPROTO_DEPENDENCIES = host-capnproto
$(eval $(autotools-package))
$(eval $(host-autotools-package))