1# Copyright (c) 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_shared_library("libcodec_image_service_1.0") { 17 include_dirs = [ 18 "../utils/include", 19 "config/", 20 "vdi", 21 "jpeg/include", 22 "hdi_service/include", 23 ] 24 sources = [ 25 "config/codec_image_config.cpp", 26 "hdi_service/src/codec_image_service.cpp", 27 "jpeg/src/codec_jpeg_core.cpp", 28 "jpeg/src/codec_jpeg_service.cpp", 29 ] 30 defines = [ "LOG_TAG_IMAGE" ] 31 if (is_standard_system) { 32 external_deps = [ 33 "c_utils:utils", 34 "drivers_interface_codec:image_idl_headers", 35 "graphic_surface:buffer_handle", 36 "hdf_core:libhdf_utils", 37 "hdf_core:libhdi", 38 "hilog:libhilog", 39 "hitrace:hitrace_meter", 40 "ipc:ipc_single", 41 ] 42 } else { 43 external_deps = [ "hilog:libhilog" ] 44 } 45 46 install_images = [ chipset_base_dir ] 47 subsystem_name = "hdf" 48 part_name = "drivers_peripheral_codec" 49} 50 51ohos_shared_library("libcodec_image_driver") { 52 include_dirs = [ 53 "../utils/include", 54 "config/", 55 "hdi_service/include", 56 ] 57 58 sources = [ "hdi_service/src/codec_image_driver.cpp" ] 59 60 deps = [ ":libcodec_image_service_1.0" ] 61 62 defines = [ "LOG_TAG_IMAGE" ] 63 64 if (is_standard_system) { 65 external_deps = [ 66 "c_utils:utils", 67 "drivers_interface_codec:image_idl_headers", 68 "drivers_interface_codec:libimage_stub_1.0", 69 "graphic_surface:buffer_handle", 70 "hdf_core:libhdf_host", 71 "hdf_core:libhdf_ipc_adapter", 72 "hdf_core:libhdf_utils", 73 "hdf_core:libhdi", 74 "hilog:libhilog", 75 "ipc:ipc_single", 76 ] 77 } else { 78 external_deps = [ "hilog:libhilog" ] 79 } 80 81 install_images = [ chipset_base_dir ] 82 subsystem_name = "hdf" 83 part_name = "drivers_peripheral_codec" 84 shlib_type = "hdi" 85} 86 87group("codec_image_service") { 88 deps = [ 89 ":libcodec_image_driver", 90 ":libcodec_image_service_1.0", 91 ] 92} 93