146407a4bSopenharmony_ci<?xml version="1.0" encoding="UTF-8"?>
246407a4bSopenharmony_ci<!-- Copyright (c) 2021 Huawei Device Co., Ltd.
346407a4bSopenharmony_ci
446407a4bSopenharmony_ci     Licensed under the Apache License, Version 2.0 (the "License");
546407a4bSopenharmony_ci     you may not use this file except in compliance with the License.
646407a4bSopenharmony_ci     You may obtain a copy of the License at
746407a4bSopenharmony_ci
846407a4bSopenharmony_ci          http://www.apache.org/licenses/LICENSE-2.0
946407a4bSopenharmony_ci
1046407a4bSopenharmony_ci     Unless required by applicable law or agreed to in writing, software
1146407a4bSopenharmony_ci     distributed under the License is distributed on an "AS IS" BASIS,
1246407a4bSopenharmony_ci     WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1346407a4bSopenharmony_ci     See the License for the specific language governing permissions and
1446407a4bSopenharmony_ci     limitations under the License.
1546407a4bSopenharmony_ci     
1646407a4bSopenharmony_ci     Notes:
1746407a4bSopenharmony_ci     This is project config file for OpenHarmony OSS Audit Tool, if you have any questions or concerns, please email chenyaxun.
1846407a4bSopenharmony_ci-->
1946407a4bSopenharmony_ci<!-- OAT(OSS Audit Tool) configuration guide:
2046407a4bSopenharmony_cibasedir: Root dir, the basedir + project path is the real source file location.
2146407a4bSopenharmony_cilicensefile: 
2246407a4bSopenharmony_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.
2346407a4bSopenharmony_ci
2446407a4bSopenharmony_citasklist(only for batch mode):
2546407a4bSopenharmony_ci1. task: Define oat check thread, each task will start a new thread.
2646407a4bSopenharmony_ci2. task name: Only an name, no practical effect.
2746407a4bSopenharmony_ci3. task policy: Default policy for projects under this task, this field is required and the specified policy must defined in policylist.
2846407a4bSopenharmony_ci4. task filter: Default filefilter for projects under this task, this field is required and the specified filefilter must defined in filefilterlist.
2946407a4bSopenharmony_ci5. task project: Projects to be checked, the path field define the source root dir of the project.
3046407a4bSopenharmony_ci
3146407a4bSopenharmony_ci
3246407a4bSopenharmony_cipolicyList:
3346407a4bSopenharmony_ci1. policy: All policyitems will be merged to default OAT.xml rules, the name of policy doesn't affect OAT check process.
3446407a4bSopenharmony_ci2. policyitem: The fields type, name, path, desc is required, and the fields rule, group, filefilter is optional,the default value is:
3546407a4bSopenharmony_ci<policyitem type="" name="" path="" desc="" rule="may" group="defaultGroup" filefilter="defaultPolicyFilter"/>
3646407a4bSopenharmony_ci3. policyitem type:
3746407a4bSopenharmony_ci    "compatibility" is used to check license compatibility in the specified path; 
3846407a4bSopenharmony_ci    "license" is used to check source license header in the specified path;
3946407a4bSopenharmony_ci    "copyright" is used to check source copyright header in the specified path;
4046407a4bSopenharmony_ci    "import" is used to check source dependency in the specified path, such as import ... ,include ...
4146407a4bSopenharmony_ci    "filetype" is used to check file type in the specified path, supported file types: archive, binary
4246407a4bSopenharmony_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
4346407a4bSopenharmony_ci
4446407a4bSopenharmony_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. 
4546407a4bSopenharmony_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.
4646407a4bSopenharmony_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.
4746407a4bSopenharmony_ci7. policyitem filefilter: Used to bind filefilter which define filter rules.
4846407a4bSopenharmony_ci8. filefilter: Filter rules, the type filename is used to filter file name, the type filepath is used to filter file path.
4946407a4bSopenharmony_ci
5046407a4bSopenharmony_ciNote:If the text contains special characters, please escape them according to the following rules:
5146407a4bSopenharmony_ci" == &gt;
5246407a4bSopenharmony_ci& == &gt;
5346407a4bSopenharmony_ci' == &gt;
5446407a4bSopenharmony_ci< == &gt;
5546407a4bSopenharmony_ci> == &gt;
5646407a4bSopenharmony_ci-->
5746407a4bSopenharmony_ci<configuration>
5846407a4bSopenharmony_ci    <oatconfig>
5946407a4bSopenharmony_ci        <licensefile>LICENSE.TXT</licensefile>
6046407a4bSopenharmony_ci        <policylist>
6146407a4bSopenharmony_ci            <policy name="projectPolicy" desc="">
6246407a4bSopenharmony_ci                <policyitem type="compatibility" name="FTL" path=".*" desc="The FreeType Project LICENSE"/>
6346407a4bSopenharmony_ci                <policyitem type="compatibility" name="The FreeType Project LICENSE" path=".*" desc="The FreeType Project LICENSE"/>
6446407a4bSopenharmony_ci                <policyitem type="compatibility" name="GPLStyleLicense" path="builds/unix/config.guess" desc="config file,, not license declare"/>
6546407a4bSopenharmony_ci                <policyitem type="compatibility" name="GPLStyleLicense" path="builds/unix/config.sub" desc="config file,, not license declare"/>
6646407a4bSopenharmony_ci                <policyitem type="compatibility" name="GPL-3.0-or-later" path="builds/unix/ax_pthread.m4" desc="config file,, not license declare"/>
6746407a4bSopenharmony_ci                <policyitem type="compatibility" name="GPL-2.0" path="builds/unix/pkg.m4" desc="config file,, not license declare"/>
6846407a4bSopenharmony_ci                <policyitem type="compatibility" name="GPLStyleLicense" path="LICENSE.TXT" desc="Freetype provide FTL and GPLv2 license, you can choose one of them."/>
6946407a4bSopenharmony_ci                <policyitem type="compatibility" name="LGPLStyleLicense" path="docs/GPLv2.TXT" desc="Freetype provide FTL and GPLv2 license, you can choose one of them."/>
7046407a4bSopenharmony_ci                <policyitem type="compatibility" name="zlib/libpng License" path="src/gzip/.*" desc="Zlib used by FreeType." filefilter="defaultFilter"/>
7146407a4bSopenharmony_ci                <policyitem type="compatibility" name="zlib-acknowledgement" path="src/gzip/zlib.h" desc="Zlib used by FreeType."/>
7246407a4bSopenharmony_ci                <policyitem type="compatibility" name="BSL-1.0" path="include/dlg/.*" desc="Freetype provide BSL license."/>
7346407a4bSopenharmony_ci                <policyitem type="compatibility" name="BSL-1.0" path="src/dlg/dlg.c" desc="Freetype provide BSL license."/>
7446407a4bSopenharmony_ci            </policy>
7546407a4bSopenharmony_ci        </policylist>
7646407a4bSopenharmony_ci        <filefilterlist>
7746407a4bSopenharmony_ci            <filefilter name="defaultFilter" desc="Files not to check">
7846407a4bSopenharmony_ci                <filteritem type="filepath" name="docs/CHANGES" desc="This is chenglog file, no need license"/>
7946407a4bSopenharmony_ci                <filteritem type="filepath" name="docs/PROBLEMS" desc="This is a problems file, no need license"/>
8046407a4bSopenharmony_ci                <filteritem type="fillname" name="ChangeLog" desc="This is chenglog file, no need license"/>
8146407a4bSopenharmony_ci                <filteritem type="fillname" name="ChangeLog.*" desc="This is chenglog file, no need license"/>
8246407a4bSopenharmony_ci                <filteritem type="filepath" name="src/base/md5.h" desc="This file is free software"/>
8346407a4bSopenharmony_ci                <filteritem type="filepath" name="src/pcf/pcfutil.c" desc="This file is free software"/>
8446407a4bSopenharmony_ci                <filteritem type="filepath" name="builds/unix/*.m4" desc="pkg-config file"/>
8546407a4bSopenharmony_ci                <filteritem type="filepath" name="src/gzip/README.freetype" desc="This is description file, no need license"/>
8646407a4bSopenharmony_ci            </filefilter>
8746407a4bSopenharmony_ci            <filefilter name="binaryFileTypePolicyFilter" desc="Filters for binary file policies">
8846407a4bSopenharmony_ci                <filteritem type="filepath" name="docs/reference/site/assets/fonts/specimen/.*.ttf|.*.woff|.*.woff2" desc="freetype file, not to check"/>
8946407a4bSopenharmony_ci                <filteritem type="filepath" name="builds/amiga/README" desc="freetype file, not to check"/>
9046407a4bSopenharmony_ci                <filteritem type="filepath" name="builds/amiga/README" desc="freetype file, not to check"/>
9146407a4bSopenharmony_ci                <filteritem type="filepath" name="docs/reference/site/images/favico.ico" desc="freetype file, not to check"/>
9246407a4bSopenharmony_ci                <filteritem type="filepath" name="builds/amiga/makefile.os4" desc="freetype file, not to check"/>
9346407a4bSopenharmony_ci                <filteritem type="filepath" name="builds/amiga/smakefile" desc="freetype file, not to check"/>
9446407a4bSopenharmony_ci                <filteritem type="filepath" name="builds/vms/vmslib.dat" desc="freetype file, not to check"/>
9546407a4bSopenharmony_ci                <filteritem type="filepath" name="src/autofit/afblue.dat" desc="freetype file, not to check"/>
9646407a4bSopenharmony_ci                <filteritem type="filepath" name="docs/reference/site/sitemap.xml.gz" desc="freetype file, not to check"/>
9746407a4bSopenharmony_ci                <filteritem type="filepath" name="docs/reference/site/assets/images/favicon.png" desc="freetype file, not to check"/>
9846407a4bSopenharmony_ci            </filefilter>
9946407a4bSopenharmony_ci        </filefilterlist>
10046407a4bSopenharmony_ci        <licensematcherlist>
10146407a4bSopenharmony_ci            <licensematcher name="zlib/libpng License" desc="zlib/png license">
10246407a4bSopenharmony_ci                <licensetext name="
10346407a4bSopenharmony_ci                     * For conditions of distribution and use, see copyright notice in zlib.h
10446407a4bSopenharmony_ci                 " desc=""/>
10546407a4bSopenharmony_ci                 <licensetext name="
10646407a4bSopenharmony_ci                      zlib.h -- interface of the 'zlib' general purpose compression library
10746407a4bSopenharmony_ci                      version 1.2.12, March 11th, 2022
10846407a4bSopenharmony_ci
10946407a4bSopenharmony_ci                      Copyright (C) 1995-2022 Jean-loup Gailly and Mark Adler
11046407a4bSopenharmony_ci
11146407a4bSopenharmony_ci                      This software is provided 'as-is', without any express or implied
11246407a4bSopenharmony_ci                      warranty.  In no event will the authors be held liable for any damages
11346407a4bSopenharmony_ci                      arising from the use of this software.
11446407a4bSopenharmony_ci
11546407a4bSopenharmony_ci                      Permission is granted to anyone to use this software for any purpose,
11646407a4bSopenharmony_ci                      including commercial applications, and to alter it and redistribute it
11746407a4bSopenharmony_ci                      freely, subject to the following restrictions:
11846407a4bSopenharmony_ci
11946407a4bSopenharmony_ci                      1. The origin of this software must not be misrepresented; you must not
12046407a4bSopenharmony_ci                         claim that you wrote the original software. If you use this software
12146407a4bSopenharmony_ci                         in a product, an acknowledgment in the product documentation would be
12246407a4bSopenharmony_ci                         appreciated but is not required.
12346407a4bSopenharmony_ci                      2. Altered source versions must be plainly marked as such, and must not be
12446407a4bSopenharmony_ci                         misrepresented as being the original software.
12546407a4bSopenharmony_ci                      3. This notice may not be removed or altered from any source distribution.
12646407a4bSopenharmony_ci                 " desc=""/>
12746407a4bSopenharmony_ci            </licensematcher>
12846407a4bSopenharmony_ci        </licensematcherlist>
12946407a4bSopenharmony_ci    </oatconfig>
13046407a4bSopenharmony_ci</configuration>
131