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_ciimport("//build/ohos.gni")
153e5483f6Sopenharmony_ciimport("//foundation/multimedia/ringtone_library/ringtone_library.gni")
163e5483f6Sopenharmony_ci
173e5483f6Sopenharmony_ciconfig("ringtone_public_config") {
183e5483f6Sopenharmony_ci  include_dirs = [
193e5483f6Sopenharmony_ci    "${RINGTONE_SCANNER_PATH}/include",
203e5483f6Sopenharmony_ci    "${RINGTONE_RESTORE_PATH}/include",
213e5483f6Sopenharmony_ci    "${RINGTONE_EXTENSION_PATH}/include",
223e5483f6Sopenharmony_ci    "${RINGTONE_DFX_PATH}/include",
233e5483f6Sopenharmony_ci    "${RINGTONE_UTILS_PATH}/include",
243e5483f6Sopenharmony_ci    "${RINGTONE_INTERFACES_PATH}/inner_api/native",
253e5483f6Sopenharmony_ci    "${RINGTONE_SETTING_PATH}/include",
263e5483f6Sopenharmony_ci  ]
273e5483f6Sopenharmony_ci  ldflags = [ "-Wl,--gc-sections" ]
283e5483f6Sopenharmony_ci
293e5483f6Sopenharmony_ci  cflags = [
303e5483f6Sopenharmony_ci    "-Wall",
313e5483f6Sopenharmony_ci    "-Werror",
323e5483f6Sopenharmony_ci    "-fvisibility=hidden",
333e5483f6Sopenharmony_ci    "-fdata-sections",
343e5483f6Sopenharmony_ci    "-ffunction-sections",
353e5483f6Sopenharmony_ci    "-Wno-unused-but-set-variable",
363e5483f6Sopenharmony_ci    "-Os",
373e5483f6Sopenharmony_ci  ]
383e5483f6Sopenharmony_ci
393e5483f6Sopenharmony_ci  cflags_cc = [
403e5483f6Sopenharmony_ci    "-fvisibility-inlines-hidden",
413e5483f6Sopenharmony_ci    "-Os",
423e5483f6Sopenharmony_ci  ]
433e5483f6Sopenharmony_ci
443e5483f6Sopenharmony_ci  if (target_cpu == "arm") {
453e5483f6Sopenharmony_ci    cflags += [ "-DBINDER_IPC_32BIT" ]
463e5483f6Sopenharmony_ci  }
473e5483f6Sopenharmony_ci}
483e5483f6Sopenharmony_ci
493e5483f6Sopenharmony_ciohos_shared_library("ringtone_data_extension") {
503e5483f6Sopenharmony_ci  install_enable = true
513e5483f6Sopenharmony_ci
523e5483f6Sopenharmony_ci  ringtone_scan_source = [
533e5483f6Sopenharmony_ci    "${RINGTONE_SCANNER_PATH}/src/ringtone_default_setting.cpp",
543e5483f6Sopenharmony_ci    "${RINGTONE_SCANNER_PATH}/src/ringtone_metadata_extractor.cpp",
553e5483f6Sopenharmony_ci    "${RINGTONE_SCANNER_PATH}/src/ringtone_scan_executor.cpp",
563e5483f6Sopenharmony_ci    "${RINGTONE_SCANNER_PATH}/src/ringtone_scanner.cpp",
573e5483f6Sopenharmony_ci    "${RINGTONE_SCANNER_PATH}/src/ringtone_scanner_db.cpp",
583e5483f6Sopenharmony_ci    "${RINGTONE_SCANNER_PATH}/src/ringtone_scanner_manager.cpp",
593e5483f6Sopenharmony_ci    "${RINGTONE_SCANNER_PATH}/src/ringtone_scanner_utils.cpp",
603e5483f6Sopenharmony_ci  ]
613e5483f6Sopenharmony_ci
623e5483f6Sopenharmony_ci  ringtone_dfx_source = [
633e5483f6Sopenharmony_ci    "${RINGTONE_DFX_PATH}/src/dfx_manager.cpp",
643e5483f6Sopenharmony_ci    "${RINGTONE_DFX_PATH}/src/dfx_reporter.cpp",
653e5483f6Sopenharmony_ci    "${RINGTONE_DFX_PATH}/src/dfx_worker.cpp",
663e5483f6Sopenharmony_ci  ]
673e5483f6Sopenharmony_ci
683e5483f6Sopenharmony_ci  ringtone_extension_sources = [
693e5483f6Sopenharmony_ci    "${RINGTONE_EXTENSION_PATH}/src/ringtone_bundle_manager.cpp",
703e5483f6Sopenharmony_ci    "${RINGTONE_EXTENSION_PATH}/src/ringtone_data_command.cpp",
713e5483f6Sopenharmony_ci    "${RINGTONE_EXTENSION_PATH}/src/ringtone_data_manager.cpp",
723e5483f6Sopenharmony_ci    "${RINGTONE_EXTENSION_PATH}/src/ringtone_datashare_extension.cpp",
733e5483f6Sopenharmony_ci    "${RINGTONE_EXTENSION_PATH}/src/ringtone_datashare_stub_impl.cpp",
743e5483f6Sopenharmony_ci    "${RINGTONE_EXTENSION_PATH}/src/ringtone_language_manager.cpp",
753e5483f6Sopenharmony_ci    "${RINGTONE_EXTENSION_PATH}/src/ringtone_rdbstore.cpp",
763e5483f6Sopenharmony_ci    "${RINGTONE_EXTENSION_PATH}/src/ringtone_subscriber.cpp",
773e5483f6Sopenharmony_ci  ]
783e5483f6Sopenharmony_ci
793e5483f6Sopenharmony_ci  sources = ringtone_extension_sources
803e5483f6Sopenharmony_ci  sources += ringtone_scan_source
813e5483f6Sopenharmony_ci  sources += ringtone_dfx_source
823e5483f6Sopenharmony_ci
833e5483f6Sopenharmony_ci  public_configs = [ ":ringtone_public_config" ]
843e5483f6Sopenharmony_ci
853e5483f6Sopenharmony_ci  deps = [
863e5483f6Sopenharmony_ci    ":ringtone_param.para.dac",
873e5483f6Sopenharmony_ci    ":ringtone_scanner_param.para",
883e5483f6Sopenharmony_ci    ":ringtone_setting",
893e5483f6Sopenharmony_ci    ":ringtone_setting_notifications.para",
903e5483f6Sopenharmony_ci    ":ringtone_setting_ringtones.para",
913e5483f6Sopenharmony_ci    ":ringtone_setting_shots.para",
923e5483f6Sopenharmony_ci    ":ringtone_utils",
933e5483f6Sopenharmony_ci    "${RINGTONE_ROOT_PATH}/services/ringtone_helper:ringtone_data_helper",
943e5483f6Sopenharmony_ci  ]
953e5483f6Sopenharmony_ci
963e5483f6Sopenharmony_ci  external_deps = [
973e5483f6Sopenharmony_ci    "ability_base:want",
983e5483f6Sopenharmony_ci    "ability_base:zuri",
993e5483f6Sopenharmony_ci    "ability_runtime:app_context",
1003e5483f6Sopenharmony_ci    "ability_runtime:app_manager",
1013e5483f6Sopenharmony_ci    "ability_runtime:extensionkit_native",
1023e5483f6Sopenharmony_ci    "ability_runtime:runtime",
1033e5483f6Sopenharmony_ci    "access_token:libaccesstoken_sdk",
1043e5483f6Sopenharmony_ci    "access_token:libprivacy_sdk",
1053e5483f6Sopenharmony_ci    "c_utils:utils",
1063e5483f6Sopenharmony_ci    "common_event_service:cesfwk_innerkits",
1073e5483f6Sopenharmony_ci    "data_share:datashare_common",
1083e5483f6Sopenharmony_ci    "data_share:datashare_consumer",
1093e5483f6Sopenharmony_ci    "data_share:datashare_provider",
1103e5483f6Sopenharmony_ci    "hilog:libhilog",
1113e5483f6Sopenharmony_ci    "hisysevent:libhisysevent",
1123e5483f6Sopenharmony_ci    "hitrace:hitrace_meter",
1133e5483f6Sopenharmony_ci    "init:libbegetutil",
1143e5483f6Sopenharmony_ci    "ipc:ipc_core",
1153e5483f6Sopenharmony_ci    "libxml2:libxml2",
1163e5483f6Sopenharmony_ci    "napi:ace_napi",
1173e5483f6Sopenharmony_ci    "player_framework:media_client",
1183e5483f6Sopenharmony_ci    "preferences:native_preferences",
1193e5483f6Sopenharmony_ci    "relational_store:native_rdb",
1203e5483f6Sopenharmony_ci    "relational_store:rdb_data_share_adapter",
1213e5483f6Sopenharmony_ci    "samgr:samgr_proxy",
1223e5483f6Sopenharmony_ci  ]
1233e5483f6Sopenharmony_ci
1243e5483f6Sopenharmony_ci  if (!ringtone_link_opt) {
1253e5483f6Sopenharmony_ci    sanitize = {
1263e5483f6Sopenharmony_ci      cfi = true
1273e5483f6Sopenharmony_ci      cfi_cross_dso = true
1283e5483f6Sopenharmony_ci      debug = false
1293e5483f6Sopenharmony_ci      integer_overflow = true
1303e5483f6Sopenharmony_ci      ubsan = true
1313e5483f6Sopenharmony_ci      boundary_sanitize = true
1323e5483f6Sopenharmony_ci      stack_protector_ret = true
1333e5483f6Sopenharmony_ci    }
1343e5483f6Sopenharmony_ci  }
1353e5483f6Sopenharmony_ci
1363e5483f6Sopenharmony_ci  if (ringtone_config_policy_enable) {
1373e5483f6Sopenharmony_ci    defines = [ "USE_CONFIG_POLICY" ]
1383e5483f6Sopenharmony_ci    external_deps += [ "config_policy:configpolicy_util" ]
1393e5483f6Sopenharmony_ci  }
1403e5483f6Sopenharmony_ci
1413e5483f6Sopenharmony_ci  subsystem_name = "multimedia"
1423e5483f6Sopenharmony_ci  part_name = "ringtone_library"
1433e5483f6Sopenharmony_ci}
1443e5483f6Sopenharmony_ci
1453e5483f6Sopenharmony_ciohos_shared_library("ringtonerestore") {
1463e5483f6Sopenharmony_ci  include_dirs = [
1473e5483f6Sopenharmony_ci    "${RINGTONE_RESTORE_PATH}/include",
1483e5483f6Sopenharmony_ci    "${RINGTONE_UTILS_PATH}/include",
1493e5483f6Sopenharmony_ci    "${RINGTONE_INTERFACES_PATH}/inner_api/native",
1503e5483f6Sopenharmony_ci  ]
1513e5483f6Sopenharmony_ci
1523e5483f6Sopenharmony_ci  sources = [
1533e5483f6Sopenharmony_ci    "${RINGTONE_RESTORE_PATH}/src/dualfwk_conf_loader.cpp",
1543e5483f6Sopenharmony_ci    "${RINGTONE_RESTORE_PATH}/src/dualfwk_conf_parser.cpp",
1553e5483f6Sopenharmony_ci    "${RINGTONE_RESTORE_PATH}/src/dualfwk_sound_setting.cpp",
1563e5483f6Sopenharmony_ci    "${RINGTONE_RESTORE_PATH}/src/native_module_ohos_ringtone_restore.cpp",
1573e5483f6Sopenharmony_ci    "${RINGTONE_RESTORE_PATH}/src/ringtone_dualfwk_restore.cpp",
1583e5483f6Sopenharmony_ci    "${RINGTONE_RESTORE_PATH}/src/ringtone_rdb_transaction.cpp",
1593e5483f6Sopenharmony_ci    "${RINGTONE_RESTORE_PATH}/src/ringtone_restore.cpp",
1603e5483f6Sopenharmony_ci    "${RINGTONE_RESTORE_PATH}/src/ringtone_restore_base.cpp",
1613e5483f6Sopenharmony_ci    "${RINGTONE_RESTORE_PATH}/src/ringtone_restore_db_utils.cpp",
1623e5483f6Sopenharmony_ci    "${RINGTONE_RESTORE_PATH}/src/ringtone_restore_factory.cpp",
1633e5483f6Sopenharmony_ci    "${RINGTONE_RESTORE_PATH}/src/ringtone_restore_napi.cpp",
1643e5483f6Sopenharmony_ci  ]
1653e5483f6Sopenharmony_ci
1663e5483f6Sopenharmony_ci  configs = [ "//build/config/compiler:exceptions" ]
1673e5483f6Sopenharmony_ci
1683e5483f6Sopenharmony_ci  ldflags = [ "-Wl" ]
1693e5483f6Sopenharmony_ci
1703e5483f6Sopenharmony_ci  cflags_cc = [
1713e5483f6Sopenharmony_ci    "-fvisibility-inlines-hidden",
1723e5483f6Sopenharmony_ci    "-Os",
1733e5483f6Sopenharmony_ci  ]
1743e5483f6Sopenharmony_ci
1753e5483f6Sopenharmony_ci  deps = [
1763e5483f6Sopenharmony_ci    ":ringtone_data_extension",
1773e5483f6Sopenharmony_ci    ":ringtone_setting",
1783e5483f6Sopenharmony_ci    ":ringtone_utils",
1793e5483f6Sopenharmony_ci  ]
1803e5483f6Sopenharmony_ci
1813e5483f6Sopenharmony_ci  external_deps = [
1823e5483f6Sopenharmony_ci    "ability_base:zuri",
1833e5483f6Sopenharmony_ci    "ability_runtime:app_context",
1843e5483f6Sopenharmony_ci    "ability_runtime:app_manager",
1853e5483f6Sopenharmony_ci    "ability_runtime:extensionkit_native",
1863e5483f6Sopenharmony_ci    "ability_runtime:runtime",
1873e5483f6Sopenharmony_ci    "access_token:libaccesstoken_sdk",
1883e5483f6Sopenharmony_ci    "access_token:libnativetoken",
1893e5483f6Sopenharmony_ci    "access_token:libtoken_setproc",
1903e5483f6Sopenharmony_ci    "bundle_framework:appexecfwk_core",
1913e5483f6Sopenharmony_ci    "c_utils:utils",
1923e5483f6Sopenharmony_ci    "data_share:datashare_common",
1933e5483f6Sopenharmony_ci    "data_share:datashare_consumer",
1943e5483f6Sopenharmony_ci    "data_share:datashare_provider",
1953e5483f6Sopenharmony_ci    "hilog:libhilog",
1963e5483f6Sopenharmony_ci    "init:libbegetutil",
1973e5483f6Sopenharmony_ci    "libxml2:libxml2",
1983e5483f6Sopenharmony_ci    "media_library:media_library",
1993e5483f6Sopenharmony_ci    "napi:ace_napi",
2003e5483f6Sopenharmony_ci    "os_account:os_account_innerkits",
2013e5483f6Sopenharmony_ci    "player_framework:media_client",
2023e5483f6Sopenharmony_ci    "preferences:native_preferences",
2033e5483f6Sopenharmony_ci    "relational_store:native_rdb",
2043e5483f6Sopenharmony_ci    "relational_store:rdb_data_share_adapter",
2053e5483f6Sopenharmony_ci    "samgr:samgr_proxy",
2063e5483f6Sopenharmony_ci  ]
2073e5483f6Sopenharmony_ci
2083e5483f6Sopenharmony_ci  defines = []
2093e5483f6Sopenharmony_ci
2103e5483f6Sopenharmony_ci  sanitize = {
2113e5483f6Sopenharmony_ci    cfi = true
2123e5483f6Sopenharmony_ci    cfi_cross_dso = true
2133e5483f6Sopenharmony_ci    debug = false
2143e5483f6Sopenharmony_ci  }
2153e5483f6Sopenharmony_ci
2163e5483f6Sopenharmony_ci  relative_install_dir = "module/multimedia"
2173e5483f6Sopenharmony_ci  subsystem_name = "multimedia"
2183e5483f6Sopenharmony_ci  part_name = "ringtone_library"
2193e5483f6Sopenharmony_ci}
2203e5483f6Sopenharmony_ci
2213e5483f6Sopenharmony_ciconfig("ringtone_public_visible_config") {
2223e5483f6Sopenharmony_ci  visibility = [ ":*" ]
2233e5483f6Sopenharmony_ci}
2243e5483f6Sopenharmony_ci
2253e5483f6Sopenharmony_ciohos_shared_library("ringtone_utils") {
2263e5483f6Sopenharmony_ci  install_enable = true
2273e5483f6Sopenharmony_ci
2283e5483f6Sopenharmony_ci  include_dirs = [
2293e5483f6Sopenharmony_ci    "${RINGTONE_DFX_PATH}/include",
2303e5483f6Sopenharmony_ci    "${RINGTONE_UTILS_PATH}/include",
2313e5483f6Sopenharmony_ci    "${RINGTONE_INTERFACES_PATH}/inner_api/native",
2323e5483f6Sopenharmony_ci  ]
2333e5483f6Sopenharmony_ci
2343e5483f6Sopenharmony_ci  sources = [
2353e5483f6Sopenharmony_ci    "${RINGTONE_UTILS_PATH}/src/permission_utils.cpp",
2363e5483f6Sopenharmony_ci    "${RINGTONE_UTILS_PATH}/src/ringtone_file_utils.cpp",
2373e5483f6Sopenharmony_ci    "${RINGTONE_UTILS_PATH}/src/ringtone_mimetype_utils.cpp",
2383e5483f6Sopenharmony_ci    "${RINGTONE_UTILS_PATH}/src/ringtone_privacy_manager.cpp",
2393e5483f6Sopenharmony_ci    "${RINGTONE_UTILS_PATH}/src/ringtone_rdb_callbacks.cpp",
2403e5483f6Sopenharmony_ci    "${RINGTONE_UTILS_PATH}/src/ringtone_utils.cpp",
2413e5483f6Sopenharmony_ci  ]
2423e5483f6Sopenharmony_ci
2433e5483f6Sopenharmony_ci  public_configs = [ ":ringtone_public_visible_config" ]
2443e5483f6Sopenharmony_ci
2453e5483f6Sopenharmony_ci  cflags = [
2463e5483f6Sopenharmony_ci    "-Wall",
2473e5483f6Sopenharmony_ci    "-Werror",
2483e5483f6Sopenharmony_ci    "-Wno-unused-but-set-variable",
2493e5483f6Sopenharmony_ci    "-fdata-sections",
2503e5483f6Sopenharmony_ci    "-ffunction-sections",
2513e5483f6Sopenharmony_ci    "-Os",
2523e5483f6Sopenharmony_ci  ]
2533e5483f6Sopenharmony_ci
2543e5483f6Sopenharmony_ci  cflags_cc = [
2553e5483f6Sopenharmony_ci    "-fvisibility-inlines-hidden",
2563e5483f6Sopenharmony_ci    "-Os",
2573e5483f6Sopenharmony_ci  ]
2583e5483f6Sopenharmony_ci
2593e5483f6Sopenharmony_ci  external_deps = [
2603e5483f6Sopenharmony_ci    "ability_base:want",
2613e5483f6Sopenharmony_ci    "access_token:libaccesstoken_sdk",
2623e5483f6Sopenharmony_ci    "access_token:libprivacy_sdk",
2633e5483f6Sopenharmony_ci    "access_token:libtokenid_sdk",
2643e5483f6Sopenharmony_ci    "bundle_framework:appexecfwk_core",
2653e5483f6Sopenharmony_ci    "c_utils:utils",
2663e5483f6Sopenharmony_ci    "hilog:libhilog",
2673e5483f6Sopenharmony_ci    "hitrace:hitrace_meter",
2683e5483f6Sopenharmony_ci    "init:libbegetutil",
2693e5483f6Sopenharmony_ci    "ipc:ipc_core",
2703e5483f6Sopenharmony_ci    "preferences:native_preferences",
2713e5483f6Sopenharmony_ci    "relational_store:native_rdb",
2723e5483f6Sopenharmony_ci    "samgr:samgr_proxy",
2733e5483f6Sopenharmony_ci  ]
2743e5483f6Sopenharmony_ci
2753e5483f6Sopenharmony_ci  if (!ringtone_link_opt) {
2763e5483f6Sopenharmony_ci    sanitize = {
2773e5483f6Sopenharmony_ci      cfi = true
2783e5483f6Sopenharmony_ci      cfi_cross_dso = true
2793e5483f6Sopenharmony_ci      debug = false
2803e5483f6Sopenharmony_ci      integer_overflow = true
2813e5483f6Sopenharmony_ci      ubsan = true
2823e5483f6Sopenharmony_ci      boundary_sanitize = true
2833e5483f6Sopenharmony_ci      stack_protector_ret = true
2843e5483f6Sopenharmony_ci    }
2853e5483f6Sopenharmony_ci  }
2863e5483f6Sopenharmony_ci
2873e5483f6Sopenharmony_ci  subsystem_name = "multimedia"
2883e5483f6Sopenharmony_ci  part_name = "ringtone_library"
2893e5483f6Sopenharmony_ci}
2903e5483f6Sopenharmony_ci
2913e5483f6Sopenharmony_ciohos_shared_library("ringtone_setting") {
2923e5483f6Sopenharmony_ci  install_enable = true
2933e5483f6Sopenharmony_ci  include_dirs = [
2943e5483f6Sopenharmony_ci    "${RINGTONE_INTERFACES_PATH}/inner_api/native",
2953e5483f6Sopenharmony_ci    "${RINGTONE_SETTING_PATH}/include",
2963e5483f6Sopenharmony_ci    "${RINGTONE_UTILS_PATH}/include",
2973e5483f6Sopenharmony_ci  ]
2983e5483f6Sopenharmony_ci
2993e5483f6Sopenharmony_ci  sources = [
3003e5483f6Sopenharmony_ci    "${RINGTONE_SETTING_PATH}/src/ringtone_metadata.cpp",
3013e5483f6Sopenharmony_ci    "${RINGTONE_SETTING_PATH}/src/ringtone_setting_manager.cpp",
3023e5483f6Sopenharmony_ci    "${RINGTONE_SETTING_PATH}/src/vibrate_metadata.cpp",
3033e5483f6Sopenharmony_ci  ]
3043e5483f6Sopenharmony_ci
3053e5483f6Sopenharmony_ci  configs = [ "//build/config/compiler:exceptions" ]
3063e5483f6Sopenharmony_ci
3073e5483f6Sopenharmony_ci  deps = [ ":ringtone_utils" ]
3083e5483f6Sopenharmony_ci
3093e5483f6Sopenharmony_ci  public_configs = [ ":ringtone_public_visible_config" ]
3103e5483f6Sopenharmony_ci
3113e5483f6Sopenharmony_ci  ldflags = [ "-Wl,--gc-sections" ]
3123e5483f6Sopenharmony_ci
3133e5483f6Sopenharmony_ci  cflags = [
3143e5483f6Sopenharmony_ci    "-Wall",
3153e5483f6Sopenharmony_ci    "-Werror",
3163e5483f6Sopenharmony_ci    "-fvisibility=hidden",
3173e5483f6Sopenharmony_ci    "-fdata-sections",
3183e5483f6Sopenharmony_ci    "-ffunction-sections",
3193e5483f6Sopenharmony_ci    "-Wno-unused-but-set-variable",
3203e5483f6Sopenharmony_ci    "-Os",
3213e5483f6Sopenharmony_ci  ]
3223e5483f6Sopenharmony_ci
3233e5483f6Sopenharmony_ci  cflags_cc = [
3243e5483f6Sopenharmony_ci    "-fvisibility-inlines-hidden",
3253e5483f6Sopenharmony_ci    "-Os",
3263e5483f6Sopenharmony_ci  ]
3273e5483f6Sopenharmony_ci
3283e5483f6Sopenharmony_ci  external_deps = [
3293e5483f6Sopenharmony_ci    "c_utils:utils",
3303e5483f6Sopenharmony_ci    "hilog:libhilog",
3313e5483f6Sopenharmony_ci    "relational_store:native_rdb",
3323e5483f6Sopenharmony_ci  ]
3333e5483f6Sopenharmony_ci
3343e5483f6Sopenharmony_ci  defines = []
3353e5483f6Sopenharmony_ci
3363e5483f6Sopenharmony_ci  if (!ringtone_link_opt) {
3373e5483f6Sopenharmony_ci    sanitize = {
3383e5483f6Sopenharmony_ci      cfi = true
3393e5483f6Sopenharmony_ci      cfi_cross_dso = true
3403e5483f6Sopenharmony_ci      debug = false
3413e5483f6Sopenharmony_ci      integer_overflow = true
3423e5483f6Sopenharmony_ci      ubsan = true
3433e5483f6Sopenharmony_ci      boundary_sanitize = true
3443e5483f6Sopenharmony_ci      stack_protector_ret = true
3453e5483f6Sopenharmony_ci    }
3463e5483f6Sopenharmony_ci  }
3473e5483f6Sopenharmony_ci
3483e5483f6Sopenharmony_ci  subsystem_name = "multimedia"
3493e5483f6Sopenharmony_ci  part_name = "ringtone_library"
3503e5483f6Sopenharmony_ci}
3513e5483f6Sopenharmony_ci
3523e5483f6Sopenharmony_ciohos_prebuilt_etc("ringtone_scanner_param.para") {
3533e5483f6Sopenharmony_ci  source = "etc/ringtone_scanner_param.para"
3543e5483f6Sopenharmony_ci  subsystem_name = "multimedia"
3553e5483f6Sopenharmony_ci  part_name = "ringtone_library"
3563e5483f6Sopenharmony_ci  module_install_dir = "etc/param"
3573e5483f6Sopenharmony_ci}
3583e5483f6Sopenharmony_ci
3593e5483f6Sopenharmony_ciohos_prebuilt_etc("ringtone_setting_notifications.para") {
3603e5483f6Sopenharmony_ci  source = "etc/ringtone_setting_notifications.para"
3613e5483f6Sopenharmony_ci  subsystem_name = "multimedia"
3623e5483f6Sopenharmony_ci  part_name = "ringtone_library"
3633e5483f6Sopenharmony_ci  module_install_dir = "etc/param"
3643e5483f6Sopenharmony_ci}
3653e5483f6Sopenharmony_ci
3663e5483f6Sopenharmony_ciohos_prebuilt_etc("ringtone_setting_ringtones.para") {
3673e5483f6Sopenharmony_ci  source = "etc/ringtone_setting_ringtones.para"
3683e5483f6Sopenharmony_ci  subsystem_name = "multimedia"
3693e5483f6Sopenharmony_ci  part_name = "ringtone_library"
3703e5483f6Sopenharmony_ci  module_install_dir = "etc/param"
3713e5483f6Sopenharmony_ci}
3723e5483f6Sopenharmony_ci
3733e5483f6Sopenharmony_ciohos_prebuilt_etc("ringtone_setting_shots.para") {
3743e5483f6Sopenharmony_ci  source = "etc/ringtone_setting_shots.para"
3753e5483f6Sopenharmony_ci  subsystem_name = "multimedia"
3763e5483f6Sopenharmony_ci  part_name = "ringtone_library"
3773e5483f6Sopenharmony_ci  module_install_dir = "etc/param"
3783e5483f6Sopenharmony_ci}
3793e5483f6Sopenharmony_ci
3803e5483f6Sopenharmony_ciohos_prebuilt_etc("ringtone_param.para.dac") {
3813e5483f6Sopenharmony_ci  source = "etc/ringtone_param.para.dac"
3823e5483f6Sopenharmony_ci  subsystem_name = "multimedia"
3833e5483f6Sopenharmony_ci  part_name = "ringtone_library"
3843e5483f6Sopenharmony_ci  module_install_dir = "etc/param"
3853e5483f6Sopenharmony_ci}
386