summaryrefslogtreecommitdiffstats
path: root/rules/host-grpc.make
diff options
context:
space:
mode:
authorClemens Gruber <clemens.gruber@pqgruber.com>2018-12-10 14:56:50 +0100
committerMichael Olbrich <m.olbrich@pengutronix.de>2018-12-15 19:54:05 +0100
commit2537429397c46f4c027e105a8af3150c8525462b (patch)
tree484b25c793bc22293a2ed0878dd273d953952bd6 /rules/host-grpc.make
parentc017018b59b1ca603d951486e33199af16dfa9ca (diff)
downloadptxdist-2537429397c46f4c027e105a8af3150c8525462b.tar.gz
ptxdist-2537429397c46f4c027e105a8af3150c8525462b.tar.xz
grpc: new package
gRPC is a modern, open source, high-performance remote procedure call (RPC) framework. One patch is necessary to use the host-built grpc_cpp_plugin binary when cross-compiling. (Kudos to the Buildroot team) The other one is a stable backport patch to fix a libcares problem. Signed-off-by: Clemens Gruber <clemens.gruber@pqgruber.com> Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
Diffstat (limited to 'rules/host-grpc.make')
-rw-r--r--rules/host-grpc.make37
1 files changed, 37 insertions, 0 deletions
diff --git a/rules/host-grpc.make b/rules/host-grpc.make
new file mode 100644
index 000000000..7d7ad9f69
--- /dev/null
+++ b/rules/host-grpc.make
@@ -0,0 +1,37 @@
+# -*-makefile-*-
+#
+# Copyright (C) 2018 by Clemens Gruber <clemens.gruber@pqgruber.com>
+#
+# See CREDITS for details about who has contributed to this project.
+#
+# For further information about the PTXdist project and license conditions
+# see the README file.
+#
+
+#
+# We provide this package
+#
+HOST_PACKAGES-$(PTXCONF_HOST_GRPC) += host-grpc
+
+# ----------------------------------------------------------------------------
+# Prepare
+# ----------------------------------------------------------------------------
+
+#
+# cmake
+#
+HOST_GRPC_CONF_TOOL := cmake
+
+HOST_GRPC_CONF_OPT := \
+ $(HOST_CMAKE_OPT) \
+ -DCMAKE_CXX_FLAGS='-Wno-error=ignored-qualifiers' \
+ -DgRPC_BACKWARDS_COMPATIBILITY_MODE=OFF \
+ -DgRPC_BUILD_CSHARP_EXT=OFF \
+ -DgRPC_BUILD_TESTS=OFF \
+ -D_gRPC_CARES_LIBRARIES=cares \
+ -DgRPC_CARES_PROVIDER=none \
+ -DgRPC_PROTOBUF_PROVIDER=package \
+ -DgRPC_SSL_PROVIDER=package \
+ -DgRPC_ZLIB_PROVIDER=package
+
+# vim: syntax=make