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("//foundation/multimedia/player_framework/config.gni") 16import("./../../../multimedia_player_framework_aafwk.gni") 17 18ohos_shared_library("soundpool_client") { 19 install_enable = true 20 sources = [ 21 "cache_buffer.cpp", 22 "sound_id_manager.cpp", 23 "sound_parser.cpp", 24 "soundpool.cpp", 25 "soundpool_manager.cpp", 26 "stream_id_manager.cpp", 27 ] 28 29 include_dirs = [ 30 "${multimedia_player_framework_path}/interfaces/inner_api/native/soundpool/include", 31 "${av_codec_root_path}/interfaces/inner_api/native", 32 "${multimedia_audio_framework_path}/services/audio_service/client/include", 33 "${multimedia_audio_framework_path}/interfaces/inner_api/native/audiocommon/include", 34 "${multimedia_audio_framework_path}/interfaces/inner_api/native/audiomanager/include", 35 "${multimedia_media_library_path}/interfaces/inner_api/media_library_helper/include", 36 "${multimedia_media_library_path}/frameworks/utils/include", 37 "${av_codec_root_path}/services/utils/include", 38 ] 39 40 deps = [ "${multimedia_player_framework_path}/interfaces/inner_api/native:media_client" ] 41 42 external_deps = [ 43 "ability_base:want", 44 "ability_base:zuri", 45 "ability_runtime:ability_manager", 46 "ability_runtime:abilitykit_native", 47 "audio_framework:audio_client", 48 "audio_framework:audio_renderer", 49 "av_codec:av_codec_client", 50 "bundle_framework:appexecfwk_base", 51 "c_utils:utils", 52 "hilog:libhilog", 53 "init:libbegetutil", 54 ] 55 56 cflags = [ 57 "-Wall", 58 "-Werror", 59 ] 60 61 defines = [] 62 63 #Soundpool low latency playback switch 64 defines += [ "SOUNDPOOL_SUPPORT_LOW_LATENCY" ] 65 defines += player_framework_defines 66 67 subsystem_name = "multimedia" 68 part_name = "player_framework" 69} 70