1# Copyright (c) 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_dir = "//third_party/pulseaudio" 17opensles_dir = "//third_party/openSLES" 18 19config("audio_renderer_config") { 20 include_dirs = [ 21 "//foundation/multimedia/audio_standard/interfaces/inner_api/native/audiorenderer/include", 22 "//foundation/multimedia/audio_standard/frameworks/native/audiorenderer/include", 23 "//foundation/multimedia/audio_standard/interfaces/inner_api/native/audiocommon/include", 24 "//foundation/multimedia/audio_standard/interfaces/inner_api/native/audiostream/include", 25 "//foundation/multimedia/audio_standard/interfaces/inner_api/native/audiosession/include", 26 "//foundation/multimedia/audio_standard/interfaces/inner_api/native/audiomanager/include", 27 "//foundation/multimedia/audio_standard/services/include", 28 "//foundation/multimedia/audio_standard/services/include/audio_service/client", 29 "//foundation/multimedia/audio_standard/services/test", 30 "//utils/native/base/include", 31 "$pulseaudio_dir/src", 32 "$pulseaudio_dir/confgure/src", 33 ] 34 35 cflags = [ 36 "-Wall", 37 "-Werror", 38 ] 39} 40 41config("audio_opensles_config") { 42 include_dirs = [ 43 "//foundation/multimedia/audio_standard/frameworks/native/opensles/include", 44 "$opensles_dir/api/1.0.1", 45 ] 46} 47 48ohos_executable("audio_opensles_test") { 49 install_enable = false 50 51 sources = [ "//foundation/multimedia/audio_standard/services/test/audio_opensles_test.cpp" ] 52 53 configs = [ 54 ":audio_opensles_config", 55 ":audio_renderer_config", 56 ] 57 58 deps = [ 59 "//foundation/multimedia/audio_standard:libsl", 60 "//foundation/multimedia/audio_standard/frameworks/native/opensles:opensles", 61 ] 62 63 external_deps = [ "hiviewdfx_hilog_native:libhilog" ] 64 65 part_name = "multimedia_audio_standard" 66 subsystem_name = "multimedia" 67} 68