Andrew Geissler | 517393d | 2023-01-13 08:55:19 -0600 | [diff] [blame] | 1 | DESCRIPTION = "Google gRPC" |
| 2 | HOMEPAGE = "http://www.grpc.io/" |
| 3 | SECTION = "devel/python" |
| 4 | LICENSE = "Apache-2.0 & BSD-3-Clause" |
| 5 | LIC_FILES_CHKSUM = "file://LICENSE;md5=731e401b36f8077ae0c134b59be5c906" |
| 6 | |
| 7 | DEPENDS += "${PYTHON_PN}-protobuf" |
| 8 | |
Patrick Williams | 169d7bc | 2024-01-05 11:33:25 -0600 | [diff] [blame] | 9 | SRC_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 | " |
| 13 | SRC_URI[sha256sum] = "2199165a1affb666aa24adf0c97436686d0a61bc5fc113c037701fb7c7fceb96" |
Andrew Geissler | 517393d | 2023-01-13 08:55:19 -0600 | [diff] [blame] | 14 | |
| 15 | RDEPENDS:${PN} = "${PYTHON_PN}-protobuf \ |
| 16 | ${PYTHON_PN}-setuptools \ |
| 17 | ${PYTHON_PN}-six \ |
| 18 | " |
| 19 | |
| 20 | inherit setuptools3 |
| 21 | inherit pypi |
| 22 | |
| 23 | CFLAGS:append:libc-musl = " -D_LARGEFILE64_SOURCE" |
| 24 | |
| 25 | export GRPC_PYTHON_DISABLE_LIBC_COMPATIBILITY = "1" |
| 26 | |
| 27 | BORING_SSL_PLATFORM:arm = "linux-arm" |
| 28 | BORING_SSL_PLATFORM:x86-64 = "linux-x86_64" |
Andrew Geissler | 8f84068 | 2023-07-21 09:09:43 -0500 | [diff] [blame] | 29 | BORING_SSL_PLATFORM:aarch64 = "linux-aarch64" |
Andrew Geissler | 517393d | 2023-01-13 08:55:19 -0600 | [diff] [blame] | 30 | BORING_SSL_PLATFORM ?= "unsupported" |
| 31 | export GRPC_BORING_SSL_PLATFORM = "${BORING_SSL_PLATFORM}" |
Andrew Geissler | 8f84068 | 2023-07-21 09:09:43 -0500 | [diff] [blame] | 32 | export GRPC_BUILD_OVERRIDE_BORING_SSL_ASM_PLATFORM = "${BORING_SSL_PLATFORM}" |
Andrew Geissler | 517393d | 2023-01-13 08:55:19 -0600 | [diff] [blame] | 33 | |
Andrew Geissler | 517393d | 2023-01-13 08:55:19 -0600 | [diff] [blame] | 34 | BORING_SSL:arm = "1" |
Andrew Geissler | 8f84068 | 2023-07-21 09:09:43 -0500 | [diff] [blame] | 35 | BORING_SSL:x86-64 = "1" |
| 36 | BORING_SSL:aarch64 = "1" |
Andrew Geissler | 517393d | 2023-01-13 08:55:19 -0600 | [diff] [blame] | 37 | BORING_SSL ?= "0" |
| 38 | export GRPC_BUILD_WITH_BORING_SSL_ASM = "${BORING_SSL}" |
| 39 | |
| 40 | GRPC_CFLAGS ?= "" |
| 41 | GRPC_CFLAGS:append:toolchain-clang = " -fvisibility=hidden -fno-wrapv -fno-exceptions" |
| 42 | export GRPC_PYTHON_CFLAGS = "${GRPC_CFLAGS}" |
| 43 | |
| 44 | CLEANBROKEN = "1" |
| 45 | |
| 46 | BBCLASSEXTEND = "native nativesdk" |
| 47 | |
| 48 | CCACHE_DISABLE = "1" |