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("cert_manager_config") { 17 include_dirs = [ "include" ] 18} 19 20if (os_level == "standard") { 21 ohos_shared_library("cert_manager_sdk") { 22 branch_protector_ret = "pac_ret" 23 sanitize = { 24 cfi = true 25 cfi_cross_dso = true 26 boundary_sanitize = true 27 debug = false 28 integer_overflow = true 29 ubsan = true 30 } 31 subsystem_name = "security" 32 innerapi_tags = [ 33 "platformsdk", 34 "chipsetsdk", 35 ] 36 part_name = "certificate_manager" 37 public_configs = [ ":cert_manager_config" ] 38 defines = [ 39 "L2_STANDARD", 40 "_HARDWARE_ROOT_KEY_", 41 "_CM_LOG_ENABLE_", 42 ] 43 44 sources = [ "src/cert_manager_api.c" ] 45 46 cflags = [ 47 "-DHILOG_ENABLE", 48 "-Wall", 49 "-Werror", 50 ] 51 deps = [ "../../../../frameworks/cert_manager_standard/main:cert_manager_standard_frameworks" ] 52 53 external_deps = [ 54 "bounds_checking_function:libsec_shared", 55 "hilog:libhilog", 56 ] 57 } 58} 59#if (os_level == "small" || os_level == "mini") { 60# group("libcert_managersdk") { 61# } 62#} 63