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 16ohos_executable("codec_hdi_adapter_decode") { 17 include_dirs = [ 18 "./include", 19 "//third_party/openmax/api/1.1.2", 20 ] 21 22 sources = [ 23 "src/codec_hdi_adapter_decode.cpp", 24 "src/command_adapter_parse.cpp", 25 ] 26 27 deps = [ "//third_party/bounds_checking_function:libsec_shared" ] 28 29 if (is_standard_system) { 30 external_deps = [ 31 "c_utils:utils", 32 "drivers_interface_display:hdi_gralloc_client", 33 "drivers_peripheral_codec:libcodec_hdi_passthrough_impl", 34 "graphic_chipsetsdk:buffer_handle", 35 "hdf_core:libhdf_ipc_adapter", 36 "hdf_core:libhdf_utils", 37 "hdf_core:libhdi", 38 "hilog:libhilog", 39 ] 40 } else { 41 external_deps = [ "hilog:libhilog" ] 42 } 43 install_enable = false 44 install_images = [ chipset_base_dir ] 45 subsystem_name = "hdf" 46 part_name = "drivers_peripheral_codec" 47} 48 49ohos_executable("codec_hdi_adapter_encode") { 50 include_dirs = [ 51 "./include", 52 "//third_party/openmax/api/1.1.2", 53 ] 54 55 sources = [ 56 "src/codec_hdi_adapter_encode.cpp", 57 "src/command_adapter_parse.cpp", 58 ] 59 60 deps = [ "//third_party/bounds_checking_function:libsec_shared" ] 61 62 if (is_standard_system) { 63 external_deps = [ 64 "c_utils:utils", 65 "drivers_interface_display:display_buffer_idl_headers", 66 "drivers_interface_display:display_composer_idl_headers", 67 "drivers_interface_display:hdi_gralloc_client", 68 "drivers_interface_display:libdisplay_buffer_hdi_impl", 69 "drivers_interface_display:libdisplay_composer_hdi_impl", 70 "drivers_peripheral_codec:libcodec_hdi_passthrough_impl", 71 "graphic_chipsetsdk:buffer_handle", 72 "hdf_core:libhdf_ipc_adapter", 73 "hdf_core:libhdf_utils", 74 "hdf_core:libhdi", 75 "hilog:libhilog", 76 "ipc:ipc_single", 77 ] 78 } else { 79 external_deps = [ "hilog:libhilog" ] 80 } 81 install_enable = false 82 install_images = [ chipset_base_dir ] 83 subsystem_name = "hdf" 84 part_name = "drivers_peripheral_codec" 85} 86group("codec_hdi_adapter_demo") { 87 deps = [ 88 ":codec_hdi_adapter_decode", 89 ":codec_hdi_adapter_encode", 90 ] 91} 92