1# Copyright (C) 2021 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 14hiperf_path = "//developtools/hiperf" 15 16innerkits_path = "${hiperf_path}/interfaces/innerkits" 17 18kits_path = "${hiperf_path}/interfaces/kits" 19 20declare_args() { 21 hiperf_target_host = false 22 hiperf_target_static = false 23 hiperf_test_coverage = false 24 hiperf_test_fuzz = true 25 hiperf_sanitize = false 26 hiperf_check_time = false 27 hiperf_use_libunwind = true 28 hiperf_debug = true 29 hiperf_code_analyze = false 30 hiperf_use_syspara = true 31} 32 33code_check_flag = [] 34 35code_analyze_flag = [ 36 "--analyze", 37 "-Xanalyzer", 38 "-analyzer-checker=cplusplus", 39 "-Xanalyzer", 40 "-analyzer-checker=core", 41 "-Xanalyzer", 42 "-analyzer-checker=security", 43 "-Xanalyzer", 44 "-analyzer-checker=unix", 45] 46 47if (is_double_framework && target_cpu == "arm64") { 48 # format specifies type 'long' but the argument has type 49 # 'std::__1::chrono::duration<long long, std::__1::ratio<1, 1000> >::rep' (aka 'long long') 50 # [-Werror,-Wformat] 51 code_check_flag += [ "-Wno-format" ] 52} 53