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 20# 支持构建种类 21declare_args() { 22 attest_release = "attest_release" 23 attest_debug = "attest_debug" 24} 25 26# 配置构建参数 27declare_args() { 28 # 构建版本 29 attest_build_target = attest_release 30 31 # 模拟网络认证数据开关。true:模拟网络数据; false:访问真实网络数据。 32 enable_attest_test_mock_network = false 33 34 # 模拟设备数据开关。true:模拟设备数据; false:访问真实设备数据。 35 enable_attest_test_mock_device = false 36 37 # 记录内存使用情况的开关,用来检查内存是否存在泄漏。 38 enable_attest_debug_memory_leak = false 39 40 # 打印debug日志开关。true:打印debug日志; false:不打印debug日志。 41 enable_attest_network_debug_log = false 42 43 # 控制测试demo开关 44 enable_attest_test_sample = false 45 46 # 控制DFX开关。 true:开启dfx 47 enable_attest_debug_dfx = false 48} 49 50# 声明通用全局宏 51declare_args() { 52 # 调试debug开关 53 enable_attest_common_debug = false 54} 55 56# 设置通用全局宏 57if (attest_build_target == attest_debug) { 58 enable_attest_common_debug = true 59}