• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright (c) 2024 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")
15import("../config/common.gni")
16
17config("edm_external_adapters_public_configs") {
18  include_dirs = [ "include" ]
19}
20
21ohos_shared_library("edm_external_adapters") {
22  sources = [
23    "./src/edm_access_token_manager_impl.cpp",
24    "./src/edm_app_manager_impl.cpp",
25    "./src/edm_bundle_manager_impl.cpp",
26    "./src/edm_os_account_manager_impl.cpp",
27    "./src/external_manager_factory.cpp",
28  ]
29
30  configs = [
31    ":edm_external_adapters_public_configs",
32    "../../common/config:coverage_flags",
33  ]
34
35  public_configs = [ ":edm_external_adapters_public_configs" ]
36
37  deps = [ "../native:edm_commom" ]
38
39  external_deps = [
40    "ability_runtime:app_manager",
41    "access_token:libaccesstoken_sdk",
42    "access_token:libtokenid_sdk",
43    "bundle_framework:appexecfwk_core",
44    "c_utils:utils",
45    "hilog:libhilog",
46    "init:libbegetutil",
47    "ipc:ipc_core",
48    "samgr:samgr_proxy",
49  ]
50
51  defines = []
52  if (os_account_edm_enable) {
53    external_deps += [
54      "os_account:libaccountkits",
55      "os_account:os_account_innerkits",
56    ]
57    defines += [ "OS_ACCOUNT_EDM_ENABLE" ]
58  }
59
60  sanitize = {
61    boundary_sanitize = true
62    cfi = true
63    cfi_cross_dso = true
64    debug = false
65    integer_overflow = true
66    ubsan = true
67  }
68  branch_protector_ret = "pac_ret"
69  subsystem_name = "customization"
70  part_name = "enterprise_device_management"
71}
72