1#Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development 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# 14 15import("//build/ohos.gni") 16 17config("libhdi_hello_pub_config") { 18 visibility = [ ":*" ] 19} 20ohos_shared_library("hdi_hello") { 21 public_configs = [ ":libhdi_hello_pub_config" ] 22 sources = [ 23 "hello_dump.c", 24 ] 25 include_dirs = [ 26 "include", 27 "../utils/interface", 28 "//third_party/bounds_checking_function/include", 29 ] 30 cflags = [ 31 "-Wall", 32 "-Wextra", 33 "-Werror", 34 "-fsigned-char", 35 "-fno-common", 36 "-fno-strict-aliasing", 37 ] 38 install_images = [ chipset_base_dir ] 39 subsystem_name = "hdf" 40 part_name = "drivers_peripheral_hello" 41 if (is_standard_system) { 42 external_deps = [ 43 "c_utils:utils", 44 "hdf_core:libhdf_host", 45 "hdf_core:libhdf_utils", 46 "hilog:libhilog", 47 ] 48 } else { 49 external_deps = [ "hilog:libhilog" ] 50 } 51} 52