• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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/hdf_core/adapter/uhdf2/uhdf.gni")
16
17config("libhdf_ipc_adapter_pub_config") {
18  visibility = [ ":*" ]
19
20  include_dirs = [
21    "//commonlibrary/c_utils/base/include",
22    "//drivers/hdf_core/framework/include",
23    "//drivers/hdf_core/framework/include/osal",
24    "//drivers/hdf_core/framework/include/utils",
25    "//drivers/hdf_core/framework/utils/include",
26    "//drivers/hdf_core/framework/core/adapter/syscall/include",
27    "//drivers/hdf_core/framework/core/adapter/vnode/include",
28    "//drivers/hdf_core/framework/core/shared/include",
29    "//drivers/hdf_core/framework/include/core/",
30    "//drivers/hdf_core/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_remote_adapter.cpp",
46      "src/hdf_remote_service.c",
47      "src/hdf_sbuf_impl_hipc.cpp",
48    ]
49
50    deps = [ "$hdf_uhdf_path/utils:libhdf_utils" ]
51
52    if (is_standard_system) {
53      external_deps = [
54        "c_utils:utils",
55        "hiviewdfx_hilog_native:libhilog",
56        "ipc:ipc_single",
57        "samgr:samgr_proxy",
58      ]
59    } else {
60      external_deps = [
61        "hilog:libhilog",
62        "ipc:ipc_single",
63        "samgr:samgr_proxy",
64      ]
65    }
66
67    install_images = [ system_base_dir ]
68    relative_install_dir = "chipset-pub-sdk"
69    subsystem_name = "hdf"
70    part_name = "hdf_core"
71  }
72}
73