1# Copyright (c) 2022 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 14 15 16# 注意:如果target_type有了更改,要相应改变config.py中collector_config 17target_type: 18 - shared_library 19 - ohos_shared_library 20 - static_library 21 - ohos_static_library 22 - executable 23 - ohos_executable 24 - lite_library 25 - ohos_hap 26 - ohos_prebuilt_etc 27 - ohos_prebuilt_para 28 - ohos_sa_profile 29 - ohos_prebuilt_shared_library 30 - lite_component 31 - target 32 - unittest 33 - hap_pack 34 - copy 35 36subsystem_component: 37 save: true 38 filename: sub_com_info.json 39gn_info_file: gn_info.json 40 41# extension and prefix of products 42default_extension: 43 shared_library: .so 44 static_library: .a 45 app: .hap 46 47default_prefix: 48 shared_library: lib 49 static_library: lib 50 51# black list for command 'grep', it should be the subdirectory of the root path of oh 52black_list: 53 - .repo 54 - .ccache 55 - doc 56 - build 57 # 排除out目录,为了避免排除其他路径下的out目录,这里详细列出了out下的所有目录 58 - out/gen 59 - out/hispark_pegasus 60 - out/hispark_taurus 61 - out/kernel 62 - out/preloader 63 - out/rk3568 64 # 如果发现了跨形态的错误,如:检查A形态,但是发现将A形态的产品归属到B形态下了,则也可以将B形态的对应路径加在这里进行过滤 65 66# product configuration 67 68ipcamera_hispark_taurus: 69 product_infofile: ipcamera_hispark_taurus_product.json # 编译产物的信息 70 output_name: ipcamera_hispark_taurus_result.json # 输出文件的名字 71 product_dir: # [required] 72 root: out/hispark_taurus/ipcamera_hispark_taurus/rootfs 73 relative: 74 bin: bin 75 so: usr/lib 76 etc: etc 77 hap: system/internal 78 rest: True # 是否将上面root目录下除了relative指定的目录归到etc并进行匹配 79 query_order: # 匹配顺序,key应当何relative字段中的key一致,value应当在上面的target_type字段中 80 so: 81 - shared_library 82 - ohos_shared_library 83 - ohos_prebuilt_shared_library 84 - lite_library 85 - lite_component 86 - target 87 - unittest 88 bin: 89 - executable 90 - ohos_executable 91 - lite_component 92 - unittest 93 hap: 94 - hap_pack 95 # 对于脚本无法自动检测或误测部分,在这里手动配置 96 # manual_config: 97 # usr/lib/libplugin_demuxer_ffmpeg.so: # start with out 98 # subsystem: test_manual_config # [required] 99 # component: test_manual_config # [required] 100 # other_detail_info_key: other_detail_info_value # [optional] 101 102 103ipcamera_hispark_taurus_linux: 104 product_infofile: ipcamera_hispark_taurus_linux_product.json 105 output_name: ipcamera_hispark_taurus_linux_result.json 106 product_dir: 107 root: out/hispark_taurus/ipcamera_hispark_taurus_linux/rootfs 108 relative: 109 bin: bin 110 so: usr/lib 111 etc: etc 112 hap: system/internal 113 rest: True 114 query_order: 115 so: 116 - shared_library 117 - ohos_shared_library 118 - ohos_prebuilt_shared_library 119 - lite_library 120 - lite_component 121 - target 122 - unittest 123 hap: 124 - hap_pack 125 bin: 126 - executable 127 - ohos_executable 128 - lite_component 129 - unittest 130 131 132hispark_taurus_mini_system: 133 product_infofile: hispark_taurus_mini_system_product.json 134 output_name: hispark_taurus_mini_system_result.json 135 product_dir: 136 root: out/hispark_taurus/hispark_taurus_mini_system/rootfs 137 relative: 138 bin: bin 139 so: usr/lib 140 etc: etc 141 rest: True 142 query_order: 143 so: 144 - shared_library 145 - ohos_shared_library 146 - ohos_prebuilt_shared_library 147 - lite_library 148 - lite_component 149 - target 150 - unittest 151 bin: 152 - executable 153 - ohos_executable 154 - lite_component 155 - unittest 156 157wifiiot_hispark_pegasus: 158 product_infofile: wifiiot_hispark_pegasus_product.json 159 output_name: wifiiot_hispark_pegasus_result.json 160 product_dir: 161 root: out/hispark_pegasus/wifiiot_hispark_pegasus 162 relative: 163 a: libs 164 etc: etc 165 rest: False 166 query_order: 167 a: 168 - static_library 169 - ohos_static_library 170 - lite_library 171 - target 172 173hispark_pegasus_mini_system: 174 product_infofile: hispark_pegasus_mini_system_product.json 175 output_name: hispark_pegasus_mini_system_result.json 176 product_dir: 177 root: out/hispark_pegasus/hispark_pegasus_mini_system 178 relative: 179 a: libs 180 etc: etc 181 rest: False 182 query_order: 183 a: 184 - static_library 185 - ohos_static_library 186 - lite_library 187 - target 188 189rk3568: # rk的目前从packages/phone/system_module_info.json中分析准确度更高,因为rk基本都使用的是ohos_xxx,而lite/small的更多的是使用的gn原生target template 190 product_infofile: rk3568_mini_system_product.json 191 output_name: rk3568_mini_system_result.json 192 product_dir: 193 root: out/rk3568/packages/phone/system 194 relative: 195 so: lib 196 bin: bin 197 hap: app 198 etc: etc 199 rest: True 200 query_order: 201 so: 202 - ohos_shared_library 203 - shared_library 204 - ohos_prebuilt_shared_library 205 - lite_library 206 - lite_component 207 - target 208 - unittest 209 bin: 210 - ohos_executable 211 - executable 212 - lite_component 213 - unittest 214 hap: 215 - ohos_hap 216 - hap_pack 217 218