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 20hiperf_fuzz_test_output_path = "hiperf/hiperf" 21 22declare_args() { 23 hiperf_target_host = false 24 hiperf_target_static = false 25 hiperf_test_coverage = false 26 hiperf_test_fuzz = true 27 hiperf_sanitize = false 28 hiperf_check_time = false 29 hiperf_use_libunwind = false 30 hiperf_use_libunwinder = true 31 hiperf_debug = true 32 hiperf_code_analyze = false 33 hiperf_use_syspara = true 34 hiperf_independent_compilation = true 35 bundle_framework_enable = false 36 ability_base_enable = false 37 if (defined(global_parts_info) && 38 defined(global_parts_info.bundlemanager_bundle_framework)) { 39 bundle_framework_enable = true 40 } 41 if (defined(global_parts_info) && 42 defined(global_parts_info.ability_ability_base)) { 43 ability_base_enable = true 44 } 45} 46 47code_check_flag = [] 48 49code_analyze_flag = [ 50 "--analyze", 51 "-Xanalyzer", 52 "-analyzer-checker=cplusplus", 53 "-Xanalyzer", 54 "-analyzer-checker=core", 55 "-Xanalyzer", 56 "-analyzer-checker=security", 57 "-Xanalyzer", 58 "-analyzer-checker=unix", 59] 60 61if (is_double_framework && target_cpu == "arm64") { 62 # format specifies type 'long' but the argument has type 63 # 'std::__1::chrono::duration<long long, std::__1::ratio<1, 1000> >::rep' (aka 'long long') 64 # [-Werror,-Wformat] 65 code_check_flag += [ "-Wno-format" ] 66} 67