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 16ohos_shared_library("libdaudio_hdf_utils") { 17 sanitize = { 18 boundary_sanitize = true 19 cfi = true 20 cfi_cross_dso = true 21 debug = false 22 integer_overflow = true 23 ubsan = true 24 } 25 include_dirs = [ 26 "include", 27 "log/include", 28 "utils/include", 29 ] 30 31 sources = [ 32 "log/src/daudio_log.cpp", 33 "utils/src/daudio_utils.cpp", 34 ] 35 36 ldflags = [ 37 "-fpie", 38 "-Wl,-z,relro", 39 "-Wl,-z,now", 40 ] 41 42 external_deps = [ 43 "cJSON:cjson", 44 "c_utils:utils", 45 "hdf_core:libhdf_utils", 46 "hilog:libhilog", 47 "init:libbegetutil", 48 ] 49 50 defines = [ 51 "HI_LOG_ENABLE", 52 "LOG_DOMAIN=0xD004130", 53 ] 54 55 install_images = [ chipset_base_dir ] 56 subsystem_name = "hdf" 57 part_name = "drivers_peripheral_distributed_audio" 58} 59