meta-openembedded/meta-oe/recipes-devtools/flatbuffers
BINDU f3be6cf146
flatbuffers: adapt for cross-compilation environments
Flatbuffers contains a library and a schema compiler. The package
contains cmake files to discover the libraries and the compiler tool.
Currently, all of these cmake files are installed into the target
sysroot. However, the compiler utility isn't installed into the sysroot
(as it is not runnable on the build machine).

When an application that depends on flatbuffers gets built, it uses
flatbuffers' exported cmake targets to configure the project. One of the
exported targets is FlatcTarget.cmake which expects to see flatc binary
in /usr/bin of the sysroot. Since binaries for target don't end up in
target sysroot, cmake configuration fails.

This patch addresses this problem of flatbuffers' build infrastructure
in cross-compiling environments. By removing FlatcTarget.cmake for
target builds from the sysroot we essentially skip this step of
flatbuffers' configuration.

(cherry picked from commit b97dbaac66)

Signed-off-by: Ivan Stepic <Ivan.Stepic@bmw.de>
Signed-off-by: Bhabu Bindu <bindudaniel1996@gmail.com>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
Signed-off-by: Akash Hadke <akash.hadke27@gmail.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2024-07-09 08:51:11 -07:00
..
flatbuffers.bb flatbuffers: adapt for cross-compilation environments 2024-07-09 08:51:11 -07:00
flatbuffers.inc python3-flatbuffers: upgrade 24.3.7 -> 24.3.25 2024-04-02 11:28:51 -07:00
python3-flatbuffers.bb flatbuffers: upgrade 23.1.4 -> 23.3.56 2023-05-31 08:28:50 -07:00