1# Copyright (c) 2024 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 14RINGTONE_ROOT_PATH = "//foundation/multimedia/ringtone_library" 15RINGTONE_SERVICES_PATH = "${RINGTONE_ROOT_PATH}/services" 16RINGTONE_FRAMEWORKS_PATH = "${RINGTONE_ROOT_PATH}/frameworks" 17RINGTONE_INTERFACES_PATH = "${RINGTONE_ROOT_PATH}/interfaces" 18 19RINGTONE_EXT_HAP_PATH = "${RINGTONE_FRAMEWORKS_PATH}/ringtone_extension_hap" 20 21RINGTONE_SCANNER_PATH = "${RINGTONE_SERVICES_PATH}/ringtone_scanner" 22RINGTONE_RESTORE_PATH = "${RINGTONE_SERVICES_PATH}/ringtone_restore" 23RINGTONE_EXTENSION_PATH = "${RINGTONE_SERVICES_PATH}/ringtone_data_extension" 24RINGTONE_DFX_PATH = "${RINGTONE_SERVICES_PATH}/ringtone_dfx" 25RINGTONE_HELPER_PATH = "${RINGTONE_SERVICES_PATH}/ringtone_helper" 26RINGTONE_SETTING_PATH = "${RINGTONE_SERVICES_PATH}/ringtone_setting" 27RINGTONE_UTILS_PATH = "${RINGTONE_SERVICES_PATH}/utils" 28 29declare_args() { 30 ringtone_link_opt = false 31 ringtone_config_policy_enable = true 32 33 if (!defined(global_parts_info) || 34 defined(global_parts_info.customization_config_policy)) { 35 ringtone_config_policy_enable = true 36 } else { 37 ringtone_config_policy_enable = false 38 } 39} 40