• 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")
15
16ohos_executable("codec_hdi_omx_decode") {
17  include_dirs = [
18    "./include",
19    "//third_party/openmax/api/1.1.2",
20  ]
21
22  sources = [
23    "src/codec_hdi_decode.cpp",
24    "src/codec_packet_reader.cpp",
25    "src/command_parse.cpp",
26  ]
27
28  deps = [ "//third_party/bounds_checking_function:libsec_shared" ]
29
30  if (is_standard_system) {
31    external_deps = [
32      "c_utils:utils",
33      "drivers_interface_display:display_buffer_idl_headers",
34      "drivers_interface_display:display_composer_idl_headers",
35      "drivers_interface_display:libdisplay_buffer_hdi_impl",
36      "drivers_interface_display:libdisplay_composer_hdi_impl",
37      "drivers_peripheral_codec:libcodec_hdi_omx_client",
38      "graphic_chipsetsdk:buffer_handle",
39      "hdf_core:libhdf_ipc_adapter",
40      "hdf_core:libhdf_utils",
41      "hdf_core:libhdi",
42      "hilog:libhilog",
43      "ipc:ipc_single",
44    ]
45  } else {
46    external_deps = [ "hilog:libhilog" ]
47  }
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_hdi_omx_encode") {
55  include_dirs = [
56    "./include",
57    "//third_party/openmax/api/1.1.2",
58  ]
59
60  sources = [
61    "src/codec_hdi_encode.cpp",
62    "src/command_parse.cpp",
63  ]
64
65  deps = [ "//third_party/bounds_checking_function:libsec_shared" ]
66
67  if (is_standard_system) {
68    external_deps = [
69      "c_utils:utils",
70      "drivers_interface_display:display_buffer_idl_headers",
71      "drivers_interface_display:display_composer_idl_headers",
72      "drivers_interface_display:libdisplay_buffer_hdi_impl",
73      "drivers_interface_display:libdisplay_composer_hdi_impl",
74      "drivers_peripheral_codec:libcodec_hdi_omx_client",
75      "graphic_chipsetsdk:buffer_handle",
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  install_enable = false
86  install_images = [ chipset_base_dir ]
87  subsystem_name = "hdf"
88  part_name = "drivers_peripheral_codec"
89}
90group("codec_hdi_omx_demo") {
91  deps = [
92    ":codec_hdi_omx_decode",
93    ":codec_hdi_omx_encode",
94  ]
95}
96