Andrew Geissler | 97771a3 | 2021-03-05 15:23:11 -0600 | [diff] [blame] | 1 | DESCRIPTION = "Google gRPC" |
| 2 | HOMEPAGE = "http://www.grpc.io/" |
| 3 | SECTION = "devel/python" |
| 4 | LICENSE = "Apache-2.0" |
| 5 | LIC_FILES_CHKSUM = "file://LICENSE;md5=3b83ef96387f14655fc854ddc3c6bd57" |
| 6 | |
| 7 | DEPENDS += "${PYTHON_PN}-protobuf" |
| 8 | |
| 9 | SRC_URI += "file://0001-setup.py-Do-not-mix-C-and-C-compiler-options.patch" |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame] | 10 | SRC_URI:append:class-target = " file://ppc-boringssl-support.patch \ |
Andrew Geissler | 97771a3 | 2021-03-05 15:23:11 -0600 | [diff] [blame] | 11 | file://boring_ssl.patch \ |
Andrew Geissler | 32b1199 | 2021-03-31 13:37:05 -0500 | [diff] [blame] | 12 | file://mips_bigendian.patch \ |
| 13 | file://0001-absl-always-use-asm-sgidefs.h.patch \ |
Andrew Geissler | 97771a3 | 2021-03-05 15:23:11 -0600 | [diff] [blame] | 14 | " |
Andrew Geissler | 6972109 | 2021-07-23 12:57:00 -0400 | [diff] [blame] | 15 | SRC_URI[sha256sum] = "1f79d8a24261e3c12ec3a6c25945ff799ae09874fd24815bc17c2dc37715ef6c" |
Andrew Geissler | 97771a3 | 2021-03-05 15:23:11 -0600 | [diff] [blame] | 16 | |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame] | 17 | RDEPENDS:${PN} = "${PYTHON_PN}-protobuf \ |
Andrew Geissler | 97771a3 | 2021-03-05 15:23:11 -0600 | [diff] [blame] | 18 | ${PYTHON_PN}-setuptools \ |
| 19 | ${PYTHON_PN}-six \ |
| 20 | " |
| 21 | |
| 22 | inherit setuptools3 |
| 23 | inherit pypi |
| 24 | |
| 25 | export GRPC_PYTHON_DISABLE_LIBC_COMPATIBILITY = "1" |
| 26 | |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame] | 27 | BORING_SSL_PLATFORM:arm = "linux-arm" |
| 28 | BORING_SSL_PLATFORM:x86-64 = "linux-x86_64" |
Andrew Geissler | 97771a3 | 2021-03-05 15:23:11 -0600 | [diff] [blame] | 29 | BORING_SSL_PLATFORM ?= "unsupported" |
| 30 | export GRPC_BORING_SSL_PLATFORM = "${BORING_SSL_PLATFORM}" |
| 31 | |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame] | 32 | BORING_SSL:x86-64 = "1" |
| 33 | BORING_SSL:arm = "1" |
Andrew Geissler | 97771a3 | 2021-03-05 15:23:11 -0600 | [diff] [blame] | 34 | BORING_SSL ?= "0" |
| 35 | export GRPC_BUILD_WITH_BORING_SSL_ASM = "${BORING_SSL}" |
| 36 | |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame] | 37 | GRPC_CFLAGS:append:toolchain-clang = " -fvisibility=hidden -fno-wrapv -fno-exceptions" |
Andrew Geissler | 97771a3 | 2021-03-05 15:23:11 -0600 | [diff] [blame] | 38 | export GRPC_PYTHON_CFLAGS = "${GRPC_CFLAGS}" |
| 39 | |
| 40 | CLEANBROKEN = "1" |
| 41 | |
| 42 | BBCLASSEXTEND = "native nativesdk" |
| 43 | |
| 44 | CCACHE_DISABLE = "1" |
Andrew Geissler | 32b1199 | 2021-03-31 13:37:05 -0500 | [diff] [blame] | 45 | |
| 46 | # needs vdso support |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame] | 47 | COMPATIBLE_HOST:libc-musl:powerpc64le = "null" |