• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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    "-Werror",
35    "-Wextra",
36    "-Wimplicit-fallthrough",
37    "-Wsign-compare",
38    "-Wunused-parameter",
39  ]
40
41  include_dirs = [
42    "include",
43    "//commonlibrary/c_utils/base/include",
44    "//foundation/multimedia/player_framework/services/utils/include",
45    "//foundation/multimedia/player_framework/interfaces/inner_api/native",
46    "//foundation/multimedia/player_framework/services/engine/gstreamer/plugins/common",
47    "//third_party/gstreamer/gstreamer",
48    "//third_party/gstreamer/gstreamer/libs",
49    "//third_party/gstreamer/gstplugins_base",
50    "//third_party/gstreamer/gstplugins_base/gst-libs",
51    "//third_party/glib/glib",
52    "//third_party/glib",
53    "//third_party/glib/gmodule",
54  ]
55}
56
57ohos_shared_library("gst_audio_capture_src") {
58  install_enable = true
59
60  sanitize = {
61    cfi = true
62    cfi_cross_dso = true
63    debug = false
64    blocklist = "../../../../../../cfi_blocklist.txt"
65  }
66
67  sources = [
68    "src/audio_capture_as_impl.cpp",
69    "src/audio_capture_factory.cpp",
70    "src/gst_audio_capture_src.cpp",
71  ]
72
73  configs = [
74    ":gst_audio_capture_src_config",
75    "//foundation/multimedia/player_framework/services/dfx:media_service_log_dfx_public_config",
76  ]
77
78  deps = [
79    "../../../../../utils:media_service_utils",
80    "//foundation/multimedia/player_framework/services/dfx:media_service_log_dfx",
81    "//third_party/glib:glib",
82    "//third_party/glib:gmodule",
83    "//third_party/glib:gobject",
84    "//third_party/gstreamer/gstplugins_base:gstaudio",
85    "//third_party/gstreamer/gstreamer:gstbase",
86    "//third_party/gstreamer/gstreamer:gstreamer",
87  ]
88
89  external_deps = [
90    "audio_framework:audio_capturer",
91    "audio_framework:audio_client",
92    "hilog:libhilog",
93    "media_foundation:media_foundation",
94    "qos_manager:qos",
95  ]
96
97  relative_install_dir = "media/plugins"
98  subsystem_name = "multimedia"
99  part_name = "player_framework"
100}
101