18e920a95Sopenharmony_ci# Copyright (c) 2023 Huawei Device Co., Ltd. 28e920a95Sopenharmony_ci# Licensed under the Apache License, Version 2.0 (the "License"); 38e920a95Sopenharmony_ci# you may not use this file except in compliance with the License. 48e920a95Sopenharmony_ci# You may obtain a copy of the License at 58e920a95Sopenharmony_ci# 68e920a95Sopenharmony_ci# http://www.apache.org/licenses/LICENSE-2.0 78e920a95Sopenharmony_ci# 88e920a95Sopenharmony_ci# Unless required by applicable law or agreed to in writing, software 98e920a95Sopenharmony_ci# distributed under the License is distributed on an "AS IS" BASIS, 108e920a95Sopenharmony_ci# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 118e920a95Sopenharmony_ci# See the License for the specific language governing permissions and 128e920a95Sopenharmony_ci# limitations under the License. 138e920a95Sopenharmony_ci 148e920a95Sopenharmony_ciimport("//build/ohos.gni") 158e920a95Sopenharmony_ciimport("../../../code_signature.gni") 168e920a95Sopenharmony_ci 178e920a95Sopenharmony_ciohos_static_library("libkey_enable_utils") { 188e920a95Sopenharmony_ci sources = [ 198e920a95Sopenharmony_ci "src/cert_path.cpp", 208e920a95Sopenharmony_ci "src/devices_security.cpp", 218e920a95Sopenharmony_ci "src/key_enable_adapter.cpp", 228e920a95Sopenharmony_ci "src/key_utils.cpp", 238e920a95Sopenharmony_ci "src/unlock_event_helper.cpp", 248e920a95Sopenharmony_ci ] 258e920a95Sopenharmony_ci include_dirs = [ 268e920a95Sopenharmony_ci "include", 278e920a95Sopenharmony_ci "${code_signature_root_dir}/interfaces/innerkits/local_code_sign/include", 288e920a95Sopenharmony_ci ] 298e920a95Sopenharmony_ci 308e920a95Sopenharmony_ci deps = [ "${code_signature_root_dir}/interfaces/innerkits/local_code_sign:liblocal_code_sign_sdk" ] 318e920a95Sopenharmony_ci 328e920a95Sopenharmony_ci public_configs = [ "${code_signature_root_dir}:common_public_config" ] 338e920a95Sopenharmony_ci configs = [ "${code_signature_root_dir}:common_utils_config" ] 348e920a95Sopenharmony_ci 358e920a95Sopenharmony_ci external_deps = [ 368e920a95Sopenharmony_ci "ability_base:want", 378e920a95Sopenharmony_ci "c_utils:utils", 388e920a95Sopenharmony_ci "common_event_service:cesfwk_innerkits", 398e920a95Sopenharmony_ci "hilog:libhilog", 408e920a95Sopenharmony_ci "init:libbegetutil", 418e920a95Sopenharmony_ci "samgr:samgr_proxy", 428e920a95Sopenharmony_ci ] 438e920a95Sopenharmony_ci 448e920a95Sopenharmony_ci defines = [] 458e920a95Sopenharmony_ci if (code_signature_screenlock_mgr_enable) { 468e920a95Sopenharmony_ci defines += [ "SCREENLOCK_MANAGER_ENABLED" ] 478e920a95Sopenharmony_ci external_deps += [ "screenlock_mgr:screenlock_client" ] 488e920a95Sopenharmony_ci } 498e920a95Sopenharmony_ci 508e920a95Sopenharmony_ci subsystem_name = "security" 518e920a95Sopenharmony_ci part_name = "code_signature" 528e920a95Sopenharmony_ci} 53