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 ] 49 50 defines = [] 51 if (os_account_edm_enable) { 52 external_deps += [ 53 "os_account:libaccountkits", 54 "os_account:os_account_innerkits", 55 ] 56 defines += [ "OS_ACCOUNT_EDM_ENABLE" ] 57 } 58 59 sanitize = { 60 boundary_sanitize = true 61 cfi = true 62 cfi_cross_dso = true 63 debug = false 64 integer_overflow = true 65 ubsan = true 66 } 67 branch_protector_ret = "pac_ret" 68 subsystem_name = "customization" 69 part_name = "enterprise_device_management" 70} 71