blob: ffa009d7b7aa3fbc098b91ca0b75a1d85cc5e8d3 [file] [log] [blame]
Andrew Geissler9aee5002022-03-30 16:27:02 +00001DESCRIPTION = "Google gRPC"
2HOMEPAGE = "http://www.grpc.io/"
3SECTION = "devel/python"
4LICENSE = "Apache-2.0 & BSD-3-Clause"
5LIC_FILES_CHKSUM = "file://LICENSE;md5=6e4cf218112648d22420a84281b68b88"
6
7DEPENDS += "${PYTHON_PN}-protobuf"
8
9SRC_URI += "file://0001-setup.py-Do-not-mix-C-and-C-compiler-options.patch"
10SRC_URI:append:class-target = " file://ppc-boringssl-support.patch \
11 file://boring_ssl.patch \
12 file://mips_bigendian.patch \
13 file://0001-absl-always-use-asm-sgidefs.h.patch \
14 file://abseil-ppc-fixes.patch;patchdir=third_party/abseil-cpp \
15"
16SRC_URI[sha256sum] = "4bae1c99896045d3062ab95478411c8d5a52cb84b91a1517312629fa6cfeb50e"
17
18RDEPENDS:${PN} = "${PYTHON_PN}-protobuf \
19 ${PYTHON_PN}-setuptools \
20 ${PYTHON_PN}-six \
21"
22
23inherit setuptools3
24inherit pypi
25
26export GRPC_PYTHON_DISABLE_LIBC_COMPATIBILITY = "1"
27
28BORING_SSL_PLATFORM:arm = "linux-arm"
29BORING_SSL_PLATFORM:x86-64 = "linux-x86_64"
30BORING_SSL_PLATFORM ?= "unsupported"
31export GRPC_BORING_SSL_PLATFORM = "${BORING_SSL_PLATFORM}"
32
33BORING_SSL:x86-64 = "1"
34BORING_SSL:arm = "1"
35BORING_SSL ?= "0"
36export GRPC_BUILD_WITH_BORING_SSL_ASM = "${BORING_SSL}"
37
38GRPC_CFLAGS ?= ""
39GRPC_CFLAGS:append:toolchain-clang = " -fvisibility=hidden -fno-wrapv -fno-exceptions"
40export GRPC_PYTHON_CFLAGS = "${GRPC_CFLAGS}"
41
42CLEANBROKEN = "1"
43
44BBCLASSEXTEND = "native nativesdk"
45
46CCACHE_DISABLE = "1"