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 14group("hdf_fuzztest_media_codec") { 15 testonly = true 16 deps = [ 17 "//drivers/peripheral/codec/test/fuzztest/codecallocatebuffer_fuzzer:fuzztest", 18 "//drivers/peripheral/codec/test/fuzztest/codecfreebuffer_fuzzer:fuzztest", 19 "//drivers/peripheral/codec/test/fuzztest/codecsetcallbacks_fuzzer:fuzztest", 20 "//drivers/peripheral/codec/test/fuzztest/codecusebuffer_fuzzer:fuzztest", 21 ] 22 23 OMX_IL_PATH = rebase_path( 24 "//device/soc/${device_company}/${product_name}/hardware/omx_il") 25 cmd = "if [ -f ${OMX_IL_PATH}/BUILD.gn ]; then echo true; else echo false; fi" 26 HAVE_OMX_IL_PATH = 27 exec_script("//build/lite/run_shell_cmd.py", [ cmd ], "value") 28 29 if (HAVE_OMX_IL_PATH) { 30 deps += [ 31 "//drivers/peripheral/codec/test/fuzztest/codec_fuzzer:fuzztest", 32 "//drivers/peripheral/codec/test/fuzztest/codeccomponentroleenum_fuzzer:fuzztest", 33 "//drivers/peripheral/codec/test/fuzztest/codeccomponenttunnelrequest_fuzzer:fuzztest", 34 "//drivers/peripheral/codec/test/fuzztest/codeccreatecomponent_fuzzer:fuzztest", 35 "//drivers/peripheral/codec/test/fuzztest/codecgetconfig_fuzzer:fuzztest", 36 "//drivers/peripheral/codec/test/fuzztest/codecgetextensionIndex_fuzzer:fuzztest", 37 "//drivers/peripheral/codec/test/fuzztest/codecgetparameter_fuzzer:fuzztest", 38 "//drivers/peripheral/codec/test/fuzztest/codecsendcommand_fuzzer:fuzztest", 39 "//drivers/peripheral/codec/test/fuzztest/codecsetconfig_fuzzer:fuzztest", 40 "//drivers/peripheral/codec/test/fuzztest/codecsetparameter_fuzzer:fuzztest", 41 "//drivers/peripheral/codec/test/fuzztest/codecuseeglimage_fuzzer:fuzztest", 42 ] 43 } 44} 45