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# 14 15group("plugin_standard_audio_capture") { 16 deps = [] 17 if (defined(ohos_lite)) { 18 print("std audio capture plugin is not available on lite systems") 19 } else { 20 deps += [ ":histreamer_plugin_StdAudioCapture" ] 21 } 22} 23 24source_set("std_audio_capture") { 25 sources = [ 26 "audio_capture_plugin.cpp", 27 "audio_type_translate.cpp", 28 ] 29 public_deps = [ 30 "//foundation/multimedia/histreamer/engine/foundation:histreamer_foundation", 31 "//foundation/multimedia/histreamer/engine/plugin:histreamer_plugin_intf", 32 "//foundation/multimedia/histreamer/engine/utils:histreamer_utils", 33 ] 34 cflags = [ 35 "-fPIC", 36 "-Wall", 37 ] 38 if (defined(ohos_lite)) { 39 print("std audio capture plugin is not available on lite systems") 40 } else { 41 include_dirs = [ 42 "//foundation/multimedia/audio_standard/interfaces/innerkits/native/audiocommon/include", 43 "//utils/native/base/include/", 44 ] 45 public_deps += [ "//foundation/multimedia/audio_standard/interfaces/innerkits/native/audiocapturer:audio_capturer" ] 46 configs += [ "//foundation/multimedia/audio_standard/interfaces/innerkits/native/audiocapturer:audio_capturer_config" ] 47 configs -= [ 48 "//build/config/compiler:no_rtti", 49 "//build/config/compiler:no_exceptions", 50 ] 51 cflags += [ 52 "-frtti", 53 "-fexceptions", 54 ] 55 } 56 cflags_cc = cflags 57} 58 59if (defined(ohos_lite)) { 60 print("std audio capture plugin is not available on lite systems") 61} else { 62 import("//build/ohos.gni") 63 ohos_shared_library("histreamer_plugin_StdAudioCapture") { 64 deps = [ ":std_audio_capture" ] 65 relative_install_dir = "media/histreamer_plugins" 66 subsystem_name = "multimedia" 67 part_name = "multimedia_histreamer" 68 } 69} 70