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