1# Copyright (c) 2021-2022 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") 15 16pulseaudio_build_path = "//third_party/pulseaudio/ohosbuild" 17 18ohos_shared_library("pulse_audio_service_adapter") { 19 sanitize = { 20 cfi = true 21 debug = false 22 blocklist = "//foundation/multimedia/audio_framework/cfi_blocklist.txt" 23 } 24 install_enable = true 25 sources = [ "//foundation/multimedia/audio_framework/frameworks/native/audioadapter/src/pulse_audio_service_adapter_impl.cpp" ] 26 cflags = [ "-fPIC" ] 27 cflags += [ "-Wall" ] 28 cflags_cc = cflags 29 30 include_dirs = [ 31 "$pulseaudio_build_path/include", 32 "//foundation/multimedia/audio_framework/frameworks/native/audioadapter/include", 33 "//foundation/multimedia/audio_framework/interfaces/inner_api/native/audiocommon/include", 34 "//third_party/pulseaudio/src", 35 "//third_party/pulseaudio/confgure/src", 36 "//third_party/pulseaudio/include", 37 ] 38 39 public_configs = [ ":audio_external_library_config" ] 40 41 deps = [ "$pulseaudio_build_path/src/pulse:pulse" ] 42 43 external_deps = [ 44 "hisysevent_native:libhisysevent", 45 "hiviewdfx_hilog_native:libhilog", 46 ] 47 part_name = "multimedia_audio_framework" 48 subsystem_name = "multimedia" 49} 50 51config("audio_external_library_config") { 52 include_dirs = [ "//foundation/multimedia/audio_framework/interfaces/inner_api/native/audiocommon/include" ] 53} 54