Andrew Geissler | 517393d | 2023-01-13 08:55:19 -0600 | [diff] [blame] | 1 | DESCRIPTION = "Protocol Buffers" |
| 2 | HOMEPAGE = "https://developers.google.com/protocol-buffers/" |
| 3 | SECTION = "devel/python" |
| 4 | |
| 5 | LICENSE = "BSD-3-Clause" |
| 6 | LIC_FILES_CHKSUM = "file://PKG-INFO;beginline=8;endline=8;md5=53dbfa56f61b90215a9f8f0d527c043d" |
| 7 | |
| 8 | inherit pypi setuptools3 |
Andrew Geissler | 5082cc7 | 2023-09-11 08:41:39 -0400 | [diff] [blame] | 9 | SRC_URI += "file://0001-message.c-Cast-uintptr_t-types-to-upb_MessageDef.patch" |
Andrew Geissler | 220dafd | 2023-10-04 10:18:08 -0500 | [diff] [blame^] | 10 | SRC_URI[sha256sum] = "12e9ad2ec079b833176d2921be2cb24281fa591f0b119b208b788adc48c2561d" |
Andrew Geissler | 517393d | 2023-01-13 08:55:19 -0600 | [diff] [blame] | 11 | |
| 12 | # http://errors.yoctoproject.org/Errors/Details/184715/ |
| 13 | # Can't find required file: ../src/google/protobuf/descriptor.proto |
| 14 | CLEANBROKEN = "1" |
| 15 | |
| 16 | UPSTREAM_CHECK_REGEX = "protobuf/(?P<pver>\d+(\.\d+)+)/" |
| 17 | |
| 18 | DEPENDS += "protobuf" |
| 19 | |
| 20 | RDEPENDS:${PN} += " \ |
| 21 | ${PYTHON_PN}-datetime \ |
| 22 | ${PYTHON_PN}-json \ |
| 23 | ${PYTHON_PN}-logging \ |
| 24 | ${PYTHON_PN}-netclient \ |
| 25 | ${PYTHON_PN}-numbers \ |
| 26 | ${PYTHON_PN}-pkgutil \ |
| 27 | ${PYTHON_PN}-six \ |
| 28 | ${PYTHON_PN}-unittest \ |
| 29 | " |
| 30 | |
| 31 | # For usage in other recipies when compiling protobuf files (e.g. by grpcio-tools) |
| 32 | BBCLASSEXTEND = "native nativesdk" |
| 33 | |
| 34 | DISTUTILS_BUILD_ARGS += "--cpp_implementation" |
| 35 | DISTUTILS_INSTALL_ARGS += "--cpp_implementation" |
| 36 | |
| 37 | do_compile:prepend:class-native () { |
| 38 | export KOKORO_BUILD_NUMBER="1" |
| 39 | } |