Skip to content

Commit 0c7d251

Browse files
Bazel updates: prep for BCR release automation (#1196)
Signed-off-by: Shameek Ganguly <shameek@intrinsic.ai>
1 parent 6b76b96 commit 0c7d251

File tree

5 files changed

+33
-32
lines changed

5 files changed

+33
-32
lines changed

BUILD.bazel

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
load("@buildifier_prebuilt//:rules.bzl", "buildifier", "buildifier_test")
2+
load("@rules_cc//cc:defs.bzl", "cc_library", "cc_test")
13
load("@rules_gazebo//gazebo:headers.bzl", "gz_configure_header", "gz_export_header")
24
load("@rules_license//rules:license.bzl", "license")
35

@@ -94,3 +96,19 @@ test_sources = glob([
9496
)
9597
for src in test_sources
9698
]
99+
100+
buildifier(
101+
name = "buildifier.fix",
102+
exclude_patterns = ["./.git/*"],
103+
lint_mode = "fix",
104+
mode = "fix",
105+
)
106+
107+
buildifier_test(
108+
name = "buildifier.test",
109+
exclude_patterns = ["./.git/*"],
110+
lint_mode = "warn",
111+
mode = "diff",
112+
no_sandbox = True,
113+
workspace = "//:MODULE.bazel",
114+
)

MODULE.bazel

Lines changed: 8 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -1,43 +1,19 @@
1-
## MODULE.bazel
21
module(
32
name = "gz-rendering",
4-
repo_name = "org_gazebosim_gz-rendering",
3+
compatibility_level = 9,
54
)
65

76
bazel_dep(name = "bazel_skylib", version = "1.7.1")
7+
bazel_dep(name = "buildifier_prebuilt", version = "8.2.1")
88
bazel_dep(name = "egl-registry", version = "0.0.0-20250527")
99
bazel_dep(name = "googletest", version = "1.15.2")
1010
bazel_dep(name = "ogre-next", version = "2.3.3.bcr.2")
11-
bazel_dep(name = "rules_cc", version = "0.1.1")
11+
bazel_dep(name = "rules_cc", version = "0.2.0")
1212
bazel_dep(name = "rules_license", version = "1.0.0")
1313

1414
# Gazebo Dependencies
15-
bazel_dep(name = "rules_gazebo", version = "0.0.3")
16-
bazel_dep(name = "gz-common")
17-
bazel_dep(name = "gz-math")
18-
bazel_dep(name = "gz-plugin")
19-
bazel_dep(name = "gz-utils")
20-
21-
archive_override(
22-
module_name = "gz-common",
23-
strip_prefix = "gz-common-gz-common7",
24-
urls = ["https://github.com/gazebosim/gz-common/archive/refs/heads/gz-common7.tar.gz"],
25-
)
26-
27-
archive_override(
28-
module_name = "gz-math",
29-
strip_prefix = "gz-math-gz-math9",
30-
urls = ["https://github.com/gazebosim/gz-math/archive/refs/heads/gz-math9.tar.gz"],
31-
)
32-
33-
archive_override(
34-
module_name = "gz-plugin",
35-
strip_prefix = "gz-plugin-gz-plugin4",
36-
urls = ["https://github.com/gazebosim/gz-plugin/archive/refs/heads/gz-plugin4.tar.gz"],
37-
)
38-
39-
archive_override(
40-
module_name = "gz-utils",
41-
strip_prefix = "gz-utils-gz-utils4",
42-
urls = ["https://github.com/gazebosim/gz-utils/archive/refs/heads/gz-utils4.tar.gz"],
43-
)
15+
bazel_dep(name = "rules_gazebo", version = "0.0.6")
16+
bazel_dep(name = "gz-common", version = "7.0.0")
17+
bazel_dep(name = "gz-math", version = "9.0.0")
18+
bazel_dep(name = "gz-plugin", version = "4.0.0")
19+
bazel_dep(name = "gz-utils", version = "4.0.0")

bazel/gz_rendering_engine_libraries.bzl

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
"""
2+
Rules to add gz-rendering plugin libraries.
3+
"""
4+
15
load("@rules_cc//cc:cc_binary.bzl", "cc_binary")
26
load("@rules_cc//cc:cc_library.bzl", "cc_library")
37

ogre2/BUILD.bazel

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
# Bazel targets for Ogre2 render engine plugin.
2+
load("@rules_cc//cc:defs.bzl", "cc_library")
23
load("@rules_gazebo//gazebo:headers.bzl", "gz_export_header")
34
load("//bazel:gz_rendering_engine_libraries.bzl", "gz_rendering_engine_libraries")
45

test/BUILD.bazel

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
load("@rules_cc//cc:defs.bzl", "cc_test")
2+
13
package(
24
default_applicable_licenses = ["//:license"],
35
features = [

0 commit comments

Comments
 (0)