• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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 = []
21    if (!security_guard_trim_model_analysis) {
22      deps += [ "${sg_root_dir}/services/risk_classify:sg_classify_service" ]
23    }
24  }
25}
26
27group("sg_collect_service_build_module") {
28  if (is_standard_system) {
29    deps = [
30      "${sg_root_dir}/services/data_collect:sg_collect_service",
31      "${sg_root_dir}/services/data_collect:sg_collect_service_database",
32    ]
33  }
34}
35
36group("security_guard_fuzz_test") {
37  testonly = true
38  deps = []
39  if (is_standard_system) {
40    deps += [
41      "${sg_root_dir}/test/fuzztest/collect:fuzztest",
42      "${sg_root_dir}/test/fuzztest/config_manager:fuzztest",
43      "${sg_root_dir}/test/fuzztest/data_collect:fuzztest",
44      "${sg_root_dir}/test/fuzztest/inner_sdk:fuzztest",
45      "${sg_root_dir}/test/fuzztest/ipc:fuzztest",
46      "${sg_root_dir}/test/fuzztest/obtaindata:fuzztest",
47      "${sg_root_dir}/test/fuzztest/security_collector:fuzztest",
48    ]
49    if (!security_guard_trim_model_analysis) {
50      deps += [ "${sg_root_dir}/test/fuzztest/classify:fuzztest" ]
51    }
52  }
53}
54
55group("security_guard_napi") {
56  if (os_level == "standard") {
57    if (support_jsapi) {
58      deps = [ "${sg_root_dir}/frameworks/js/napi:securityguard_napi" ]
59    }
60  }
61}
62
63group("security_collector_service_build_module") {
64  if (is_standard_system) {
65    deps = [
66      "${sg_root_dir}/services/security_collector:security_collector_service",
67    ]
68  }
69}
70
71group("security_collector_manager_build_module") {
72  if (is_standard_system) {
73    deps = [
74      "${sg_root_dir}/services/collector_manager:security_collector_manager",
75    ]
76  }
77}
78
79group("security_guard_unit_test") {
80  testonly = true
81  if (is_standard_system) {
82    deps = [
83      "${sg_root_dir}/test/unittest/config_manager:unittest",
84      "${sg_root_dir}/test/unittest/data_collect:data_collect_test",
85      "${sg_root_dir}/test/unittest/data_collect:unittest",
86      "${sg_root_dir}/test/unittest/inner_api:unittest",
87      "${sg_root_dir}/test/unittest/model_manager:unittest",
88      "${sg_root_dir}/test/unittest/risk_classify:unittest",
89      "${sg_root_dir}/test/unittest/security_collector:security_collector_test",
90      "${sg_root_dir}/test/unittest/security_collector:unittest",
91    ]
92  }
93}
94
95group("security_guard_build_module_test") {
96  testonly = true
97  deps = []
98  if (is_standard_system) {
99    deps += [
100      "${sg_root_dir}/frameworks/common/classify/test:unittest",
101      "${sg_root_dir}/frameworks/common/collect/test:unittest",
102    ]
103  }
104}
105