14f7ff21fSopenharmony_ci# Copyright (c) 2024 Huawei Device Co., Ltd.
24f7ff21fSopenharmony_ci# Licensed under the Apache License, Version 2.0 (the "License");
34f7ff21fSopenharmony_ci# you may not use this file except in compliance with the License.
44f7ff21fSopenharmony_ci# You may obtain a copy of the License at
54f7ff21fSopenharmony_ci#
64f7ff21fSopenharmony_ci#     http://www.apache.org/licenses/LICENSE-2.0
74f7ff21fSopenharmony_ci#
84f7ff21fSopenharmony_ci# Unless required by applicable law or agreed to in writing, software
94f7ff21fSopenharmony_ci# distributed under the License is distributed on an "AS IS" BASIS,
104f7ff21fSopenharmony_ci# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
114f7ff21fSopenharmony_ci# See the License for the specific language governing permissions and
124f7ff21fSopenharmony_ci# limitations under the License.
134f7ff21fSopenharmony_ci
144f7ff21fSopenharmony_cideclare_args() {
154f7ff21fSopenharmony_ci  use_display_manager_component = true
164f7ff21fSopenharmony_ci  if (defined(global_parts_info) &&
174f7ff21fSopenharmony_ci      !defined(global_parts_info.powermgr_display_manager)) {
184f7ff21fSopenharmony_ci    use_display_manager_component = false
194f7ff21fSopenharmony_ci  }
204f7ff21fSopenharmony_ci
214f7ff21fSopenharmony_ci  use_power_manager_component = true
224f7ff21fSopenharmony_ci  if (defined(global_parts_info) &&
234f7ff21fSopenharmony_ci      !defined(global_parts_info.powermgr_power_manager)) {
244f7ff21fSopenharmony_ci    use_power_manager_component = false
254f7ff21fSopenharmony_ci    use_display_manager_component = false
264f7ff21fSopenharmony_ci  }
274f7ff21fSopenharmony_ci}
28