• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright (c) 2023 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")
15import("../../../audio_ohcore.gni")
16import("../../../config.gni")
17
18pulseaudio_dir = "//third_party/pulseaudio"
19
20config("playback_capturer_config") {
21  include_dirs = [
22    "../audiostream/include",
23    "../playbackcapturer/include",
24    "../../../interfaces/inner_api/native/audiocommon/include",
25    "../../../interfaces/inner_api/native/audiomanager/include",
26    "$pulseaudio_dir/src",
27    "$pulseaudio_dir/confgure/src",
28  ]
29
30  cflags = [
31    "-Wall",
32    "-Werror",
33  ]
34}
35
36ohos_shared_library("playback_capturer") {
37  sanitize = {
38    cfi = true
39    cfi_cross_dso = true
40    debug = false
41    blocklist = "../../../cfi_blocklist.txt"
42  }
43  install_enable = true
44
45  configs = [ ":playback_capturer_config" ]
46
47  sources = [ "src/playback_capturer_manager.cpp" ]
48
49  external_deps = [
50    "c_utils:utils",
51    "hilog:libhilog",
52    "ipc:ipc_single",
53  ]
54
55  version_script = "../../../audio_framework.versionscript"
56
57  part_name = "audio_framework"
58  subsystem_name = "multimedia"
59}
60