Skip to content

Commit

Permalink
Add license checking support to bazel rules
Browse files Browse the repository at this point in the history
Signed-off-by: Michael Carroll <[email protected]>
  • Loading branch information
mjcarroll committed Sep 21, 2023
1 parent f917b28 commit 7d160bb
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions BUILD.bazel
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
load("@rules_license//rules:license.bzl", "license")
load(
"@gz//bazel/skylark:build_defs.bzl",
"GZ_FEATURES",
Expand All @@ -8,10 +9,16 @@ load(
)

package(
default_applicable_licenses = [":license"],
default_visibility = GZ_VISIBILITY,
features = GZ_FEATURES,
)

license(
name = "license",
package_name = "gz-utils"
)

licenses(["notice"])

exports_files(["LICENSE"])
Expand Down Expand Up @@ -72,6 +79,7 @@ cc_library(

cc_test(
name = "ImplPtr_TEST",
size = "small",
srcs = ["test/integration/implptr/ImplPtr_TEST.cc"],
deps = [
":implptr_test_classes",
Expand Down

0 comments on commit 7d160bb

Please sign in to comment.