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") 15if (!hst_is_lite_sys) { 16 group("plugin_audio_server_sink") { 17 deps = [ ":histreamer_plugin_AudioServerSink" ] 18 } 19 20 ohos_source_set("audio_server_sink") { 21 subsystem_name = "multimedia" 22 part_name = "histreamer" 23 include_dirs = [ 24 "//foundation/multimedia/histreamer/engine/include/", 25 "//foundation/multimedia/histreamer/engine/plugin/", 26 ] 27 sources = [ "audio_server_sink_plugin.cpp" ] 28 public_deps = [ 29 "//foundation/multimedia/histreamer/engine/foundation:histreamer_foundation", 30 "//foundation/multimedia/histreamer/engine/plugin:histreamer_ffmpeg_convert", 31 "//foundation/multimedia/histreamer/engine/plugin:histreamer_plugin_base", 32 ] 33 external_deps = [ "graphic_2d:surface" ] 34 public_configs = [ 35 "//foundation/multimedia/histreamer:histreamer_presets", 36 "//foundation/multimedia/audio_framework/frameworks/native/audiorenderer:audio_renderer_config", 37 ] 38 } 39 40 # only for standard 41 import("//build/ohos.gni") 42 ohos_shared_library("histreamer_plugin_AudioServerSink") { 43 sanitize = { 44 cfi = true 45 cfi_cross_dso = true 46 debug = false 47 integer_overflow = true 48 } 49 deps = [ ":audio_server_sink" ] 50 external_deps = [ "audio_framework:audio_renderer" ] 51 relative_install_dir = "media/histreamer_plugins" 52 subsystem_name = "multimedia" 53 part_name = "histreamer" 54 } 55} 56