You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
depot_tools/metadata/fields/custom/license_allowlist.py

40 lines
1.0 KiB
Python

#!/usr/bin/env python3
# Copyright 2024 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
# These licenses are used to verify that code imported to Android complies with
# their licensing requirements. Do not add entries to this list without approval.
# Any licenses added should be a valid SPDX Identifier. For the full list of
# identifiers; see https://spdx.org/licenses/
ALLOWED_SPDX_LICENSES = frozenset([
"APSL-2.0",
"Apache-2.0",
"BSD-2-Clause",
"BSD-2-Clause-FreeBSD",
"BSD-3-Clause",
"BSD-4-Clause",
"BSD-4-Clause-UC",
"BSD-Source-Code",
"GPL-2.0-with-classpath-exception",
"MIT",
"MIT-0",
"MIT-Modern-Variant",
"MPL-1.1",
"MPL-2.0",
"NCSA",
"OFL-1.1",
"SGI-B-2.0",
"Unicode-3.0",
"Unicode-DFS-2015",
"Unicode-DFS-2016",
"X11",
"Zlib",
# Public Domain variants.
"ISC",
"ICU",
"LZMA-SDK-9.22",
"SunPro",
"BSL-1.0",
])