1# Copyright (c) 2021-2021 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# 14 15group("plugin_hdi_adapter") { 16 deps = [] 17 if (defined(ohos_lite)) { 18 deps += [ ":histreamer_plugin_HdiAuSink" ] 19 } else { 20 print("plugin_hdi_adapter is not available on standard systems") 21 } 22} 23 24if (defined(ohos_lite)) { 25 import("//build/lite/config/component/lite_component.gni") 26 plugin_hdi_adapter_src = [ 27 "sink/hos_au_sink.cpp", 28 "utils/hdi_au_utils.cpp", 29 ] 30 config("plugin_hdi_adapter_config") { 31 include_dirs = [ "//drivers/peripheral/audio/interfaces/include" ] 32 ldflags = [ "-lhdi_videodisplayer" ] 33 } 34 35 lite_library("histreamer_plugin_HdiAuSink") { 36 if (ohos_kernel_type == "liteos_m") { 37 target_type = "static_library" 38 } else { 39 target_type = "shared_library" 40 } 41 sources = plugin_hdi_adapter_src 42 public_configs = [ ":plugin_hdi_adapter_config" ] 43 public_deps = [ 44 "//foundation/multimedia/histreamer/engine/foundation:histreamer_foundation", 45 "//foundation/multimedia/histreamer/engine/plugin:histreamer_plugin_intf", 46 "//foundation/multimedia/histreamer/engine/utils:histreamer_utils", 47 ] 48 } 49} else { 50 print("plugin_hdi_adapter is not available on standard systems") 51} 52