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