summaryrefslogtreecommitdiffstats
path: root/meta-oe
diff options
context:
space:
mode:
authorPascal Bach <pascal.bach@siemens.com>2017-09-13 13:44:38 +0200
committerMartin Jansa <Martin.Jansa@gmail.com>2017-09-18 10:18:11 +0200
commit635a5b9f3f43197a715198ce81d5279a035cabc1 (patch)
treefbf07a6d1ce6a37be4fdffa3771f3281586798bb /meta-oe
parent453cd9bc0cd848b6fdf92bf2701c7f47472425f4 (diff)
downloadmeta-openembedded-635a5b9f3f43197a715198ce81d5279a035cabc1.tar.gz
flatbuffers: add version 1.7.1
Signed-off-by: Pascal Bach <pascal.bach@siemens.com> Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Diffstat (limited to 'meta-oe')
-rw-r--r--meta-oe/recipes-devtools/flatbuffers/files/0001-correct-version-for-so-lib.patch26
-rw-r--r--meta-oe/recipes-devtools/flatbuffers/flatbuffers_1.7.1.bb35
2 files changed, 61 insertions, 0 deletions
diff --git a/meta-oe/recipes-devtools/flatbuffers/files/0001-correct-version-for-so-lib.patch b/meta-oe/recipes-devtools/flatbuffers/files/0001-correct-version-for-so-lib.patch
new file mode 100644
index 000000000..a7a42f981
--- /dev/null
+++ b/meta-oe/recipes-devtools/flatbuffers/files/0001-correct-version-for-so-lib.patch
@@ -0,0 +1,26 @@
1From 8b44dc65d98d50b462843ac9dab6fe3fc25abe36 Mon Sep 17 00:00:00 2001
2From: Pascal Bach <pascal.bach@siemens.com>
3Date: Fri, 12 May 2017 13:54:49 +0200
4Subject: [PATCH] correct version for so lib
5
6Upstream-Status: Pending
7
8---
9 CMakeLists.txt | 1 +
10 1 file changed, 1 insertion(+)
11
12diff --git a/CMakeLists.txt b/CMakeLists.txt
13index 3670afe..f4fcd2c 100644
14--- a/CMakeLists.txt
15+++ b/CMakeLists.txt
16@@ -172,6 +172,7 @@ endif()
17 if(FLATBUFFERS_BUILD_SHAREDLIB)
18 add_library(flatbuffers_shared SHARED ${FlatBuffers_Library_SRCS})
19 set_target_properties(flatbuffers_shared PROPERTIES OUTPUT_NAME flatbuffers)
20+ set_target_properties(flatbuffers_shared PROPERTIES VERSION "${PV}")
21 endif()
22
23 function(compile_flatbuffers_schema_to_cpp SRC_FBS)
24--
252.1.4
26
diff --git a/meta-oe/recipes-devtools/flatbuffers/flatbuffers_1.7.1.bb b/meta-oe/recipes-devtools/flatbuffers/flatbuffers_1.7.1.bb
new file mode 100644
index 000000000..be0bef21d
--- /dev/null
+++ b/meta-oe/recipes-devtools/flatbuffers/flatbuffers_1.7.1.bb
@@ -0,0 +1,35 @@
1SUMMARY = "Memory Efficient Serialization Library"
2HOMEPAGE = "https://github.com/google/flatbuffers"
3SECTION = "console/tools"
4LICENSE = "Apache-2.0"
5
6PACKAGE_BEFORE_PN = "${PN}-compiler"
7
8RDEPENDS_${PN}-compiler = "${PN}"
9RDEPENDS_${PN}-dev += "${PN}-compiler"
10
11LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=a873c5645c184d51e0f9b34e1d7cf559"
12
13SRCREV = "25a15950f5a24d7217689739ed8f6dac64912d62"
14
15SRC_URI = "git://github.com/google/flatbuffers.git \
16 file://0001-correct-version-for-so-lib.patch \
17"
18
19# Make sure C++11 is used, required for example for GCC 4.9
20CXXFLAGS += "-std=c++11"
21BUILD_CXXFLAGS += "-std=c++11"
22
23EXTRA_OECMAKE += "\
24 -DFLATBUFFERS_BUILD_TESTS=OFF \
25 -DFLATBUFFERS_BUILD_SHAREDLIB=ON \
26 -DPV=${PV} \
27"
28
29inherit cmake
30
31S = "${WORKDIR}/git"
32
33FILES_${PN}-compiler = "${bindir}"
34
35BBCLASSEXTEND = "native nativesdk"