• 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("../../../../../config.gni")
16
17pulseaudio_dir = "//third_party/pulseaudio"
18pulseaudio_build_path = "//third_party/pulseaudio/ohosbuild"
19
20config("abstract_config") {
21  visibility = [ ":*" ]
22
23  include_dirs = [
24    "$pulseaudio_dir/include",
25    "$pulseaudio_dir/src",
26    "$pulseaudio_dir",
27    "$pulseaudio_build_path/src",
28    "$pulseaudio_build_path/include",
29    "../../../../../interfaces/inner_api/native/audiocommon/include",
30  ]
31
32  cflags = [
33    "-Wall",
34    "-Werror",
35    "-DHAVE_CONFIG_H",
36    "-D_GNU_SOURCE",
37    "-D__INCLUDED_FROM_PULSE_AUDIO",
38  ]
39}
40
41ohos_shared_library("module-loopback") {
42  sanitize = {
43    cfi = true
44    cfi_cross_dso = true
45    debug = false
46    blocklist = "../../../../../cfi_blocklist.txt"
47  }
48  sources = [ "module_loopback.c" ]
49
50  configs = [ ":abstract_config" ]
51
52  cflags = [ "-DPA_MODULE_NAME=libmodule_loopback_z_so" ]
53
54  deps = [
55    "$pulseaudio_build_path/src:pulsecommon",
56    "$pulseaudio_build_path/src/pulse:pulse",
57    "$pulseaudio_build_path/src/pulsecore:pulsecore",
58    "//third_party/bounds_checking_function:libsec_shared",
59  ]
60
61  external_deps = [ "hilog:libhilog" ]
62
63  subsystem_name = "multimedia"
64  part_name = "audio_framework"
65}
66