1# Copyright (c) 2024 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("../../../../config.gni") 16 17ohos_shared_library("hdiadapter_manager") { 18 sanitize = { 19 cfi = true 20 cfi_cross_dso = true 21 debug = false 22 } 23 install_enable = true 24 25 cflags = [ "-fPIC" ] 26 cflags += [ "-Wall" ] 27 cflags_cc = cflags 28 29 include_dirs = [ 30 "include", 31 "../common/include", 32 "../source/common", 33 "../../../../interfaces/inner_api/native/audiocommon/include", 34 ] 35 36 sources = [ "hdi_adapter_manager.cpp" ] 37 38 deps = [ 39 ":hdiadapter_utils", 40 "../source:audio_capturer_source", 41 "../source:capturer_source_adapter", 42 ] 43 44 external_deps = [ 45 "c_utils:utils", 46 "hilog:libhilog", 47 ] 48 49 part_name = "audio_framework" 50 subsystem_name = "multimedia" 51} 52 53ohos_shared_library("hdiadapter_utils") { 54 sanitize = { 55 cfi = true 56 cfi_cross_dso = true 57 debug = false 58 } 59 install_enable = true 60 61 cflags = [ "-fPIC" ] 62 cflags += [ "-Wall" ] 63 cflags_cc = cflags 64 65 include_dirs = [ 66 "include", 67 "../../../../interfaces/inner_api/native/audiocommon/include", 68 ] 69 70 sources = [ "utils/hdi_utils_ringbuffer.cpp" ] 71 72 external_deps = [ 73 "c_utils:utils", 74 "hilog:libhilog", 75 ] 76 77 part_name = "audio_framework" 78 subsystem_name = "multimedia" 79} 80