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("cluster_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 "../../../playbackcapturer/include", 31 "../../../../../interfaces/inner_api/native/audiocommon/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-cluster-sink") { 44 sanitize = { 45 cfi = true 46 cfi_cross_dso = true 47 debug = false 48 blocklist = "../../../../../cfi_blocklist.txt" 49 } 50 sources = [ "module_cluster_sink.c" ] 51 52 configs = [ ":cluster_config" ] 53 54 cflags = [ "-DPA_MODULE_NAME=libmodule_cluster_sink_z_so" ] 55 56 deps = [ 57 "$pulseaudio_build_path/src:pulsecommon", 58 "$pulseaudio_build_path/src/pulse:pulse", 59 "$pulseaudio_build_path/src/pulsecore:pulsecore", 60 "${third_party_path}/bounds_checking_function:libsec_shared", 61 "../../../audioeffect:audio_effect", 62 "../../../playbackcapturer:playback_capturer", 63 ] 64 65 external_deps = [ "hilog:libhilog" ] 66 67 subsystem_name = "multimedia" 68 part_name = "audio_framework" 69} 70