• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright (c) 2024 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_framework_test_sources.gni")
16import("../../../config.gni")
17
18config("offline_audio_effect_config") {
19  include_dirs = [
20    "include",
21    "../../../interfaces/inner_api/native/offlineaudioeffect/include",
22  ]
23
24  cflags = [
25    "-Wall",
26    "-Werror",
27  ]
28}
29
30if (!audio_framework_feature_offline_effect) {
31  group("offline_audio_effect") {
32    deps = []
33  }
34} else {
35  audio_ohos_library("offline_audio_effect") {
36    sanitize = {
37      cfi = true
38      cfi_cross_dso = true
39      cfi_vcall_icall_only = true
40      debug = false
41      integer_overflow = true
42      ubsan = true
43      boundary_sanitize = true
44    }
45    install_enable = true
46
47    sources = [
48      "src/offline_audio_effect_chain_impl.cpp",
49      "src/offline_audio_effect_manager.cpp",
50    ]
51
52    deps = [
53      "../../../services/audio_service:audio_client",
54      "../audioutils:audio_utils",
55    ]
56
57    external_deps = [
58      "c_utils:utils",
59      "hilog:libhilog",
60      "ipc:ipc_single",
61    ]
62
63    public_configs = [ ":offline_audio_effect_config" ]
64
65    version_script = "../../../audio_framework.versionscript"
66    innerapi_tags = [ "platformsdk" ]
67
68    part_name = "audio_framework"
69    subsystem_name = "multimedia"
70  }
71
72  audio_ohos_library("offline_audio_effect_service") {
73    sanitize = {
74      cfi = true
75      cfi_cross_dso = true
76      cfi_vcall_icall_only = true
77      debug = false
78      integer_overflow = true
79      ubsan = true
80      boundary_sanitize = true
81    }
82    install_enable = true
83
84    include_dirs = [
85      "include",
86      "../../../interfaces/inner_api/native/audiocommon/include",
87      "../../../services/audio_service/common/include",
88    ]
89
90    sources = [ "src/offline_audio_effect_server_chain.cpp" ]
91
92    deps = [ "../audioutils:audio_utils" ]
93
94    external_deps = [
95      "c_utils:utils",
96      "drivers_interface_audio:libeffect_proxy_1.0",
97      "hilog:libhilog",
98      "ipc:ipc_single",
99    ]
100
101    version_script = "../../../audio_framework.versionscript"
102    innerapi_tags = [ "platformsdk" ]
103
104    part_name = "audio_framework"
105    subsystem_name = "multimedia"
106  }
107}
108