179a732c7Sopenharmony_ci# Copyright (c) 2022-2024 Huawei Device Co., Ltd. 279a732c7Sopenharmony_ci# Licensed under the Apache License, Version 2.0 (the "License"); 379a732c7Sopenharmony_ci# you may not use this file except in compliance with the License. 479a732c7Sopenharmony_ci# You may obtain a copy of the License at 579a732c7Sopenharmony_ci# 679a732c7Sopenharmony_ci# http://www.apache.org/licenses/LICENSE-2.0 779a732c7Sopenharmony_ci# 879a732c7Sopenharmony_ci# Unless required by applicable law or agreed to in writing, software 979a732c7Sopenharmony_ci# distributed under the License is distributed on an "AS IS" BASIS, 1079a732c7Sopenharmony_ci# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1179a732c7Sopenharmony_ci# See the License for the specific language governing permissions and 1279a732c7Sopenharmony_ci# limitations under the License. 1379a732c7Sopenharmony_ci 1479a732c7Sopenharmony_ciimport("//build/ohos.gni") 1579a732c7Sopenharmony_ciimport("//foundation/distributedhardware/device_manager/device_manager.gni") 1679a732c7Sopenharmony_ci 1779a732c7Sopenharmony_ciohos_shared_library("devicemanagerext_pin_auth") { 1879a732c7Sopenharmony_ci branch_protector_ret = "pac_ret" 1979a732c7Sopenharmony_ci 2079a732c7Sopenharmony_ci sanitize = { 2179a732c7Sopenharmony_ci boundary_sanitize = true 2279a732c7Sopenharmony_ci cfi = true 2379a732c7Sopenharmony_ci cfi_cross_dso = true 2479a732c7Sopenharmony_ci debug = false 2579a732c7Sopenharmony_ci integer_overflow = true 2679a732c7Sopenharmony_ci ubsan = true 2779a732c7Sopenharmony_ci } 2879a732c7Sopenharmony_ci 2979a732c7Sopenharmony_ci include_dirs = [ 3079a732c7Sopenharmony_ci "include", 3179a732c7Sopenharmony_ci "include/standard", 3279a732c7Sopenharmony_ci "${common_path}/include", 3379a732c7Sopenharmony_ci "${devicemanager_path}/commondependency/include", 3479a732c7Sopenharmony_ci "${ext_path}/pin_auth/include/ability", 3579a732c7Sopenharmony_ci "${servicesimpl_path}/include/dependency/timer", 3679a732c7Sopenharmony_ci "${servicesimpl_path}/include/config", 3779a732c7Sopenharmony_ci "${servicesimpl_path}/include/adapter", 3879a732c7Sopenharmony_ci "${servicesimpl_path}/include/authentication", 3979a732c7Sopenharmony_ci "${servicesimpl_path}/include/authentication/showconfirm/standard", 4079a732c7Sopenharmony_ci "${servicesimpl_path}/include/ability", 4179a732c7Sopenharmony_ci "${servicesimpl_path}/include/devicestate", 4279a732c7Sopenharmony_ci "${servicesimpl_path}/include/discovery", 4379a732c7Sopenharmony_ci "${servicesimpl_path}/include/dependency/commonevent", 4479a732c7Sopenharmony_ci "${servicesimpl_path}/include/dependency/hichain", 4579a732c7Sopenharmony_ci "${servicesimpl_path}/include/dependency/softbus", 4679a732c7Sopenharmony_ci "${services_path}/include/ipc", 4779a732c7Sopenharmony_ci "${services_path}/include/ipc/standard", 4879a732c7Sopenharmony_ci "${utils_path}/include", 4979a732c7Sopenharmony_ci "${utils_path}/include/ipc/standard", 5079a732c7Sopenharmony_ci "${servicesimpl_path}/include", 5179a732c7Sopenharmony_ci "${innerkits_path}/native_cpp/include", 5279a732c7Sopenharmony_ci "${common_path}/include/ipc", 5379a732c7Sopenharmony_ci "${common_path}/include/ipc/model", 5479a732c7Sopenharmony_ci "${innerkits_path}/native_cpp/include", 5579a732c7Sopenharmony_ci "${innerkits_path}/native_cpp/include/ipc", 5679a732c7Sopenharmony_ci "${innerkits_path}/native_cpp/include/ipc/standard", 5779a732c7Sopenharmony_ci ] 5879a732c7Sopenharmony_ci 5979a732c7Sopenharmony_ci sources = [ 6079a732c7Sopenharmony_ci "src/ability/standard/dm_ability_manager.cpp", 6179a732c7Sopenharmony_ci "src/pin_auth.cpp", 6279a732c7Sopenharmony_ci "src/standard/pin_auth_ui.cpp", 6379a732c7Sopenharmony_ci ] 6479a732c7Sopenharmony_ci 6579a732c7Sopenharmony_ci deps = [ 6679a732c7Sopenharmony_ci "${innerkits_path}/native_cpp:devicemanagersdk", 6779a732c7Sopenharmony_ci "${servicesimpl_path}:devicemanagerserviceimpl", 6879a732c7Sopenharmony_ci ] 6979a732c7Sopenharmony_ci 7079a732c7Sopenharmony_ci external_deps = [ 7179a732c7Sopenharmony_ci "ability_base:session_info", 7279a732c7Sopenharmony_ci "ability_base:want", 7379a732c7Sopenharmony_ci "ability_runtime:ability_manager", 7479a732c7Sopenharmony_ci "bundle_framework:appexecfwk_base", 7579a732c7Sopenharmony_ci "bundle_framework:appexecfwk_core", 7679a732c7Sopenharmony_ci "c_utils:utils", 7779a732c7Sopenharmony_ci "device_auth:deviceauth_sdk", 7879a732c7Sopenharmony_ci "device_info_manager:distributed_device_profile_common", 7979a732c7Sopenharmony_ci "device_info_manager:distributed_device_profile_sdk", 8079a732c7Sopenharmony_ci "dsoftbus:softbus_client", 8179a732c7Sopenharmony_ci "eventhandler:libeventhandler", 8279a732c7Sopenharmony_ci "ffrt:libffrt", 8379a732c7Sopenharmony_ci "hilog:libhilog", 8479a732c7Sopenharmony_ci "init:libbegetutil", 8579a732c7Sopenharmony_ci "ipc:ipc_single", 8679a732c7Sopenharmony_ci "json:nlohmann_json_static", 8779a732c7Sopenharmony_ci "resource_management:resmgr_napi_core", 8879a732c7Sopenharmony_ci "safwk:system_ability_fwk", 8979a732c7Sopenharmony_ci "samgr:samgr_proxy", 9079a732c7Sopenharmony_ci ] 9179a732c7Sopenharmony_ci 9279a732c7Sopenharmony_ci defines = [ 9379a732c7Sopenharmony_ci "HI_LOG_ENABLE", 9479a732c7Sopenharmony_ci "DH_LOG_TAG=\"devicemanagerext\"", 9579a732c7Sopenharmony_ci "LOG_DOMAIN=0xD004110", 9679a732c7Sopenharmony_ci ] 9779a732c7Sopenharmony_ci 9879a732c7Sopenharmony_ci subsystem_name = "distributedhardware" 9979a732c7Sopenharmony_ci part_name = "device_manager" 10079a732c7Sopenharmony_ci} 101