Files
meta-openembedded/meta-oe/recipes-devtools
Gyorgy Sarvari 6b1ba4543a capnproto: remove binaries from target-build, add bbclass
When linking to capnproto from another project, cmake fails to
find this package with the following error:

| CMake Error at ${RECIPE_SYSROOT}/usr/lib/cmake/CapnProto/CapnProtoTargets.cmake:176 (message):
|   The imported target "CapnProto::capnp_tool" references the file
|
|      "${RECIPE_SYSROOT}/usr/bin/capnp"
|
|   but this file does not exist.  Possible reasons include:

To solve this, this change includes the following:

1. Add a patch that removes the files installed (and exported) in
${bindir} from the target build. The CMake file originally verified
that these files exist when another recipe tried to use it, however
the ${RECIPE_SYSROOT} does not contain the binaries in ${bindir},
so it failed quick in the do_configure step. (This alone is enough
to link against the cross-compiled libraries of capnproto successfully,
but code-generation from capnproto definition fails)

2. Add a new bbclass for capnproto. To cross-compile an application
that uses capnproto, the application needs to be linked against the
cross-compiled version of the libraries, however the native version
of the binaries need to be used to generate C++ code from the
capnproto definitions. This class sets the correct CMake arguments, to
use the capnproto binaries from the native package, instead of looking
for the non-existent cross-compiled binaries. (These variables can
be found in ${libdir}/cmake/CapnProto/CapnProtoConfig.cmake file)

Signed-off-by: Gyorgy Sarvari <skandigraun@gmail.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2025-02-03 11:25:22 -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
2023-02-01 09:28:47 -08:00
2025-01-03 10:17:22 -08:00
2024-02-09 09:52:12 -08:00
2024-05-23 08:44:44 -07:00
2023-12-29 09:04:17 -08:00
2024-09-15 07:46:44 -07:00
2025-01-24 18:20:05 -08:00
2024-07-28 00:00:31 -07:00
2023-12-21 08:20:34 -08:00
2025-01-24 18:20:00 -08:00
2024-02-09 09:52:12 -08:00
2024-09-03 22:33:21 -07:00
2024-12-19 09:41:20 -08:00
2025-01-29 17:43:04 -08:00
2023-03-17 07:06:55 -07:00
2023-06-14 09:41:35 -07:00
2024-07-25 07:58:08 -07:00
2024-10-14 09:52:25 -07:00
2022-06-30 13:39:27 -04:00
2025-01-24 18:20:07 -08:00
2025-01-01 19:02:18 -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-01-14 08:52:05 -08:00
2024-02-09 09:52:12 -08:00
2024-06-07 09:11:54 -07:00
2024-12-24 08:23:09 -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