1# Copyright (c) 2023 Shenzhen Kaihong DID 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_idl_omx_decode") { 17 include_dirs = [ 18 "./include", 19 "../../../interfaces/include", 20 ] 21 22 sources = [ 23 "src/codec_hdi_callback.cpp", 24 "src/codec_hdi_decode.cpp", 25 "src/command_parse.cpp", 26 ] 27 28 if (is_standard_system) { 29 external_deps = [ 30 "c_utils:utils", 31 "drivers_interface_codec:libcodec_proxy_3.0", 32 "drivers_interface_display:libdisplay_buffer_hdi_impl", 33 "drivers_interface_display:libdisplay_buffer_proxy_1.0", 34 "drivers_interface_display:libdisplay_composer_hdi_impl", 35 "drivers_interface_display:libdisplay_composer_proxy_1.0", 36 "graphic_surface:buffer_handle", 37 "hdf_core:libhdf_host", 38 "hdf_core:libhdf_ipc_adapter", 39 "hdf_core:libhdf_utils", 40 "hdf_core:libhdi", 41 "hilog:libhilog", 42 "ipc:ipc_single", 43 ] 44 } else { 45 external_deps = [ "hilog:libhilog" ] 46 } 47 external_deps += [ "openmax:libopenmax_static" ] 48 install_enable = false 49 install_images = [ chipset_base_dir ] 50 subsystem_name = "hdf" 51 part_name = "drivers_peripheral_codec" 52} 53 54ohos_executable("codec_idl_omx_encode") { 55 include_dirs = [ 56 "./include", 57 "../../../interfaces/include", 58 ] 59 60 sources = [ 61 "src/codec_hdi_callback.cpp", 62 "src/codec_hdi_encode.cpp", 63 "src/command_parse.cpp", 64 ] 65 66 if (is_standard_system) { 67 external_deps = [ 68 "c_utils:utils", 69 "drivers_interface_codec:libcodec_proxy_3.0", 70 "drivers_interface_display:libdisplay_buffer_hdi_impl", 71 "drivers_interface_display:libdisplay_buffer_proxy_1.0", 72 "drivers_interface_display:libdisplay_composer_hdi_impl", 73 "drivers_interface_display:libdisplay_composer_proxy_1.0", 74 "graphic_surface:buffer_handle", 75 "hdf_core:libhdf_host", 76 "hdf_core:libhdf_ipc_adapter", 77 "hdf_core:libhdf_utils", 78 "hdf_core:libhdi", 79 "hilog:libhilog", 80 "ipc:ipc_single", 81 ] 82 } else { 83 external_deps = [ "hilog:libhilog" ] 84 } 85 external_deps += [ "openmax:libopenmax_static" ] 86 install_enable = false 87 install_images = [ chipset_base_dir ] 88 subsystem_name = "hdf" 89 part_name = "drivers_peripheral_codec" 90} 91 92group("codec_idl_omx_demo") { 93 deps = [ 94 ":codec_idl_omx_decode", 95 ":codec_idl_omx_encode", 96 ] 97} 98