Patrick Williams | 73bd93f | 2024-02-20 08:07:48 -0600 | [diff] [blame] | 1 | SUMMARY = "FlatCC FlatBuffers in C for C" |
| 2 | DESCRIPTION = "FlatCC is a compiler that generates FlatBuffers code for C \ |
| 3 | given a FlatBuffer schema file." |
| 4 | HOMEPAGE = "https://github.com/dvidelabs/flatcc" |
| 5 | SECTION = "devel/lib" |
| 6 | LICENSE = "Apache-2.0" |
| 7 | LIC_FILES_CHKSUM = "file://LICENSE;md5=b3d8fb7158bf7e2600ba3191428dc4ef" |
| 8 | |
| 9 | PV = "0.6.2+git" |
| 10 | |
| 11 | SRC_URI = " \ |
| 12 | git://github.com/dvidelabs/flatcc.git;protocol=https;branch=master \ |
| 13 | file://0001-Check-for-C-standard-version-23-for-__fallthrough__.patch \ |
| 14 | " |
| 15 | SRCREV = "1653ec964730ec7d9892a08a1695ada6d20f5196" |
| 16 | |
| 17 | S = "${WORKDIR}/git" |
| 18 | |
| 19 | inherit cmake |
| 20 | |
| 21 | # Enable installation for target |
| 22 | # Disable tests as is not possible to execute with cross-compilation |
| 23 | EXTRA_OECMAKE += " \ |
| 24 | -DFLATCC_INSTALL=On \ |
| 25 | -DFLATCC_TEST=Off \ |
| 26 | -DFLATCC_ALLOW_WERROR=Off \ |
| 27 | -DFLATCC_INSTALL_LIB=${baselib} \ |
| 28 | " |
| 29 | |
| 30 | BBCLASSEXTEND = "native nativesdk" |