• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright (c) 2025 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("//drivers/external_device_manager/extdevmgr.gni")
14
15## Install locale_path.json to /system/etc/peripheral/resources/locale_path.json
16ohos_prebuilt_etc("peripheral_locale_path") {
17  source = "locale_path.json"
18  relative_install_dir = "peripheral/resources"
19  part_name = "${ext_mgr_native_part_name}"
20  subsystem_name = "hdf"
21}
22
23## Install base/element/string.json to /system/etc/peripheral/resources/base/element/string.json
24ohos_prebuilt_etc("peripheral_notification_base") {
25  source = "base/element/string.json"
26  relative_install_dir = "peripheral/resources/base/element"
27  part_name = "${ext_mgr_native_part_name}"
28  subsystem_name = "hdf"
29}
30
31## Install bo_CN/element/string.json to /system/etc/peripheral/resources/bo_CN/element/string.json
32ohos_prebuilt_etc("peripheral_notification_bo_CN") {
33  source = "bo_CN/element/string.json"
34  relative_install_dir = "peripheral/resources/bo_CN/element"
35  part_name = "${ext_mgr_native_part_name}"
36  subsystem_name = "hdf"
37}
38
39## Install ug/element/string.json to /system/etc/peripheral/resources/ug/element/string.json
40ohos_prebuilt_etc("peripheral_notification_ug") {
41  source = "ug/element/string.json"
42  relative_install_dir = "peripheral/resources/ug/element"
43  part_name = "${ext_mgr_native_part_name}"
44  subsystem_name = "hdf"
45}
46
47## Install zh_CN/element/string.json to /system/etc/peripheral/resources/zh_CN/element/string.json
48ohos_prebuilt_etc("peripheral_notification_zh_CN") {
49  source = "zh_CN/element/string.json"
50  relative_install_dir = "peripheral/resources/zh_CN/element"
51  part_name = "${ext_mgr_native_part_name}"
52  subsystem_name = "hdf"
53}
54
55## Install zh_HK/element/string.json to /system/etc/peripheral/resources/zh_HK/element/string.json
56ohos_prebuilt_etc("peripheral_notification_zh_HK") {
57  source = "zh_HK/element/string.json"
58  relative_install_dir = "peripheral/resources/zh_HK/element"
59  part_name = "${ext_mgr_native_part_name}"
60  subsystem_name = "hdf"
61}
62
63## Install zh_TW/element/string.json to /system/etc/peripheral/resources/zh_TW/element/string.json
64ohos_prebuilt_etc("peripheral_notification_zh_TW") {
65  source = "zh_TW/element/string.json"
66  relative_install_dir = "peripheral/resources/zh_TW/element"
67  part_name = "${ext_mgr_native_part_name}"
68  subsystem_name = "hdf"
69}
70
71## Install zz_ZX/element/string.json to /system/etc/peripheral/resources/zz_ZX/element/string.json
72ohos_prebuilt_etc("peripheral_notification_zz_ZX") {
73  source = "zz_ZX/element/string.json"
74  relative_install_dir = "peripheral/resources/zz_ZX/element"
75  part_name = "${ext_mgr_native_part_name}"
76  subsystem_name = "hdf"
77}
78
79## Install peripheral_fault_icon.png to /system/etc/peripheral/resources/peripheral_fault_icon.png
80ohos_prebuilt_etc("peripheral_fault_icon") {
81  source = "peripheral_fault_icon.png"
82  relative_install_dir = "peripheral/resources"
83  part_name = "${ext_mgr_native_part_name}"
84  subsystem_name = "hdf"
85}