Skip to contentSkip to conversation

Flatbuffers

DISCUSSION Terry Farnham 2 participants 2 messages Jan 19, 2017

lore
Share & tools
lore
#0 lore raw

Curious if anyone has ever built googles flatbuffers for embedded and whether or not they might share their recipe?

Thanks,

Terry

#1 lore raw

2017-01-19 1:35 GMT+01:00 Terry Farnham <[email protected]>:

Quoted 3 lines

Curious if anyone has ever built googles flatbuffers for embedded and whether or not they might share their recipe?

Hi,

you could try a patch for meta-oe that is added as attachment. The recipes compile but I had no time to runtest them yet.

Signature · 2 lines
Regards
Samuel

From 8653b121655837ecb8892e7a5f743f28c96630a7 Mon Sep 17 00:00:00 2001
From: Samuel Stirtzel <[email protected]>
Date: Thu, 19 Jan 2017 11:37:26 +0100
Subject: [PATCH] flatbuffers: Added initial recipe

---
 .../flatbuffers/flatbuffers-native_1.5.0.bb               |  5 +++++
 meta-oe/recipes-devtools/flatbuffers/flatbuffers.inc      | 15 +++++++++++++++
 meta-oe/recipes-devtools/flatbuffers/flatbuffers_1.5.0.bb |  9 +++++++++
 3 files changed, 29 insertions(+)
 create mode 100644 meta-oe/recipes-devtools/flatbuffers/flatbuffers-native_1.5.0.bb
 create mode 100644 meta-oe/recipes-devtools/flatbuffers/flatbuffers.inc
 create mode 100644 meta-oe/recipes-devtools/flatbuffers/flatbuffers_1.5.0.bb
meta-oe/recipes-devtools/flatbuffers/flatbuffers-native_1.5.0.bb new file +5 -0
new file mode 100644
index 0000000..2f7cf59
@@ -0,0 +1,5 @@
+require flatbuffers.inc
+
+inherit cmake native
+
+CXXFLAGS += "--std=c++11"
meta-oe/recipes-devtools/flatbuffers/flatbuffers.inc new file +15 -0
new file mode 100644
index 0000000..5a84eb2
@@ -0,0 +1,15 @@
+SUMMARY = "Flatbuffers - structured data serialisation mechanism"
+DESCRIPTION = "Flatbuffers are a way of encoding structured data in an \
+efficient yet extensible format similar to Protocol Buffers."
+HOMEPAGE = "https://google.github.com/flatbuffers"
+SECTION = "console/tools"
+LICENSE = "Apache-2.0"
+
+LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=a873c5645c184d51e0f9b34e1d7cf559"
+
+SRCREV = "b29ba4c70c7b8ef415e37809574ac74a9bf0b632"
+
+PV = "1.5.0+git${SRCPV}"
+
+SRC_URI = "git://github.com/google/flatbuffers.git"
+S = "${WORKDIR}/git"
meta-oe/recipes-devtools/flatbuffers/flatbuffers_1.5.0.bb new file +9 -0
new file mode 100644
index 0000000..476fd37
@@ -0,0 +1,9 @@
+require flatbuffers.inc
+
+DEPENDS += "flatbuffers-native"
+inherit cmake
+
+EXTRA_OECMAKE += "-DFLATBUFFERS_FLATC_EXECUTABLE=${STAGING_BINDIR_NATIVE}/flatc \
+                  -DFLATBUFFERS_BUILD_SHAREDLIB:bool=ON"
+
+CXXFLAGS += "--std=c++11"
Signature · 1 line
1.9.1