1# Copyright (c) 2021 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. 13import("//build/lite/config/component/lite_component.gni") 14 15config("libaudio_common_config") { 16 include_dirs = [ 17 "//foundation/ai/engine/interfaces", 18 "//foundation/ai/engine/services/common", 19 "//foundation/ai/engine/services/common/platform/os_wrapper/audio_loader/include", 20 "//foundation/ai/engine/services/common/platform/os_wrapper/audio_loader/include/codec", 21 "//foundation/ai/engine/services/common/platform/os_wrapper/utils", 22 "//foundation/ai/engine/services/common/platform/utils", 23 "//foundation/ai/engine/services/common/protocol/retcode_inner", 24 "//foundation/ai/engine/services/common/utils", 25 "//foundation/ai/engine/services/common/utils/log", 26 "//foundation/multimedia/audio_lite/interfaces/kits", 27 "//foundation/multimedia/hals/camera_lite", 28 "//foundation/multimedia/utils/lite/hals", 29 "//foundation/multimedia/utils/lite/interfaces/kits", 30 "//drivers/peripheral/audio/interfaces/include", 31 "//drivers/peripheral/codec/interfaces/include", 32 "//drivers/peripheral/format/interfaces/include", 33 "//third_party/bounds_checking_function/include", 34 "//base/hiviewdfx/hilog_lite/interfaces/native/kits/hilog", 35 ] 36 ldflags = [ "-lstdc++" ] 37 ldflags += [ "-lhdi_media" ] 38 cflags = [ "-fPIC" ] 39 cflags_cc = cflags 40} 41 42lite_library("audio_loader") { 43 target_type = "static_library" 44 sources = [ 45 "source/audio_utils.cpp", 46 "source/audio_wrapper.cpp", 47 "source/codec/decoder_wrapper.cpp", 48 ] 49 public_configs = [ ":libaudio_common_config" ] 50 deps = [ 51 "//device/soc/hisilicon/common/hal/multimedia:libhdi_media", 52 "//foundation/multimedia/audio_lite/frameworks:audio_capturer_lite", 53 "//foundation/multimedia/utils/lite:media_common", 54 "//third_party/bounds_checking_function:libsec_shared", 55 ] 56} 57