From ba7ac26141797be3a3f45d49227c592ec31c8f36 Mon Sep 17 00:00:00 2001 From: ljy9810 Date: Wed, 12 Feb 2025 11:21:59 +0800 Subject: [PATCH] =?UTF-8?q?openssl=20=E7=8B=AC=E7=AB=8B=E7=BC=96=E8=AF=91?= =?UTF-8?q?=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: ljy9810 --- bundle.json | 47 +++++++++++++++++++++++++++++++++++++++++ openssl-macros/BUILD.gn | 2 ++ openssl-sys/BUILD.gn | 10 +++++---- openssl/BUILD.gn | 2 ++ 4 files changed, 57 insertions(+), 4 deletions(-) create mode 100644 bundle.json diff --git a/bundle.json b/bundle.json new file mode 100644 index 0000000..63dd219 --- /dev/null +++ b/bundle.json @@ -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": [] + } + } +} \ No newline at end of file diff --git a/openssl-macros/BUILD.gn b/openssl-macros/BUILD.gn index cc4d329..8c46a91 100644 --- a/openssl-macros/BUILD.gn +++ b/openssl-macros/BUILD.gn @@ -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" } diff --git a/openssl-sys/BUILD.gn b/openssl-sys/BUILD.gn index 5d243d3..121768f 100644 --- a/openssl-sys/BUILD.gn +++ b/openssl-sys/BUILD.gn @@ -24,10 +24,10 @@ ohos_cargo_crate("lib") { cargo_pkg_authors = "Alex Crichton , Steven Fackler " 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" } diff --git a/openssl/BUILD.gn b/openssl/BUILD.gn index ec6f648..f8b979c 100644 --- a/openssl/BUILD.gn +++ b/openssl/BUILD.gn @@ -49,4 +49,6 @@ ohos_cargo_crate("lib") { "--cfg=ossl111", "--cfg=ossl300", ] + subsystem_name = "thirdparty" + part_name = "rust_rust-openssl" } -- Gitee