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("devattest_sdk_private_config") { 185bbf6e98Sopenharmony_ci include_dirs = [ 195bbf6e98Sopenharmony_ci "${devattest_path}/common", 205bbf6e98Sopenharmony_ci "${devattest_path}/common/log", 215bbf6e98Sopenharmony_ci ] 225bbf6e98Sopenharmony_ci} 235bbf6e98Sopenharmony_ci 245bbf6e98Sopenharmony_ciconfig("devattest_sdk_public_config") { 255bbf6e98Sopenharmony_ci include_dirs = [ "${devattest_innerkit_path}/native_cpp/include" ] 265bbf6e98Sopenharmony_ci} 275bbf6e98Sopenharmony_ci 285bbf6e98Sopenharmony_ciohos_shared_library("devattest_sdk") { 295bbf6e98Sopenharmony_ci version_script = "libdevattest_sdk.map" 305bbf6e98Sopenharmony_ci 315bbf6e98Sopenharmony_ci sanitize = { 325bbf6e98Sopenharmony_ci cfi = true 335bbf6e98Sopenharmony_ci cfi_cross_dso = true 345bbf6e98Sopenharmony_ci debug = false 355bbf6e98Sopenharmony_ci } 365bbf6e98Sopenharmony_ci 375bbf6e98Sopenharmony_ci branch_protector_ret = "pac_ret" 385bbf6e98Sopenharmony_ci 395bbf6e98Sopenharmony_ci sources = [ 405bbf6e98Sopenharmony_ci "${devattest_path}/services/devattest_ability/src/attest_result_info.cpp", 415bbf6e98Sopenharmony_ci "src/devattest_client.cpp", 425bbf6e98Sopenharmony_ci "src/devattest_profile_load_callback.cpp", 435bbf6e98Sopenharmony_ci "src/devattest_service_proxy.cpp", 445bbf6e98Sopenharmony_ci ] 455bbf6e98Sopenharmony_ci 465bbf6e98Sopenharmony_ci configs = [ ":devattest_sdk_private_config" ] 475bbf6e98Sopenharmony_ci 485bbf6e98Sopenharmony_ci public_configs = [ ":devattest_sdk_public_config" ] 495bbf6e98Sopenharmony_ci 505bbf6e98Sopenharmony_ci external_deps = [ 515bbf6e98Sopenharmony_ci "c_utils:utils", 525bbf6e98Sopenharmony_ci "hilog:libhilog", 535bbf6e98Sopenharmony_ci "ipc:ipc_core", 545bbf6e98Sopenharmony_ci "samgr:samgr_proxy", 555bbf6e98Sopenharmony_ci ] 565bbf6e98Sopenharmony_ci 575bbf6e98Sopenharmony_ci subsystem_name = "xts" 585bbf6e98Sopenharmony_ci innerapi_tags = [ "platformsdk" ] 595bbf6e98Sopenharmony_ci part_name = "device_attest" 605bbf6e98Sopenharmony_ci} 61