Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Signed-off-by: Michael Carroll <[email protected]>
  • Loading branch information
mjcarroll committed Apr 22, 2024
1 parent 5a127e8 commit 0259e6c
Showing 1 changed file with 24 additions and 20 deletions.
44 changes: 24 additions & 20 deletions BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ load(
)
load(
"@gz//msgs/tools:gz_msgs_generate.bzl",
"gz_proto_library",
"gz_proto_factory",
"gz_proto_library",
)

package(
Expand All @@ -30,32 +30,36 @@ proto_library(
srcs = protos,
strip_import_prefix = "src/proto",
deps = [
GZ_ROOT + "msgs:gzmsgs_proto"
]
GZ_ROOT + "msgs:gzmsgs_proto",
],
)

gz_proto_library(
name = "gzsim_cc_proto",
proto_deps = [":gzsim_proto"],
deps = [
"@com_google_protobuf//:protobuf",
GZ_ROOT + "msgs:gzmsgs_cc_proto"
]
name = "gzsim_cc_proto",
proto_deps = [":gzsim_proto"],
deps = [
"@com_google_protobuf//:protobuf",
GZ_ROOT + "msgs:gzmsgs_cc_proto",
],
)

gz_proto_factory(
name = "gzsim_proto_factory",
deps = [":gzsim_proto"],
cc_output = "RegisterMsgs.cc",
hh_output = "include/gz/sim/private_msgs/MessageTypes.hh"
name = "gzsim_proto_factory",
cc_output = "RegisterMsgs.cc",
hh_output = "include/gz/sim/private_msgs/MessageTypes.hh",
deps = [":gzsim_proto"],
)

cc_binary(
name = "test_executable",
srcs = ["test_executable.cc", "RegisterMsgs.cc", "include/gz/sim/private_msgs/MessageTypes.hh"],
includes = ["include"],
deps = [
":gzsim_cc_proto",
GZ_ROOT + "msgs"
]
name = "test_executable",
srcs = [
"RegisterMsgs.cc",
"include/gz/sim/private_msgs/MessageTypes.hh",
"test_executable.cc",
],
includes = ["include"],
deps = [
":gzsim_cc_proto",
GZ_ROOT + "msgs",
],
)

0 comments on commit 0259e6c

Please sign in to comment.