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" 17 18config("rpc_public_config") { 19 visibility = [ ":*" ] 20 include_dirs = [ "$SUBSYSTEM_DIR/ipc/native/src/napi/include" ] 21} 22 23ohos_shared_library("rpc") { 24 include_dirs = [ 25 "$SUBSYSTEM_DIR/utils/include", 26 "//foundation/arkui/napi/interfaces/kits", 27 "//foundation/arkui/napi/native_engine", 28 "//utils/system/safwk/native/include", 29 "$SUBSYSTEM_DIR/ipc/native/c/adapter/include", 30 "$SUBSYSTEM_DIR/ipc/native/c/adapter/access_token/include", 31 ] 32 public_configs = [ ":rpc_public_config" ] 33 34 sources = [ 35 "$SUBSYSTEM_DIR/ipc/native/src/napi/src/napi_ashmem.cpp", 36 "$SUBSYSTEM_DIR/ipc/native/src/napi/src/napi_message_option.cpp", 37 "$SUBSYSTEM_DIR/ipc/native/src/napi/src/napi_message_parcel.cpp", 38 "$SUBSYSTEM_DIR/ipc/native/src/napi/src/napi_message_sequence.cpp", 39 "$SUBSYSTEM_DIR/ipc/native/src/napi/src/napi_remote_object.cpp", 40 "$SUBSYSTEM_DIR/ipc/native/src/napi/src/napi_remote_proxy.cpp", 41 "$SUBSYSTEM_DIR/ipc/native/src/napi/src/napi_rpc_error.cpp", 42 "$SUBSYSTEM_DIR/ipc/native/src/napi/src/napi_rpc_native_module.cpp", 43 ] 44 45 deps = [ 46 "//foundation/arkui/napi:ace_napi", 47 "//third_party/libuv:uv", 48 ] 49 50 external_deps = [ 51 "c_utils:utils", 52 "hitrace_native:hitrace_meter", 53 "hiviewdfx_hilog_native:libhilog", 54 "ipc:ipc_core", 55 ] 56 57 relative_install_dir = "module" 58 59 subsystem_name = "communication" 60 part_name = "ipc_js" 61} 62