1# Copyright (C) 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("//build/ohos.gni") 15 16config("gst_audio_capture_src_config") { 17 visibility = [ ":*" ] 18 19 cflags = [ 20 "-fno-rtti", 21 "-fno-exceptions", 22 "-Wall", 23 "-fno-common", 24 "-fstack-protector-strong", 25 "-Wshadow", 26 "-FPIC", 27 "-FS", 28 "-O2", 29 "-D_FORTIFY_SOURCE=2", 30 "-fvisibility=hidden", 31 "-Wformat=2", 32 "-Wfloat-equal", 33 "-Wdate-time", 34 ] 35 36 include_dirs = [ 37 "include", 38 "//utils/native/base/include", 39 "//foundation/multimedia/media_standard/services/utils/include", 40 "//foundation/multimedia/media_standard/interfaces/innerkits/native/media/include", 41 "//foundation/multimedia/media_standard/services/engine/gstreamer/plugins/common", 42 "//foundation/multimedia/audio_standard/frameworks/innerkitsimpl/common/include", 43 "//foundation/multimedia/audio_standard/interfaces/inner_api/native/audiocommon/include", 44 "//foundation/multimedia/audio_standard/interfaces/inner_api/native/audiomanager/include", 45 "//foundation/multimedia/audio_standard/interfaces/inner_api/native/audiopolicy/include", 46 "//foundation/multimedia/audio_standard/interfaces/inner_api/native/audiosession/include", 47 "//foundation/multimedia/audio_standard/interfaces/inner_api/native/audiostream/include", 48 "//foundation/multimedia/audio_standard/interfaces/inner_api/native/audiocapturer/include", 49 "//foundation/multimedia/audio_standard/services/include", 50 "//foundation/multimedia/audio_standard/services/include/client", 51 "//third_party/gstreamer/gstreamer", 52 "//third_party/gstreamer/gstreamer/libs", 53 "//third_party/gstreamer/gstplugins_base", 54 "//third_party/gstreamer/gstplugins_base/gst-libs", 55 "//third_party/glib/glib", 56 "//third_party/glib", 57 "//third_party/glib/gmodule", 58 ] 59} 60 61ohos_shared_library("gst_audio_capture_src") { 62 install_enable = true 63 64 sources = [ 65 "src/audio_capture_as_impl.cpp", 66 "src/audio_capture_factory.cpp", 67 "src/gst_audio_capture_src.cpp", 68 ] 69 70 configs = [ ":gst_audio_capture_src_config" ] 71 72 deps = [ 73 "//foundation/multimedia/audio_standard/interfaces/inner_api/native/audiocapturer:audio_capturer", 74 "//third_party/glib:glib", 75 "//third_party/glib:gmodule", 76 "//third_party/glib:gobject", 77 "//third_party/gstreamer/gstplugins_base:gstaudio", 78 "//third_party/gstreamer/gstreamer:gstbase", 79 "//third_party/gstreamer/gstreamer:gstreamer", 80 "//utils/native/base:utils", 81 ] 82 83 external_deps = [ "hiviewdfx_hilog_native:libhilog" ] 84 85 relative_install_dir = "media/plugins" 86 subsystem_name = "multimedia" 87 part_name = "multimedia_media_standard" 88} 89