# Copyright (c) 2022 Shenzhen Kaihong DID Co., Ltd. # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. group("hdf_demo_codec") { CODEC_OEM_PATH = rebase_path( "//device/soc/${device_company}/${product_name}/hardware/codec") cmd = "if [ -f ${CODEC_OEM_PATH}/BUILD.gn ]; then echo true; else echo false; fi" HAVE_CODEC_OEM_PATH = exec_script("//build/lite/run_shell_cmd.py", [ cmd ], "value") OMX_IL_PATH = rebase_path( "//device/soc/${device_company}/${product_name}/hardware/omx_il") cmd = "if [ -f ${OMX_IL_PATH}/BUILD.gn ]; then echo true; else echo false; fi" HAVE_OMX_IL_PATH = exec_script("//build/lite/run_shell_cmd.py", [ cmd ], "value") testonly = true deps = [] if (HAVE_CODEC_OEM_PATH) { deps += [ "adapter:codec_hdi_adapter_demo", "v1.0:codec_hdi_demo", ] } if (HAVE_OMX_IL_PATH) { deps += [ "v2.0:codec_hdi_omx_demo" ] } }