1dfe32fa1Soh_ci# Copyright (c) 2023 Huawei Device Co., Ltd. 2dfe32fa1Soh_ci# Licensed under the Apache License, Version 2.0 (the "License"); 3dfe32fa1Soh_ci# you may not use this file except in compliance with the License. 4dfe32fa1Soh_ci# You may obtain a copy of the License at 5dfe32fa1Soh_ci# 6dfe32fa1Soh_ci# http://www.apache.org/licenses/LICENSE-2.0 7dfe32fa1Soh_ci# 8dfe32fa1Soh_ci# Unless required by applicable law or agreed to in writing, software 9dfe32fa1Soh_ci# distributed under the License is distributed on an "AS IS" BASIS, 10dfe32fa1Soh_ci# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 11dfe32fa1Soh_ci# See the License for the specific language governing permissions and 12dfe32fa1Soh_ci# limitations under the License. 13dfe32fa1Soh_ci 14dfe32fa1Soh_ciimport("//build/ohos.gni") 15dfe32fa1Soh_ci 16dfe32fa1Soh_ciconfig("asset_config") { 17dfe32fa1Soh_ci include_dirs = [ "inc" ] 18dfe32fa1Soh_ci} 19dfe32fa1Soh_ci 20dfe32fa1Soh_ciohos_shared_library("asset_ndk") { 21dfe32fa1Soh_ci public_configs = [ ":asset_config" ] 22dfe32fa1Soh_ci sources = [ "src/asset_api.c" ] 23dfe32fa1Soh_ci deps = [ "../../../frameworks/c/system_api:asset_sdk" ] 24dfe32fa1Soh_ci 25dfe32fa1Soh_ci external_deps = [ "hilog:libhilog" ] 26dfe32fa1Soh_ci 27dfe32fa1Soh_ci branch_protector_ret = "pac_ret" 28dfe32fa1Soh_ci sanitize = { 29dfe32fa1Soh_ci integer_overflow = true 30dfe32fa1Soh_ci cfi = true 31dfe32fa1Soh_ci debug = false 32dfe32fa1Soh_ci cfi_cross_dso = true 33dfe32fa1Soh_ci boundary_sanitize = true 34dfe32fa1Soh_ci ubsan = true 35dfe32fa1Soh_ci } 36dfe32fa1Soh_ci cflags = [ 37dfe32fa1Soh_ci "-Wall", 38dfe32fa1Soh_ci "-Werror", 39dfe32fa1Soh_ci "-fPIC", 40dfe32fa1Soh_ci ] 41dfe32fa1Soh_ci 42dfe32fa1Soh_ci relative_install_dir = "ndk" 43dfe32fa1Soh_ci subsystem_name = "security" 44dfe32fa1Soh_ci part_name = "asset" 45dfe32fa1Soh_ci} 46