• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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_lite/build/devattestconfig.gni")
15
16sources_common = [
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_common += [
41  "${attest_core_path}/network/attest_coap.c",
42  "${attest_core_path}/network/attest_tls.c",
43]
44
45sources_mock = [
46  "${attest_core_path}/adapter/attest_adapter_hal.c",
47  "${attest_core_path}/adapter/attest_adapter_property.c",
48]
49
50sources_mock += [ "${attest_core_path}/network/attest_channel.c" ]
51
52include_core_dirs = [
53  "${attest_core_path}/include",
54  "${attest_core_path}/include/adapter",
55  "${attest_core_path}/include/attest",
56  "${attest_core_path}/include/dfx",
57  "${attest_core_path}/include/security",
58  "${attest_core_path}/include/network",
59  "${attest_core_path}/include/utils",
60  "${devattest_path}/services/oem_adapter/include",
61  "${devattest_path}/interfaces/innerkits",
62  "//base/startup/init/interfaces/innerkits/include/syspara",
63  "//base/hiviewdfx/hilog_lite/interfaces/native/kits",
64  "//utils/native/lite/include",
65  "//third_party/cJSON",
66  "//third_party/bounds_checking_function/include",
67  "//base/startup/init/interfaces/hals",
68  "//base/startup/init/interfaces/innerkits/include/syspara",
69  "//developtools/syscap_codec/interfaces/inner_api",
70]
71
72include_core_dirs += [
73  "${devattest_path}/services/oem_adapter/include",
74  "${devattest_path}/interfaces/innerkits",
75  "//utils/native/lite/include",
76  "//base/startup/init/interfaces/innerkits/include/syspara",
77  "//base/hiviewdfx/hilog_lite/interfaces/native/kits",
78  "//base/startup/init/interfaces/hals",
79  "//base/startup/init/interfaces/innerkits/include/syspara",
80  "//third_party/cJSON",
81  "//third_party/bounds_checking_function/include",
82  "//developtools/syscap_codec/interfaces/inner_api",
83]
84