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/media_foundation/config.gni")
15if (hst_is_standard_sys) {
16  group("plugin_audio_server_sink") {
17    deps = [ ":histreamer_plugin_AudioServerSink" ]
18  }
19
20  # only for standard
21  import("//build/ohos.gni")
22  ohos_shared_library("histreamer_plugin_AudioServerSink") {
23    subsystem_name = "multimedia"
24    part_name = "media_foundation"
25    include_dirs = [
26      "//foundation/multimedia/media_foundation/engine/include/",
27      "//foundation/multimedia/media_foundation/engine/plugin/",
28    ]
29    sources = [ "audio_server_sink_plugin.cpp" ]
30    public_configs =
31        [ "//foundation/multimedia/media_foundation:histreamer_presets" ]
32    public_external_deps = [
33      "audio_framework:audio_capturer",
34      "audio_framework:audio_renderer",
35    ]
36    public_deps = [
37      "//foundation/multimedia/media_foundation/engine/foundation:histreamer_foundation",
38      "//foundation/multimedia/media_foundation/engine/plugin:histreamer_ffmpeg_convert",
39      "//foundation/multimedia/media_foundation/engine/plugin:histreamer_plugin_base",
40    ]
41
42    external_deps = [
43      "audio_framework:audio_client",
44      "ffmpeg:libohosffmpeg",
45      "graphic_surface:surface",
46      "hilog:libhilog",
47    ]
48    sanitize = {
49      cfi = true
50      cfi_cross_dso = true
51      debug = false
52      integer_overflow = true
53    }
54    relative_install_dir = "media/histreamer_plugins"
55  }
56}
57