1# Copyright (c) 2021 Shenzhen Kaihong DID 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_unittest_codec") { 15 CODEC_OEM_PATH = rebase_path( 16 "//device/soc/${device_company}/${product_name}/hardware/codec") 17 cmd = "if [ -f ${CODEC_OEM_PATH}/BUILD.gn ]; then echo true; else echo false; fi" 18 HAVE_CODEC_OEM_PATH = 19 exec_script("//build/lite/run_shell_cmd.py", [ cmd ], "value") 20 21 OMX_IL_PATH = rebase_path( 22 "//device/soc/${device_company}/${product_name}/hardware/omx_il") 23 cmd = "if [ -f ${OMX_IL_PATH}/BUILD.gn ]; then echo true; else echo false; fi" 24 HAVE_OMX_IL_PATH = 25 exec_script("//build/lite/run_shell_cmd.py", [ cmd ], "value") 26 27 testonly = true 28 deps = [] 29 if (HAVE_CODEC_OEM_PATH) { 30 deps += [ 31 "hdi_adapter:codec_hdi_adapter_test", 32 "hdi_v1.0:codec_client_test", 33 ] 34 } 35 if (HAVE_OMX_IL_PATH) { 36 deps += [ "hdi_omx:codec_hdi_2.0_test" ] 37 } 38} 39