• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright (c) 2021-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("audio_effect_config") {
21  include_dirs = [
22    "include",
23    "../audiostream/include",
24    "../../../interfaces/inner_api/native/audiorenderer/include",
25    "../../../interfaces/inner_api/native/audiocommon/include",
26    "../../../interfaces/inner_api/native/audiomanager/include",
27    "../../../services/audio_service/client/include",
28    "../../../services/audio_service/test/example",
29    "$pulseaudio_dir/src",
30    "$pulseaudio_dir/confgure/src",
31  ]
32
33  cflags = [
34    "-Wall",
35    "-Werror",
36  ]
37}
38
39ohos_shared_library("audio_effect") {
40  sanitize = {
41    cfi = true
42    cfi_cross_dso = true
43    debug = false
44    blocklist = "../../../cfi_blocklist.txt"
45  }
46  install_enable = true
47
48  configs = [ ":audio_effect_config" ]
49
50  # include_dirs = audio_gateway_include_dirs
51  # include_dirs += [ multimedia_audio_framework_pulse_audio ]
52
53  sources = [ "src/audio_effect_chain_manager.cpp" ]
54
55  external_deps = [
56    "c_utils:utils",
57    "hilog:libhilog",
58    "ipc:ipc_single",
59  ]
60
61  version_script = "../../../audio_framework.versionscript"
62
63  part_name = "audio_framework"
64  subsystem_name = "multimedia"
65}
66