14e56987cSopenharmony_ci# Copyright (c) 2022-2023 Huawei Device Co., Ltd. 24e56987cSopenharmony_ci# Licensed under the Apache License, Version 2.0 (the "License"); 34e56987cSopenharmony_ci# you may not use this file except in compliance with the License. 44e56987cSopenharmony_ci# You may obtain a copy of the License at 54e56987cSopenharmony_ci# 64e56987cSopenharmony_ci# http://www.apache.org/licenses/LICENSE-2.0 74e56987cSopenharmony_ci# 84e56987cSopenharmony_ci# Unless required by applicable law or agreed to in writing, software 94e56987cSopenharmony_ci# distributed under the License is distributed on an "AS IS" BASIS, 104e56987cSopenharmony_ci# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 114e56987cSopenharmony_ci# See the License for the specific language governing permissions and 124e56987cSopenharmony_ci# limitations under the License. 134e56987cSopenharmony_ci 144e56987cSopenharmony_ciimport("//build/ohos.gni") 154e56987cSopenharmony_ci 164e56987cSopenharmony_ciohos_shared_library("cj_cert_manager_ffi") { 174e56987cSopenharmony_ci branch_protector_ret = "pac_ret" 184e56987cSopenharmony_ci sanitize = { 194e56987cSopenharmony_ci cfi = true 204e56987cSopenharmony_ci cfi_cross_dso = true 214e56987cSopenharmony_ci boundary_sanitize = true 224e56987cSopenharmony_ci debug = false 234e56987cSopenharmony_ci integer_overflow = true 244e56987cSopenharmony_ci ubsan = true 254e56987cSopenharmony_ci } 264e56987cSopenharmony_ci defines = [ 274e56987cSopenharmony_ci "L2_STANDARD", 284e56987cSopenharmony_ci "_HARDWARE_ROOT_KEY_", 294e56987cSopenharmony_ci "_CM_LOG_ENABLE_", 304e56987cSopenharmony_ci ] 314e56987cSopenharmony_ci 324e56987cSopenharmony_ci include_dirs = [ 334e56987cSopenharmony_ci "../../../frameworks/cert_manager_standard/main/common/include", 344e56987cSopenharmony_ci "include", 354e56987cSopenharmony_ci ] 364e56987cSopenharmony_ci 374e56987cSopenharmony_ci sources = [ "src/cj_cert_manager_ffi.c" ] 384e56987cSopenharmony_ci 394e56987cSopenharmony_ci cflags_cc = [ 404e56987cSopenharmony_ci "-Wall", 414e56987cSopenharmony_ci "-Werror", 424e56987cSopenharmony_ci ] 434e56987cSopenharmony_ci deps = [ "../../innerkits/cert_manager_standard/main:cert_manager_sdk" ] 444e56987cSopenharmony_ci 454e56987cSopenharmony_ci innerapi_tags = [ "platformsdk" ] 464e56987cSopenharmony_ci subsystem_name = "security" 474e56987cSopenharmony_ci part_name = "certificate_manager" 484e56987cSopenharmony_ci} 49