1# Copyright (c) 2022 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("//base/security/device_security_level/common/dslm.gni") 15import("//build/ohos.gni") 16 17ohos_source_set("dslm_ohos_cred_obj") { 18 sources = [ 19 "../common/dslm_ohos_request.c", 20 "../common/dslm_ohos_verify.c", 21 "../common/external_interface_adapter.c", 22 "../common/hks_adapter.c", 23 "dslm_ohos_credential.c", 24 "impl/dslm_ohos_init.c", 25 ] 26 27 include_dirs = [ 28 "impl", 29 "../common", 30 "../../common", 31 "../../include", 32 "../../../common/include", 33 "../../../interfaces/inner_api/include", 34 "../../../services/include", 35 ] 36 37 deps = [ 38 "../../../baselib/utils:utils_static", 39 "../../common:oem_common_obj", 40 "//base/security/huks/interfaces/inner_api/huks_lite:huks_3.0_sdk", 41 ] 42 43 if (ohos_kernel_type == "linux" || ohos_kernel_type == "liteos_a") { 44 deps += [ "$dslm_hilog_path/featured:hilog_shared" ] 45 } else if (ohos_kernel_type == "liteos_m") { 46 deps += [ "$dslm_hilog_path/featured:hilog_static" ] 47 } 48 49 external_deps = [ "device_auth:deviceauth_sdk" ] 50 51 configs = [ 52 "../../../common:common_configs", 53 "../../../common:common_lite_configs", 54 ] 55 56 part_name = "device_security_level" 57 subsystem_name = "security" 58} 59 60copy("dslm_ohos_cred_file") { 61 sources = [ "dslm_finger.cfg" ] 62 outputs = [ "$root_out_dir/system/etc/dslm_finger.cfg" ] 63} 64