diff --git a/bundle.json b/bundle.json index b3449305ede71e4f16964628823c6ac01bd69060..784acc6fbc3f0c2e06ee59b8773f4f085079d685 100644 --- a/bundle.json +++ b/bundle.json @@ -46,7 +46,8 @@ "fsverity-utils", "screenlock_mgr", "common_event_service", - "bounds_checking_function" + "bounds_checking_function", + "rust_rust-openssl" ], "third_party": [] }, diff --git a/services/key_enable/BUILD.gn b/services/key_enable/BUILD.gn index e58f2d4a7f072d1c94a78a00baaeff4209193428..dc26b9e9a8f02ae5cb80084c7a287d2eb618b612 100644 --- a/services/key_enable/BUILD.gn +++ b/services/key_enable/BUILD.gn @@ -31,11 +31,13 @@ ohos_rust_executable("key_enable") { external_deps = common_external_deps if (!ohos_indep_compiler_enable) { deps += [ - "${rust_openssl_dir}/openssl:lib", "//third_party/rust/crates/cxx:lib", "//third_party/rust/crates/lazy-static.rs:lib", ] - external_deps += [ "c_utils:utils_rust" ] + external_deps += [ + "c_utils:utils_rust", + "rust_rust-openssl:lib", + ] } rustenv = [] if (build_variant == "root") { @@ -60,11 +62,13 @@ ohos_rust_shared_ffi("key_enable_lib") { external_deps = common_external_deps if (!ohos_indep_compiler_enable) { deps += [ - "${rust_openssl_dir}/openssl:lib", "//third_party/rust/crates/cxx:lib", "//third_party/rust/crates/lazy-static.rs:lib", ] - external_deps += [ "c_utils:utils_rust" ] + external_deps += [ + "c_utils:utils_rust", + "rust_rust-openssl:lib", + ] } rustenv = [] if (build_variant == "root") { diff --git a/test/unittest/BUILD.gn b/test/unittest/BUILD.gn index de6687ed01c85d4a99b001a5b4ba8de1a917cdb4..f3c6b09f2ebce9408020b44af52a64d000cec23a 100644 --- a/test/unittest/BUILD.gn +++ b/test/unittest/BUILD.gn @@ -277,7 +277,6 @@ ohos_rust_static_library("rust_key_enable_lib") { sources = [ "${code_signature_root_dir}/services/key_enable/src/lib.rs" ] deps = [ "${code_signature_root_dir}/services/key_enable/utils:libkey_enable_utils", - "${rust_openssl_dir}/openssl:lib", "//third_party/rust/crates/cxx:lib", "//third_party/rust/crates/lazy-static.rs:lib", ] @@ -285,6 +284,7 @@ ohos_rust_static_library("rust_key_enable_lib") { "c_utils:utils_rust", "hilog:hilog_rust", "hisysevent:hisysevent_rust", + "rust_rust-openssl:lib", "ylong_json:lib", ] rustenv = []