mirror of
https://github.com/google/googletest.git
synced 2025-12-07 01:06:50 +08:00
use rules_license for defining the license of this repository
- this helps with generating better SBOMs than the old built-in `licenses` attribute
This commit is contained in:
parent
eb2d85edd0
commit
3b7b31fa4b
13
BUILD.bazel
13
BUILD.bazel
@ -30,12 +30,23 @@
|
|||||||
#
|
#
|
||||||
# Bazel Build for Google C++ Testing Framework(Google Test)
|
# Bazel Build for Google C++ Testing Framework(Google Test)
|
||||||
|
|
||||||
package(default_visibility = ["//visibility:public"])
|
load("@rules_license//rules:license.bzl", "license")
|
||||||
|
|
||||||
|
package(
|
||||||
|
default_applicable_licenses = [":license"],
|
||||||
|
default_visibility = ["//visibility:public"],
|
||||||
|
)
|
||||||
|
|
||||||
licenses(["notice"])
|
licenses(["notice"])
|
||||||
|
|
||||||
exports_files(["LICENSE"])
|
exports_files(["LICENSE"])
|
||||||
|
|
||||||
|
license(
|
||||||
|
name = "license",
|
||||||
|
license_kinds = ["@rules_license//licenses/spdx:BSD-3-Clause"],
|
||||||
|
license_text = "LICENSE",
|
||||||
|
)
|
||||||
|
|
||||||
config_setting(
|
config_setting(
|
||||||
name = "qnx",
|
name = "qnx",
|
||||||
constraint_values = ["@platforms//os:qnx"],
|
constraint_values = ["@platforms//os:qnx"],
|
||||||
|
|||||||
@ -58,6 +58,11 @@ bazel_dep(
|
|||||||
dev_dependency = True,
|
dev_dependency = True,
|
||||||
)
|
)
|
||||||
|
|
||||||
|
bazel_dep(
|
||||||
|
name = "rules_license",
|
||||||
|
version = "1.0.0",
|
||||||
|
)
|
||||||
|
|
||||||
# https://rules-python.readthedocs.io/en/stable/toolchains.html#library-modules-with-dev-only-python-usage
|
# https://rules-python.readthedocs.io/en/stable/toolchains.html#library-modules-with-dev-only-python-usage
|
||||||
python = use_extension(
|
python = use_extension(
|
||||||
"@rules_python//python/extensions:python.bzl",
|
"@rules_python//python/extensions:python.bzl",
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user