diff --git a/bundle.json b/bundle.json new file mode 100644 index 0000000000000000000000000000000000000000..63dd2194af1456b750024b2d1726a0ac08de2ee6 --- /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 cc4d3298f20abcc54c135f4b00b2daf2e37c73b0..8c46a91fa85891080d1b7d0cb61012b5b1e9b55c 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 5d243d3167484851de319e87d460c04e09d3e8d9..121768f65d333166a63e4afdde1635a874f91fd2 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 ec6f6487c5cae30b893427b222d48f4ba5fdbf19..f8b979c1d669d0a2b6cfd36fb04f7d5d2b239e42 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" }