1d722e3fbSopenharmony_ci<?xml version="1.0" encoding="UTF-8"?>
2d722e3fbSopenharmony_ci<!-- Copyright (c) 2021-2023 Huawei Device Co., Ltd.
3d722e3fbSopenharmony_ci
4d722e3fbSopenharmony_ci     Licensed under the Apache License, Version 2.0 (the "License");
5d722e3fbSopenharmony_ci     you may not use this file except in compliance with the License.
6d722e3fbSopenharmony_ci     You may obtain a copy of the License at
7d722e3fbSopenharmony_ci
8d722e3fbSopenharmony_ci          http://www.apache.org/licenses/LICENSE-2.0
9d722e3fbSopenharmony_ci
10d722e3fbSopenharmony_ci     Unless required by applicable law or agreed to in writing, software
11d722e3fbSopenharmony_ci     distributed under the License is distributed on an "AS IS" BASIS,
12d722e3fbSopenharmony_ci     WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13d722e3fbSopenharmony_ci     See the License for the specific language governing permissions and
14d722e3fbSopenharmony_ci     limitations under the License.
15d722e3fbSopenharmony_ci     
16d722e3fbSopenharmony_ci     Notes:
17d722e3fbSopenharmony_ci     This is project config file for OpenHarmony OSS Audit Tool, if you have any questions or concerns, please email chenyaxun.
18d722e3fbSopenharmony_ci-->
19d722e3fbSopenharmony_ci<!-- OAT(OSS Audit Tool) configuration guide:
20d722e3fbSopenharmony_cibasedir: Root dir, the basedir + project path is the real source file location.
21d722e3fbSopenharmony_cilicensefile: 
22d722e3fbSopenharmony_ci1.If the project don't have "LICENSE" in root dir, please define all the license files in this project in , OAT will check license files according to this rule.
23d722e3fbSopenharmony_ci
24d722e3fbSopenharmony_citasklist(only for batch mode):
25d722e3fbSopenharmony_ci1. task: Define oat check thread, each task will start a new thread.
26d722e3fbSopenharmony_ci2. task name: Only an name, no practical effect.
27d722e3fbSopenharmony_ci3. task policy: Default policy for projects under this task, this field is required and the specified policy must defined in policylist.
28d722e3fbSopenharmony_ci4. task filter: Default filefilter for projects under this task, this field is required and the specified filefilter must defined in filefilterlist.
29d722e3fbSopenharmony_ci5. task project: Projects to be checked, the path field define the source root dir of the project.
30d722e3fbSopenharmony_ci
31d722e3fbSopenharmony_ci
32d722e3fbSopenharmony_cipolicyList:
33d722e3fbSopenharmony_ci1. policy: All policyitems will be merged to default OAT.xml rules, the name of policy doesn't affect OAT check process.
34d722e3fbSopenharmony_ci2. policyitem: The fields type, name, path, desc is required, and the fields rule, group, filefilter is optional,the default value is:
35d722e3fbSopenharmony_ci<policyitem type="" name="" path="" desc="" rule="may" group="defaultGroup" filefilter="defaultPolicyFilter"/>
36d722e3fbSopenharmony_ci3. policyitem type:
37d722e3fbSopenharmony_ci    "compatibility" is used to check license compatibility in the specified path; 
38d722e3fbSopenharmony_ci    "license" is used to check source license header in the specified path;
39d722e3fbSopenharmony_ci    "copyright" is used to check source copyright header in the specified path;
40d722e3fbSopenharmony_ci    "import" is used to check source dependency in the specified path, such as import ... ,include ...
41d722e3fbSopenharmony_ci    "filetype" is used to check file type in the specified path, supported file types: archive, binary
42d722e3fbSopenharmony_ci    "filename" is used to check whether the specified file exists in the specified path(support projectroot in default OAT.xml), supported file names: LICENSE, README, README.OpenSource
43d722e3fbSopenharmony_ci
44d722e3fbSopenharmony_ci4. policyitem name: This field is used for define the license, copyright, "*" means match all, the "!" prefix means could not match this value. For example, "!GPL" means can not use GPL license. 
45d722e3fbSopenharmony_ci5. policyitem path: This field is used for define the source file scope to apply this policyitem, the "!" prefix means exclude the files. For example, "!.*/lib/.*" means files in lib dir will be exclude while process this policyitem.
46d722e3fbSopenharmony_ci6. policyitem rule and group: These two fields are used together to merge policy results. "may" policyitems in the same group means any one in this group passed, the result will be passed.
47d722e3fbSopenharmony_ci7. policyitem filefilter: Used to bind filefilter which define filter rules.
48d722e3fbSopenharmony_ci8. filefilter: Filter rules, the type filename is used to filter file name, the type filepath is used to filter file path.
49d722e3fbSopenharmony_ci
50d722e3fbSopenharmony_ciNote:If the text contains special characters, please escape them according to the following rules:
51d722e3fbSopenharmony_ci" == &gt;
52d722e3fbSopenharmony_ci& == &gt;
53d722e3fbSopenharmony_ci' == &gt;
54d722e3fbSopenharmony_ci< == &gt;
55d722e3fbSopenharmony_ci> == &gt;
56d722e3fbSopenharmony_ci-->
57d722e3fbSopenharmony_ci<configuration>
58d722e3fbSopenharmony_ci    <oatconfig>
59d722e3fbSopenharmony_ci        <licensefile>meson.build</licensefile>
60d722e3fbSopenharmony_ci        <policylist>
61d722e3fbSopenharmony_ci            <policy name="projectPolicy" desc="">
62d722e3fbSopenharmony_ci                <policyitem type="license" name="Apache" path="BUILD.gn" rule="may" desc="Apache License"/>
63d722e3fbSopenharmony_ci                <policyitem type="license" name="MIT" path=".*" rule="may" desc="MIT License"/>
64d722e3fbSopenharmony_ci                <policyitem type="copyright" name="Advanced Micro Devices, Inc." path=".*" rule="may" desc=""/>
65d722e3fbSopenharmony_ci                <policyitem type="copyright" name="Broadcom" path=".*" rule="may" desc=""/>
66d722e3fbSopenharmony_ci                <policyitem type="copyright" name="Collabora Ltd." path=".*" rule="may" desc=""/>
67d722e3fbSopenharmony_ci                <policyitem type="copyright" name="Dave Airlie" path=".*" rule="may" desc=""/>
68d722e3fbSopenharmony_ci                <policyitem type="copyright" name="Eric Anholt" path=".*" rule="may" desc=""/>
69d722e3fbSopenharmony_ci                <policyitem type="copyright" name="Felix Kuehling" path=".*" rule="may" desc=""/>
70d722e3fbSopenharmony_ci                <policyitem type="copyright" name="Frank C. Earl" path=".*" rule="may" desc=""/>
71d722e3fbSopenharmony_ci                <policyitem type="copyright" name="Gareth Hughes" path=".*" rule="may" desc=""/>
72d722e3fbSopenharmony_ci                <policyitem type="copyright" name="Google, Inc" path=".*" rule="may" desc=""/>
73d722e3fbSopenharmony_ci                <policyitem type="copyright" name="Huawei Device Co., Ltd." path=".*" rule="may" desc=""/>
74d722e3fbSopenharmony_ci                <policyitem type="copyright" name="Intel Corporation" path=".*" rule="may" desc=""/>
75d722e3fbSopenharmony_ci                <policyitem type="copyright" name="Jakob Bornecrantz" path=".*" rule="may" desc=""/>
76d722e3fbSopenharmony_ci                <policyitem type="copyright" name="Leif Delgass" path=".*" rule="may" desc=""/>
77d722e3fbSopenharmony_ci                <policyitem type="copyright" name="NVIDIA Corporation" path=".*" rule="may" desc=""/>
78d722e3fbSopenharmony_ci                <policyitem type="copyright" name="Precision Insight, Inc." path=".*" rule="may" desc=""/>
79d722e3fbSopenharmony_ci                <policyitem type="copyright" name="Red Hat" path=".*" rule="may" desc=""/>
80d722e3fbSopenharmony_ci                <policyitem type="copyright" name="Stephane Marchesin." path=".*" rule="may" desc=""/>
81d722e3fbSopenharmony_ci                <policyitem type="copyright" name="S3 Graphics, Inc." path=".*" rule="may" desc=""/>
82d722e3fbSopenharmony_ci                <policyitem type="copyright" name="Tungsten Graphics, Inc." path=".*" rule="may" desc=""/>
83d722e3fbSopenharmony_ci                <policyitem type="copyright" name="VA Linux Systems, Inc." path=".*" rule="may" desc=""/>
84d722e3fbSopenharmony_ci                <policyitem type="copyright" name="VIA Technologies, Inc." path=".*" rule="may" desc=""/>
85d722e3fbSopenharmony_ci                <policyitem type="copyright" name="VMware, Inc." path=".*" rule="may" desc=""/>
86d722e3fbSopenharmony_ci            </policy>
87d722e3fbSopenharmony_ci        </policylist>
88d722e3fbSopenharmony_ci        <filefilterlist>
89d722e3fbSopenharmony_ci            <filefilter name="defaultFilter" desc="Files not to check">
90d722e3fbSopenharmony_ci                <filteritem type="filepath" name="amdgpu/.*" desc="not used in ohos"/>
91d722e3fbSopenharmony_ci                <filteritem type="filepath" name="android/.*" desc="not used in ohos"/>
92d722e3fbSopenharmony_ci                <filteritem type="filepath" name="data/.*" desc="not used in ohos"/>
93d722e3fbSopenharmony_ci                <filteritem type="filepath" name="etnaviv/.*" desc="not used in ohos"/>
94d722e3fbSopenharmony_ci                <filteritem type="filepath" name="exynos/.*" desc="not used in ohos"/>
95d722e3fbSopenharmony_ci                <filteritem type="filepath" name="freedreno/.*" desc="not used in ohos"/>
96d722e3fbSopenharmony_ci                <filteritem type="filepath" name="intel/.*" desc="not used in ohos"/>
97d722e3fbSopenharmony_ci                <filteritem type="filepath" name="man/.*" desc="not used in ohos"/>
98d722e3fbSopenharmony_ci                <filteritem type="filepath" name="nouveau/.*" desc="not used in ohos"/>
99d722e3fbSopenharmony_ci                <filteritem type="filepath" name="omap/.*" desc="not used in ohos"/>
100d722e3fbSopenharmony_ci                <filteritem type="filepath" name="radeon/.*" desc="not used in ohos"/>
101d722e3fbSopenharmony_ci                <filteritem type="filepath" name="tegra/.*" desc="not used in ohos"/>
102d722e3fbSopenharmony_ci                <filteritem type="filepath" name="tests/.*" desc="not used in ohos"/>
103d722e3fbSopenharmony_ci                <filteritem type="filepath" name="vc4/.*" desc="not used in ohos"/>
104d722e3fbSopenharmony_ci                <filteritem type="filename" name="*.build|*.in|*.mk|*.py|*.rst|*.sources|*.txt" desc="not used in ohos"/>
105d722e3fbSopenharmony_ci                <filteritem type="filename" name="CONTRIBUTING.rst" desc="not used in ohos"/>
106d722e3fbSopenharmony_ci                <filteritem type="filename" name="RELEASING" desc="not used in ohos"/>
107d722e3fbSopenharmony_ci                <filteritem type="filename" name="generated_static_table_fourcc.h" desc="generated by meson, no license"/>
108d722e3fbSopenharmony_ci            </filefilter>
109d722e3fbSopenharmony_ci            <filefilter name="defaultPolicyFilter" desc="Filters for compatibility, license header policies">
110d722e3fbSopenharmony_ci                <filteritem type="filename" name="README.*"/>
111d722e3fbSopenharmony_ci            </filefilter>
112d722e3fbSopenharmony_ci        </filefilterlist>
113d722e3fbSopenharmony_ci        <licensematcherlist>
114d722e3fbSopenharmony_ci            <licensematcher name="MIT" desc="Filters for MIT License" >
115d722e3fbSopenharmony_ci                <licensetext name="
116d722e3fbSopenharmony_ci                    * Permission is hereby granted, free of charge, to any person obtaining a
117d722e3fbSopenharmony_ci                    * copy of this software and associated documentation files (the
118d722e3fbSopenharmony_ci                    * &gt;Software&gt;), to deal in the Software without restriction, including
119d722e3fbSopenharmony_ci                    * without limitation the rights to use, copy, modify, merge, publish,
120d722e3fbSopenharmony_ci                    * distribute, sub license, and/or sell copies of the Software, and to
121d722e3fbSopenharmony_ci                    * permit persons to whom the Software is furnished to do so, subject to
122d722e3fbSopenharmony_ci                    * the following conditions:
123d722e3fbSopenharmony_ci                    *
124d722e3fbSopenharmony_ci                    * THE SOFTWARE IS PROVIDED &gt;AS IS&gt;, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
125d722e3fbSopenharmony_ci                    * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
126d722e3fbSopenharmony_ci                    * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL
127d722e3fbSopenharmony_ci                    * THE COPYRIGHT HOLDERS, AUTHORS AND/OR ITS SUPPLIERS BE LIABLE FOR ANY CLAIM,
128d722e3fbSopenharmony_ci                    * DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
129d722e3fbSopenharmony_ci                    * OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
130d722e3fbSopenharmony_ci                    * USE OR OTHER DEALINGS IN THE SOFTWARE.
131d722e3fbSopenharmony_ci                    *
132d722e3fbSopenharmony_ci                    * The above copyright notice and this permission notice (including the
133d722e3fbSopenharmony_ci                    * next paragraph) shall be included in all copies or substantial portions
134d722e3fbSopenharmony_ci                    * of the Software."/>
135d722e3fbSopenharmony_ci            </licensematcher>
136d722e3fbSopenharmony_ci        </licensematcherlist>
137d722e3fbSopenharmony_ci    </oatconfig>
138d722e3fbSopenharmony_ci</configuration>
139