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 16config("cert_framework_config") { 17 include_dirs = [ 18 "../../interfaces/inner_api/certificate", 19 "../../interfaces/inner_api/common", 20 "../../interfaces/inner_api/include", 21 "../../interfaces/inner_api/attestation", 22 ] 23} 24 25ohos_shared_library("certificate_framework_core") { 26 sanitize = { 27 cfi = true 28 cfi_cross_dso = true 29 boundary_sanitize = true 30 debug = false 31 integer_overflow = true 32 ubsan = true 33 } 34 subsystem_name = "security" 35 innerapi_tags = [ "platformsdk" ] 36 part_name = "certificate_framework" 37 public_configs = [ ":cert_framework_config" ] 38 configs = [ "../../config/build:coverage_flag" ] 39 include_dirs = [ "life/inc" ] 40 sources = [ "life/cf_api.c" ] 41 42 deps = [ 43 "../ability:libcertificate_framework_ability", 44 "../adapter:libcertificate_framework_adapter", 45 "../common:libcertificate_framework_common_static", 46 "cert:libcertificate_framework_cert_object", 47 "extension:libcertificate_framework_extension_object", 48 "v1.0:libcertificate_framework_vesion1", 49 "attestation:libcertificate_attestation" 50 ] 51 52 external_deps = [ 53 "c_utils:utils", 54 "crypto_framework:crypto_framework_lib", 55 "hilog:libhilog", 56 ] 57 58 ldflags = [ "-Wl,--whole-archive" ] 59 60 cflags = [ 61 "-DHILOG_ENABLE", 62 "-Wall", 63 "-Werror", 64 ] 65} 66