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