All of lore.kernel.org
 help / color / mirror / Atom feed
* Flatbuffers
@ 2017-01-19  0:35 Terry Farnham
  2017-01-19 16:03 ` Flatbuffers Samuel Stirtzel
  0 siblings, 1 reply; 2+ messages in thread
From: Terry Farnham @ 2017-01-19  0:35 UTC (permalink / raw)
  To: yocto

[-- Attachment #1: Type: text/plain, Size: 146 bytes --]

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



Thanks,



Terry

[-- Attachment #2: Type: text/html, Size: 1317 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Flatbuffers
  2017-01-19  0:35 Flatbuffers Terry Farnham
@ 2017-01-19 16:03 ` Samuel Stirtzel
  0 siblings, 0 replies; 2+ messages in thread
From: Samuel Stirtzel @ 2017-01-19 16:03 UTC (permalink / raw)
  To: Terry Farnham; +Cc: yocto

[-- Attachment #1: Type: text/plain, Size: 355 bytes --]

2017-01-19 1:35 GMT+01:00 Terry Farnham <terry.farnham@quanergy.com>:
> 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.


-- 
Regards
Samuel

[-- Attachment #2: 0001-flatbuffers-Added-initial-recipe.patch --]
[-- Type: text/x-diff, Size: 2467 bytes --]

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

Signed-off-by: Samuel Stirtzel <s.stirtzel@googlemail.com>
---
 .../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

diff --git a/meta-oe/recipes-devtools/flatbuffers/flatbuffers-native_1.5.0.bb b/meta-oe/recipes-devtools/flatbuffers/flatbuffers-native_1.5.0.bb
new file mode 100644
index 0000000..2f7cf59
--- /dev/null
+++ b/meta-oe/recipes-devtools/flatbuffers/flatbuffers-native_1.5.0.bb
@@ -0,0 +1,5 @@
+require flatbuffers.inc
+
+inherit cmake native
+
+CXXFLAGS += "--std=c++11"
diff --git a/meta-oe/recipes-devtools/flatbuffers/flatbuffers.inc b/meta-oe/recipes-devtools/flatbuffers/flatbuffers.inc
new file mode 100644
index 0000000..5a84eb2
--- /dev/null
+++ b/meta-oe/recipes-devtools/flatbuffers/flatbuffers.inc
@@ -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"
diff --git a/meta-oe/recipes-devtools/flatbuffers/flatbuffers_1.5.0.bb b/meta-oe/recipes-devtools/flatbuffers/flatbuffers_1.5.0.bb
new file mode 100644
index 0000000..476fd37
--- /dev/null
+++ b/meta-oe/recipes-devtools/flatbuffers/flatbuffers_1.5.0.bb
@@ -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"
-- 
1.9.1


^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2017-01-19 16:03 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-01-19  0:35 Flatbuffers Terry Farnham
2017-01-19 16:03 ` Flatbuffers Samuel Stirtzel

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.