18c339a94Sopenharmony_ci#Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. 28c339a94Sopenharmony_ci#Licensed under the Apache License, Version 2.0 (the "License"); 38c339a94Sopenharmony_ci#you may not use this file except in compliance with the License. 48c339a94Sopenharmony_ci#You may obtain a copy of the License at 58c339a94Sopenharmony_ci# 68c339a94Sopenharmony_ci# http://www.apache.org/licenses/LICENSE-2.0 78c339a94Sopenharmony_ci# 88c339a94Sopenharmony_ci#Unless required by applicable law or agreed to in writing, software 98c339a94Sopenharmony_ci#distributed under the License is distributed on an "AS IS" BASIS, 108c339a94Sopenharmony_ci#WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 118c339a94Sopenharmony_ci#See the License for the specific language governing permissions and 128c339a94Sopenharmony_ci#limitations under the License. 138c339a94Sopenharmony_ci# 148c339a94Sopenharmony_ci 158c339a94Sopenharmony_ciimport("//build/ohos.gni") 168c339a94Sopenharmony_ci 178c339a94Sopenharmony_ciconfig("libhdi_hello_pub_config") { 188c339a94Sopenharmony_ci visibility = [ ":*" ] 198c339a94Sopenharmony_ci} 208c339a94Sopenharmony_ciohos_shared_library("hdi_hello") { 218c339a94Sopenharmony_ci public_configs = [ ":libhdi_hello_pub_config" ] 228c339a94Sopenharmony_ci sources = [ 238c339a94Sopenharmony_ci "hello_dump.c", 248c339a94Sopenharmony_ci ] 258c339a94Sopenharmony_ci include_dirs = [ 268c339a94Sopenharmony_ci "include", 278c339a94Sopenharmony_ci "../utils/interface", 288c339a94Sopenharmony_ci "//third_party/bounds_checking_function/include", 298c339a94Sopenharmony_ci ] 308c339a94Sopenharmony_ci cflags = [ 318c339a94Sopenharmony_ci "-Wall", 328c339a94Sopenharmony_ci "-Wextra", 338c339a94Sopenharmony_ci "-Werror", 348c339a94Sopenharmony_ci "-fsigned-char", 358c339a94Sopenharmony_ci "-fno-common", 368c339a94Sopenharmony_ci "-fno-strict-aliasing", 378c339a94Sopenharmony_ci ] 388c339a94Sopenharmony_ci install_images = [ chipset_base_dir ] 398c339a94Sopenharmony_ci subsystem_name = "hdf" 408c339a94Sopenharmony_ci part_name = "drivers_peripheral_hello" 418c339a94Sopenharmony_ci if (is_standard_system) { 428c339a94Sopenharmony_ci external_deps = [ 438c339a94Sopenharmony_ci "c_utils:utils", 448c339a94Sopenharmony_ci "hdf_core:libhdf_host", 458c339a94Sopenharmony_ci "hdf_core:libhdf_utils", 468c339a94Sopenharmony_ci "hilog:libhilog", 478c339a94Sopenharmony_ci ] 488c339a94Sopenharmony_ci } else { 498c339a94Sopenharmony_ci external_deps = [ "hilog:libhilog" ] 508c339a94Sopenharmony_ci } 518c339a94Sopenharmony_ci} 52