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