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") 15import("//build/ohos_var.gni") 16import("../../../../distributedaudio.gni") 17 18ohos_shared_library("distributed_audio_source_sdk") { 19 include_dirs = [ 20 "${fwk_common_path}/utils/include", 21 "//third_party/json/include", 22 ] 23 24 include_dirs += [ 25 "include", 26 "${common_path}/include", 27 "${common_path}/dfx_utils/include", 28 ] 29 30 sources = [ 31 "src/daudio_ipc_callback.cpp", 32 "src/daudio_ipc_callback_stub.cpp", 33 "src/daudio_source_handler.cpp", 34 "src/daudio_source_load_callback.cpp", 35 "src/daudio_source_proxy.cpp", 36 ] 37 38 deps = [ "${services_path}/common:distributed_audio_utils" ] 39 40 external_deps = [ 41 "c_utils:utils", 42 "hisysevent:libhisysevent", 43 "hitrace:hitrace_meter", 44 "ipc:ipc_core", 45 "samgr:samgr_proxy", 46 ] 47 48 defines = [ 49 "HI_LOG_ENABLE", 50 "LOG_DOMAIN=0xD004100", 51 ] 52 53 subsystem_name = "distributedhardware" 54 55 part_name = "distributed_audio" 56} 57