• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright (c) 2021-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")
15import("./../uhdf.gni")
16
17hdf_framework_path = "./../../../framework"
18hdf_interface_path = "./../../../interfaces"
19
20config("libhdf_ipc_adapter_pub_config") {
21  visibility = [ ":*" ]
22
23  include_dirs = [
24    "$hdf_interface_path/inner_api/ipc",
25    "$hdf_interface_path/inner_api/core",
26  ]
27}
28if (defined(ohos_lite)) {
29  group("libhdf_ipc_adapter") {
30    deps = []
31  }
32} else {
33  ohos_shared_library("libhdf_ipc_adapter") {
34    include_dirs = [
35      "include",
36      "$hdf_framework_path/utils/include",
37      "$hdf_framework_path/core/shared/include",
38    ]
39
40    public_configs = [ ":libhdf_ipc_adapter_pub_config" ]
41
42    sources = [
43      "src/hdf_dump.cpp",
44      "src/hdf_remote_adapter.cpp",
45      "src/hdf_remote_service.c",
46      "src/hdf_sbuf_impl_hipc.cpp",
47    ]
48
49    if (is_standard_system) {
50      deps = [ "../pub_utils:libpub_utils" ]
51      external_deps = [
52        "c_utils:utils",
53        "hilog:libhilog",
54        "ipc:ipc_single",
55        "samgr:samgr_proxy",
56      ]
57    } else {
58      external_deps = [
59        "hilog:libhilog",
60        "ipc:ipc_single",
61        "samgr:samgr_proxy",
62      ]
63    }
64
65    innerapi_tags = [
66      "chipsetsdk",
67      "platformsdk_indirect",
68    ]
69    install_images = [ system_base_dir ]
70    subsystem_name = "hdf"
71    part_name = "hdf_core"
72  }
73}
74