• 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/hdf_core/adapter/uhdf2/uhdf.gni")
16ohos_executable("codec_hdi_omx_decode") {
17  include_dirs = [
18    "./include",
19    "//drivers/peripheral/codec/hal/include",
20    "//drivers/hdf_core/adapter/uhdf2/include/hdi",
21    "//drivers/peripheral/codec/omx/include",
22    "//drivers/peripheral/codec/interfaces/include",
23    "//third_party/openmax/api/1.1.2",
24    "//drivers/peripheral/display/hdi_service/gralloc/include",
25  ]
26
27  sources = [
28    "src/codec_hdi_decode.cpp",
29    "src/command_parse.cpp",
30  ]
31
32  deps = [
33    "//drivers/hdf_core/adapter/uhdf2/hdi:libhdi",
34    "//drivers/hdf_core/adapter/uhdf2/host:libhdf_host",
35    "//drivers/hdf_core/adapter/uhdf2/ipc:libhdf_ipc_adapter",
36    "//drivers/hdf_core/adapter/uhdf2/utils:libhdf_utils",
37    "//drivers/peripheral/codec/hal:libcodec_hdi_omx_callback_type_service_impl",
38    "//drivers/peripheral/codec/hal:libcodec_hdi_omx_client",
39    "//third_party/bounds_checking_function:libsec_shared",
40  ]
41
42  if (is_standard_system) {
43    external_deps = [
44      "c_utils:utils",
45      "drivers_peripheral_display:hdi_gralloc_client",
46      "graphic_chipsetsdk:buffer_handle",
47      "hiviewdfx_hilog_native:libhilog",
48    ]
49  } else {
50    external_deps = [ "hilog:libhilog" ]
51  }
52  install_enable = false
53  install_images = [ chipset_base_dir ]
54  subsystem_name = "hdf"
55  part_name = "drivers_peripheral_codec"
56}
57
58ohos_executable("codec_hdi_omx_encode") {
59  include_dirs = [
60    "./include",
61    "//drivers/peripheral/codec/hal/include",
62    "//drivers/hdf_core/adapter/uhdf2/include/hdi",
63    "//drivers/peripheral/codec/omx/include",
64    "//drivers/peripheral/codec/interfaces/include",
65    "//third_party/openmax/api/1.1.2",
66    "//drivers/peripheral/display/hdi_service/gralloc/include",
67  ]
68
69  sources = [
70    "src/codec_hdi_encode.cpp",
71    "src/command_parse.cpp",
72  ]
73
74  deps = [
75    "//drivers/hdf_core/adapter/uhdf2/hdi:libhdi",
76    "//drivers/hdf_core/adapter/uhdf2/host:libhdf_host",
77    "//drivers/hdf_core/adapter/uhdf2/ipc:libhdf_ipc_adapter",
78    "//drivers/hdf_core/adapter/uhdf2/utils:libhdf_utils",
79    "//drivers/peripheral/codec/hal:libcodec_hdi_omx_callback_type_service_impl",
80    "//drivers/peripheral/codec/hal:libcodec_hdi_omx_client",
81    "//third_party/bounds_checking_function:libsec_shared",
82  ]
83
84  if (is_standard_system) {
85    external_deps = [
86      "c_utils:utils",
87      "drivers_peripheral_display:hdi_gralloc_client",
88      "graphic_chipsetsdk:buffer_handle",
89      "hiviewdfx_hilog_native:libhilog",
90    ]
91  } else {
92    external_deps = [ "hilog:libhilog" ]
93  }
94  install_enable = false
95  install_images = [ chipset_base_dir ]
96  subsystem_name = "hdf"
97  part_name = "drivers_peripheral_codec"
98}
99group("codec_hdi_omx_demo") {
100  deps = [
101    ":codec_hdi_omx_decode",
102    ":codec_hdi_omx_encode",
103  ]
104}
105