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 configs = [ "../../../services/audio_service/idl:audio_service_sa_idl_config" ] 65 66 version_script = "../../../audio_framework.versionscript" 67 innerapi_tags = [ "platformsdk" ] 68 69 part_name = "audio_framework" 70 subsystem_name = "multimedia" 71 } 72 73 audio_ohos_library("offline_audio_effect_service") { 74 sanitize = { 75 cfi = true 76 cfi_cross_dso = true 77 cfi_vcall_icall_only = true 78 debug = false 79 integer_overflow = true 80 ubsan = true 81 boundary_sanitize = true 82 } 83 install_enable = true 84 85 include_dirs = [ 86 "include", 87 "../../../interfaces/inner_api/native/audiocommon/include", 88 "../../../services/audio_service/common/include", 89 ] 90 91 sources = [ "src/offline_audio_effect_server_chain.cpp" ] 92 93 deps = [ "../audioutils:audio_utils" ] 94 95 external_deps = [ 96 "c_utils:utils", 97 "drivers_interface_audio:libeffect_proxy_1.0", 98 "hilog:libhilog", 99 "ipc:ipc_single", 100 ] 101 102 version_script = "../../../audio_framework.versionscript" 103 innerapi_tags = [ "platformsdk" ] 104 105 part_name = "audio_framework" 106 subsystem_name = "multimedia" 107 } 108} 109