Skip to content

Commit

Permalink
[various BUILD] "license" target and "default_applicable_licenses"
Browse files Browse the repository at this point in the history
  • Loading branch information
tkoeppe committed Jun 19, 2023
1 parent e66c0eb commit d4fe24b
Show file tree
Hide file tree
Showing 4 changed files with 31 additions and 1 deletion.
12 changes: 12 additions & 0 deletions BUILD
Original file line number Diff line number Diff line change
@@ -1,4 +1,16 @@
load("@bazel_skylib//:bzl_library.bzl", "bzl_library")
load("@rules_license//rules:license.bzl", "license")

package(
default_applicable_licenses = [":license"],
default_visibility = ["//visibility:private"],
)

license(
name = "license",
package_name = "dmlab2d",
license_kinds = [],
)

licenses(["notice"])

Expand Down
5 changes: 4 additions & 1 deletion bazel/BUILD
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
package(default_visibility = ["//visibility:public"])
package(
default_applicable_licenses = ["//:license"],
default_visibility = ["//visibility:public"],
)

licenses(["notice"])
5 changes: 5 additions & 0 deletions dmlab2d/lib/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@

load("//dmlab2d/lib/testing:lua_testing.bzl", "dmlab2d_lua_level_test", "dmlab2d_lua_test")

package(
default_applicable_licenses = ["//:license"],
default_visibility = ["//visibility:private"],
)

licenses(["notice"])

exports_files(["LICENSE"])
Expand Down
10 changes: 10 additions & 0 deletions third_party/rl_api/BUILD
Original file line number Diff line number Diff line change
@@ -1,6 +1,16 @@
# Description:
# DeepMind reinforcement learning APIs.

load("@rules_license//rules:license.bzl", "license")

package(default_applicable_licenses = ["//third_party/rl_api:license"])

license(
name = "license",
package_name = "rl_api",
license_kinds = [],
)

licenses(["notice"])

exports_files(["LICENSE"])
Expand Down

0 comments on commit d4fe24b

Please sign in to comment.