1# Copyright (c) 2020-2021 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") 15HDF_FRAMEWORKS = "//drivers/hdf_core/framework" 16 17config("hdf_core_pub_config") { 18 visibility = [ ":*" ] 19 20 include_dirs = [ 21 "$HDF_FRAMEWORKS/core/adapter/vnode/include", 22 "$HDF_FRAMEWORKS/core/adapter/syscall/include", 23 "$HDF_FRAMEWORKS/core/shared/include", 24 "$HDF_FRAMEWORKS/core/host/include", 25 "$HDF_FRAMEWORKS/core/manager/include", 26 "$HDF_FRAMEWORKS/include/core", 27 "$HDF_FRAMEWORKS/include/utils", 28 "$HDF_FRAMEWORKS/utils/include", 29 "$HDF_FRAMEWORKS/include/osal", 30 "$HDF_FRAMEWORKS/../adapter/uhdf/posix/include", 31 "//third_party/bounds_checking_function/include", 32 "//base/hiviewdfx/hilog_lite/interfaces/native/innerkits", 33 ] 34} 35 36ohos_shared_library("hdf_core") { 37 include_dirs = [] 38 39 public_configs = [ ":hdf_core_pub_config" ] 40 41 sources = [ 42 "$HDF_FRAMEWORKS/core/adapter/syscall/src/hdf_devmgr_adapter.c", 43 "$HDF_FRAMEWORKS/core/adapter/syscall/src/hdf_syscall_adapter.c", 44 "$HDF_FRAMEWORKS/core/shared/src/hdf_io_service.c", 45 "$HDF_FRAMEWORKS/core/shared/src/ioserstat_listener.c", 46 "$HDF_FRAMEWORKS/core/shared/src/service_status.c", 47 "$HDF_FRAMEWORKS/core/shared/src/svcmgr_ioservice.c", 48 "$HDF_FRAMEWORKS/utils/src/hdf_sbuf.c", 49 "$HDF_FRAMEWORKS/utils/src/hdf_sbuf_impl_raw.c", 50 ] 51 52 deps = [ 53 "//base/hiviewdfx/hilog_lite/frameworks/featured:hilog_shared", 54 "//drivers/hdf_core/adapter/uhdf/posix:hdf_posix_osal", 55 "//third_party/bounds_checking_function:libsec_shared", 56 ] 57 58 defines = [ "__USER__" ] 59 60 # install_images = [ "vendor" ] 61 subsystem_name = "hdf" 62 part_name = "hdf_core" 63} 64