• 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("effect_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    "../../../audioeffect/include",
30    "../../../../../interfaces/inner_api/native/audiocommon/include",
31    "${third_party_path}/bounds_checking_function/include",
32  ]
33
34  cflags = [
35    "-Wall",
36    "-Werror",
37    "-DHAVE_CONFIG_H",
38    "-D_GNU_SOURCE",
39    "-D__INCLUDED_FROM_PULSE_AUDIO",
40  ]
41}
42
43ohos_shared_library("module-effect-sink") {
44  sanitize = {
45    cfi = true
46    cfi_cross_dso = true
47    debug = false
48    blocklist = "../../../../../cfi_blocklist.txt"
49  }
50  sources = [ "module_effect_sink.c" ]
51
52  configs = [ ":effect_config" ]
53
54  cflags = [ "-DPA_MODULE_NAME=libmodule_effect_sink_z_so" ]
55
56  ldflags = [
57    "-Wl",
58    "--no-undefined",
59  ]
60
61  deps = [
62    "$pulseaudio_build_path/src:pulsecommon",
63    "$pulseaudio_build_path/src/pulse:pulse",
64    "$pulseaudio_build_path/src/pulsecore:pulsecore",
65    "${third_party_path}/bounds_checking_function:libsec_shared",
66    "../../../audioeffect:audio_effect",
67  ]
68
69  external_deps = [ "hilog:libhilog" ]
70
71  subsystem_name = "multimedia"
72  part_name = "audio_framework"
73}
74