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