Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[email protected] #2260

Merged
merged 8 commits into from
Jun 15, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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": {}
}