diff options
Diffstat (limited to 'meta-oe/recipes-devtools/librust-cxx/librust-cxx_1.0.194.bb')
| -rw-r--r-- | meta-oe/recipes-devtools/librust-cxx/librust-cxx_1.0.194.bb | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/meta-oe/recipes-devtools/librust-cxx/librust-cxx_1.0.194.bb b/meta-oe/recipes-devtools/librust-cxx/librust-cxx_1.0.194.bb new file mode 100644 index 0000000000..b0d0477236 --- /dev/null +++ b/meta-oe/recipes-devtools/librust-cxx/librust-cxx_1.0.194.bb | |||
| @@ -0,0 +1,36 @@ | |||
| 1 | SUMMARY = "Safe interoperability between Rust and C++" | ||
| 2 | HOMEPAGE = "https://crates.io/crates/cxx" | ||
| 3 | DESCRIPTION = "cxx is a library that enables safe and efficient interoperability \ | ||
| 4 | between Rust and C++ code. It defines the FFI boundary in a single \ | ||
| 5 | Rust module, allowing static analysis of types and function signatures \ | ||
| 6 | for compatibility and safety. The library generates the necessary Rust \ | ||
| 7 | and C++ bindings automatically during the build process. It provides near \ | ||
| 8 | zero-overhead integration and supports idiomatic use of common Rust and C++ \ | ||
| 9 | standard library types." | ||
| 10 | |||
| 11 | LICENSE = "MIT" | ||
| 12 | LIC_FILES_CHKSUM = " \ | ||
| 13 | file://LICENSE-MIT;md5=b377b220f43d747efdec40d69fcaa69d \ | ||
| 14 | " | ||
| 15 | |||
| 16 | SRC_URI = "crate://crates.io/cxx/${PV};name=cxx" | ||
| 17 | SRC_URI[cxx.sha256sum] = "747d8437319e3a2f43d93b341c137927ca70c0f5dabeea7a005a73665e247c7e" | ||
| 18 | |||
| 19 | S = "${CARGO_VENDORING_DIRECTORY}/cxx-${PV}" | ||
| 20 | |||
| 21 | DEBUG_PREFIX_MAP += "-ffile-prefix-map=${CARGO_HOME}=${TARGET_DBGSRC_DIR}" | ||
| 22 | |||
| 23 | inherit cargo cargo-update-recipe-crates | ||
| 24 | |||
| 25 | require ${BPN}-crates.inc | ||
| 26 | |||
| 27 | do_install () { | ||
| 28 | install -d ${D}${rustlibdir} | ||
| 29 | # The cxx deps directory also contains dependency files (.d) generated | ||
| 30 | # during compilation. These files are only needed for incremental builds | ||
| 31 | # and are not required when installing the cxx libraries. | ||
| 32 | rm -f ${B}/target/${RUST_TARGET_SYS}/${BUILD_DIR}/deps/*.d | ||
| 33 | cp ${B}/target/${RUST_TARGET_SYS}/${BUILD_DIR}/deps/* ${D}${rustlibdir} | ||
| 34 | } | ||
| 35 | |||
| 36 | BBCLASSEXTEND = "native" | ||
