Skip to content

Commit 3c2943b

Browse files
committed
Removed ignition material proto
Signed-off-by: William Lew <WilliamMilesLew@gmail.com>
2 parents 1f738b0 + 2770d34 commit 3c2943b

File tree

428 files changed

+1078
-10582
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

428 files changed

+1078
-10582
lines changed

BUILD.bazel

Lines changed: 31 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@ load(
99
"ign_export_header",
1010
)
1111
load(
12-
":ign_msg_gen.bzl",
12+
":gz_msg_gen.bzl",
1313
"get_proto_headers",
14-
"ign_msg_gen",
14+
"gz_msg_gen",
1515
)
1616

1717
package(
@@ -37,53 +37,53 @@ PROJECT_PATCH = 0
3737
# Generates config.hh based on the version numbers in CMake code.
3838
ign_config_header(
3939
name = "config",
40-
src = "include/ignition/msgs/config.hh.in",
40+
src = "include/gz/msgs/config.hh.in",
4141
cmakelists = ["CMakeLists.txt"],
4242
project_name = PROJECT_NAME,
4343
project_version = (PROJECT_MAJOR, PROJECT_MINOR, PROJECT_PATCH),
4444
)
4545

4646
ign_export_header(
47-
name = "include/ignition/msgs/Export.hh",
47+
name = "include/gz/msgs/Export.hh",
4848
export_base = "IGNITION_MSGS",
4949
lib_name = "ignition-msgs",
5050
visibility = ["//visibility:private"],
5151
)
5252

5353
public_headers_no_gen = glob([
54-
"include/ignition/msgs/*.hh",
55-
"include/ignition/msgs/detail/*.hh",
54+
"include/gz/msgs/*.hh",
55+
"include/gz/msgs/detail/*.hh",
5656
])
5757

58-
protos = glob(["proto/ignition/msgs/*.proto"])
58+
protos = glob(["proto/gz/msgs/*.proto"])
5959

6060
generate_include_header(
6161
name = "messagetypeshh_genrule",
62-
out = "include/ignition/msgs/MessageTypes.hh",
62+
out = "include/gz/msgs/MessageTypes.hh",
6363
hdrs = get_proto_headers(protos),
64-
strip_prefix = ["ign_msgs"],
64+
strip_prefix = ["gz_msgs"],
6565
)
6666

6767
generate_include_header(
6868
name = "msghh_genrule",
69-
out = "include/ignition/msgs.hh",
69+
out = "include/gz/msgs.hh",
7070
hdrs = public_headers_no_gen + [
71-
"include/ignition/msgs/config.hh",
72-
"include/ignition/msgs/Export.hh",
73-
"include/ignition/msgs/MessageTypes.hh",
71+
"include/gz/msgs/config.hh",
72+
"include/gz/msgs/Export.hh",
73+
"include/gz/msgs/MessageTypes.hh",
7474
],
7575
)
7676

7777
public_headers = public_headers_no_gen + [
78-
"include/ignition/msgs/config.hh",
79-
"include/ignition/msgs/Export.hh",
80-
"include/ignition/msgs/MessageTypes.hh",
81-
"include/ignition/msgs.hh",
78+
"include/gz/msgs/config.hh",
79+
"include/gz/msgs/Export.hh",
80+
"include/gz/msgs/MessageTypes.hh",
81+
"include/gz/msgs.hh",
8282
]
8383

84-
# Custom Ignition Protoc plugin
84+
# Custom Gazebo Protoc plugin
8585
cc_binary(
86-
name = "ign_msgs_gen",
86+
name = "gz_msgs_gen",
8787
srcs = [
8888
"src/Generator.cc",
8989
"src/Generator.hh",
@@ -97,36 +97,36 @@ cc_binary(
9797

9898
# Create a library of our protobuf message files
9999
proto_library(
100-
name = "ignmsgs_proto",
100+
name = "gzmsgs_proto",
101101
srcs = protos,
102102
strip_import_prefix = "proto",
103103
)
104104

105105
# Create a library of our protobuf message files
106106
proto_library(
107-
name = "ignmsgs_proto_public",
107+
name = "gzmsgs_proto_public",
108108
srcs = protos,
109109
strip_import_prefix = "proto",
110110
)
111111

112112
# Generate our custom CC files from the protos
113-
ign_msg_gen(
114-
name = "ignmsgs_proto_cc",
115-
deps = [":ignmsgs_proto"],
113+
gz_msg_gen(
114+
name = "gzmsgs_proto_cc",
115+
deps = [":gzmsgs_proto"],
116116
)
117117

118118
cc_library(
119-
name = "ign_msgs",
119+
name = "gz_msgs",
120120
srcs = [
121121
"src/Factory.cc",
122122
"src/Filesystem.cc",
123123
"src/Utility.cc",
124-
":ignmsgs_proto_cc",
124+
":gzmsgs_proto_cc",
125125
],
126126
hdrs = public_headers,
127127
includes = ["include"],
128128
deps = [
129-
":ignmsgs_proto_cc",
129+
":gzmsgs_proto_cc",
130130
IGNITION_ROOT + "ign_math",
131131
"@com_google_protobuf//:protobuf",
132132
"@tinyxml2",
@@ -144,18 +144,18 @@ cc_binary(
144144
linkshared = True,
145145
linkstatic = True,
146146
deps = [
147-
":ign_msgs",
147+
":gz_msgs",
148148
],
149149
)
150150

151151
[cc_test(
152152
name = src.replace("/", "_").replace(".cc", "").replace("src_", ""),
153153
srcs = [src],
154-
data = [IGNITION_ROOT + "ign_msgs/test:desc/stringmsg.desc"],
154+
data = [IGNITION_ROOT + "gz_msgs/test:desc/stringmsg.desc"],
155155
deps = [
156-
":ign_msgs",
156+
":gz_msgs",
157157
IGNITION_ROOT + "ign_math",
158-
IGNITION_ROOT + "ign_msgs/test:test_utils",
158+
IGNITION_ROOT + "gz_msgs/test:test_utils",
159159
"@gtest",
160160
"@gtest//:gtest_main",
161161
],

CMakeLists.txt

Lines changed: 31 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -23,32 +23,49 @@ ign_configure_project(
2323
#============================================================================
2424

2525
# Cross-compilation related options
26-
# In a cross-compilation scenario, it is possible that the ign_msgs_gen
26+
# In a cross-compilation scenario, it is possible that the gz_msgs_gen
2727
# generator compiled for the target machine cannot be used to generate
2828
# the C++ code corresponding to the .proto definition. For this scenario,
2929
# the following two options can be used as follows.
3030
# First of all, ign-msgs is compiled targeting the host machine, and in the
31-
# build targeting the host, the INSTALL_IGN_MSGS_GEN_EXECUTABLE option is
31+
# build targeting the host, the INSTALL_GZ_MSGS_GEN_EXECUTABLE option is
3232
# enabled:
33-
# > cmake -DINSTALL_IGN_MSGS_GEN_EXECUTABLE:BOOL=ON ..
34-
# ensuring that the ign_msgs_gen is installed in
35-
# <host_install_prefix>/bin/ign_msgs_gen . Then, the same version of ign-msgs
33+
# > cmake -DINSTALL_GZ_MSGS_GEN_EXECUTABLE:BOOL=ON ..
34+
# ensuring that the gz_msgs_gen is installed in
35+
# <host_install_prefix>/bin/gz_msgs_gen . Then, the same version of ign-msgs
3636
# can be cross-compiled, and in the cross-compilation build the location of the
37-
# host ign_msgs_gen is specified via the IGN_MSGS_GEN_EXECUTABLE
37+
# host gz_msgs_gen is specified via the GZ_MSGS_GEN_EXECUTABLE
3838
# CMake cache variable:
39-
# > cmake -IGN_MSGS_GEN_EXECUTABLE=<host_install_prefix>/bin/ign_msgs_gen ..
39+
# > cmake -GZ_MSGS_GEN_EXECUTABLE=<host_install_prefix>/bin/gz_msgs_gen ..
40+
41+
# TODO(CH3): Deprecated. Remove IGN_MSGS CMake variables on tick-tock.
42+
if(INSTALL_IGN_MSGS_GEN_EXECUTABLE)
43+
message(WARNING "INSTALL_IGN_MSGS_GEN_EXECUTABLE is deprecated, use INSTALL_GZ_MSGS_GEN_EXECUTABLE instead")
44+
set(INSTALL_GZ_MSGS_GEN_EXECUTABLE INSTALL_IGN_MSGS_GEN_EXECUTABLE)
45+
else()
46+
option(
47+
INSTALL_GZ_MSGS_GEN_EXECUTABLE
48+
"Install the gz_msgs_gen executable."
49+
OFF)
50+
set(INSTALL_IGN_MSGS_GEN_EXECUTABLE INSTALL_GZ_MSGS_GEN_EXECUTABLE)
51+
endif()
4052

41-
option(
42-
INSTALL_IGN_MSGS_GEN_EXECUTABLE
43-
"Install the ign_msgs_gen executable."
44-
OFF)
4553
mark_as_advanced(INSTALL_IGN_MSGS_GEN_EXECUTABLE)
54+
mark_as_advanced(INSTALL_GZ_MSGS_GEN_EXECUTABLE)
55+
56+
set(
57+
GZ_MSGS_GEN_EXECUTABLE
58+
"$<TARGET_FILE:gz_msgs_gen>"
59+
CACHE STRING
60+
"gz_msgs_gen executable used in the gz_msgs_protoc CMake function.")
61+
mark_as_advanced(GZ_MSGS_GEN_EXECUTABLE)
4662

63+
# TODO(CH3): Deprecated. Remove IGN_MSGS CMake variables on tick-tock.
4764
set(
4865
IGN_MSGS_GEN_EXECUTABLE
49-
"$<TARGET_FILE:ign_msgs_gen>"
66+
"$<TARGET_FILE:gz_msgs_gen>"
5067
CACHE STRING
51-
"ign_msgs_gen executable used in the ign_msgs_protoc CMake function.")
68+
"gz_msgs_gen executable used in the gz_msgs_protoc CMake function.")
5269
mark_as_advanced(IGN_MSGS_GEN_EXECUTABLE)
5370

5471
#============================================================================
@@ -98,7 +115,7 @@ add_subdirectory(tools)
98115
#============================================================================
99116
# TODO: Consider tweaking ign_configure_build() to call add_subdirectory(proto)
100117
# whenever a proto subdirectory exists. This could be used alongside
101-
# ign_msgs_protoc to get uniform support for proto messages across all ignition
118+
# gz_msgs_protoc to get uniform support for proto messages across all ignition
102119
# projects.
103120
add_subdirectory(proto)
104121

CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
See the [Ignition Robotics contributing guide](https://ignitionrobotics.org/docs/all/contributing).
1+
See the [Gazebo contributing guide](https://gazebosim.org/docs/all/contributing).

0 commit comments

Comments
 (0)