Skip to content

Commit

Permalink
Add bazel deps to pass layering_check (#143)
Browse files Browse the repository at this point in the history
Signed-off-by: Michael Beardsworth <[email protected]>
Co-authored-by: Michael Beardsworth <[email protected]>
  • Loading branch information
mbeards and mbeards authored Apr 16, 2024
1 parent 23c28a2 commit 59e79e6
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions BUILD.bazel
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
load(
"@gz//bazel/skylark:build_defs.bzl",
"GZ_FEATURES",
"GZ_ROOT",
"GZ_VISIBILITY",
"gz_configure_header",
Expand All @@ -10,7 +9,6 @@ load(

package(
default_visibility = GZ_VISIBILITY,
features = GZ_FEATURES,
)

licenses(["notice"]) # Apache-2.0
Expand Down Expand Up @@ -43,8 +41,8 @@ gz_include_header(
name = "pluginhh_genrule",
out = "core/include/gz/plugin.hh",
hdrs = public_headers_no_gen + [
"core/include/gz/plugin/config.hh",
"core/include/gz/plugin/Export.hh",
"core/include/gz/plugin/config.hh",
],
)

Expand Down Expand Up @@ -93,6 +91,7 @@ cc_library(
],
deps = [
":core",
":loader",
],
)

Expand Down Expand Up @@ -126,11 +125,15 @@ cc_library(

cc_test(
name = "Loader_TEST",
srcs = ["loader/src/Loader_TEST.cc"],
srcs = [
"loader/src/Loader_TEST.cc",
":config",
],
defines = [
'GzDummyPlugins_LIB=\\"./plugin/test/libGzDummyPlugins.so\\"',
],
deps = [
":core",
":loader",
GZ_ROOT + "plugin/test:test_plugins",
"@gtest",
Expand Down

0 comments on commit 59e79e6

Please sign in to comment.