• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright (c) 2022 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")
15import("//drivers/adapter/uhdf2/uhdf.gni")
16
17ohos_shared_library("libcodec_hdi_omx_server") {
18  include_dirs = [
19    "//drivers/adapter/uhdf2/include/hdi",
20    "//drivers/peripheral/codec/interfaces/include",
21    "//drivers/peripheral/codec/hal/include",
22    "//third_party/openmax/api/1.1.2",
23  ]
24  sources = [
25    "src/codec_callback_type_proxy.c",
26    "src/codec_component_capability_config.c",
27    "src/codec_component_type_driver.c",
28    "src/codec_component_type_stub.c",
29    "src/codec_config_parser.c",
30    "src/codec_types.c",
31  ]
32
33  if (is_standard_system) {
34    external_deps = [
35      "device_driver_framework:libhdf_host",
36      "device_driver_framework:libhdf_ipc_adapter",
37      "device_driver_framework:libhdf_utils",
38      "device_driver_framework:libhdi",
39      "hiviewdfx_hilog_native:libhilog",
40      "utils_base:utils",
41    ]
42  } else {
43    external_deps = [ "hilog:libhilog" ]
44  }
45
46  install_images = [ chipset_base_dir ]
47  subsystem_name = "hdf"
48  part_name = "codec_device_driver"
49}
50
51ohos_shared_library("libcodec_hdi_omx_client") {
52  include_dirs = [
53    "//drivers/adapter/uhdf2/include/hdi",
54    "//drivers/peripheral/codec/interfaces/include",
55    "//drivers/peripheral/codec/hal/include",
56    "//third_party/openmax/api/1.1.2",
57  ]
58  sources = [
59    "src/codec_callback_type_stub.c",
60    "src/codec_component_manager_proxy.c",
61    "src/codec_component_type_proxy.c",
62    "src/codec_types.c",
63  ]
64
65  if (is_standard_system) {
66    external_deps = [
67      "device_driver_framework:libhdf_host",
68      "device_driver_framework:libhdf_ipc_adapter",
69      "device_driver_framework:libhdf_utils",
70      "device_driver_framework:libhdi",
71      "hiviewdfx_hilog_native:libhilog",
72      "utils_base:utils",
73    ]
74  } else {
75    external_deps = [ "hilog:libhilog" ]
76  }
77
78  install_images = [ chipset_base_dir ]
79  subsystem_name = "hdf"
80  part_name = "codec_device_driver"
81}
82
83ohos_shared_library("libcodec_hdi_omx_service_impl") {
84  include_dirs = [
85    "//drivers/adapter/uhdf2/include/hdi",
86    "//drivers/peripheral/codec/interfaces/include",
87    "//drivers/peripheral/codec/hal/include",
88    "//third_party/openmax/api/1.1.2",
89  ]
90  sources = [ "src/codec_component_type_service.c" ]
91
92  if (is_standard_system) {
93    external_deps = [
94      "device_driver_framework:libhdf_host",
95      "device_driver_framework:libhdf_ipc_adapter",
96      "device_driver_framework:libhdf_utils",
97      "device_driver_framework:libhdi",
98      "hiviewdfx_hilog_native:libhilog",
99      "utils_base:utils",
100    ]
101  } else {
102    external_deps = [ "hilog:libhilog" ]
103  }
104
105  install_images = [ chipset_base_dir ]
106  subsystem_name = "hdf"
107  part_name = "codec_device_driver"
108}
109
110ohos_shared_library("libcodec_hdi_omx_callback_type_service_impl") {
111  include_dirs = [
112    "//drivers/adapter/uhdf2/include/hdi",
113    "//drivers/peripheral/codec/interfaces/include",
114    "//drivers/peripheral/codec/hal/include",
115    "//third_party/openmax/api/1.1.2",
116  ]
117  sources = [ "src/codec_callback_type_service.c" ]
118
119  if (is_standard_system) {
120    external_deps = [
121      "device_driver_framework:libhdf_host",
122      "device_driver_framework:libhdf_ipc_adapter",
123      "device_driver_framework:libhdf_utils",
124      "device_driver_framework:libhdi",
125      "hiviewdfx_hilog_native:libhilog",
126      "utils_base:utils",
127    ]
128  } else {
129    external_deps = [ "hilog:libhilog" ]
130  }
131
132  install_images = [ chipset_base_dir ]
133  subsystem_name = "hdf"
134  part_name = "codec_device_driver"
135}
136
137group("codec_hdi_omx") {
138  deps = [
139    ":libcodec_hdi_omx_callback_type_service_impl",
140    ":libcodec_hdi_omx_client",
141    ":libcodec_hdi_omx_server",
142    ":libcodec_hdi_omx_service_impl",
143  ]
144}
145