diff options
author | Pascal Bach <pascal.bach@siemens.com> | 2017-09-13 13:44:38 +0200 |
---|---|---|
committer | Martin Jansa <Martin.Jansa@gmail.com> | 2017-09-18 10:18:11 +0200 |
commit | 635a5b9f3f43197a715198ce81d5279a035cabc1 (patch) | |
tree | fbf07a6d1ce6a37be4fdffa3771f3281586798bb /meta-oe | |
parent | 453cd9bc0cd848b6fdf92bf2701c7f47472425f4 (diff) | |
download | meta-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.patch | 26 | ||||
-rw-r--r-- | meta-oe/recipes-devtools/flatbuffers/flatbuffers_1.7.1.bb | 35 |
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 @@ | |||
1 | From 8b44dc65d98d50b462843ac9dab6fe3fc25abe36 Mon Sep 17 00:00:00 2001 | ||
2 | From: Pascal Bach <pascal.bach@siemens.com> | ||
3 | Date: Fri, 12 May 2017 13:54:49 +0200 | ||
4 | Subject: [PATCH] correct version for so lib | ||
5 | |||
6 | Upstream-Status: Pending | ||
7 | |||
8 | --- | ||
9 | CMakeLists.txt | 1 + | ||
10 | 1 file changed, 1 insertion(+) | ||
11 | |||
12 | diff --git a/CMakeLists.txt b/CMakeLists.txt | ||
13 | index 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 | -- | ||
25 | 2.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 @@ | |||
1 | SUMMARY = "Memory Efficient Serialization Library" | ||
2 | HOMEPAGE = "https://github.com/google/flatbuffers" | ||
3 | SECTION = "console/tools" | ||
4 | LICENSE = "Apache-2.0" | ||
5 | |||
6 | PACKAGE_BEFORE_PN = "${PN}-compiler" | ||
7 | |||
8 | RDEPENDS_${PN}-compiler = "${PN}" | ||
9 | RDEPENDS_${PN}-dev += "${PN}-compiler" | ||
10 | |||
11 | LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=a873c5645c184d51e0f9b34e1d7cf559" | ||
12 | |||
13 | SRCREV = "25a15950f5a24d7217689739ed8f6dac64912d62" | ||
14 | |||
15 | SRC_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 | ||
20 | CXXFLAGS += "-std=c++11" | ||
21 | BUILD_CXXFLAGS += "-std=c++11" | ||
22 | |||
23 | EXTRA_OECMAKE += "\ | ||
24 | -DFLATBUFFERS_BUILD_TESTS=OFF \ | ||
25 | -DFLATBUFFERS_BUILD_SHAREDLIB=ON \ | ||
26 | -DPV=${PV} \ | ||
27 | " | ||
28 | |||
29 | inherit cmake | ||
30 | |||
31 | S = "${WORKDIR}/git" | ||
32 | |||
33 | FILES_${PN}-compiler = "${bindir}" | ||
34 | |||
35 | BBCLASSEXTEND = "native nativesdk" | ||