10b966c5eSopenharmony_ci# Copyright (c) 2023 Huawei Device Co., Ltd. 20b966c5eSopenharmony_ci# Licensed under the Apache License, Version 2.0 (the "License"); 30b966c5eSopenharmony_ci# you may not use this file except in compliance with the License. 40b966c5eSopenharmony_ci# You may obtain a copy of the License at 50b966c5eSopenharmony_ci# 60b966c5eSopenharmony_ci# http://www.apache.org/licenses/LICENSE-2.0 70b966c5eSopenharmony_ci# 80b966c5eSopenharmony_ci# Unless required by applicable law or agreed to in writing, software 90b966c5eSopenharmony_ci# distributed under the License is distributed on an "AS IS" BASIS, 100b966c5eSopenharmony_ci# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 110b966c5eSopenharmony_ci# See the License for the specific language governing permissions and 120b966c5eSopenharmony_ci# limitations under the License. 130b966c5eSopenharmony_ci 140b966c5eSopenharmony_ciimport("//build/ohos.gni") 150b966c5eSopenharmony_ciimport("//drivers/hdf_core/adapter/uhdf2/uhdf.gni") 160b966c5eSopenharmony_ciimport("$hdf_framework_path/tools/hc-gen/hc_gen.gni") 170b966c5eSopenharmony_ci 180b966c5eSopenharmony_cihc_gen("build_codec_adapter_capabilities") { 190b966c5eSopenharmony_ci sources = [ rebase_path( 200b966c5eSopenharmony_ci "../../hdf_config/uhdf/media_codec/codec_adapter_capabilities.hcs") ] 210b966c5eSopenharmony_ci} 220b966c5eSopenharmony_ci 230b966c5eSopenharmony_ciohos_prebuilt_etc("codec_adapter_capabilities.hcb") { 240b966c5eSopenharmony_ci deps = [ ":build_codec_adapter_capabilities" ] 250b966c5eSopenharmony_ci hcs_outputs = get_target_outputs(":build_codec_adapter_capabilities") 260b966c5eSopenharmony_ci source = hcs_outputs[0] 270b966c5eSopenharmony_ci relative_install_dir = "hdfconfig" 280b966c5eSopenharmony_ci install_images = [ chipset_base_dir ] 290b966c5eSopenharmony_ci subsystem_name = "product_hihope" 300b966c5eSopenharmony_ci part_name = "product_wearable" 310b966c5eSopenharmony_ci} 320b966c5eSopenharmony_ci 330b966c5eSopenharmony_cigroup("hdf_codec_config") { 340b966c5eSopenharmony_ci deps = [ ":codec_adapter_capabilities.hcb" ] 350b966c5eSopenharmony_ci} 36