1# Copyright (c) 2022 Huawei Device Co., Ltd. 2# Licensed under the Apache License, Version 2.0 (the "License"); 3# you may not use this file except in compliance with the License. 4# You may obtain a copy of the License at 5# 6# http://www.apache.org/licenses/LICENSE-2.0 7# 8# Unless required by applicable law or agreed to in writing, software 9# distributed under the License is distributed on an "AS IS" BASIS, 10# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 11# See the License for the specific language governing permissions and 12# limitations under the License. 13 14import("//base/security/security_guard/security_guard.gni") 15import("//build/ohos.gni") 16import("//build/test.gni") 17 18group("sg_classify_service_build_module") { 19 if (is_standard_system) { 20 deps = [ "${sg_root_dir}/services/risk_classify:sg_classify_service" ] 21 } 22} 23 24group("sg_collect_service_build_module") { 25 if (is_standard_system) { 26 deps = [ 27 "${sg_root_dir}/services/config_manager:sg_config_manager", 28 "${sg_root_dir}/services/data_collect:sg_collect_service", 29 "${sg_root_dir}/services/data_collect:sg_collect_service_database", 30 ] 31 } 32} 33 34group("security_guard_fuzz_test") { 35 testonly = true 36 deps = [] 37 if (is_standard_system) { 38 deps += [ 39 "${sg_root_dir}/test/fuzztest/collect:fuzztest", 40 "${sg_root_dir}/test/fuzztest/config_manager:fuzztest", 41 "${sg_root_dir}/test/fuzztest/data_collect:fuzztest", 42 "${sg_root_dir}/test/fuzztest/inner_sdk:fuzztest", 43 "${sg_root_dir}/test/fuzztest/ipc:fuzztest", 44 "${sg_root_dir}/test/fuzztest/obtaindata:fuzztest", 45 "${sg_root_dir}/test/fuzztest/security_collector:fuzztest", 46 ] 47 if (!security_guard_trim_model_analysis) { 48 deps += [ "${sg_root_dir}/test/fuzztest/classify:fuzztest" ] 49 } 50 } 51} 52 53group("security_guard_napi") { 54 if (os_level == "standard") { 55 if (support_jsapi) { 56 deps = [ "${sg_root_dir}/frameworks/js/napi:securityguard_napi" ] 57 } 58 } 59} 60 61group("security_collector_service_build_module") { 62 if (is_standard_system) { 63 deps = [ 64 "${sg_root_dir}/services/security_collector:security_collector_service", 65 ] 66 } 67} 68 69group("security_collector_manager_build_module") { 70 if (is_standard_system) { 71 deps = [ 72 "${sg_root_dir}/services/collector_manager:security_collector_manager", 73 ] 74 } 75} 76 77group("security_guard_unit_test") { 78 testonly = true 79 if (is_standard_system) { 80 deps = [ 81 "${sg_root_dir}/test/unittest/config_manager:unittest", 82 "${sg_root_dir}/test/unittest/data_collect:data_collect_test", 83 "${sg_root_dir}/test/unittest/data_collect:unittest", 84 "${sg_root_dir}/test/unittest/inner_api:unittest", 85 "${sg_root_dir}/test/unittest/model_manager:unittest", 86 "${sg_root_dir}/test/unittest/risk_classify:unittest", 87 "${sg_root_dir}/test/unittest/security_collector:security_collector_test", 88 "${sg_root_dir}/test/unittest/security_collector:unittest", 89 ] 90 } 91} 92 93group("security_guard_build_module_test") { 94 testonly = true 95 deps = [] 96 if (is_standard_system) { 97 deps += [ 98 "${sg_root_dir}/frameworks/common/classify/test:unittest", 99 "${sg_root_dir}/frameworks/common/collect/test:unittest", 100 ] 101 } 102} 103