diff --git a/bundle.json b/bundle.json index 784acc6fbc3f0c2e06ee59b8773f4f085079d685..39019e5e34bd39b0334760e035608b5c8d8ae956 100644 --- a/bundle.json +++ b/bundle.json @@ -47,7 +47,9 @@ "screenlock_mgr", "common_event_service", "bounds_checking_function", - "rust_rust-openssl" + "rust_rust-openssl", + "selinux", + "rust_cxx" ], "third_party": [] }, diff --git a/services/key_enable/BUILD.gn b/services/key_enable/BUILD.gn index dc26b9e9a8f02ae5cb80084c7a287d2eb618b612..03629e708f5a4542b72d9abbb0a82fb60cd5bf59 100644 --- a/services/key_enable/BUILD.gn +++ b/services/key_enable/BUILD.gn @@ -31,12 +31,12 @@ ohos_rust_executable("key_enable") { external_deps = common_external_deps if (!ohos_indep_compiler_enable) { deps += [ - "//third_party/rust/crates/cxx:lib", "//third_party/rust/crates/lazy-static.rs:lib", ] external_deps += [ "c_utils:utils_rust", "rust_rust-openssl:lib", + "rust_cxx:lib", ] } rustenv = [] @@ -62,12 +62,12 @@ ohos_rust_shared_ffi("key_enable_lib") { external_deps = common_external_deps if (!ohos_indep_compiler_enable) { deps += [ - "//third_party/rust/crates/cxx:lib", "//third_party/rust/crates/lazy-static.rs:lib", ] external_deps += [ "c_utils:utils_rust", "rust_rust-openssl:lib", + "rust_cxx:lib", ] } rustenv = [] diff --git a/services/key_enable/utils/BUILD.gn b/services/key_enable/utils/BUILD.gn index 0dece6e41dd52ae680e3c62a80751b17e09c6ad2..80b44386a072ac1795a7285d8c4422408661c749 100644 --- a/services/key_enable/utils/BUILD.gn +++ b/services/key_enable/utils/BUILD.gn @@ -39,6 +39,7 @@ ohos_static_library("libkey_enable_utils") { "hilog:libhilog", "init:libbegetutil", "samgr:samgr_proxy", + "eventhandler:libeventhandler", ] defines = [] diff --git a/test/common/BUILD.gn b/test/common/BUILD.gn index e2597ab2033634e2181d1be7e2180c99bea326b0..1db7bb947825cc90b5c77dcfa94f778c1072556c 100644 --- a/test/common/BUILD.gn +++ b/test/common/BUILD.gn @@ -53,6 +53,7 @@ ohos_source_set("code_sign_test_common_source_set") { "access_token:libtokensetproc_shared", "c_utils:utils", "hilog:libhilog", + "ipc:ipc_core", ] subsystem_name = "security" part_name = "code_signature" diff --git a/test/unittest/BUILD.gn b/test/unittest/BUILD.gn index 0a3e441ac23383625863a2caf270f3d147cf037c..ee2890dea26c6ee1a8b9ce61f5442cdb0e3d7d5b 100644 --- a/test/unittest/BUILD.gn +++ b/test/unittest/BUILD.gn @@ -280,7 +280,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", - "//third_party/rust/crates/cxx:lib", "//third_party/rust/crates/lazy-static.rs:lib", ] external_deps = [ @@ -289,6 +288,7 @@ ohos_rust_static_library("rust_key_enable_lib") { "hisysevent:hisysevent_rust", "rust_rust-openssl:lib", "ylong_json:lib", + "rust_cxx:lib" ] rustenv = [] if (build_variant == "root") { @@ -431,7 +431,7 @@ group("unittest_group") { ":multi_thread_local_sign_unittest", ":sign_and_enforce_unittest", ] - if (!use_clang_coverage) { + if (!use_clang_coverage && !ohos_indep_compiler_enable) { deps += [ ":rust_key_enable_unittest" ] } if (code_signature_support_oh_code_sign) {