diff --git a/BUILD.bazel b/BUILD.bazel index 3ca5735db..f76950cc1 100644 --- a/BUILD.bazel +++ b/BUILD.bazel @@ -30,12 +30,23 @@ # # 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"]) exports_files(["LICENSE"]) +license( + name = "license", + license_kinds = ["@rules_license//licenses/spdx:BSD-3-Clause"], + license_text = "LICENSE", +) + config_setting( name = "qnx", constraint_values = ["@platforms//os:qnx"], diff --git a/MODULE.bazel b/MODULE.bazel index 5d80b462a..4325eef29 100644 --- a/MODULE.bazel +++ b/MODULE.bazel @@ -58,6 +58,11 @@ bazel_dep( 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 python = use_extension( "@rules_python//python/extensions:python.bzl",