1# Copyright (C) 2021-2023 HiHope Open Source Organization . 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_source_set("rockchip_vpu_src") { 17 sources = [ 18 "rk_list.cpp", 19 "vpu.c", 20 "vpu_api.cpp", 21 "vpu_api_legacy.cpp", 22 "vpu_api_mlvec.cpp", 23 "vpu_mem_legacy.c", 24 ] 25 26 cflags_c = [ 27 "-Wall", 28 "-Wextra", 29 "-Werror", 30 "-Wno-format", 31 ] 32 33 cflags_cc = [ 34 "-Wall", 35 "-Wextra", 36 "-Werror", 37 "-Wno-predefined-identifier-outside-function", 38 "-Wno-macro-redefined", 39 "-Wno-format-extra-args", 40 "-Wno-format", 41 "-DHAVE_CONFIG_H", 42 "-DMPP_VERSION=\"1.3.7\"", 43 "-DMPP_VER_HIST_CNT=0", 44 "-DMPP_VER_HIST_0=\"version_0\"", 45 "-DMPP_VER_HIST_1=\"version_1\"", 46 "-DMPP_VER_HIST_2=\"version_2\"", 47 "-DMPP_VER_HIST_3=\"version_3\"", 48 "-DMPP_VER_HIST_4=\"version_4\"", 49 "-DMPP_VER_HIST_5=\"version_5\"", 50 "-DMPP_VER_HIST_6=\"version_6\"", 51 "-DMPP_VER_HIST_7=\"version_7\"", 52 "-DMPP_VER_HIST_8=\"version_8\"", 53 "-DMPP_VER_HIST_9=\"version_9\"", 54 ] 55 56 include_dirs = [ 57 "./inc", 58 "//device/soc/rockchip/rk3568/hardware/mpp/mpp/hdi_mpp", 59 "//device/soc/rockchip/rk3568/hardware/mpp/include", 60 "//device/soc/rockchip/rk3568/hardware/mpp/include", 61 "//commonlibrary/c_utils/base/include", 62 ] 63 64 deps = [ 65 "//base/hiviewdfx/hilog/interfaces/native/innerkits:libhilog", 66 "//device/soc/rockchip/rk3568/hardware/mpp/mpp/hdi_mpp:hdi_mpp", 67 ] 68 external_deps = [ 69 "c_utils:utils", 70 "hdf_core:libhdf_utils", 71 ] 72} 73 74ohos_shared_library("librockchip_vpu") { 75 deps = [ ":rockchip_vpu_src" ] 76 innerapi_tags = [ "passthrough_indirect" ] 77 install_images = [ chipset_base_dir ] 78 subsystem_name = "hdf" 79 part_name = "rockchip_products" 80} 81