Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
First commit to add Pigweed's rules_libusb module to the BCR. We work
from Gerrit, which does not have stable tarball hashes, so releases are
provided via GCS.
  • Loading branch information
armandomontanez authored Jun 15, 2024
1 parent bd3a6df commit e3f6174
Show file tree
Hide file tree
Showing 4 changed files with 82 additions and 0 deletions.
14 changes: 14 additions & 0 deletions modules/rules_libusb/0.1.0-rc1/MODULE.bazel
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
module(
name = "rules_libusb",
version = "0.1.0-rc1",
)

bazel_dep(name = "platforms", version = "0.0.8")
bazel_dep(name = "rules_license", version = "0.0.8")
bazel_dep(name = "bazel_skylib", version = "1.5.0")

# If your project has versioning requirements for libusb, you'll need to specify
# this in your project's MODULE.bazel.
libusb = use_extension("@rules_libusb//:extensions.bzl", "libusb")
libusb.source_release(min_version = "1.0.20-rc1")
use_repo(libusb, "libusb")
38 changes: 38 additions & 0 deletions modules/rules_libusb/0.1.0-rc1/presubmit.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
bcr_test_module:
module_path: examples/basic_usage
matrix:
linux_platform: ["debian10", "ubuntu2004"]
tasks:
run_linux_test_module:
name: "Build linux test"
platform: ${{ linux_platform }}
bazel: "7.x"
build_flags:
- "--copt=-pthread"
- "--linkopt=-pthread"
test_flags:
- "--copt=-pthread"
- "--linkopt=-pthread"
build_targets:
- "@libusb//:libusb_dynamic"
- "//:example"
run_windows_test_module:
name: "Build Windows test"
platform: "windows"
bazel: "7.x"
build_flags:
- "--copt=-DHAVE_STRUCT_TIMESPEC=1"
- "--linkopt=-DEFAULTLIB:User32.Lib"
test_flags:
- "--copt=-DHAVE_STRUCT_TIMESPEC=1"
- "--linkopt=-DEFAULTLIB:User32.Lib"
build_targets:
- "@libusb//:libusb_dynamic"
run_macos_test_module:
name: "Run macOS test"
platform: "macos"
bazel: "7.x"
build_targets:
- "@libusb//:libusb_dynamic"
test_targets:
- "//:example"
5 changes: 5 additions & 0 deletions modules/rules_libusb/0.1.0-rc1/source.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"archive_type": "tar.gz",
"integrity": "sha256-p/EjP1lK0R4IRl5zetX8XRl2P7NquivNK5j2xT+s0G8=",
"url": "https://storage.googleapis.com/storage/v1/b/pigweed-bazel-tarballs/o/rules_libusb-8745211641617303569-f5c0af2f037b6e8405b4158b5e3041675da8e522.tar.gz?alt=media"
}
25 changes: 25 additions & 0 deletions modules/rules_libusb/metadata.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
{
"homepage": "https://pigweed.googlesource.com/pigweed/rules_libusb/",
"maintainers": [
{
"github": "armandomontanez",
"name": "Armando Montanez"
},
{
"github": "tpudlik",
"name": "Ted Pudlik"
},
{
"github": "cramertj",
"name": "Taylor Cramer"
},
{
"email": "[email protected]",
"name": "The Pigweed Team"
}
],
"versions": [
"0.1.0-rc1"
],
"yanked_versions": {}
}

0 comments on commit e3f6174

Please sign in to comment.