Files
meta-openembedded/meta-oe/recipes-devtools
Gyorgy Sarvari e3c5b2dd0c capnproto: only export binaries for native build
The base problem this is trying to solve: capnproto has two main
components: libraries that can be linked against, and binary files
that can generate c++ code from capnproto definitions. When cross-compiling
one needs to use the cross-compiled libraries, but with the native
definition-compilers.
When linking against capnproto from another recipe, cross-compilation
fails, because the cmake files generated by capnproto verify the
existence of binary files in $bindir. When using a cross-compiled
version of capnproto, these binary files do not exist in RECIPE_SYSROOT, so
the compilation fails.

The previous patch: the previous solution patched the CMakeLists.txt
file in a way that it didn't export nor install the generated binary files.
Accidentally this also happened with native build (and happened knowingly with
target builds).

The new patch: instead of not installing and not exporting the binaries,
just install them without exporting, when creating a target build.
During compilation check is CMAKE_CROSSCOMPILING is set (coming from
cmake.bbclass) - if it is set, only install the binaries, without
exporting. When it is not set, resort to the original behavior.

Signed-off-by: Gyorgy Sarvari <skandigraun@gmail.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2025-02-25 09:46:52 -08:00
..
2024-02-09 09:52:12 -08:00
2024-06-27 09:19:06 -07:00
2024-08-13 22:34:53 -07:00
2024-02-03 22:03:04 -08:00
2025-01-14 08:52:03 -08:00
2024-02-09 09:52:12 -08:00
2024-05-23 08:44:44 -07:00
2025-02-03 13:03:24 -08:00
2024-07-28 00:00:31 -07:00
2025-01-24 18:20:00 -08:00
2024-02-09 09:52:12 -08:00
2025-02-14 20:27:17 -08:00
2024-12-19 09:41:20 -08:00
2025-01-29 17:43:04 -08:00
2024-07-25 07:58:08 -07:00
2025-02-10 08:45:37 -08:00
2025-01-24 18:20:07 -08:00
2025-02-14 20:27:17 -08:00
2025-01-14 08:52:04 -08:00
2025-01-25 09:36:49 -08:00
2024-02-09 09:52:12 -08:00
2025-01-24 18:20:01 -08:00
2024-07-15 16:36:12 -07:00
2025-02-03 13:03:25 -08:00
2025-01-14 08:52:05 -08:00
2024-02-09 09:52:12 -08:00
2024-06-07 09:11:54 -07:00
2025-02-04 10:14:37 -08:00
2024-12-13 07:54:45 -08:00
2024-12-24 08:23:09 -08:00
2024-12-24 08:23:09 -08:00
2024-12-27 09:21:42 -08:00
2024-09-10 07:20:41 -07:00
2024-04-19 14:31:31 -07:00
2025-01-20 20:20:26 -08:00