13e5483f6Sopenharmony_ci# Copyright (c) 2024 Huawei Device Co., Ltd. 23e5483f6Sopenharmony_ci# Licensed under the Apache License, Version 2.0 (the "License"); 33e5483f6Sopenharmony_ci# you may not use this file except in compliance with the License. 43e5483f6Sopenharmony_ci# You may obtain a copy of the License at 53e5483f6Sopenharmony_ci# 63e5483f6Sopenharmony_ci# http://www.apache.org/licenses/LICENSE-2.0 73e5483f6Sopenharmony_ci# 83e5483f6Sopenharmony_ci# Unless required by applicable law or agreed to in writing, software 93e5483f6Sopenharmony_ci# distributed under the License is distributed on an "AS IS" BASIS, 103e5483f6Sopenharmony_ci# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 113e5483f6Sopenharmony_ci# See the License for the specific language governing permissions and 123e5483f6Sopenharmony_ci# limitations under the License. 133e5483f6Sopenharmony_ci 143e5483f6Sopenharmony_ciRINGTONE_ROOT_PATH = "//foundation/multimedia/ringtone_library" 153e5483f6Sopenharmony_ciRINGTONE_SERVICES_PATH = "${RINGTONE_ROOT_PATH}/services" 163e5483f6Sopenharmony_ciRINGTONE_FRAMEWORKS_PATH = "${RINGTONE_ROOT_PATH}/frameworks" 173e5483f6Sopenharmony_ciRINGTONE_INTERFACES_PATH = "${RINGTONE_ROOT_PATH}/interfaces" 183e5483f6Sopenharmony_ci 193e5483f6Sopenharmony_ciRINGTONE_EXT_HAP_PATH = "${RINGTONE_FRAMEWORKS_PATH}/ringtone_extension_hap" 203e5483f6Sopenharmony_ci 213e5483f6Sopenharmony_ciRINGTONE_SCANNER_PATH = "${RINGTONE_SERVICES_PATH}/ringtone_scanner" 223e5483f6Sopenharmony_ciRINGTONE_RESTORE_PATH = "${RINGTONE_SERVICES_PATH}/ringtone_restore" 233e5483f6Sopenharmony_ciRINGTONE_EXTENSION_PATH = "${RINGTONE_SERVICES_PATH}/ringtone_data_extension" 243e5483f6Sopenharmony_ciRINGTONE_DFX_PATH = "${RINGTONE_SERVICES_PATH}/ringtone_dfx" 253e5483f6Sopenharmony_ciRINGTONE_HELPER_PATH = "${RINGTONE_SERVICES_PATH}/ringtone_helper" 263e5483f6Sopenharmony_ciRINGTONE_SETTING_PATH = "${RINGTONE_SERVICES_PATH}/ringtone_setting" 273e5483f6Sopenharmony_ciRINGTONE_UTILS_PATH = "${RINGTONE_SERVICES_PATH}/utils" 283e5483f6Sopenharmony_ci 293e5483f6Sopenharmony_cideclare_args() { 303e5483f6Sopenharmony_ci ringtone_link_opt = false 313e5483f6Sopenharmony_ci ringtone_config_policy_enable = true 323e5483f6Sopenharmony_ci 333e5483f6Sopenharmony_ci if (!defined(global_parts_info) || 343e5483f6Sopenharmony_ci defined(global_parts_info.customization_config_policy)) { 353e5483f6Sopenharmony_ci ringtone_config_policy_enable = true 363e5483f6Sopenharmony_ci } else { 373e5483f6Sopenharmony_ci ringtone_config_policy_enable = false 383e5483f6Sopenharmony_ci } 393e5483f6Sopenharmony_ci} 40