15bbf6e98Sopenharmony_ci# Copyright (c) 2022 Huawei Device Co., Ltd. 25bbf6e98Sopenharmony_ci# Licensed under the Apache License, Version 2.0 (the "License"); 35bbf6e98Sopenharmony_ci# you may not use this file except in compliance with the License. 45bbf6e98Sopenharmony_ci# You may obtain a copy of the License at 55bbf6e98Sopenharmony_ci# 65bbf6e98Sopenharmony_ci# http://www.apache.org/licenses/LICENSE-2.0 75bbf6e98Sopenharmony_ci# 85bbf6e98Sopenharmony_ci# Unless required by applicable law or agreed to in writing, software 95bbf6e98Sopenharmony_ci# distributed under the License is distributed on an "AS IS" BASIS, 105bbf6e98Sopenharmony_ci# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 115bbf6e98Sopenharmony_ci# See the License for the specific language governing permissions and 125bbf6e98Sopenharmony_ci# limitations under the License. 135bbf6e98Sopenharmony_ci 145bbf6e98Sopenharmony_ciimport("//build/ohos.gni") 155bbf6e98Sopenharmony_ciimport("//test/xts/device_attest/build/devattestconfig.gni") 165bbf6e98Sopenharmony_ci 175bbf6e98Sopenharmony_ciconfig("device_attest_oem_adapter_config") { 185bbf6e98Sopenharmony_ci visibility = [ ":*" ] 195bbf6e98Sopenharmony_ci cflags = [ "-Wall" ] 205bbf6e98Sopenharmony_ci include_dirs = [ "include" ] 215bbf6e98Sopenharmony_ci} 225bbf6e98Sopenharmony_ci 235bbf6e98Sopenharmony_ciohos_shared_library("device_attest_oem_adapter") { 245bbf6e98Sopenharmony_ci version_script = "libdevattest_oem.map" 255bbf6e98Sopenharmony_ci 265bbf6e98Sopenharmony_ci sanitize = { 275bbf6e98Sopenharmony_ci cfi = true 285bbf6e98Sopenharmony_ci cfi_cross_dso = true 295bbf6e98Sopenharmony_ci debug = false 305bbf6e98Sopenharmony_ci } 315bbf6e98Sopenharmony_ci 325bbf6e98Sopenharmony_ci branch_protector_ret = "pac_ret" 335bbf6e98Sopenharmony_ci 345bbf6e98Sopenharmony_ci sources = [ 355bbf6e98Sopenharmony_ci "src/device_attest_oem_adapter.c", 365bbf6e98Sopenharmony_ci "src/device_attest_oem_file.c", 375bbf6e98Sopenharmony_ci ] 385bbf6e98Sopenharmony_ci 395bbf6e98Sopenharmony_ci public_configs = [ ":device_attest_oem_adapter_config" ] 405bbf6e98Sopenharmony_ci 415bbf6e98Sopenharmony_ci external_deps = [ "c_utils:utils" ] 425bbf6e98Sopenharmony_ci 435bbf6e98Sopenharmony_ci subsystem_name = "xts" 445bbf6e98Sopenharmony_ci part_name = "device_attest" 455bbf6e98Sopenharmony_ci} 46