Skip to content
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
18 changes: 18 additions & 0 deletions BUILD.bazel
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
load("@buildifier_prebuilt//:rules.bzl", "buildifier", "buildifier_test")
load("@rules_cc//cc:defs.bzl", "cc_library", "cc_test")
load("@rules_gazebo//gazebo:headers.bzl", "gz_configure_header", "gz_export_header")
load("@rules_license//rules:license.bzl", "license")

Expand Down Expand Up @@ -94,3 +96,19 @@ test_sources = glob([
)
for src in test_sources
]

buildifier(
name = "buildifier.fix",
exclude_patterns = ["./.git/*"],
lint_mode = "fix",
mode = "fix",
)

buildifier_test(
name = "buildifier.test",
exclude_patterns = ["./.git/*"],
lint_mode = "warn",
mode = "diff",
no_sandbox = True,
workspace = "//:MODULE.bazel",
)
40 changes: 8 additions & 32 deletions MODULE.bazel
Original file line number Diff line number Diff line change
@@ -1,43 +1,19 @@
## MODULE.bazel
module(
name = "gz-rendering",
repo_name = "org_gazebosim_gz-rendering",
compatibility_level = 9,
)

bazel_dep(name = "bazel_skylib", version = "1.7.1")
bazel_dep(name = "buildifier_prebuilt", version = "8.2.1")
bazel_dep(name = "egl-registry", version = "0.0.0-20250527")
bazel_dep(name = "googletest", version = "1.15.2")
bazel_dep(name = "ogre-next", version = "2.3.3.bcr.2")
bazel_dep(name = "rules_cc", version = "0.1.1")
bazel_dep(name = "rules_cc", version = "0.2.0")
bazel_dep(name = "rules_license", version = "1.0.0")

# Gazebo Dependencies
bazel_dep(name = "rules_gazebo", version = "0.0.3")
bazel_dep(name = "gz-common")
bazel_dep(name = "gz-math")
bazel_dep(name = "gz-plugin")
bazel_dep(name = "gz-utils")

archive_override(
module_name = "gz-common",
strip_prefix = "gz-common-gz-common7",
urls = ["https://github.com/gazebosim/gz-common/archive/refs/heads/gz-common7.tar.gz"],
)

archive_override(
module_name = "gz-math",
strip_prefix = "gz-math-gz-math9",
urls = ["https://github.com/gazebosim/gz-math/archive/refs/heads/gz-math9.tar.gz"],
)

archive_override(
module_name = "gz-plugin",
strip_prefix = "gz-plugin-gz-plugin4",
urls = ["https://github.com/gazebosim/gz-plugin/archive/refs/heads/gz-plugin4.tar.gz"],
)

archive_override(
module_name = "gz-utils",
strip_prefix = "gz-utils-gz-utils4",
urls = ["https://github.com/gazebosim/gz-utils/archive/refs/heads/gz-utils4.tar.gz"],
)
bazel_dep(name = "rules_gazebo", version = "0.0.6")
bazel_dep(name = "gz-common", version = "7.0.0")
bazel_dep(name = "gz-math", version = "9.0.0")
bazel_dep(name = "gz-plugin", version = "4.0.0")
bazel_dep(name = "gz-utils", version = "4.0.0")
4 changes: 4 additions & 0 deletions bazel/gz_rendering_engine_libraries.bzl
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
"""
Rules to add gz-rendering plugin libraries.
"""

load("@rules_cc//cc:cc_binary.bzl", "cc_binary")
load("@rules_cc//cc:cc_library.bzl", "cc_library")

Expand Down
1 change: 1 addition & 0 deletions ogre2/BUILD.bazel
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# Bazel targets for Ogre2 render engine plugin.
load("@rules_cc//cc:defs.bzl", "cc_library")
load("@rules_gazebo//gazebo:headers.bzl", "gz_export_header")
load("//bazel:gz_rendering_engine_libraries.bzl", "gz_rendering_engine_libraries")

Expand Down
2 changes: 2 additions & 0 deletions test/BUILD.bazel
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
load("@rules_cc//cc:defs.bzl", "cc_test")

package(
default_applicable_licenses = ["//:license"],
features = [
Expand Down
Loading