Skip to content

Commit 7a3d7ac

Browse files
author
Tim 'mithro' Ansell
authored
Merge pull request #227 from mithro/package-fix
Add `package(` rules to all `BUILD` files
2 parents e0850ad + 261b0ea commit 7a3d7ac

File tree

76 files changed

+469
-33
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

76 files changed

+469
-33
lines changed

BUILD

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,18 @@
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
1414

15-
# Empty BUILD file, just to make this directory a Bazel package.
15+
load("@rules_license//rules:license.bzl", "license")
16+
17+
package(
18+
default_applicable_licenses = ["//:package_license"],
19+
default_visibility = ["//visibility:private"],
20+
)
21+
22+
license(
23+
name = "package_license",
24+
package_name = "bazel_rules_hdl",
25+
)
26+
27+
licenses(["notice"])
28+
29+
exports_files(["LICENSE"])

cocotb/BUILD

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

1515
load("@rules_python//python:defs.bzl", "py_binary")
1616

17+
package(
18+
default_applicable_licenses = ["//:package_license"],
19+
default_visibility = ["//visibility:private"],
20+
)
21+
1722
py_binary(
1823
name = "cocotb_wrapper",
1924
srcs = ["cocotb_wrapper.py"],

cocotb/tests/BUILD

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,11 @@ load("@rules_hdl_pip_deps//:requirements.bzl", "requirement")
1616
load("//cocotb:cocotb.bzl", "cocotb_test")
1717
load("//verilog:providers.bzl", "verilog_library")
1818

19+
package(
20+
default_applicable_licenses = ["//:package_license"],
21+
default_visibility = ["//visibility:private"],
22+
)
23+
1924
verilog_library(
2025
name = "counter",
2126
srcs = ["counter.v"],

dependency_support/BUILD.bazel

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,11 @@ load("@bazel_skylib//rules:diff_test.bzl", "diff_test")
1616
load("@bazel_skylib//rules:write_file.bzl", "write_file")
1717
load("@rules_python//python:pip.bzl", "compile_pip_requirements")
1818

19+
package(
20+
default_applicable_licenses = ["//:package_license"],
21+
default_visibility = ["//visibility:private"],
22+
)
23+
1924
compile_pip_requirements(name = "pip_requirements")
2025

2126
genrule(

dependency_support/at_clifford_icestorm/BUILD

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@
1313
# limitations under the License.
1414

1515
package(
16+
default_applicable_licenses = ["//:package_license"],
17+
default_visibility = ["//visibility:private"],
1618
licenses = ["notice"], # Apache 2.0
1719
)
1820

dependency_support/at_clifford_yosys/BUILD

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,7 @@
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
1414

15-
# Needed to make this a package.
15+
package(
16+
default_applicable_licenses = ["//:package_license"],
17+
default_visibility = ["//visibility:private"],
18+
)

dependency_support/bazel_skylib/BUILD

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,7 @@
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
1414

15-
# Required to make this a package.
15+
package(
16+
default_applicable_licenses = ["//:package_license"],
17+
default_visibility = ["//visibility:private"],
18+
)

dependency_support/boost/BUILD

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,7 @@
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
1414

15-
# Needed to make this a package.
15+
package(
16+
default_applicable_licenses = ["//:package_license"],
17+
default_visibility = ["//visibility:private"],
18+
)

dependency_support/com_github_fmtlib_fmt/BUILD

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,8 @@
1111
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
14+
15+
package(
16+
default_applicable_licenses = ["//:package_license"],
17+
default_visibility = ["//visibility:private"],
18+
)

dependency_support/com_github_gabime_spdlog/BUILD

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,8 @@
1111
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
14+
15+
package(
16+
default_applicable_licenses = ["//:package_license"],
17+
default_visibility = ["//visibility:private"],
18+
)

0 commit comments

Comments
 (0)