diff options
Diffstat (limited to 'meta-python/recipes-devtools/python/python3-grpcio_1.76.0.bb')
| -rw-r--r-- | meta-python/recipes-devtools/python/python3-grpcio_1.76.0.bb | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/meta-python/recipes-devtools/python/python3-grpcio_1.76.0.bb b/meta-python/recipes-devtools/python/python3-grpcio_1.76.0.bb new file mode 100644 index 0000000000..c4282502e1 --- /dev/null +++ b/meta-python/recipes-devtools/python/python3-grpcio_1.76.0.bb | |||
| @@ -0,0 +1,46 @@ | |||
| 1 | DESCRIPTION = "Google gRPC" | ||
| 2 | HOMEPAGE = "https://www.grpc.io/" | ||
| 3 | SECTION = "devel/python" | ||
| 4 | LICENSE = "Apache-2.0 & BSD-3-Clause & MPL-2.0 & MIT & BSD-2-Clause" | ||
| 5 | LIC_FILES_CHKSUM = " \ | ||
| 6 | file://LICENSE;md5=731e401b36f8077ae0c134b59be5c906 \ | ||
| 7 | file://third_party/utf8_range/utf8_validity.h;beginline=1;endline=5;md5=db08ddb5817e660489678e7c3653805a \ | ||
| 8 | file://third_party/xxhash/xxhash.h;beginline=1;endline=34;md5=d41d564db2353fc80a713956d85b1690 \ | ||
| 9 | " | ||
| 10 | |||
| 11 | DEPENDS += "c-ares openssl python3-protobuf re2 zlib" | ||
| 12 | |||
| 13 | SRC_URI += "file://0001-python-enable-unbundled-cross-compilation.patch \ | ||
| 14 | file://abseil-ppc-fixes.patch \ | ||
| 15 | " | ||
| 16 | SRC_URI[sha256sum] = "7be78388d6da1a25c0d5ec506523db58b18be22d9c37d8d3a32c08be4987bd73" | ||
| 17 | |||
| 18 | RDEPENDS:${PN} = "python3-protobuf" | ||
| 19 | |||
| 20 | inherit setuptools3 | ||
| 21 | inherit pypi | ||
| 22 | |||
| 23 | CFLAGS:append:libc-musl = " -D_LARGEFILE64_SOURCE" | ||
| 24 | |||
| 25 | # unbundling abseil-cpp needs work on dynamic linker issue | ||
| 26 | #export GRPC_PYTHON_BUILD_SYSTEM_ABSL = "1" | ||
| 27 | export GRPC_PYTHON_BUILD_SYSTEM_CARES = "1" | ||
| 28 | export GRPC_PYTHON_BUILD_SYSTEM_OPENSSL = "1" | ||
| 29 | export GRPC_PYTHON_BUILD_SYSTEM_RE2 = "1" | ||
| 30 | export GRPC_PYTHON_BUILD_SYSTEM_ZLIB = "1" | ||
| 31 | |||
| 32 | do_compile:prepend() { | ||
| 33 | export GRPC_PYTHON_BUILD_EXT_COMPILER_JOBS="${@oe.utils.parallel_make(d, False)}" | ||
| 34 | } | ||
| 35 | |||
| 36 | GRPC_CFLAGS ?= "" | ||
| 37 | GRPC_CFLAGS:append:toolchain-clang = " -fvisibility=hidden -fno-wrapv -fno-exceptions" | ||
| 38 | export GRPC_PYTHON_CFLAGS = "${GRPC_CFLAGS}" | ||
| 39 | |||
| 40 | CLEANBROKEN = "1" | ||
| 41 | |||
| 42 | BBCLASSEXTEND = "native nativesdk" | ||
| 43 | |||
| 44 | CCACHE_DISABLE = "1" | ||
| 45 | |||
| 46 | CVE_PRODUCT += "grpc:grpc" | ||
