• 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("//build/config/components/idl_tool/idl.gni")
15import("//build/ohos.gni")
16
17idl_gen_interface("enterprise_device_mgr_idl") {
18  sources = [ "IEnterpriseDeviceMgrIdl.idl" ]
19  sources_common = [ "AdminType.idl" ]
20  target_type = "source_set"
21  log_domainid = "0xD001E00"
22  log_tag = "EDM"
23  subsystem_name = "customization"
24  part_name = "enterprise_device_management"
25}
26
27config("enterprise_device_mgr_idl_gen_config") {
28  include_dirs = [
29    "./include",
30    "../../common/native/include",
31    "../../interfaces/inner_api/common/include",
32    "${target_gen_dir}",
33  ]
34}
35
36ohos_source_set("enterprise_device_mgr_idl_proxy") {
37  idl_output_values = get_target_outputs(":enterprise_device_mgr_idl")
38  sources = []
39  sources += filter_include(idl_output_values, [ "*_proxy.cpp" ])
40  public_configs = [ ":enterprise_device_mgr_idl_gen_config" ]
41  deps = [ ":enterprise_device_mgr_idl" ]
42
43  external_deps = [
44    "ability_base:want",
45    "c_utils:utils",
46    "hilog:libhilog",
47    "ipc:ipc_core",
48    "samgr:samgr_proxy",
49  ]
50
51  sanitize = {
52    boundary_sanitize = true
53    cfi = true
54    cfi_cross_dso = true
55    debug = false
56    integer_overflow = true
57    ubsan = true
58  }
59  branch_protector_ret = "pac_ret"
60  subsystem_name = "customization"
61  part_name = "enterprise_device_management"
62}
63
64ohos_source_set("enterprise_device_mgr_idl_stub") {
65  idl_output_values = get_target_outputs(":enterprise_device_mgr_idl")
66  sources = []
67  sources += filter_include(idl_output_values, [ "*_stub.cpp" ])
68  public_configs = [ ":enterprise_device_mgr_idl_gen_config" ]
69  deps = [ ":enterprise_device_mgr_idl" ]
70  external_deps = [
71    "ability_base:want",
72    "c_utils:utils",
73    "hilog:libhilog",
74    "ipc:ipc_core",
75    "samgr:samgr_proxy",
76  ]
77
78  sanitize = {
79    boundary_sanitize = true
80    cfi = true
81    cfi_cross_dso = true
82    debug = false
83    integer_overflow = true
84    ubsan = true
85  }
86  branch_protector_ret = "pac_ret"
87  subsystem_name = "customization"
88  part_name = "enterprise_device_management"
89}
90