• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright (c) 2025 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/config/components/idl_tool/idl.gni")
16import("//build/ohos.gni")
17
18idl_gen_interface("data_collect_manager_service_interface") {
19  sources = [ "DataCollectManagerIdl.idl" ]
20  log_domainid = "0xD002F07"
21  log_tag = "DATA_COLLECT_MANAGER"
22  subsystem_name = "security"
23  part_name = "security_guard"
24}
25
26config("data_collect_manager_service_public_config") {
27  include_dirs = [
28    "${target_gen_dir}",
29    "${sg_root_dir}/interfaces/inner_api/common/include",
30    "${sg_root_dir}/interfaces/inner_api/collect/include",
31    "${sg_root_dir}/services/data_collect/sa/include",
32  ]
33}
34
35ohos_source_set("data_collect_manager_idl_sa_stub") {
36  output_values = get_target_outputs(":data_collect_manager_service_interface")
37  sources = []
38  sources += filter_include(output_values, [ "*idl_stub.cpp" ])
39  public_configs = [ ":data_collect_manager_service_public_config" ]
40  deps = [ ":data_collect_manager_service_interface" ]
41  external_deps = [
42    "c_utils:utils",
43    "hilog:libhilog",
44    "ipc:ipc_single",
45    "samgr:samgr_proxy",
46  ]
47
48  sanitize = {
49    integer_overflow = true
50    ubsan = true
51    boundary_sanitize = true
52    cfi = true
53    cfi_cross_dso = true
54    debug = false
55  }
56  branch_protector_ret = "pac_ret"
57
58  subsystem_name = "security"
59  part_name = "security_guard"
60}
61
62ohos_source_set("data_collect_manager_idl_sa_proxy") {
63  output_values = get_target_outputs(":data_collect_manager_service_interface")
64  sources = []
65  sources += filter_include(output_values, [ "*idl_proxy.cpp" ])
66  public_configs = [ ":data_collect_manager_service_public_config" ]
67  deps = [ ":data_collect_manager_service_interface" ]
68  external_deps = [
69    "c_utils:utils",
70    "hilog:libhilog",
71    "ipc:ipc_single",
72    "samgr:samgr_proxy",
73  ]
74
75  sanitize = {
76    integer_overflow = true
77    ubsan = true
78    boundary_sanitize = true
79    cfi = true
80    cfi_cross_dso = true
81    debug = false
82  }
83  branch_protector_ret = "pac_ret"
84
85  subsystem_name = "security"
86  part_name = "security_guard"
87}
88