2017-01-19 1:35 GMT+01:00 Terry Farnham <[email protected]>: > 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
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 Signed-off-by: Samuel Stirtzel <[email protected]> --- .../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
-- _______________________________________________ yocto mailing list [email protected] https://lists.yoctoproject.org/listinfo/yocto
