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 | |
| 9 | SRC_URI += "file://0001-setup.py-Do-not-mix-C-and-C-compiler-options.patch" |
| 10 | SRC_URI:append:class-target = " file://ppc-boringssl-support.patch \ |
Andrew Geissler | 517393d | 2023-01-13 08:55:19 -0600 | [diff] [blame] | 11 | file://mips_bigendian.patch \ |
Patrick Williams | 864cc43 | 2023-02-09 14:54:44 -0600 | [diff] [blame] | 12 | file://0001-Include-missing-cstdint-header.patch \ |
Andrew Geissler | 517393d | 2023-01-13 08:55:19 -0600 | [diff] [blame] | 13 | file://abseil-ppc-fixes.patch;patchdir=third_party/abseil-cpp \ |
Andrew Geissler | 8f84068 | 2023-07-21 09:09:43 -0500 | [diff] [blame] | 14 | file://0001-direct_mmap-Use-off_t-on-linux.patch;patchdir=third_party/abseil-cpp \ |
Andrew Geissler | 6aa7eec | 2023-03-03 12:41:14 -0600 | [diff] [blame] | 15 | file://0001-zlib-Include-unistd.h-for-open-close-C-APIs.patch \ |
Andrew Geissler | 517393d | 2023-01-13 08:55:19 -0600 | [diff] [blame] | 16 | " |
Patrick Williams | 2a25492 | 2023-08-11 09:48:11 -0500 | [diff] [blame] | 17 | SRC_URI[sha256sum] = "0ff789ae7d8ddd76d2ac02e7d13bfef6fc4928ac01e1dcaa182be51b6bcc0aaa" |
Andrew Geissler | 517393d | 2023-01-13 08:55:19 -0600 | [diff] [blame] | 18 | |
| 19 | RDEPENDS:${PN} = "${PYTHON_PN}-protobuf \ |
| 20 | ${PYTHON_PN}-setuptools \ |
| 21 | ${PYTHON_PN}-six \ |
| 22 | " |
| 23 | |
| 24 | inherit setuptools3 |
| 25 | inherit pypi |
| 26 | |
| 27 | CFLAGS:append:libc-musl = " -D_LARGEFILE64_SOURCE" |
| 28 | |
| 29 | export GRPC_PYTHON_DISABLE_LIBC_COMPATIBILITY = "1" |
| 30 | |
| 31 | BORING_SSL_PLATFORM:arm = "linux-arm" |
| 32 | BORING_SSL_PLATFORM:x86-64 = "linux-x86_64" |
Andrew Geissler | 8f84068 | 2023-07-21 09:09:43 -0500 | [diff] [blame] | 33 | BORING_SSL_PLATFORM:aarch64 = "linux-aarch64" |
Andrew Geissler | 517393d | 2023-01-13 08:55:19 -0600 | [diff] [blame] | 34 | BORING_SSL_PLATFORM ?= "unsupported" |
| 35 | export GRPC_BORING_SSL_PLATFORM = "${BORING_SSL_PLATFORM}" |
Andrew Geissler | 8f84068 | 2023-07-21 09:09:43 -0500 | [diff] [blame] | 36 | export GRPC_BUILD_OVERRIDE_BORING_SSL_ASM_PLATFORM = "${BORING_SSL_PLATFORM}" |
Andrew Geissler | 517393d | 2023-01-13 08:55:19 -0600 | [diff] [blame] | 37 | |
Andrew Geissler | 517393d | 2023-01-13 08:55:19 -0600 | [diff] [blame] | 38 | BORING_SSL:arm = "1" |
Andrew Geissler | 8f84068 | 2023-07-21 09:09:43 -0500 | [diff] [blame] | 39 | BORING_SSL:x86-64 = "1" |
| 40 | BORING_SSL:aarch64 = "1" |
Andrew Geissler | 517393d | 2023-01-13 08:55:19 -0600 | [diff] [blame] | 41 | BORING_SSL ?= "0" |
| 42 | export GRPC_BUILD_WITH_BORING_SSL_ASM = "${BORING_SSL}" |
| 43 | |
| 44 | GRPC_CFLAGS ?= "" |
| 45 | GRPC_CFLAGS:append:toolchain-clang = " -fvisibility=hidden -fno-wrapv -fno-exceptions" |
| 46 | export GRPC_PYTHON_CFLAGS = "${GRPC_CFLAGS}" |
| 47 | |
| 48 | CLEANBROKEN = "1" |
| 49 | |
| 50 | BBCLASSEXTEND = "native nativesdk" |
| 51 | |
| 52 | CCACHE_DISABLE = "1" |