-
Notifications
You must be signed in to change notification settings - Fork 360
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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
1 parent
bd3a6df
commit e3f6174
Showing
4 changed files
with
82 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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": {} | ||
} |