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