1# Copyright (c) 2022-2023 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") 15 16config("attributes_config") { 17 include_dirs = [ "../../../interfaces/inner_api" ] 18} 19 20ohos_source_set("attributes") { 21 sanitize = { 22 integer_overflow = true 23 ubsan = true 24 boundary_sanitize = true 25 cfi = true 26 cfi_cross_dso = true 27 debug = false 28 blocklist = "../../../cfi_blocklist.txt" 29 } 30 branch_protector_ret = "pac_ret" 31 include_dirs = [ "../../../interfaces/inner_api" ] 32 33 sources = [ "attributes/src/attributes.cpp" ] 34 35 configs = [ "../../../common:iam_log_config" ] 36 37 public_configs = [ ":attributes_config" ] 38 39 external_deps = [ 40 "c_utils:utils", 41 "hilog:libhilog", 42 ] 43 44 subsystem_name = "useriam" 45 part_name = "user_auth_framework" 46} 47 48config("dfx_config") { 49 include_dirs = [ "dfx/inc" ] 50} 51 52ohos_source_set("dfx") { 53 sanitize = { 54 integer_overflow = true 55 ubsan = true 56 boundary_sanitize = true 57 cfi = true 58 cfi_cross_dso = true 59 debug = false 60 blocklist = "../../../cfi_blocklist.txt" 61 } 62 branch_protector_ret = "pac_ret" 63 include_dirs = [ "dfx/inc" ] 64 65 sources = [ 66 "dfx/src/hisysevent_adapter.cpp", 67 "dfx/src/iam_hitrace_helper.cpp", 68 ] 69 70 configs = [ "../../../common:iam_log_config" ] 71 72 public_configs = [ ":dfx_config" ] 73 74 deps = [ "../../../common:iam_utils" ] 75 76 external_deps = [ 77 "c_utils:utils", 78 "hilog:libhilog", 79 "hisysevent:libhisysevent", 80 "hitrace:hitrace_meter", 81 ] 82 83 subsystem_name = "useriam" 84 part_name = "user_auth_framework" 85} 86