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 13import("../../../batterymgr.gni") 14 15## Install locale_path.json to /system/etc/battery/resources/locale_path.json 16ohos_prebuilt_etc("battery_locale_path") { 17 source = "locale_path.json" 18 relative_install_dir = "battery/resources" 19 part_name = "${batterymgr_native_part_name}" 20 subsystem_name = "powermgr" 21} 22 23## Install base/element/string.json to /system/etc/battery/resources/base/element/string.json 24ohos_prebuilt_etc("battery_notification_base") { 25 source = "base/element/string.json" 26 relative_install_dir = "battery/resources/base/element" 27 part_name = "${batterymgr_native_part_name}" 28 subsystem_name = "powermgr" 29} 30 31## Install zh_CN/element/string.json to /system/etc/battery/resources/zh_CN/element/string.json 32ohos_prebuilt_etc("battery_notification_zh_CN") { 33 source = "zh_CN/element/string.json" 34 relative_install_dir = "battery/resources/zh_CN/element" 35 part_name = "${batterymgr_native_part_name}" 36 subsystem_name = "powermgr" 37} 38 39## Install bo_CN/element/string.json to /system/etc/battery/resources/bo_CN/element/string.json 40ohos_prebuilt_etc("battery_notification_bo_CN") { 41 source = "bo_CN/element/string.json" 42 relative_install_dir = "battery/resources/bo_CN/element" 43 part_name = "${batterymgr_native_part_name}" 44 subsystem_name = "powermgr" 45} 46 47## Install ug/element/string.json to /system/etc/battery/resources/ug/element/string.json 48ohos_prebuilt_etc("battery_notification_ug") { 49 source = "ug/element/string.json" 50 relative_install_dir = "battery/resources/ug/element" 51 part_name = "${batterymgr_native_part_name}" 52 subsystem_name = "powermgr" 53} 54 55## Install zh_HK/element/string.json to /system/etc/battery/resources/zh_HK/element/string.json 56ohos_prebuilt_etc("battery_notification_zh_HK") { 57 source = "zh_HK/element/string.json" 58 relative_install_dir = "battery/resources/zh_HK/element" 59 part_name = "${batterymgr_native_part_name}" 60 subsystem_name = "powermgr" 61} 62 63## Install zh_TW/element/string.json to /system/etc/battery/resources/zh_TW/element/string.json 64ohos_prebuilt_etc("battery_notification_zh_TW") { 65 source = "zh_TW/element/string.json" 66 relative_install_dir = "battery/resources/zh_TW/element" 67 part_name = "${batterymgr_native_part_name}" 68 subsystem_name = "powermgr" 69} 70 71## Install zz_ZX/element/string.json to /system/etc/battery/resources/zz_ZX/element/string.json 72ohos_prebuilt_etc("battery_notification_zz_ZX") { 73 source = "zz_ZX/element/string.json" 74 relative_install_dir = "battery/resources/zz_ZX/element" 75 part_name = "${batterymgr_native_part_name}" 76 subsystem_name = "powermgr" 77} 78