Skip to content

Commit

Permalink
Update toolchains version (#9)
Browse files Browse the repository at this point in the history
  • Loading branch information
pjreiniger authored Oct 19, 2023
1 parent a9eb7a1 commit 06b5678
Show file tree
Hide file tree
Showing 8 changed files with 13 additions and 9 deletions.
2 changes: 2 additions & 0 deletions .bazelrc
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ build:windows --copt=/WX
build:windows --copt=/std:c++20
build:windows --copt=/Zc:preprocessor
build:windows --copt=/wd5105
build:windows --cxxopt=/wd4146
build:windows --cxxopt=/wd4267
build:windows --cxxopt=/wd4244

Expand All @@ -18,6 +19,7 @@ build:windows_arm --copt=/WX
build:windows_arm --copt=/std:c++20
build:windows_arm --copt=/Zc:preprocessor
build:windows_arm --copt=/wd5105
build:windows_arm --cxxopt=/wd4146
build:windows_arm --cxxopt=/wd4267
build:windows_arm --cxxopt=/wd4244
build:windows_arm --cpu=x64_arm64_windows
Expand Down
4 changes: 2 additions & 2 deletions MODULE.bazel
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
module(
name = "bzlmodrio-opencv",
version = "4.8.0-1",
version = "2024.4.8.0-1",
compatibility_level = 2024,
)

bazel_dep(name = "platforms", version = "0.0.7")
bazel_dep(name = "rules_cc", version = "0.0.8")
bazel_dep(name = "rules_java", version = "6.4.0")
bazel_dep(name = "rules_bazelrio", version = "0.0.13")
bazel_dep(name = "rules_bzlmodrio_toolchains", version = "2023-7")
bazel_dep(name = "rules_bzlmodrio_toolchains", version = "2024-1")

setup_bzlmodrio_opencv_cpp_dependencies = use_extension("//:maven_cpp_deps.bzl", "setup_bzlmodrio_opencv_cpp_dependencies")
use_repo(
Expand Down
4 changes: 1 addition & 3 deletions generate/generate.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,7 @@ def main():
mandatory_dependencies = create_default_mandatory_settings(GenericCliArgs(args))

clean_existing_version(REPO_DIR)
generate_module_project_files(
REPO_DIR, group, mandatory_dependencies, include_windows_arm_compiler=True
)
generate_module_project_files(REPO_DIR, group, mandatory_dependencies)
generate_group(output_dir, group, force_tests=args.force_tests)


Expand Down
2 changes: 2 additions & 0 deletions generate/get_opencv_dependencies.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,8 @@ def get_opencv_dependencies():
dependencies=["opencv-cpp"],
)

group.sanitized_version = year + "." + group.sanitized_version

return group


Expand Down
2 changes: 1 addition & 1 deletion generate/get_version.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

def main():
group = get_opencv_dependencies()
print(group.version)
print(group.year + "." + group.version)


if __name__ == "__main__":
Expand Down
4 changes: 2 additions & 2 deletions private/non_bzlmod_dependencies/download_dependencies.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ def download_dependencies():
# Roborio Toolchain
http_archive(
name = "rules_bzlmodrio_toolchains",
sha256 = "1c566358f97b093916e150de10b65d6527ad268e5bd8bc0a0a8bfd04b390751a",
url = "https://github.com/bzlmodRio/rules_bzlmodRio_toolchains/releases/download/2023-7/rules_bzlmodRio_toolchains-2023-7.tar.gz",
sha256 = "cd3ff046427e9c6dbc0c86a458c8cf081b8045fc3fb4265d08c0ebfc17f9cb30",
url = "https://github.com/bzlmodRio/rules_bzlmodRio_toolchains/releases/download/2024-1/rules_bzlmodRio_toolchains-2024-1.tar.gz",
)

########################
Expand Down
2 changes: 2 additions & 0 deletions tests/.bazelrc
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ build:windows --copt=/WX
build:windows --copt=/std:c++20
build:windows --copt=/Zc:preprocessor
build:windows --copt=/wd5105
build:windows --cxxopt=/wd4146
build:windows --cxxopt=/wd4267
build:windows --cxxopt=/wd4244

Expand All @@ -18,6 +19,7 @@ build:windows_arm --copt=/WX
build:windows_arm --copt=/std:c++20
build:windows_arm --copt=/Zc:preprocessor
build:windows_arm --copt=/wd5105
build:windows_arm --cxxopt=/wd4146
build:windows_arm --cxxopt=/wd4267
build:windows_arm --cxxopt=/wd4244
build:windows_arm --cpu=x64_arm64_windows
Expand Down
2 changes: 1 addition & 1 deletion tests/MODULE.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ bazel_dep(name = "rules_cc", version = "0.0.8")
bazel_dep(name = "rules_java", version = "6.4.0")
bazel_dep(name = "rules_jvm_external", version = "5.3")
bazel_dep(name = "rules_bazelrio", version = "0.0.13")
bazel_dep(name = "rules_bzlmodrio_toolchains", version = "2023-7")
bazel_dep(name = "rules_bzlmodrio_toolchains", version = "2024-1")
bazel_dep(name = "rules_pmd", version = "6.43.0")
bazel_dep(name = "rules_checkstyle", version = "10.1")
bazel_dep(name = "rules_wpiformat", version = "2022.30")
Expand Down

0 comments on commit 06b5678

Please sign in to comment.