1# Copyright (C) 2021-2024 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") 15import("../../../config.gni") 16 17SUBSYSTEM_DIR = "//foundation/communication/ipc" 18 19config("ipc_all_deps_config") { 20 include_dirs = [ "$SUBSYSTEM_DIR/interfaces/innerkits/ipc_core/include" ] 21 if (current_os == "ohos") { 22 defines = [ "OHOS_PLATFORM" ] 23 } 24} 25 26ohos_prebuilt_shared_library("ipc_core") { 27 source = "${root_out_dir}/communication/ipc/libipc_single.z.so" 28 29 if (target_cpu == "arm") { 30 symlink_ext = [ "lib/platformsdk/libipc_core.z.so" ] 31 } else if (target_cpu == "arm64" || target_cpu == "x86_64") { 32 symlink_ext = [ "lib64/platformsdk/libipc_core.z.so" ] 33 } 34 public_configs = [ 35 "$SUBSYSTEM_DIR/config:dsoftbus_header_deps_config", 36 "$SUBSYSTEM_DIR/config:ipc_util_config", 37 ":ipc_all_deps_config", 38 ] 39 public_external_deps = [ "c_utils:utils" ] 40 41 deps = [ "$SUBSYSTEM_DIR/interfaces/innerkits/ipc_single:ipc_single" ] 42 43 install_enable = true 44 innerapi_tags = [ 45 "chipsetsdk_sp", 46 "platformsdk", 47 "sasdk", 48 ] 49 50 install_images = [ 51 system_base_dir, 52 updater_base_dir, 53 ] 54 subsystem_name = "communication" 55 part_name = "ipc" 56} 57