1# Copyright (c) 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") 15import("//drivers/adapter/uhdf2/uhdf.gni") 16 17config("libhdf_ipc_adapter_pub_config") { 18 visibility = [ ":*" ] 19 20 include_dirs = [ 21 "//utils/native/base/include", 22 "//drivers/framework/include", 23 "//drivers/framework/include/osal", 24 "//drivers/framework/include/utils", 25 "//drivers/framework/utils/include", 26 "//drivers/framework/core/adapter/syscall/include", 27 "//drivers/framework/core/adapter/vnode/include", 28 "//drivers/framework/core/shared/include", 29 "//drivers/framework/include/core/", 30 "//drivers/adapter/uhdf2/shared/include", 31 "include", 32 ] 33} 34if (defined(ohos_lite)) { 35 group("libhdf_ipc_adapter") { 36 deps = [] 37 } 38} else { 39 ohos_shared_library("libhdf_ipc_adapter") { 40 include_dirs = [] 41 42 public_configs = [ ":libhdf_ipc_adapter_pub_config" ] 43 44 sources = [ 45 # "src/hdf_parcel_adapter.cpp", 46 "src/hdf_remote_adapter.cpp", 47 "src/hdf_remote_service.c", 48 "src/hdf_sbuf_impl_hipc.cpp", 49 50 # "$hdf_uhdf_path/shared/src/hdf_parcel.c", 51 ] 52 53 deps = [ "$hdf_uhdf_path/utils:libhdf_utils" ] 54 55 if (is_standard_system) { 56 external_deps = [ 57 "hiviewdfx_hilog_native:libhilog", 58 "ipc:ipc_single", 59 "samgr_standard:samgr_proxy", 60 "utils_base:utils", 61 ] 62 } else { 63 external_deps = [ 64 "hilog:libhilog", 65 "ipc:ipc_single", 66 "samgr:samgr_proxy", 67 ] 68 } 69 70 cflags = [ 71 "-Wall", 72 "-Wextra", 73 "-Werror", 74 ] 75 76 install_images = [ chipset_base_dir ] 77 subsystem_name = "hdf" 78 part_name = "device_driver_framework" 79 } 80} 81