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} 22 23ohos_prebuilt_shared_library("ipc_core") { 24 source = "${root_out_dir}/communication/ipc/libipc_single.z.so" 25 26 if (target_cpu == "arm") { 27 symlink_ext = [ "lib/platformsdk/libipc_core.z.so" ] 28 } else if (target_cpu == "arm64" || target_cpu == "x86_64") { 29 symlink_ext = [ "lib64/platformsdk/libipc_core.z.so" ] 30 } 31 public_configs = [ 32 "$SUBSYSTEM_DIR/config:dsoftbus_header_deps_config", 33 "$SUBSYSTEM_DIR/config:ipc_util_config", 34 ":ipc_all_deps_config", 35 ] 36 37 deps = [ "$SUBSYSTEM_DIR/interfaces/innerkits/ipc_single:ipc_single" ] 38 39 install_enable = true 40 innerapi_tags = [ 41 "chipsetsdk", 42 "platformsdk", 43 "sasdk", 44 ] 45 46 install_images = [ 47 system_base_dir, 48 updater_base_dir, 49 ] 50 subsystem_name = "communication" 51 part_name = "ipc" 52} 53