15ba71b47Sopenharmony_ci# Copyright (c) 2023 Huawei Device Co., Ltd. 25ba71b47Sopenharmony_ci# Licensed under the Apache License, Version 2.0 (the "License"); 35ba71b47Sopenharmony_ci# you may not use this file except in compliance with the License. 45ba71b47Sopenharmony_ci# You may obtain a copy of the License at 55ba71b47Sopenharmony_ci# 65ba71b47Sopenharmony_ci# http://www.apache.org/licenses/LICENSE-2.0 75ba71b47Sopenharmony_ci# 85ba71b47Sopenharmony_ci# Unless required by applicable law or agreed to in writing, software 95ba71b47Sopenharmony_ci# distributed under the License is distributed on an "AS IS" BASIS, 105ba71b47Sopenharmony_ci# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 115ba71b47Sopenharmony_ci# See the License for the specific language governing permissions and 125ba71b47Sopenharmony_ci# limitations under the License. 135ba71b47Sopenharmony_ci 145ba71b47Sopenharmony_ciimport("//build/ohos.gni") 155ba71b47Sopenharmony_ciimport("//build/ohos_var.gni") 165ba71b47Sopenharmony_ci 175ba71b47Sopenharmony_ci################################################################################ 185ba71b47Sopenharmony_ci 195ba71b47Sopenharmony_ciconfig("dynamic_cache_config") { 205ba71b47Sopenharmony_ci include_dirs = [ "include" ] 215ba71b47Sopenharmony_ci} 225ba71b47Sopenharmony_ci 235ba71b47Sopenharmony_ciohos_shared_library("dynamic_cache") { 245ba71b47Sopenharmony_ci sanitize = { 255ba71b47Sopenharmony_ci cfi = true 265ba71b47Sopenharmony_ci cfi_cross_dso = true 275ba71b47Sopenharmony_ci debug = false 285ba71b47Sopenharmony_ci cfi_no_nvcall = true 295ba71b47Sopenharmony_ci blocklist = "../../../cfi_blocklist.txt" 305ba71b47Sopenharmony_ci } 315ba71b47Sopenharmony_ci branch_protector_ret = "pac_ret" 325ba71b47Sopenharmony_ci 335ba71b47Sopenharmony_ci all_dependent_configs = [ ":dynamic_cache_config" ] 345ba71b47Sopenharmony_ci public_configs = [ ":dynamic_cache_config" ] 355ba71b47Sopenharmony_ci if (is_standard_system) { 365ba71b47Sopenharmony_ci external_deps = [ 375ba71b47Sopenharmony_ci "c_utils:utils", 385ba71b47Sopenharmony_ci "hilog:libhilog", 395ba71b47Sopenharmony_ci "init:libbegetutil", 405ba71b47Sopenharmony_ci ] 415ba71b47Sopenharmony_ci } 425ba71b47Sopenharmony_ci 435ba71b47Sopenharmony_ci install_images = [ system_base_dir ] 445ba71b47Sopenharmony_ci relative_install_dir = "chipset-pub-sdk" 455ba71b47Sopenharmony_ci part_name = "samgr" 465ba71b47Sopenharmony_ci subsystem_name = "systemabilitymgr" 475ba71b47Sopenharmony_ci} 485ba71b47Sopenharmony_ci################################################################################ 49