Skip to content

Commit 4cd34b0

Browse files
authored
Refactor dev (#1)
* Raspbian * Update bazel version * Gen stuff * More dep updates * Another update
1 parent bec1a5a commit 4cd34b0

File tree

10 files changed

+36
-14
lines changed

10 files changed

+36
-14
lines changed

.bazelversion

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
6.0.0
1+
6.2.0

.github/workflows/publish.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -75,5 +75,5 @@ jobs:
7575
base: bzlmodrio
7676
token: ${{ secrets.AUTO_UPDATE_KEY }}
7777
reviewers: pjreiniger
78-
branch: autoupdate/rules_wpi_styleguid_update
78+
branch: autoupdate/bzlmodrio-opencv_update
7979
title: "Auto-update latest bzlmodrio-opencv module release"

MODULE.bazel

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ module(
55
)
66

77
bazel_dep(name = "platforms", version = "0.0.6")
8-
bazel_dep(name = "rules_java", version = "5.4.0")
8+
bazel_dep(name = "rules_java", version = "5.5.0")
99
bazel_dep(name = "rules_bazelrio", version = "0.0.10")
1010
bazel_dep(name = "rules_bzlmodrio_toolchains", version = "2023-7")
1111

generate/WORKSPACE

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
workspace(name = "bzlmodrio_ni_gentool")
1+
workspace(name = "bzlmodrio_opencv_gentool")
22

33
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
44

libraries/cpp/opencv/BUILD.bazel

+8
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@ alias(
77
cc_library(
88
name = "shared",
99
linkstatic = 1,
10+
target_compatible_with = select({
11+
"@rules_bzlmodrio_toolchains//constraints/is_raspi32:raspi32": ["@platforms//:incompatible"],
12+
"//conditions:default": [],
13+
}),
1014
visibility = ["//visibility:public"],
1115
deps = [
1216
] + [
@@ -17,6 +21,10 @@ cc_library(
1721
cc_library(
1822
name = "static",
1923
linkstatic = 1,
24+
target_compatible_with = select({
25+
"@rules_bzlmodrio_toolchains//constraints/is_raspi32:raspi32": ["@platforms//:incompatible"],
26+
"//conditions:default": [],
27+
}),
2028
visibility = ["//visibility:public"],
2129
deps = [
2230
] + [

private/cpp/opencv/BUILD.bazel

+12
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
cc_library(
22
name = "shared",
33
linkstatic = 1,
4+
target_compatible_with = select({
5+
"@rules_bzlmodrio_toolchains//constraints/is_raspi32:raspi32": ["@platforms//:incompatible"],
6+
"//conditions:default": [],
7+
}),
48
visibility = ["@bzlmodrio-opencv//:__subpackages__"],
59
deps = ["@bazelrio_edu_wpi_first_thirdparty_frc_opencv_opencv-cpp_headers//:headers"] + select({
610
"@rules_bzlmodrio_toolchains//constraints/is_roborio:roborio": ["@bazelrio_edu_wpi_first_thirdparty_frc_opencv_opencv-cpp_linuxathena//:shared_libs"],
@@ -21,6 +25,10 @@ cc_library(
2125
cc_library(
2226
name = "static",
2327
linkstatic = 1,
28+
target_compatible_with = select({
29+
"@rules_bzlmodrio_toolchains//constraints/is_raspi32:raspi32": ["@platforms//:incompatible"],
30+
"//conditions:default": [],
31+
}),
2432
visibility = ["@bzlmodrio-opencv//:__subpackages__"],
2533
deps = ["@bazelrio_edu_wpi_first_thirdparty_frc_opencv_opencv-cpp_headers//:headers"] + select({
2634
"@rules_bzlmodrio_toolchains//constraints/is_roborio:roborio": ["@bazelrio_edu_wpi_first_thirdparty_frc_opencv_opencv-cpp_linuxathenastatic//:static_libs"],
@@ -41,6 +49,10 @@ cc_library(
4149
cc_library(
4250
name = "jni",
4351
linkstatic = 1,
52+
target_compatible_with = select({
53+
"@rules_bzlmodrio_toolchains//constraints/is_raspi32:raspi32": ["@platforms//:incompatible"],
54+
"//conditions:default": [],
55+
}),
4456
visibility = ["@bzlmodrio-opencv//:__subpackages__"],
4557
deps = ["@bazelrio_edu_wpi_first_thirdparty_frc_opencv_opencv-cpp_headers//:headers"] + select({
4658
"@rules_bzlmodrio_toolchains//constraints/is_roborio:roborio": ["@bazelrio_edu_wpi_first_thirdparty_frc_opencv_opencv-cpp_linuxathena//:shared_jni_libs"],

private/non_bzlmod_dependencies/download_dependencies.bzl

+4-6
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,11 @@ load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
22

33
def download_dependencies():
44
# JVM External
5-
RULES_JVM_EXTERNAL_COMMITISH = "4.5"
6-
RULES_JVM_EXTERNAL_SHA = "b17d7388feb9bfa7f2fa09031b32707df529f26c91ab9e5d909eb1676badd9a6"
75
http_archive(
86
name = "rules_jvm_external",
9-
sha256 = RULES_JVM_EXTERNAL_SHA,
10-
strip_prefix = "rules_jvm_external-{}".format(RULES_JVM_EXTERNAL_COMMITISH),
11-
url = "https://github.com/bazelbuild/rules_jvm_external/archive/{}.zip".format(RULES_JVM_EXTERNAL_COMMITISH),
7+
sha256 = "f86fd42a809e1871ca0aabe89db0d440451219c3ce46c58da240c7dcdc00125f",
8+
strip_prefix = "rules_jvm_external-5.2",
9+
url = "https://github.com/bazelbuild/rules_jvm_external/releases/download/5.2/rules_jvm_external-5.2.tar.gz",
1210
)
1311

1412
# Bazelrio Rules
@@ -22,7 +20,7 @@ def download_dependencies():
2220
http_archive(
2321
name = "rules_bzlmodrio_toolchains",
2422
sha256 = "1c566358f97b093916e150de10b65d6527ad268e5bd8bc0a0a8bfd04b390751a",
25-
url = "https://github.com/bzlmodRio/rules_bzlmodrio_toolchains/releases/download/2023-7/rules_bzlmodrio_toolchains-2023-7.tar.gz",
23+
url = "https://github.com/bzlmodRio/rules_bzlmodRio_toolchains/releases/download/2023-7/rules_bzlmodRio_toolchains-2023-7.tar.gz",
2624
)
2725

2826
########################

tests/.bazelversion

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
6.0.0
1+
6.2.0

tests/MODULE.bazel

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ local_path_override(
55
)
66

77
bazel_dep(name = "googletest", version = "1.12.1")
8-
bazel_dep(name = "rules_cc", version = "0.0.4")
9-
bazel_dep(name = "rules_jvm_external", version = "4.5")
8+
bazel_dep(name = "rules_cc", version = "0.0.6")
9+
bazel_dep(name = "rules_jvm_external", version = "5.2")
1010
bazel_dep(name = "rules_bazelrio", version = "0.0.10")
1111
bazel_dep(name = "rules_bzlmodrio_toolchains", version = "2023-7")
1212
bazel_dep(name = "rules_pmd", version = "6.43.0")

tests/WORKSPACE

+5-1
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ maven_install(
5454

5555
http_archive(
5656
name = "rules_wpi_styleguide",
57-
sha256 = "d0f717a73d18b40f5e7f921e434692cffa1dea5b3138c2cc64c5355530f4eb47",
57+
sha256 = "c5c032e8e8b04cdd74d2a637c39e787156cd289d128cd9747b5c8c6d87d4f252",
5858
url = "https://github.com/bzlmodRio/rules_wpi_styleguide/releases/download/1.0.0/rules_wpi_styleguide-1.0.0.tar.gz",
5959
)
6060

@@ -66,6 +66,10 @@ load("@rules_wpi_styleguide//dependencies:load_dependencies.bzl", "load_stylegui
6666

6767
load_styleguide_dependencies()
6868

69+
load("@rules_wpi_styleguide//dependencies:load_transitive_dependencies.bzl", "load_styleguide_transitive_dependencies")
70+
71+
load_styleguide_transitive_dependencies()
72+
6973
load("@rules_wpi_styleguide//dependencies:setup_styleguide.bzl", "setup_styleguide")
7074

7175
setup_styleguide()

0 commit comments

Comments
 (0)