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("plugin_standard_audio_capture") { 16 deps = [] 17 if (hst_is_lite_sys) { 18 print("std audio capture plugin is not available on lite systems") 19 } else { 20 deps += [ ":histreamer_plugin_StdAudioCapture" ] 21 } 22} 23 24ohos_source_set("std_audio_capture") { 25 subsystem_name = "multimedia" 26 part_name = "histreamer" 27 sources = [ 28 "audio_capture_plugin.cpp", 29 "audio_type_translate.cpp", 30 ] 31 public_deps = [ 32 "//foundation/multimedia/histreamer/engine/foundation:histreamer_foundation", 33 "//foundation/multimedia/histreamer/engine/plugin:histreamer_plugin_base", 34 ] 35 if (!hst_is_lite_sys) { 36 external_deps = [ "graphic_2d:surface" ] 37 } 38 public_configs = [ "//foundation/multimedia/histreamer:histreamer_presets" ] 39 if (hst_is_lite_sys) { 40 print("std audio capture plugin is not available on lite systems") 41 } else { 42 include_dirs = [ 43 "//foundation/multimedia/audio_framework/interfaces/inner_api/native/audiocommon/include", 44 "//foundation/multimedia/histreamer/engine/include", 45 "//commonlibrary/c_utils/base/include/", 46 ] 47 public_configs += [ "//foundation/multimedia/audio_framework/frameworks/native/audiocapturer:audio_capturer_config" ] 48 } 49} 50 51if (hst_is_lite_sys) { 52 print("std audio capture plugin is not available on lite systems") 53} else { 54 import("//build/ohos.gni") 55 ohos_shared_library("histreamer_plugin_StdAudioCapture") { 56 sanitize = { 57 cfi = true 58 cfi_cross_dso = true 59 debug = false 60 integer_overflow = true 61 } 62 deps = [ ":std_audio_capture" ] 63 external_deps = [ "audio_framework:audio_capturer" ] 64 relative_install_dir = "media/histreamer_plugins" 65 subsystem_name = "multimedia" 66 part_name = "histreamer" 67 } 68} 69