link-cplusplus新增bundle.json部件化

Signed-off-by: ljy9810 <longjianyin@h-partners.com>
This commit is contained in:
ljy9810
2025-11-25 12:00:00 +08:00
parent 02754fee12
commit ba7f52ca8a
2 changed files with 37 additions and 0 deletions
+3
View File
@@ -27,4 +27,7 @@ ohos_cargo_crate("lib") {
cargo_pkg_description = "Link libstdc++ or libc++ automatically or manually"
build_root = "build.rs"
build_sources = [ "build.rs" ]
module_output_extension = ".rlib"
part_name = "rust_link_cplusplus"
subsystem_name = "thirdparty"
}
+34
View File
@@ -0,0 +1,34 @@
{
"name": "@ohos/rust_link_cplusplus",
"description": "A Rust library that provides support for linking with C++ code",
"version": "6.1",
"license": "Apache License 2.0",
"publishAs": "code-segment",
"segment": {
"destPath": "third_party/rust/crates/link-cplusplus"
},
"dirs": {},
"scripts": {},
"readmePath": {
"en": "README.md"
},
"component": {
"name": "rust_link_cplusplus",
"subsystem": "thirdparty",
"adapted_system_type": [
"standard"
],
"deps": {
"components": []
},
"build": {
"sub_component": [],
"inner_kits": [
{
"name": "//third_party/rust/crates/link-cplusplus:lib"
}
],
"test": []
}
}
}