diff --git a/bundle.json b/bundle.json index ca8700e0cc3d804a5bbae222800e4e88e5eadf1a..5bf21f25958ce4ec1570a51e91af2de50510f03a 100644 --- a/bundle.json +++ b/bundle.json @@ -32,6 +32,7 @@ "ability_base", "bounds_checking_function", "c_utils", + "cxx", "ipc", "samgr", "safwk", diff --git a/services/key_enable/BUILD.gn b/services/key_enable/BUILD.gn index 4aa59b2b7644e503faf2b35ead77ebd5cdd080cc..75ebcc60b680f097276d7462198b494d7b4f3462 100644 --- a/services/key_enable/BUILD.gn +++ b/services/key_enable/BUILD.gn @@ -30,11 +30,11 @@ ohos_rust_executable("key_enable") { deps = common_deps external_deps = common_external_deps if (!ohos_indep_compiler_enable) { - deps += [ - "${rust_openssl_dir}/openssl:lib", - "//third_party/rust/crates/cxx:lib", + deps += [ "${rust_openssl_dir}/openssl:lib" ] + external_deps += [ + "c_utils:utils_rust", + "cxx:lib", ] - external_deps += [ "c_utils:utils_rust" ] } crate_name = "key_enable" crate_type = "bin" @@ -52,11 +52,11 @@ ohos_rust_shared_ffi("key_enable_lib") { deps = common_deps external_deps = common_external_deps if (!ohos_indep_compiler_enable) { - deps += [ - "${rust_openssl_dir}/openssl:lib", - "//third_party/rust/crates/cxx:lib", + deps += [ "${rust_openssl_dir}/openssl:lib" ] + external_deps += [ + "c_utils:utils_rust", + "cxx:lib", ] - external_deps += [ "c_utils:utils_rust" ] } crate_name = "key_enable" subsystem_name = "security" diff --git a/test/unittest/BUILD.gn b/test/unittest/BUILD.gn index 3eee5133fb1fa4c90625de6a49e0c6948a8c4645..25c4a27d3f94d419e80a127c54d2a452b6631397 100644 --- a/test/unittest/BUILD.gn +++ b/test/unittest/BUILD.gn @@ -207,10 +207,10 @@ ohos_rust_static_library("rust_key_enable_lib") { deps = [ "${code_signature_root_dir}/services/key_enable/utils:libkey_enable_utils", "${rust_openssl_dir}/openssl:lib", - "//third_party/rust/crates/cxx:lib", ] external_deps = [ "c_utils:utils_rust", + "cxx:lib", "hilog:hilog_rust", "hisysevent:hisysevent_rust", "ylong_json:lib",