1# Copyright (c) 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 16ohos_shared_library("cert") { 17 subsystem_name = "security" 18 part_name = "certificate_framework" 19 configs = [ "../../../../config/build:coverage_flag_cc" ] 20 relative_install_dir = "module/security" 21 include_dirs = [ 22 "inc", 23 "../../../common/v1.0/inc", 24 ] 25 26 cflags = [ 27 "-DHILOG_ENABLE", 28 "-fPIC", 29 "-g3", 30 ] 31 32 sources = [ 33 "src/napi_cert_chain_validator.cpp", 34 "src/napi_cert_extension.cpp", 35 "src/napi_cert_utils.cpp", 36 "src/napi_certificate_init.cpp", 37 "src/napi_common.cpp", 38 "src/napi_key.cpp", 39 "src/napi_object.cpp", 40 "src/napi_pub_key.cpp", 41 "src/napi_x509_certificate.cpp", 42 "src/napi_x509_crl.cpp", 43 "src/napi_x509_crl_entry.cpp", 44 ] 45 46 deps = [ "../../../core:certificate_framework_core" ] 47 48 external_deps = [ 49 "c_utils:utils", 50 "crypto_framework:crypto_framework_lib", 51 "hilog:libhilog", 52 "napi:ace_napi", 53 ] 54} 55