Skip to content

Commit

Permalink
Migrate to Bazel Modules. (#62)
Browse files Browse the repository at this point in the history
When attempting to build this repo, I got told by Bazel tooling
to migrate to Bazel modules. This CL does that. No changes to the
build commands necessary.
  • Loading branch information
nnooney authored May 20, 2024
1 parent a0be5ab commit 75b8a23
Show file tree
Hide file tree
Showing 4 changed files with 1,695 additions and 17 deletions.
19 changes: 19 additions & 0 deletions MODULE.bazel
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# Keep this in sync with meson.build
module(
name = "libhoth",
version = "0.0.0",
)

# libusb is not yet available in the Bazel Central Registry
# (https://registry.bazel.build/).

git_repository = use_repo_rule("@bazel_tools//tools/build_defs/repo:git.bzl", "git_repository")

git_repository(
name = "libusb",
build_file = "external/libusb.BUILD",
commit = "4239bc3a50014b8e6a5a2a59df1fff3b7469543b",
remote = "https://github.com/libusb/libusb",
patches = ["external/libusb.patch"],
shallow_since = "1649581036 +0200",
)
Loading

0 comments on commit 75b8a23

Please sign in to comment.