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 14hdf_fuzztest_path = "./../.." 15hdf_test_path = "./../../.." 16hdf_audio_path = "./../../../.." 17 18import("//build/config/features.gni") 19import("//build/ohos.gni") 20import("//build/test.gni") 21import("$hdf_audio_path/audio.gni") 22 23module_output_path = "drivers_peripheral_audio/drivers_peripheral_audio" 24 25ohos_fuzztest("AudioAdmDispatcherControlCmdidFuzzTest") { 26 module_out_path = module_output_path 27 fuzz_config_file = "../audioadmdispatchercontrolcmdid_fuzzer" 28 29 include_dirs = [] 30 cflags = [ 31 "-g", 32 "-O0", 33 "-Wno-unused-variable", 34 "-fno-omit-frame-pointer", 35 ] 36 37 sources = [ 38 "../../../systemtest/common/adm_common/src/audio_adm_common.cpp", 39 "../../../systemtest/common/hdi_common/src/audio_hdi_common.cpp", 40 "audioadmdispatchercontrolcmdid_fuzzer.cpp", 41 ] 42 include_dirs = [ 43 "$hdf_audio_path/interfaces/include", 44 "$hdf_audio_path/hal/hdi_passthrough/include", 45 "./", 46 "$hdf_fuzztest_path/common/include", 47 "$hdf_test_path/systemtest/common/hdi_common/include", 48 "$hdf_test_path/systemtest/common/adm_common/include", 49 "//third_party/googletest/googletest/include", 50 ] 51 external_deps = [ "hdf_core:libhdf_utils" ] 52 if (defined(ohos_lite)) { 53 external_deps += [ "hilog_lite:hilog_share" ] 54 } else { 55 external_deps += [ "hilog:libhilog" ] 56 } 57 if (enable_c_utils) { 58 external_deps += [ "c_utils:utils" ] 59 } 60 external_deps += [ "bounds_checking_function:libsec_shared" ] 61 defines = [] 62 if (enable_audio_adm_passthrough) { 63 defines += [ "AUDIO_ADM_SO" ] 64 } 65 if (enable_audio_adm_service) { 66 defines += [ "AUDIO_ADM_SERVICE" ] 67 } 68} 69