15bbf6e98Sopenharmony_ci# Copyright (C) 2023 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("//test/xts/device_attest/build/devattestconfig.gni")
155bbf6e98Sopenharmony_ciattest_core_path = "${devattest_path}/services/core"
165bbf6e98Sopenharmony_cisources_notmock = [
175bbf6e98Sopenharmony_ci  "${attest_core_path}/attest_entry.c",
185bbf6e98Sopenharmony_ci  "${attest_core_path}/adapter/attest_adapter.c",
195bbf6e98Sopenharmony_ci  "${attest_core_path}/adapter/attest_adapter_os.c",
205bbf6e98Sopenharmony_ci  "${attest_core_path}/adapter/attest_adapter_oem.c",
215bbf6e98Sopenharmony_ci  "${attest_core_path}/adapter/attest_adapter_mock.c",
225bbf6e98Sopenharmony_ci  "${attest_core_path}/attest/attest_service.c",
235bbf6e98Sopenharmony_ci  "${attest_core_path}/attest/attest_service_auth.c",
245bbf6e98Sopenharmony_ci  "${attest_core_path}/attest/attest_service_active.c",
255bbf6e98Sopenharmony_ci  "${attest_core_path}/attest/attest_service_challenge.c",
265bbf6e98Sopenharmony_ci  "${attest_core_path}/attest/attest_service_reset.c",
275bbf6e98Sopenharmony_ci  "${attest_core_path}/attest/attest_service_device.c",
285bbf6e98Sopenharmony_ci  "${attest_core_path}/network/attest_network.c",
295bbf6e98Sopenharmony_ci  "${attest_core_path}/security/attest_security.c",
305bbf6e98Sopenharmony_ci  "${attest_core_path}/security/attest_security_token.c",
315bbf6e98Sopenharmony_ci  "${attest_core_path}/security/attest_security_ticket.c",
325bbf6e98Sopenharmony_ci  "${attest_core_path}/utils/attest_utils_file.c",
335bbf6e98Sopenharmony_ci  "${attest_core_path}/utils/attest_utils_json.c",
345bbf6e98Sopenharmony_ci  "${attest_core_path}/utils/attest_utils_log.c",
355bbf6e98Sopenharmony_ci  "${attest_core_path}/utils/attest_utils_timer.c",
365bbf6e98Sopenharmony_ci  "${attest_core_path}/utils/attest_utils_list.c",
375bbf6e98Sopenharmony_ci  "${attest_core_path}/utils/attest_utils.c",
385bbf6e98Sopenharmony_ci]
395bbf6e98Sopenharmony_ci
405bbf6e98Sopenharmony_cisources_mock = [
415bbf6e98Sopenharmony_ci  "${attest_core_path}/adapter/attest_adapter_hal.c",
425bbf6e98Sopenharmony_ci  "${attest_core_path}/adapter/attest_adapter_property.c",
435bbf6e98Sopenharmony_ci]
445bbf6e98Sopenharmony_ci
455bbf6e98Sopenharmony_ciinclude_core_dirs = [
465bbf6e98Sopenharmony_ci  "${attest_core_path}/include",
475bbf6e98Sopenharmony_ci  "${attest_core_path}/include/adapter",
485bbf6e98Sopenharmony_ci  "${attest_core_path}/include/attest",
495bbf6e98Sopenharmony_ci  "${attest_core_path}/include/dfx",
505bbf6e98Sopenharmony_ci  "${attest_core_path}/include/security",
515bbf6e98Sopenharmony_ci  "${attest_core_path}/include/network",
525bbf6e98Sopenharmony_ci  "${attest_core_path}/include/utils",
535bbf6e98Sopenharmony_ci]
545bbf6e98Sopenharmony_ci
555bbf6e98Sopenharmony_cicore_deps = [
565bbf6e98Sopenharmony_ci  "${devattest_path}/services/oem_adapter:device_attest_oem_adapter",
575bbf6e98Sopenharmony_ci  "//third_party/cJSON:cjson",
585bbf6e98Sopenharmony_ci  "//third_party/mbedtls:mbedtls_shared",
595bbf6e98Sopenharmony_ci  "//third_party/openssl:libcrypto_shared",
605bbf6e98Sopenharmony_ci  "//third_party/openssl:libssl_shared",
615bbf6e98Sopenharmony_ci]
625bbf6e98Sopenharmony_ci
635bbf6e98Sopenharmony_cicore_external_deps = [
645bbf6e98Sopenharmony_ci  "c_utils:utils",
655bbf6e98Sopenharmony_ci  "hilog:libhilog",
665bbf6e98Sopenharmony_ci  "huks:libhukssdk",
675bbf6e98Sopenharmony_ci  "init:libbegetutil",
685bbf6e98Sopenharmony_ci  "syscap_codec:syscap_interface_shared",
695bbf6e98Sopenharmony_ci]
70