diff --git a/frameworks/inner_api/security_component/BUILD.gn b/frameworks/inner_api/security_component/BUILD.gn index 10afe6746a4679a208cc7ff700444fe115b244a3..991a618c544aa931242e58ec127977958f5c3c19 100644 --- a/frameworks/inner_api/security_component/BUILD.gn +++ b/frameworks/inner_api/security_component/BUILD.gn @@ -54,7 +54,7 @@ ohos_shared_library("libsecurity_component_sdk") { "${sec_comp_root_dir}/frameworks:security_component_no_cfi_enhance_adapter_src_set", "${sec_comp_root_dir}/frameworks:security_component_no_cfi_framework_src_set", "${sec_comp_root_dir}/frameworks/inner_api/enhance_kits:security_component_no_cfi_enhance_sdk_src_set", - "${sec_comp_root_dir}/services/security_component_service/sa:sec_comp_service_proxy", + "${sec_comp_root_dir}/services/security_component_service/sa:sec_comp_no_cfi_service_proxy", ] configs = [ diff --git a/frameworks/inner_api/security_component/test/BUILD.gn b/frameworks/inner_api/security_component/test/BUILD.gn index 02cb4c8f593b8dcd231a2c0cddd131e191bee0f6..f97fcfba43d7d23a28fb187996e7f5ed0b0d63f4 100644 --- a/frameworks/inner_api/security_component/test/BUILD.gn +++ b/frameworks/inner_api/security_component/test/BUILD.gn @@ -57,7 +57,7 @@ ohos_unittest("sec_comp_sdk_test") { "${sec_comp_root_dir}/frameworks:security_component_no_cfi_enhance_adapter_src_set", "${sec_comp_root_dir}/frameworks:security_component_no_cfi_framework_src_set", "${sec_comp_root_dir}/frameworks/inner_api/enhance_kits:security_component_no_cfi_enhance_sdk_src_set", - "${sec_comp_root_dir}/services/security_component_service/sa:sec_comp_service_proxy", + "${sec_comp_root_dir}/services/security_component_service/sa:sec_comp_no_cfi_service_proxy", ] external_deps = [ diff --git a/services/security_component_service/sa/BUILD.gn b/services/security_component_service/sa/BUILD.gn index ccae705c3226fc0b5a127c8f1d054009b07cb6dd..2c064414ccd4ad013aee38070f31ad25e7fa4d2f 100644 --- a/services/security_component_service/sa/BUILD.gn +++ b/services/security_component_service/sa/BUILD.gn @@ -59,6 +59,26 @@ ohos_source_set("sec_comp_service_proxy") { part_name = "security_component_manager" } +ohos_source_set("sec_comp_no_cfi_service_proxy") { + output_values = get_target_outputs(":sec_comp_service_interface") + + include_dirs = [ "${sec_comp_root_dir}/frameworks/common/include" ] + + sources = filter_include(output_values, [ "*_proxy.cpp" ]) + + deps = [ ":sec_comp_service_interface" ] + + external_deps = [ + "c_utils:utils", + "hilog:libhilog", + "ipc:ipc_single", + "samgr:samgr_proxy", + ] + + subsystem_name = "security" + part_name = "security_component_manager" +} + ohos_source_set("sec_comp_service_stub") { sanitize = { cfi = true