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