• 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")
16
17ohos_shared_library("libcodec_oem_interface") {
18  include_dirs = [
19    "include",
20    "//drivers/peripheral/codec/interfaces/include",
21    "//device/soc/rockchip/rk3588/hardware/mpp/include",
22    "//device/soc/rockchip/rk3588/hardware/rga/include",
23  ]
24  sources = [
25    "src/hdi_mpp.c",
26    "src/hdi_mpp_component_manager.cpp",
27    "src/hdi_mpp_config.c",
28    "src/hdi_mpp_mpi.c",
29  ]
30
31  deps = [
32    "$hdf_uhdf_path/utils:libhdf_utils",
33    "//device/soc/rockchip/rk3588/hardware/rga:librga",
34  ]
35
36  cflags_c = [
37    "-Wno-format",
38    "-Wno-unused-parameter",
39    "-Wno-unused-function",
40    "-Wno-implicit-function-declaration",
41    "-Wno-incompatible-pointer-types",
42    "-Wno-int-conversion",
43    "-Wno-macro-redefined",
44  ]
45
46  if (is_standard_system) {
47    external_deps = [
48      "c_utils:utils",
49      "drivers_peripheral_display:hdi_gralloc_client",
50      "graphic_surface:buffer_handle",
51      "hilog:libhilog",
52      "ipc:ipc_single",
53    ]
54  } else {
55    external_deps = [ "hilog:libhilog" ]
56  }
57
58  install_images = [ chipset_base_dir ]
59  subsystem_name = "hdf"
60  part_name = "device_rk3588"
61}
62
63group("codec_oem_interface") {
64  deps = [
65    ":libcodec_oem_interface",
66    "jpeg:libjpeg_vdi_interface",
67  ]
68}
69