mirror of
https://github.com/thead-yocto-mirror/meta-openembedded
synced 2026-09-16 12:12:16 +02:00
1. protoc-c depend on protobuf, from protobuf 3.6.0.1, scoped_array is removed, but protoc-c still use scoped_array, caused compile error. 2. fix compile error since missing namespace 3. from protobuf 3.6, only C++11 is supported, so set to use c++11 for protobuf-c Signed-off-by: Changqing Li <changqing.li@windriver.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
38 lines
1.3 KiB
BlitzBasic
38 lines
1.3 KiB
BlitzBasic
SUMMARY = "Protocol Buffers - structured data serialisation mechanism"
|
|
DESCRIPTION = "This is protobuf-c, a C implementation of the Google Protocol Buffers data \
|
|
serialization format. It includes libprotobuf-c, a pure C library that \
|
|
implements protobuf encoding and decoding, and protoc-c, a code generator that \
|
|
converts Protocol Buffer .proto files to C descriptor code, based on the \
|
|
original protoc. protobuf-c formerly included an RPC implementation; that code \
|
|
has been split out into the protobuf-c-rpc project."
|
|
HOMEPAGE = "https://github.com/protobuf-c/protobuf-c"
|
|
SECTION = "console/tools"
|
|
LICENSE = "BSD-2-Clause"
|
|
LIC_FILES_CHKSUM = "file://LICENSE;md5=cb901168715f4782a2b06c3ddaefa558"
|
|
|
|
DEPENDS = "protobuf-native protobuf"
|
|
|
|
PV .= "+git${SRCPV}"
|
|
SRCREV = "dac1a65feac4ad72f612aab99f487056fbcf5c1a"
|
|
|
|
SRC_URI = "git://github.com/protobuf-c/protobuf-c.git \
|
|
file://0001-protobuf-c-fix-compile-error-with-protobuf-3.6.0.1.patch \
|
|
"
|
|
|
|
S = "${WORKDIR}/git"
|
|
|
|
#make sure c++11 is used
|
|
CXXFLAGS += "-std=c++11"
|
|
BUILD_CXXFLAGS += "-std=c++11"
|
|
|
|
inherit autotools pkgconfig
|
|
|
|
PACKAGE_BEFORE_PN = "${PN}-compiler"
|
|
|
|
FILES_${PN}-compiler = "${bindir}"
|
|
|
|
RDEPENDS_${PN}-compiler = "protobuf-compiler"
|
|
RDEPENDS_${PN}-dev += "${PN}-compiler"
|
|
|
|
BBCLASSEXTEND = "native nativesdk"
|