Skip to content

Commit

Permalink
Lint
Browse files Browse the repository at this point in the history
Signed-off-by: Michael Carroll <[email protected]>
  • Loading branch information
mjcarroll committed Feb 16, 2023
1 parent 7553e0f commit 3505ad0
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 11 deletions.
13 changes: 8 additions & 5 deletions BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ load(
"gz_include_header",
)
load("@gz//bazel/skylark:gz_py.bzl", "gz_py_binary")
load("@gz//bazel/lint:lint.bzl", "add_lint_tests")

package(
default_visibility = GZ_VISIBILITY,
Expand Down Expand Up @@ -40,7 +41,7 @@ genrule(
"sdf/**/*.convert",
]),
outs = ["EmbeddedSdf.cc"],
cmd = "$(execpath :embed_sdf) --output-file $@ --sdf-root ./sdformat/sdf --input-files $(SRCS)", # noqa
cmd = "$(execpath :embed_sdf) --output-file $@ --sdf-root ./sdformat/sdf --input-files $(SRCS)", # noqa
tools = [":embed_sdf"],
)

Expand Down Expand Up @@ -107,14 +108,14 @@ cc_library(
name = "sdformat",
srcs = sources + private_headers + ["EmbeddedSdf.cc"],
hdrs = public_headers,
defines = [
'SDF_SHARE_PATH=\\".\\"',
'SDF_VERSION_PATH=\\"sdformat\\"',
],
includes = [
"include",
"src",
],
defines = [
'SDF_SHARE_PATH=\\".\\"',
'SDF_VERSION_PATH=\\"sdformat\\"',
],
deps = [
":urdf",
GZ_ROOT + "math",
Expand Down Expand Up @@ -149,3 +150,5 @@ test_sources = glob(
) for src in test_sources]

exports_files(["sdf"])

add_lint_tests()
15 changes: 9 additions & 6 deletions test/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,19 @@ load(
)

cmake_configure_file(
name = "config",
src = "test_config.hh.in",
out = "test_config.hh",
cmakelists = ["CMakeLists.txt"],
defines = []
name = "config",
src = "test_config.hh.in",
out = "test_config.hh",
cmakelists = ["CMakeLists.txt"],
defines = [],
)

cc_library(
name = "test_utils",
hdrs = ["test_utils.hh", "test_config.hh"],
hdrs = [
"test_config.hh",
"test_utils.hh",
],
includes = ["."],
visibility = ["//visibility:public"],
)
Expand Down

0 comments on commit 3505ad0

Please sign in to comment.