• 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")
15
16SUBSYSTEM_DIR = "//foundation/communication/ipc"
17IPC_CORE_ROOT = "$SUBSYSTEM_DIR/ipc/native"
18
19config("libipc_core_private_config") {
20  cflags_cc = [ "-O2" ]
21}
22
23config("ipc_all_deps_config") {
24  include_dirs = [ "$SUBSYSTEM_DIR/interfaces/innerkits/ipc_core/include" ]
25}
26
27ohos_shared_library("ipc_core") {
28  sanitize = {
29    integer_overflow = true
30  }
31  version_script = "libipc_core_map"
32  include_dirs = [
33    "$IPC_CORE_ROOT/c/adapter/access_token/include",
34    "$IPC_CORE_ROOT/c/rpc/include",
35    "$SUBSYSTEM_DIR/utils/include",
36    "//base/hiviewdfx/hitrace/interfaces/native/innerkits/include",
37  ]
38  sources = [
39    "$IPC_CORE_ROOT/c/adapter/access_token/src/access_token_adapter.c",
40    "$IPC_CORE_ROOT/c/rpc/src/rpc_feature_set.c",
41    "$IPC_CORE_ROOT/src/core/source/buffer_object.cpp",
42    "$IPC_CORE_ROOT/src/core/source/comm_auth_info.cpp",
43    "$IPC_CORE_ROOT/src/core/source/databus_session_callback.cpp",
44    "$IPC_CORE_ROOT/src/core/source/dbinder_callback_stub.cpp",
45    "$IPC_CORE_ROOT/src/core/source/dbinder_session_object.cpp",
46    "$IPC_CORE_ROOT/src/core/source/ipc_file_descriptor.cpp",
47    "$IPC_CORE_ROOT/src/core/source/ipc_object_proxy.cpp",
48    "$IPC_CORE_ROOT/src/core/source/ipc_object_stub.cpp",
49    "$IPC_CORE_ROOT/src/core/source/ipc_process_skeleton.cpp",
50    "$IPC_CORE_ROOT/src/core/source/ipc_skeleton.cpp",
51    "$IPC_CORE_ROOT/src/core/source/ipc_thread_pool.cpp",
52    "$IPC_CORE_ROOT/src/core/source/ipc_thread_skeleton.cpp",
53    "$IPC_CORE_ROOT/src/core/source/ipc_workthread.cpp",
54    "$IPC_CORE_ROOT/src/core/source/iremote_broker.cpp",
55    "$IPC_CORE_ROOT/src/core/source/iremote_object.cpp",
56    "$IPC_CORE_ROOT/src/core/source/message_option.cpp",
57    "$IPC_CORE_ROOT/src/core/source/message_parcel.cpp",
58    "$IPC_CORE_ROOT/src/core/source/peer_holder.cpp",
59    "$IPC_CORE_ROOT/src/core/source/stub_refcount_object.cpp",
60    "$IPC_CORE_ROOT/src/mock/source/binder_connector.cpp",
61    "$IPC_CORE_ROOT/src/mock/source/binder_debug.cpp",
62    "$IPC_CORE_ROOT/src/mock/source/binder_invoker.cpp",
63    "$IPC_CORE_ROOT/src/mock/source/dbinder_databus_invoker.cpp",
64    "$IPC_CORE_ROOT/src/mock/source/hitrace_invoker.cpp",
65    "$IPC_CORE_ROOT/src/mock/source/invoker_factory.cpp",
66    "$IPC_CORE_ROOT/src/mock/source/invoker_rawdata.cpp",
67  ]
68
69  configs = [
70    "$SUBSYSTEM_DIR:ipc_util_config",
71    ":libipc_core_private_config",
72  ]
73  public_configs = [ "$SUBSYSTEM_DIR:ipc_util_config" ]
74
75  all_dependent_configs = [ ":ipc_all_deps_config" ]
76
77  deps = [ "$IPC_CORE_ROOT/src/core:ipc_common" ]
78
79  external_deps = [
80    "access_token:libaccesstoken_sdk",
81    "c_utils:utils",
82    "dsoftbus:softbus_client",
83    "hilog:libhilog",
84    "hitrace:libhitracechain",
85  ]
86
87  innerapi_tags = [ "platformsdk" ]
88  install_images = [ system_base_dir ]
89  subsystem_name = "communication"
90  part_name = "ipc"
91}
92