1# Copyright (c) 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") 15 16if (support_jsapi) { 17 config("napi_common_deps_config") { 18 include_dirs = [ "include" ] 19 } 20 21 ohos_shared_library("ipc_napi") { 22 sanitize = { 23 integer_overflow = true 24 } 25 include_dirs = [ 26 "include", 27 "../../../utils/include", 28 "../../../ipc/native/src/napi_common/include", 29 ] 30 all_dependent_configs = [ ":napi_common_deps_config" ] 31 32 sources = [ 33 "../../../ipc/native/src/napi_common/source/napi_ashmem.cpp", 34 "../../../ipc/native/src/napi_common/source/napi_message_parcel.cpp", 35 "../../../ipc/native/src/napi_common/source/napi_message_sequence.cpp", 36 "../../../ipc/native/src/napi_common/source/napi_process_skeleton.cpp", 37 "../../../ipc/native/src/napi_common/source/napi_remote_object.cpp", 38 "../../../ipc/native/src/napi_common/source/napi_remote_object_holder.cpp", 39 "../../../ipc/native/src/napi_common/source/napi_remote_proxy_holder.cpp", 40 "../../../ipc/native/src/napi_common/source/napi_rpc_error.cpp", 41 ] 42 43 deps = [ 44 "../../../interfaces/innerkits/ipc_core:ipc_core", 45 "//third_party/libuv:uv", 46 ] 47 48 external_deps = [ 49 "c_utils:utils", 50 "hilog:libhilog", 51 "hitrace:hitrace_meter", 52 "napi:ace_napi", 53 ] 54 55 install_images = [ system_base_dir ] 56 subsystem_name = "communication" 57 innerapi_tags = [ "platformsdk" ] 58 part_name = "ipc" 59 } 60} 61 62group("ipc_napi_common") { 63 if (support_jsapi) { 64 deps = [ ":ipc_napi" ] 65 } 66} 67