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