1# Copyright (c) 2021-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 14declare_args() { 15 ams_path = "//foundation/ability/ability_runtime" 16 dms_path = "//foundation/ability/dmsfwk" 17 module_output_path = "dmsfwk/dmsfwk" 18 communication_path = "//foundation/communication" 19 dmsfwk_standard_form_share = true 20 dmsfwk_mission_manager = false 21 efficiency_manager_service_enable = false 22 dmsfwk_report_memmgr = false 23 dmsfwk_report_memmgr_plugins = false 24 dmsfwk_softbus_adapter_common = true 25 dmsfwk_service_disable = false 26 dmsfwk_ces_listener = false 27 dmsfwk_mmi_listener = false 28 if (defined(global_parts_info)) { 29 if (defined(global_parts_info.multimedia_image_framework)) { 30 dmsfwk_mission_manager = true 31 } 32 if (defined(global_parts_info.resourceschedule_efficiency_manager)) { 33 efficiency_manager_service_enable = true 34 } 35 if (defined(global_parts_info.resourceschedule_memmgr)) { 36 dmsfwk_report_memmgr = true 37 } 38 if (defined(global_parts_info.resourceschedule_plugins_memmgr)) { 39 dmsfwk_report_memmgr_plugins = true 40 } 41 if (defined(global_parts_info.notification_common_event_service)) { 42 dmsfwk_ces_listener = true 43 } 44 if (defined(global_parts_info.multimodalinput_input)) { 45 dmsfwk_mmi_listener = true 46 } 47 } 48 if (!defined(global_parts_info) || 49 defined(global_parts_info.distributedhardware_device_manager)) { 50 token_sync_enable = true 51 } else { 52 token_sync_enable = false 53 } 54 if (!defined(global_parts_info) || 55 defined(global_parts_info.account_os_account)) { 56 os_account_part = true 57 } else { 58 os_account_part = false 59 } 60} 61