aboutsummaryrefslogtreecommitdiff
path: root/tests/thrdparty/BUILD
diff options
context:
space:
mode:
Diffstat (limited to 'tests/thrdparty/BUILD')
-rw-r--r--tests/thrdparty/BUILD26
1 files changed, 26 insertions, 0 deletions
diff --git a/tests/thrdparty/BUILD b/tests/thrdparty/BUILD
new file mode 100644
index 0000000..2fa9752
--- /dev/null
+++ b/tests/thrdparty/BUILD
@@ -0,0 +1,26 @@
+# A sample library using new license rules.
+
+load("@rules_license//rules:license.bzl", "license")
+
+package(
+ default_applicable_licenses = [":license"],
+ default_visibility = [
+ "//examples:__subpackages__",
+ "//tests:__subpackages__",
+ ],
+)
+
+# The default license for an entire package is typically named "license".
+license(
+ name = "license",
+ package_name = "migrated package",
+ license_kinds = ["//licenses/generic:restricted"],
+ license_text = "LICENSE",
+)
+
+cc_library(
+ name = "new_style_lib",
+ srcs = [
+ "new_style_lib.cc",
+ ],
+)