1# Copyright (c) 2022-2023 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 14import("//build/ohos.gni") 15 16config("headers_config") { 17 include_dirs = [ "../../interfaces/include" ] 18} 19 20ohos_shared_library("libcodec_hdi_passthrough_impl") { 21 include_dirs = [ 22 "../../hal/include", 23 "../../hal/passthrough/adapter/include", 24 "../../hal/passthrough/include", 25 "../../hal/v1.0/codec_instance/include", 26 "../../hal/v1.0/share_mem/include", 27 "../../hal/v1.0/oem_interface/include", 28 "../../hal/v1.0/buffer_manager/include", 29 "../../utils/include", 30 "//third_party/openmax/api/1.1.2", 31 ] 32 33 public_configs = [ ":headers_config" ] 34 35 sources = [ 36 "../../hdi_service/codec_service_stub/codec_service.c", 37 "../src/codec_component_capability_config.c", 38 "../src/codec_config_parser.c", 39 "../v1.0/buffer_manager/src/buffer_manager.cpp", 40 "../v1.0/buffer_manager/src/buffer_manager_wrapper.cpp", 41 "../v1.0/codec_instance/src/codec_instance.c", 42 "../v1.0/codec_instance/src/codec_instance_manager.cpp", 43 "../v1.0/share_mem/src/ashmem_wrapper.cpp", 44 "../v1.0/share_mem/src/share_mem.c", 45 "adapter/src/component_common.cpp", 46 "adapter/src/component_manager.cpp", 47 "adapter/src/component_node.cpp", 48 "src/codec_adapter.cpp", 49 "src/codec_callback_if.c", 50 "src/codec_capability_parser.c", 51 "src/codec_component_capability.c", 52 "src/codec_component_if.c", 53 "src/codec_component_manager.c", 54 ] 55 defines = [ 56 "CODEC_HAL_PASSTHROUGH", 57 "LOG_TAG_PASSTHROUGH", 58 ] 59 60 if (is_standard_system) { 61 external_deps = [ 62 "c_utils:utils", 63 "drivers_interface_display:hdi_gralloc_client", 64 "graphic_chipsetsdk:buffer_handle", 65 "hdf_core:libhdf_utils", 66 "hilog:libhilog", 67 ] 68 } else { 69 external_deps = [ "hilog:libhilog" ] 70 } 71 72 install_images = [ chipset_base_dir ] 73 subsystem_name = "hdf" 74 part_name = "drivers_peripheral_codec" 75} 76 77group("codec_hdi_passthrough") { 78 deps = [ ":libcodec_hdi_passthrough_impl" ] 79} 80