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") 17import("../../../sensor.gni") 18 19pulseaudio_dir = "//third_party/pulseaudio" 20pulseaudio_build_path = "//third_party/pulseaudio/ohosbuild" 21 22config("audio_effect_config") { 23 include_dirs = [ 24 "include", 25 "../audiostream/include", 26 "../../../interfaces/inner_api/native/audiorenderer/include", 27 "../../../interfaces/inner_api/native/audiocommon/include", 28 "../../../interfaces/inner_api/native/audiomanager/include", 29 "../../../services/audio_service/client/include", 30 "../../../services/audio_service/test/example", 31 "$pulseaudio_dir/src", 32 "$pulseaudio_dir/confgure/src", 33 ] 34 35 cflags = [ 36 "-Wall", 37 "-Werror", 38 ] 39 40 if (sensor_enable == true) { 41 cflags += [ "-DSENSOR_ENABLE" ] 42 } 43} 44 45ohos_shared_library("audio_effect") { 46 sanitize = { 47 cfi = true 48 cfi_cross_dso = true 49 debug = false 50 blocklist = "../../../cfi_blocklist.txt" 51 } 52 install_enable = true 53 54 configs = [ ":audio_effect_config" ] 55 56 # include_dirs = audio_gateway_include_dirs 57 include_dirs = [ multimedia_audio_framework_pulse_audio ] 58 59 sources = [ 60 "src/audio_effect_chain_manager.cpp", 61 "src/audio_head_tracker.cpp", 62 ] 63 64 deps = [ "$pulseaudio_build_path/src/pulse:pulse" ] 65 66 external_deps = [ 67 "c_utils:utils", 68 "drivers_interface_audio:effect_idl_headers", 69 "drivers_interface_audio:libeffect_proxy_1.0", 70 "hilog:libhilog", 71 "ipc:ipc_single", 72 ] 73 74 if (sensor_enable == true) { 75 external_deps += [ "sensor:sensor_interface_native" ] 76 } 77 78 version_script = "../../../audio_framework.versionscript" 79 80 part_name = "audio_framework" 81 subsystem_name = "multimedia" 82} 83