Files
drivers_peripheral/codec/BUILD.gn
T
0201she 954ceb02a1 feat: add codec adapter build
Signed-off-by: 0201she <sunhehe@huawei.com>
2022-07-30 14:24:53 +08:00

33 lines
1.2 KiB
Plaintext

# Copyright (c) 2021 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.
import("//build/ohos.gni")
import("//drivers/hdf_core/adapter/uhdf2/uhdf.gni")
group("hdf_media_codec") {
deps = [
"hal:codec_hdi_omx",
"hal/passthrough:codec_hdi_passthrough",
"hal/v1.0/buffer_manager:codec_buffer_manager",
]
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")
if (HAVE_OMX_IL_PATH) {
deps += [ "${OMX_IL_PATH}:lib_omx" ]
}
}