# 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") { include_dirs = [ "$SUBSYSTEM_DIR/utils/include", "//base/hiviewdfx/hitrace/interfaces/native/innerkits/include", ] 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", "$IPC_CORE_ROOT/src/core/source/dbinder_callback_stub.cpp", "$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", "$IPC_CORE_ROOT/src/mock/source/hitrace_invoker.cpp", "$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 = [ "//base/security/access_token/interfaces/innerkits/token_setproc:libtoken_setproc", "//utils/native/base:utils", ] external_deps = [ "dsoftbus_standard:softbus_client", "hitrace_native:libhitrace", "hiviewdfx_hilog_native:libhilog", ] subsystem_name = "communication" part_name = "ipc" }