• 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_server_sink_config") {
17  visibility = [ ":*" ]
18
19  cflags = [
20    "-fno-rtti",
21    "-fno-exceptions",
22    "-Wall",
23    "-fno-common",
24    "-fstack-protector-strong",
25    "-FPIC",
26    "-FS",
27    "-O2",
28    "-D_FORTIFY_SOURCE=2",
29    "-fvisibility=hidden",
30    "-Wformat=2",
31    "-Wfloat-equal",
32    "-Wdate-time",
33    "-Werror",
34    "-Wextra",
35    "-Wimplicit-fallthrough",
36    "-Wsign-compare",
37    "-Wunused-parameter",
38    "-DOHOS_OPT_COMPAT",
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    "//base/hiviewdfx/hisysevent/interfaces/native/innerkits/hisysevent/include",
55  ]
56}
57
58ohos_shared_library("gst_audio_server_sink") {
59  install_enable = true
60
61  sanitize = {
62    cfi = true
63    cfi_cross_dso = true
64    debug = false
65    blocklist = "../../../../../../cfi_blocklist.txt"
66  }
67
68  sources = [
69    "src/audio_sink_factory.cpp",
70    "src/audio_sink_sv_impl.cpp",
71    "src/gst_audio_server_sink.cpp",
72  ]
73
74  configs = [
75    ":gst_audio_server_sink_config",
76    "//foundation/multimedia/player_framework/services/dfx:media_service_log_dfx_public_config",
77  ]
78
79  deps = [
80    "//foundation/multimedia/player_framework/services/dfx:media_service_dfx",
81    "//foundation/multimedia/player_framework/services/dfx:media_service_log_dfx",
82    "//foundation/multimedia/player_framework/services/utils:media_service_utils",
83    "//third_party/glib:glib",
84    "//third_party/glib:gmodule",
85    "//third_party/glib:gobject",
86    "//third_party/gstreamer/gstreamer:gstbase",
87    "//third_party/gstreamer/gstreamer:gstreamer",
88  ]
89
90  deps += [ "//third_party/bounds_checking_function:libsec_shared" ]
91
92  external_deps = [
93    "audio_framework:audio_client",
94    "audio_framework:audio_renderer",
95    "hilog:libhilog",
96    "init:libbegetutil",
97    "media_foundation:media_foundation",
98    "qos_manager:qos",
99  ]
100
101  relative_install_dir = "media/plugins"
102  subsystem_name = "multimedia"
103  part_name = "player_framework"
104}
105