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