diff options
| author | Andreas Müller <schnitzeltony@gmail.com> | 2021-05-24 00:33:51 +0200 |
|---|---|---|
| committer | Khem Raj <raj.khem@gmail.com> | 2021-05-24 07:39:35 -0700 |
| commit | 79053240dc9d686f068e597467dd822458b40074 (patch) | |
| tree | 37ad2b3c6fe8761562103cfff3d284c4af8ef306 /meta-oe/recipes-devtools/flatbuffers/flatbuffers_2.0.0.bb | |
| parent | eb5c798422dfc1fb10c25282c89d92fc059577cc (diff) | |
| download | meta-openembedded-79053240dc9d686f068e597467dd822458b40074.tar.gz | |
flatbuffers: upgrade 1.12.0 -> 2.0.0
Signed-off-by: Andreas Müller <schnitzeltony@gmail.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Diffstat (limited to 'meta-oe/recipes-devtools/flatbuffers/flatbuffers_2.0.0.bb')
| -rw-r--r-- | meta-oe/recipes-devtools/flatbuffers/flatbuffers_2.0.0.bb | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/meta-oe/recipes-devtools/flatbuffers/flatbuffers_2.0.0.bb b/meta-oe/recipes-devtools/flatbuffers/flatbuffers_2.0.0.bb new file mode 100644 index 0000000000..f4f08012b5 --- /dev/null +++ b/meta-oe/recipes-devtools/flatbuffers/flatbuffers_2.0.0.bb | |||
| @@ -0,0 +1,43 @@ | |||
| 1 | SUMMARY = "Memory Efficient Serialization Library" | ||
| 2 | HOMEPAGE = "https://github.com/google/flatbuffers" | ||
| 3 | SECTION = "console/tools" | ||
| 4 | LICENSE = "Apache-2.0" | ||
| 5 | |||
| 6 | inherit python3-dir | ||
| 7 | |||
| 8 | PACKAGE_BEFORE_PN = "${PN}-compiler ${PN}-${PYTHON_PN}" | ||
| 9 | |||
| 10 | RDEPENDS_${PN}-compiler = "${PN}" | ||
| 11 | RDEPENDS_${PN}-${PYTHON_PN} = "${PN}" | ||
| 12 | RDEPENDS_${PN}-dev += "${PN}-compiler" | ||
| 13 | |||
| 14 | LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=3b83ef96387f14655fc854ddc3c6bd57" | ||
| 15 | |||
| 16 | SRCREV = "a9a295fecf3fbd5a4f571f53b01f63202a3e2113" | ||
| 17 | SRC_URI = "git://github.com/google/flatbuffers.git" | ||
| 18 | S = "${WORKDIR}/git" | ||
| 19 | |||
| 20 | CVE_CHECK_WHITELIST += "CVE-2020-35864" | ||
| 21 | |||
| 22 | CXXFLAGS += "-fPIC" | ||
| 23 | BUILD_CXXFLAGS += "-fPIC" | ||
| 24 | |||
| 25 | # BUILD_TYPE=Release is required, otherwise flatc is not installed | ||
| 26 | EXTRA_OECMAKE += "\ | ||
| 27 | -DCMAKE_BUILD_TYPE=Release \ | ||
| 28 | -DFLATBUFFERS_BUILD_TESTS=OFF \ | ||
| 29 | -DFLATBUFFERS_BUILD_SHAREDLIB=ON \ | ||
| 30 | " | ||
| 31 | |||
| 32 | inherit cmake | ||
| 33 | |||
| 34 | do_install_append() { | ||
| 35 | install -d ${D}${PYTHON_SITEPACKAGES_DIR} | ||
| 36 | cp -rf ${S}/python/flatbuffers ${D}${PYTHON_SITEPACKAGES_DIR} | ||
| 37 | } | ||
| 38 | |||
| 39 | FILES_${PN}-compiler = "${bindir}" | ||
| 40 | |||
| 41 | FILES_${PN}-${PYTHON_PN} = "${PYTHON_SITEPACKAGES_DIR}" | ||
| 42 | |||
| 43 | BBCLASSEXTEND = "native nativesdk" | ||
