!22 openssl 独立编译修改

Merge pull request !22 from 龙剑吟/master
This commit is contained in:
openharmony_ci
2025-02-24 14:41:01 +00:00
committed by Gitee
4 changed files with 57 additions and 4 deletions
+47
View File
@@ -0,0 +1,47 @@
{
"name": "@ohos/rust_rust-openssl",
"description": "OpenSSl of the rust version. OpenSSL is a robust, commercial-grade, full-featured Open Source Toolkit for the Transport Layer Security (TLS) protocol formerly known as the Secure Sockets Layer (SSL) protocol.",
"version": "5.0",
"license": "Apache License 2.0",
"publishAs": "code-segment",
"segment": {
"destPath": "third_party/rust/crates/rust-openssl"
},
"dirs": {},
"scripts": {},
"readmePath": {
"en": "README.md"
},
"component": {
"name": "rust_rust-openssl",
"subsystem": "thirdparty",
"syscap": [],
"features": [],
"adapted_system_type": [
"standard"
],
"rom": "100KB",
"ram": "~200KB",
"deps": {
"components": [
"openssl"
],
"third_party": []
},
"build": {
"sub_component": [
"//third_party/rust/crates/rust-openssl/openssl:lib"
],
"inner_kits": [
{
"name" : "//third_party/rust/crates/rust-openssl/openssl:lib",
"header": {
"header_base": [],
"header_files": []
}
}
],
"test": []
}
}
}
+2
View File
@@ -28,4 +28,6 @@ ohos_cargo_crate("lib") {
"//third_party/rust/crates/quote:lib",
"//third_party/rust/crates/syn:lib",
]
subsystem_name = "thirdparty"
part_name = "rust_rust-openssl"
}
+6 -4
View File
@@ -24,10 +24,10 @@ ohos_cargo_crate("lib") {
cargo_pkg_authors = "Alex Crichton <alex@alexcrichton.com>, Steven Fackler <sfackler@gmail.com>"
cargo_pkg_name = "openssl-sys"
cargo_pkg_description = "FFI bindings to OpenSSL"
deps = [
"//third_party/openssl:libcrypto_shared",
"//third_party/openssl:libssl_shared",
"//third_party/rust/crates/libc:lib",
deps = [ "//third_party/rust/crates/libc:lib" ]
external_deps = [
"openssl:libcrypto_shared",
"openssl:libssl_shared",
]
rustflags = [
"--cfg=const_fn",
@@ -51,4 +51,6 @@ ohos_cargo_crate("lib") {
"--cfg=ossl111b",
"--cfg=ossl111c",
]
subsystem_name = "thirdparty"
part_name = "rust_rust-openssl"
}
+2
View File
@@ -49,4 +49,6 @@ ohos_cargo_crate("lib") {
"--cfg=ossl111",
"--cfg=ossl300",
]
subsystem_name = "thirdparty"
part_name = "rust_rust-openssl"
}