diff options
Diffstat (limited to 'meta-oe/recipes-devtools/protobuf/protobuf-c_1.5.1.bb')
-rw-r--r-- | meta-oe/recipes-devtools/protobuf/protobuf-c_1.5.1.bb | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/meta-oe/recipes-devtools/protobuf/protobuf-c_1.5.1.bb b/meta-oe/recipes-devtools/protobuf/protobuf-c_1.5.1.bb new file mode 100644 index 0000000000..30c9e19b16 --- /dev/null +++ b/meta-oe/recipes-devtools/protobuf/protobuf-c_1.5.1.bb | |||
@@ -0,0 +1,42 @@ | |||
1 | SUMMARY = "Protocol Buffers - structured data serialisation mechanism" | ||
2 | DESCRIPTION = "This is protobuf-c, a C implementation of the Google Protocol Buffers data \ | ||
3 | serialization format. It includes libprotobuf-c, a pure C library that \ | ||
4 | implements protobuf encoding and decoding, and protoc-c, a code generator that \ | ||
5 | converts Protocol Buffer .proto files to C descriptor code, based on the \ | ||
6 | original protoc. protobuf-c formerly included an RPC implementation; that code \ | ||
7 | has been split out into the protobuf-c-rpc project." | ||
8 | HOMEPAGE = "https://github.com/protobuf-c/protobuf-c" | ||
9 | SECTION = "console/tools" | ||
10 | LICENSE = "BSD-2-Clause" | ||
11 | LIC_FILES_CHKSUM = "file://LICENSE;md5=bd8de4f63e06b1ccc06e9f8dc5b1aa97" | ||
12 | |||
13 | DEPENDS = "protobuf-native protobuf" | ||
14 | |||
15 | SRC_URI = "git://github.com/protobuf-c/protobuf-c.git;branch=master;protocol=https \ | ||
16 | file://protobuf-30.patch \ | ||
17 | " | ||
18 | SRC_URI:append:class-native = " file://0001-Makefile.am-do-not-compile-the-code-which-was-genera.patch" | ||
19 | |||
20 | SRCREV = "185beed28e65494be7505b30c1afeaf199e19b23" | ||
21 | |||
22 | |||
23 | inherit autotools pkgconfig | ||
24 | |||
25 | export PROTOC = "${STAGING_BINDIR_NATIVE}/protoc" | ||
26 | |||
27 | # After several fix attempts there is still a race between generating | ||
28 | # t.test-full.pb.h and compiling cxx_generate_packed_data.c despite | ||
29 | # BUILT_SOURCES and explicit dependencies. | ||
30 | PARALLEL_MAKE = "" | ||
31 | |||
32 | PACKAGE_BEFORE_PN = "${PN}-compiler" | ||
33 | |||
34 | FILES:${PN}-compiler = "${bindir}" | ||
35 | |||
36 | RDEPENDS:${PN}-compiler = "protobuf-compiler" | ||
37 | RDEPENDS:${PN}-dev += "${PN}-compiler" | ||
38 | |||
39 | BBCLASSEXTEND = "native nativesdk" | ||
40 | |||
41 | # No 64bit atomics | ||
42 | LDFLAGS:append:riscv32 = " -latomic" | ||