1# Copyright (C) 2023 Huawei Device Co., Ltd. 2# Licensed under the Apache License, Version 2.0 (the "License"); 3# you may not use this file except in compliance with the License. 4# You may obtain a copy of the License at 5# 6# http://www.apache.org/licenses/LICENSE-2.0 7# 8# Unless required by applicable law or agreed to in writing, software 9# distributed under the License is distributed on an "AS IS" BASIS, 10# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 11# See the License for the specific language governing permissions and 12# limitations under the License. 13 14import("//test/xts/device_attest/build/devattestconfig.gni") 15attest_core_path = "${devattest_path}/services/core" 16sources_notmock = [ 17 "${attest_core_path}/attest_entry.c", 18 "${attest_core_path}/adapter/attest_adapter.c", 19 "${attest_core_path}/adapter/attest_adapter_os.c", 20 "${attest_core_path}/adapter/attest_adapter_oem.c", 21 "${attest_core_path}/adapter/attest_adapter_mock.c", 22 "${attest_core_path}/attest/attest_service.c", 23 "${attest_core_path}/attest/attest_service_auth.c", 24 "${attest_core_path}/attest/attest_service_active.c", 25 "${attest_core_path}/attest/attest_service_challenge.c", 26 "${attest_core_path}/attest/attest_service_reset.c", 27 "${attest_core_path}/attest/attest_service_device.c", 28 "${attest_core_path}/network/attest_network.c", 29 "${attest_core_path}/security/attest_security.c", 30 "${attest_core_path}/security/attest_security_token.c", 31 "${attest_core_path}/security/attest_security_ticket.c", 32 "${attest_core_path}/utils/attest_utils_file.c", 33 "${attest_core_path}/utils/attest_utils_json.c", 34 "${attest_core_path}/utils/attest_utils_log.c", 35 "${attest_core_path}/utils/attest_utils_timer.c", 36 "${attest_core_path}/utils/attest_utils_list.c", 37 "${attest_core_path}/utils/attest_utils.c", 38] 39 40sources_mock = [ 41 "${attest_core_path}/adapter/attest_adapter_hal.c", 42 "${attest_core_path}/adapter/attest_adapter_property.c", 43] 44 45include_core_dirs = [ 46 "${attest_core_path}/include", 47 "${attest_core_path}/include/adapter", 48 "${attest_core_path}/include/attest", 49 "${attest_core_path}/include/dfx", 50 "${attest_core_path}/include/security", 51 "${attest_core_path}/include/network", 52 "${attest_core_path}/include/utils", 53] 54 55core_deps = [ 56 "${devattest_path}/services/oem_adapter:device_attest_oem_adapter", 57 "//third_party/cJSON:cjson", 58 "//third_party/mbedtls:mbedtls_shared", 59 "//third_party/openssl:libcrypto_shared", 60 "//third_party/openssl:libssl_shared", 61] 62 63core_external_deps = [ 64 "c_utils:utils", 65 "hilog:libhilog", 66 "huks:libhukssdk", 67 "init:libbegetutil", 68 "syscap_codec:syscap_interface_shared", 69] 70