• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright (c) 2023 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/ohos.gni")
15
16config("edm_commom_all_dependent_configs") {
17  include_dirs = [
18    "include",
19    "include/plugin_utils",
20  ]
21}
22
23ohos_shared_library("edm_commom") {
24  sources = [
25    "./src/bundle_manager_utils.cpp",
26    "./src/edm_data_ability_utils.cpp",
27    "./src/edm_permission.cpp",
28    "./src/edm_sys_manager.cpp",
29    "./src/edm_utils.cpp",
30    "./src/plugin_utils/domain_filter_rule.cpp",
31    "./src/plugin_utils/firewall_rule.cpp",
32    "./src/plugin_utils/iptables_utils.cpp",
33    "./src/plugin_utils/message_parcel_utils.cpp",
34    "./src/security_report.cpp",
35    "./src/usb_device_id.cpp",
36  ]
37
38  configs = [
39    ":edm_commom_all_dependent_configs",
40    "../../common/config:coverage_flags",
41  ]
42
43  all_dependent_configs = [ ":edm_commom_all_dependent_configs" ]
44  deps = [ "//third_party/bounds_checking_function:libsec_shared" ]
45
46  external_deps = [
47    "ability_base:zuri",
48    "ability_runtime:ability_manager",
49    "bundle_framework:appexecfwk_base",
50    "bundle_framework:appexecfwk_core",
51    "c_utils:utils",
52    "data_share:datashare_consumer",
53    "hilog:libhilog",
54    "ipc:ipc_core",
55    "os_account:os_account_innerkits",
56    "samgr:samgr_proxy",
57    "wifi:wifi_sdk",
58  ]
59
60  if (!defined(global_parts_info) ||
61      defined(global_parts_info.security_security_guard)) {
62    external_deps += [ "security_guard:libsg_collect_sdk" ]
63    cflags_cc = [ "-DSECURITY_GUARDE_ENABLE" ]
64  }
65
66  sanitize = {
67    boundary_sanitize = true
68    cfi = true
69    cfi_cross_dso = true
70    debug = false
71    integer_overflow = true
72    ubsan = true
73  }
74  branch_protector_ret = "pac_ret"
75  subsystem_name = "customization"
76  part_name = "enterprise_device_management"
77}
78