1# Copyright (c) 2022-2022 Huawei Device 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("//foundation/multimedia/histreamer/config.gni") 15group("hdi_codec_adapter") { 16 deps = [] 17 if (hst_is_lite_sys) { 18 print("std hdi codec adapter is not available on lite systems") 19 } else { 20 deps += [ ":histreamer_hdi_codec_adapter" ] 21 } 22} 23 24config("hdi_codec_adapter_config") { 25 include_dirs = [ 26 "//foundation/multimedia/histreamer/engine/", 27 "//foundation/multimedia/histreamer/engine/foundation", 28 "//foundation/multimedia/histreamer/engine/plugin", 29 "//foundation/multimedia/histreamer/engine/utils", 30 "//drivers/hdf_core/adapter/uhdf2/osal/include", 31 "//drivers/hdf_core/framework/include/utils", 32 "//drivers/peripheral/base", 33 "//drivers/peripheral/codec/hal/include", 34 "//drivers/peripheral/codec/interfaces/include", 35 "//drivers/peripheral/display/interfaces/include", 36 "//third_party/openmax/api/1.1.2", 37 ] 38} 39 40source_set("std_hdi_codec_adapter") { 41 sources = [ 42 "hdi_adapter.cpp", 43 "hdi_utils.cpp", 44 ] 45 public_deps = [ "//foundation/multimedia/histreamer/engine/foundation:histreamer_foundation" ] 46 public_configs = [ 47 ":hdi_codec_adapter_config", 48 "//foundation/multimedia/histreamer:histreamer_presets", 49 ] 50} 51 52if (hst_is_lite_sys) { 53 print("std hdi codec adapter is not available on lite systems") 54} else { 55 static_library("histreamer_hdi_codec_adapter") { 56 deps = [ 57 ":std_hdi_codec_adapter", 58 "//drivers/peripheral/codec/hal:libcodec_hdi_omx_client", 59 ] 60 } 61} 62