• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright (C) 2022 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
14devattest_path = "//test/xts/device_attest"
15
16devattest_innerkit_path = "${devattest_path}/interfaces/innerkits/"
17
18devattest_kits_path = "${devattest_path}/interfaces/kits/napi"
19
20devattest_fuzz_module_path = "device_attest/device_attest"
21
22devattest_unittest_module_path = "device_attest/device_attest"
23
24# 支持构建种类
25declare_args() {
26  attest_release = "attest_release"
27  attest_debug = "attest_debug"
28}
29
30# 配置构建参数
31declare_args() {
32  # 构建版本
33  attest_build_target = attest_release
34
35  # 模拟网络认证数据开关。true:模拟网络数据; false:访问真实网络数据。
36  enable_attest_test_mock_network = false
37
38  # 模拟设备数据开关。true:模拟设备数据; false:访问真实设备数据。
39  enable_attest_test_mock_device = false
40
41  # 记录内存使用情况的开关,用来检查内存是否存在泄漏。
42  enable_attest_debug_memory_leak = false
43
44  # 打印debug日志开关。true:打印debug日志; false:不打印debug日志。
45  enable_attest_network_debug_log = false
46
47  # 控制测试demo开关
48  enable_attest_test_sample = false
49
50  # 控制DFX开关。 true:开启dfx
51  enable_attest_debug_dfx = false
52
53  # 域名增强关闭
54  disable_attest_active_site = false
55
56  # token预置方案
57  enable_attest_preset_token = false
58}
59
60# 声明通用全局宏
61declare_args() {
62  # 调试debug开关
63  enable_attest_common_debug = false
64}
65
66# 设置通用全局宏
67if (attest_build_target == attest_debug) {
68  enable_attest_common_debug = true
69}
70