Andrew Geissler | 82c905d | 2020-04-13 13:39:40 -0500 | [diff] [blame] | 1 | SUMMARY = "Memory Efficient Serialization Library" |
| 2 | HOMEPAGE = "https://github.com/google/flatbuffers" |
| 3 | SECTION = "console/tools" |
| 4 | LICENSE = "Apache-2.0" |
| 5 | |
Andrew Geissler | 72956ed | 2021-01-08 16:11:14 -0600 | [diff] [blame] | 6 | inherit python3-dir |
| 7 | |
| 8 | PACKAGE_BEFORE_PN = "${PN}-compiler ${PN}-${PYTHON_PN}" |
Andrew Geissler | 82c905d | 2020-04-13 13:39:40 -0500 | [diff] [blame] | 9 | |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame] | 10 | RDEPENDS:${PN}-compiler = "${PN}" |
| 11 | RDEPENDS:${PN}-${PYTHON_PN} = "${PN}" |
| 12 | RDEPENDS:${PN}-dev += "${PN}-compiler" |
Andrew Geissler | 82c905d | 2020-04-13 13:39:40 -0500 | [diff] [blame] | 13 | |
| 14 | LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=3b83ef96387f14655fc854ddc3c6bd57" |
| 15 | |
William A. Kennington III | b95905d | 2021-06-02 12:40:56 -0700 | [diff] [blame] | 16 | SRCREV = "a9a295fecf3fbd5a4f571f53b01f63202a3e2113" |
Andrew Geissler | 595f630 | 2022-01-24 19:11:47 +0000 | [diff] [blame] | 17 | SRC_URI = "git://github.com/google/flatbuffers.git;branch=master;protocol=https" |
William A. Kennington III | b95905d | 2021-06-02 12:40:56 -0700 | [diff] [blame] | 18 | S = "${WORKDIR}/git" |
Andrew Geissler | 82c905d | 2020-04-13 13:39:40 -0500 | [diff] [blame] | 19 | |
Andrew Geissler | 7e0e3c0 | 2022-02-25 20:34:39 +0000 | [diff] [blame] | 20 | CVE_CHECK_IGNORE += "CVE-2020-35864" |
Andrew Geissler | eef6386 | 2021-01-29 15:58:13 -0600 | [diff] [blame] | 21 | |
Andrew Geissler | 7f40b71 | 2020-05-15 14:09:53 -0500 | [diff] [blame] | 22 | CXXFLAGS += "-fPIC" |
| 23 | BUILD_CXXFLAGS += "-fPIC" |
Andrew Geissler | 82c905d | 2020-04-13 13:39:40 -0500 | [diff] [blame] | 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 | |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame] | 34 | do_install:append() { |
Andrew Geissler | 72956ed | 2021-01-08 16:11:14 -0600 | [diff] [blame] | 35 | install -d ${D}${PYTHON_SITEPACKAGES_DIR} |
| 36 | cp -rf ${S}/python/flatbuffers ${D}${PYTHON_SITEPACKAGES_DIR} |
| 37 | } |
| 38 | |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame] | 39 | FILES:${PN}-compiler = "${bindir}" |
Andrew Geissler | 82c905d | 2020-04-13 13:39:40 -0500 | [diff] [blame] | 40 | |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame] | 41 | FILES:${PN}-${PYTHON_PN} = "${PYTHON_SITEPACKAGES_DIR}" |
Andrew Geissler | 72956ed | 2021-01-08 16:11:14 -0600 | [diff] [blame] | 42 | |
Andrew Geissler | 82c905d | 2020-04-13 13:39:40 -0500 | [diff] [blame] | 43 | BBCLASSEXTEND = "native nativesdk" |