BUILD.gn 2.8 KB
Newer Older
M
mamingshuai 已提交
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
# Copyright (C) 2021 Huawei Device Co., Ltd.
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#     http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

import("//build/ohos.gni")

SUBSYSTEM_DIR = "//foundation/communication/ipc"
IPC_CORE_ROOT = "$SUBSYSTEM_DIR/ipc/native"

config("libipc_core_private_config") {
  cflags_cc = [ "-O2" ]
}

ohos_shared_library("ipc_core") {
X
XiYuhao 已提交
24 25 26 27
  include_dirs = [
    "$SUBSYSTEM_DIR/utils/include",
    "//base/hiviewdfx/hitrace/interfaces/native/innerkits/include",
  ]
M
mamingshuai 已提交
28 29 30 31
  sources = [
    "$IPC_CORE_ROOT/src/core/source/buffer_object.cpp",
    "$IPC_CORE_ROOT/src/core/source/comm_auth_info.cpp",
    "$IPC_CORE_ROOT/src/core/source/databus_session_callback.cpp",
Z
zgit2021 已提交
32
    "$IPC_CORE_ROOT/src/core/source/dbinder_callback_stub.cpp",
M
mamingshuai 已提交
33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51
    "$IPC_CORE_ROOT/src/core/source/dbinder_session_object.cpp",
    "$IPC_CORE_ROOT/src/core/source/ipc_file_descriptor.cpp",
    "$IPC_CORE_ROOT/src/core/source/ipc_object_proxy.cpp",
    "$IPC_CORE_ROOT/src/core/source/ipc_object_stub.cpp",
    "$IPC_CORE_ROOT/src/core/source/ipc_process_skeleton.cpp",
    "$IPC_CORE_ROOT/src/core/source/ipc_skeleton.cpp",
    "$IPC_CORE_ROOT/src/core/source/ipc_thread_pool.cpp",
    "$IPC_CORE_ROOT/src/core/source/ipc_thread_skeleton.cpp",
    "$IPC_CORE_ROOT/src/core/source/ipc_workthread.cpp",
    "$IPC_CORE_ROOT/src/core/source/iremote_broker.cpp",
    "$IPC_CORE_ROOT/src/core/source/iremote_object.cpp",
    "$IPC_CORE_ROOT/src/core/source/message_option.cpp",
    "$IPC_CORE_ROOT/src/core/source/message_parcel.cpp",
    "$IPC_CORE_ROOT/src/core/source/peer_holder.cpp",
    "$IPC_CORE_ROOT/src/core/source/stub_refcount_object.cpp",
    "$IPC_CORE_ROOT/src/mock/source/binder_connector.cpp",
    "$IPC_CORE_ROOT/src/mock/source/binder_debug.cpp",
    "$IPC_CORE_ROOT/src/mock/source/binder_invoker.cpp",
    "$IPC_CORE_ROOT/src/mock/source/dbinder_databus_invoker.cpp",
X
XiYuhao 已提交
52
    "$IPC_CORE_ROOT/src/mock/source/hitrace_invoker.cpp",
M
mamingshuai 已提交
53 54 55 56 57 58 59 60 61 62 63 64 65
    "$IPC_CORE_ROOT/src/mock/source/invoker_factory.cpp",
    "$IPC_CORE_ROOT/src/mock/source/invoker_rawdata.cpp",
  ]

  configs = [
    "$SUBSYSTEM_DIR:ipc_util_config",
    ":libipc_core_private_config",
  ]
  public_configs = [ "$SUBSYSTEM_DIR:ipc_util_config" ]
  deps = [ "//utils/native/base:utils" ]

  external_deps = [
    "dsoftbus_standard:softbus_client",
X
XiYuhao 已提交
66
    "hitrace_native:libhitrace",
M
mamingshuai 已提交
67 68 69 70 71
    "hiviewdfx_hilog_native:libhilog",
  ]
  subsystem_name = "communication"
  part_name = "ipc"
}