Skip to content

Commit d4fe24b

Browse files
committed
[various BUILD] "license" target and "default_applicable_licenses"
1 parent e66c0eb commit d4fe24b

File tree

4 files changed

+31
-1
lines changed

4 files changed

+31
-1
lines changed

BUILD

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,16 @@
11
load("@bazel_skylib//:bzl_library.bzl", "bzl_library")
2+
load("@rules_license//rules:license.bzl", "license")
3+
4+
package(
5+
default_applicable_licenses = [":license"],
6+
default_visibility = ["//visibility:private"],
7+
)
8+
9+
license(
10+
name = "license",
11+
package_name = "dmlab2d",
12+
license_kinds = [],
13+
)
214

315
licenses(["notice"])
416

bazel/BUILD

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1-
package(default_visibility = ["//visibility:public"])
1+
package(
2+
default_applicable_licenses = ["//:license"],
3+
default_visibility = ["//visibility:public"],
4+
)
25

36
licenses(["notice"])

dmlab2d/lib/BUILD

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,11 @@
44

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

7+
package(
8+
default_applicable_licenses = ["//:license"],
9+
default_visibility = ["//visibility:private"],
10+
)
11+
712
licenses(["notice"])
813

914
exports_files(["LICENSE"])

third_party/rl_api/BUILD

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,16 @@
11
# Description:
22
# DeepMind reinforcement learning APIs.
33

4+
load("@rules_license//rules:license.bzl", "license")
5+
6+
package(default_applicable_licenses = ["//third_party/rl_api:license"])
7+
8+
license(
9+
name = "license",
10+
package_name = "rl_api",
11+
license_kinds = [],
12+
)
13+
414
licenses(["notice"])
515

616
exports_files(["LICENSE"])

0 commit comments

Comments
 (0)