1# Copyright (c) 2022-2025 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 14rpc_ani_path = "//foundation/communication/ipc/ipc/native/src/ani" 15IPC_ROOT_PATH = "//foundation/communication/ipc" 16IPC_UNITTEST_ROOT_PATH = "$IPC_ROOT_PATH/test/unittest" 17 18declare_args() { 19 ipc_feature_rpc_enabled = false 20 ipc_feature_test_enabled = false 21 ipc_feature_trace_enabled = false 22 resourceschedule_ffrt_support = false 23 hiviewdfx_backtrace_support = false 24 hiviewdfx_hisysevent_support = false 25 ipc_proxy_dfx_backtrace_enabled = false 26} 27 28if (defined(global_parts_info) && 29 defined(global_parts_info.security_access_token)) { 30 ipc_feature_test_enabled = true 31} 32 33if (defined(global_parts_info) && 34 defined(global_parts_info.resourceschedule_ffrt)) { 35 resourceschedule_ffrt_support = true 36} 37 38if (defined(global_parts_info) && 39 defined(global_parts_info.hiviewdfx_faultloggerd)) { 40 hiviewdfx_backtrace_support = true 41} 42 43if (defined(global_parts_info) && 44 defined(global_parts_info.hiviewdfx_hisysevent)) { 45 hiviewdfx_hisysevent_support = true 46} 47