blob: 8405ebed02b38681ae0e454d53cf9d1c561e07e5 [file] [log] [blame]
Andrew Geissler517393d2023-01-13 08:55:19 -06001DESCRIPTION = "Google gRPC"
2HOMEPAGE = "http://www.grpc.io/"
3SECTION = "devel/python"
4LICENSE = "Apache-2.0 & BSD-3-Clause"
5LIC_FILES_CHKSUM = "file://LICENSE;md5=731e401b36f8077ae0c134b59be5c906"
6
Patrick Williams39653562024-03-01 08:54:02 -06007DEPENDS += "python3-protobuf"
Andrew Geissler517393d2023-01-13 08:55:19 -06008
Patrick Williams169d7bc2024-01-05 11:33:25 -06009SRC_URI += "file://0001-Include-missing-cstdint-header.patch \
10 file://abseil-ppc-fixes.patch \
11 file://0001-zlib-Include-unistd.h-for-open-close-C-APIs.patch \
12 "
Patrick Williams03514f12024-04-05 07:04:11 -050013SRC_URI[sha256sum] = "6c455e008fa86d9e9a9d85bb76da4277c0d7d9668a3bfa70dbe86e9f3c759947"
Andrew Geissler517393d2023-01-13 08:55:19 -060014
Patrick Williams03514f12024-04-05 07:04:11 -050015RDEPENDS:${PN} = "python3-protobuf"
Andrew Geissler517393d2023-01-13 08:55:19 -060016
17inherit setuptools3
18inherit pypi
19
20CFLAGS:append:libc-musl = " -D_LARGEFILE64_SOURCE"
21
22export GRPC_PYTHON_DISABLE_LIBC_COMPATIBILITY = "1"
23
24BORING_SSL_PLATFORM:arm = "linux-arm"
25BORING_SSL_PLATFORM:x86-64 = "linux-x86_64"
Andrew Geissler8f840682023-07-21 09:09:43 -050026BORING_SSL_PLATFORM:aarch64 = "linux-aarch64"
Andrew Geissler517393d2023-01-13 08:55:19 -060027BORING_SSL_PLATFORM ?= "unsupported"
28export GRPC_BORING_SSL_PLATFORM = "${BORING_SSL_PLATFORM}"
Andrew Geissler8f840682023-07-21 09:09:43 -050029export GRPC_BUILD_OVERRIDE_BORING_SSL_ASM_PLATFORM = "${BORING_SSL_PLATFORM}"
Andrew Geissler517393d2023-01-13 08:55:19 -060030
Andrew Geissler517393d2023-01-13 08:55:19 -060031BORING_SSL:arm = "1"
Andrew Geissler8f840682023-07-21 09:09:43 -050032BORING_SSL:x86-64 = "1"
33BORING_SSL:aarch64 = "1"
Andrew Geissler517393d2023-01-13 08:55:19 -060034BORING_SSL ?= "0"
35export GRPC_BUILD_WITH_BORING_SSL_ASM = "${BORING_SSL}"
36
37GRPC_CFLAGS ?= ""
38GRPC_CFLAGS:append:toolchain-clang = " -fvisibility=hidden -fno-wrapv -fno-exceptions"
39export GRPC_PYTHON_CFLAGS = "${GRPC_CFLAGS}"
40
41CLEANBROKEN = "1"
42
43BBCLASSEXTEND = "native nativesdk"
44
45CCACHE_DISABLE = "1"