1526fd984Sopenharmony_ci# Copyright (c) 2024 Huawei Device Co., Ltd. 2526fd984Sopenharmony_ci# Licensed under the Apache License, Version 2.0 (the "License"); 3526fd984Sopenharmony_ci# you may not use this file except in compliance with the License. 4526fd984Sopenharmony_ci# You may obtain a copy of the License at 5526fd984Sopenharmony_ci# 6526fd984Sopenharmony_ci# http://www.apache.org/licenses/LICENSE-2.0 7526fd984Sopenharmony_ci# 8526fd984Sopenharmony_ci# Unless required by applicable law or agreed to in writing, software 9526fd984Sopenharmony_ci# distributed under the License is distributed on an "AS IS" BASIS, 10526fd984Sopenharmony_ci# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 11526fd984Sopenharmony_ci# See the License for the specific language governing permissions and 12526fd984Sopenharmony_ci# limitations under the License. 13526fd984Sopenharmony_ci 14526fd984Sopenharmony_ciimport("//build/ohos.gni") 15526fd984Sopenharmony_ci 16526fd984Sopenharmony_ciohos_shared_library("cj_huks_ffi") { 17526fd984Sopenharmony_ci defines = [] 18526fd984Sopenharmony_ci 19526fd984Sopenharmony_ci sanitize = { 20526fd984Sopenharmony_ci integer_overflow = true 21526fd984Sopenharmony_ci cfi = true 22526fd984Sopenharmony_ci debug = false 23526fd984Sopenharmony_ci cfi_cross_dso = true 24526fd984Sopenharmony_ci boundary_sanitize = true 25526fd984Sopenharmony_ci ubsan = true 26526fd984Sopenharmony_ci } 27526fd984Sopenharmony_ci 28526fd984Sopenharmony_ci include_dirs = [ 29526fd984Sopenharmony_ci "../../inner_api/huks_standard/main/include", 30526fd984Sopenharmony_ci "../../../frameworks/huks_standard/main/common/include", 31526fd984Sopenharmony_ci "include", 32526fd984Sopenharmony_ci ] 33526fd984Sopenharmony_ci 34526fd984Sopenharmony_ci sources = [ "src/cj_huks_ffi.c" ] 35526fd984Sopenharmony_ci 36526fd984Sopenharmony_ci deps = [ "../../inner_api/huks_standard/main:libhukssdk" ] 37526fd984Sopenharmony_ci 38526fd984Sopenharmony_ci cflags = [ 39526fd984Sopenharmony_ci "-Wall", 40526fd984Sopenharmony_ci "-Werror", 41526fd984Sopenharmony_ci ] 42526fd984Sopenharmony_ci 43526fd984Sopenharmony_ci innerapi_tags = [ "platformsdk" ] 44526fd984Sopenharmony_ci subsystem_name = "security" 45526fd984Sopenharmony_ci part_name = "huks" 46526fd984Sopenharmony_ci} 47