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") 15import("//drivers/hdf_core/adapter/uhdf2/uhdf.gni") 16 17ohos_shared_library("libpin_auth_interface_service_1.1") { 18 sanitize = { 19 integer_overflow = true 20 ubsan = true 21 boundary_sanitize = true 22 cfi = true 23 cfi_cross_dso = true 24 debug = false 25 } 26 branch_protector_ret = "pac_ret" 27 include_dirs = [ 28 "service/inc", 29 "adaptor/inc", 30 "common/inc", 31 "database/inc", 32 "main/inc", 33 "//third_party/openssl/include", 34 "../common/logs", 35 "../common/utils", 36 ] 37 sources = [ 38 "adaptor/src/adaptor_algorithm.c", 39 "adaptor/src/adaptor_file.c", 40 "adaptor/src/adaptor_memory.c", 41 "adaptor/src/adaptor_time.c", 42 "adaptor/src/file_operator.c", 43 "common/src/buffer.c", 44 "database/src/pin_db.c", 45 "database/src/pin_db_ops.c", 46 "database/src/pin_db_ops_base.c", 47 "database/src/pin_db_ops_v0.c", 48 "database/src/pin_db_ops_v1.c", 49 "main/src/pin_auth.cpp", 50 "main/src/pin_func.c", 51 "service/src/executor_impl.cpp", 52 "service/src/pin_auth_interface_service.cpp", 53 ] 54 55 deps = [ "//third_party/openssl:libcrypto_shared" ] 56 57 external_deps = [ 58 "c_utils:utils", 59 "drivers_interface_pin_auth:pin_auth_idl_headers", 60 "hilog:libhilog", 61 "init:libbegetutil", 62 "ipc:ipc_single", 63 ] 64 65 install_images = [ chipset_base_dir ] 66 remove_configs = [ "//build/config/compiler:no_exceptions" ] 67 subsystem_name = "hdf" 68 part_name = "drivers_peripheral_pin_auth" 69} 70 71ohos_shared_library("libpin_auth_driver") { 72 sanitize = { 73 integer_overflow = true 74 ubsan = true 75 boundary_sanitize = true 76 cfi = true 77 cfi_cross_dso = true 78 debug = false 79 } 80 branch_protector_ret = "pac_ret" 81 include_dirs = [ 82 "service/inc", 83 "main/inc", 84 "../common/logs", 85 "../common/utils", 86 ] 87 sources = [ "service/src/pin_auth_interface_driver.cpp" ] 88 deps = [ "../hdi_service:libpin_auth_interface_service_1.1" ] 89 90 external_deps = [ 91 "c_utils:utils", 92 "drivers_interface_pin_auth:libpin_auth_stub_1.1", 93 "hdf_core:libhdf_host", 94 "hdf_core:libhdf_ipc_adapter", 95 "hdf_core:libhdf_utils", 96 "hdf_core:libhdi", 97 "hilog:libhilog", 98 "ipc:ipc_single", 99 ] 100 101 shlib_type = "hdi" 102 install_images = [ chipset_base_dir ] 103 remove_configs = [ "//build/config/compiler:no_exceptions" ] 104 subsystem_name = "hdf" 105 part_name = "drivers_peripheral_pin_auth" 106} 107 108group("hdf_pin_auth_service") { 109 deps = [ 110 ":libpin_auth_driver", 111 ":libpin_auth_interface_service_1.1", 112 ] 113} 114