Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ign -> gz Header Migration : ign-utils #53

Merged
merged 5 commits into from
Apr 28, 2022
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
4 changes: 3 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,9 @@ find_package(ignition-cmake3 REQUIRED)
# Configure the project
#============================================================================
set(c++standard 17)
ign_configure_project(VERSION_SUFFIX pre1)
ign_configure_project(
REPLACE_IGNITION_INCLUDE_PATH gz/utils
VERSION_SUFFIX pre1)

#============================================================================
# Set project-specific options
Expand Down
10 changes: 5 additions & 5 deletions cli/include/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,15 @@
# target_include_directories(@tgt@ INTERFACE "$<BUILD_INTERFACE:@incl_dirs>")
# that for the usual include directories are handled by ign_add_component
if(IGN_UTILS_VENDOR_CLI11)
add_subdirectory(vendored-cli/ignition/utils)
target_include_directories(${ign_utils_cli_target_name}
add_subdirectory(vendored-cli/gz/utils)
target_include_directories(${gz_utils_cli_target_name}
INTERFACE
"$<BUILD_INTERFACE:${PROJECT_SOURCE_DIR}/cli/include/vendored-cli>")
else()
add_subdirectory(external-cli/ignition/utils)
target_include_directories(${ign_utils_cli_target_name}
add_subdirectory(external-cli/gz/utils)
target_include_directories(${gz_utils_cli_target_name}
INTERFACE
"$<BUILD_INTERFACE:${PROJECT_SOURCE_DIR}/cli/include/external-cli>")
endif()

add_subdirectory(ignition/utils)
add_subdirectory(gz/utils)
18 changes: 18 additions & 0 deletions cli/include/external-cli/gz/utils/cli/App.hpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
/*
* Copyright (C) 2021 Open Source Robotics Foundation
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
*/

#include <CLI/App.hpp>
18 changes: 18 additions & 0 deletions cli/include/external-cli/gz/utils/cli/CLI.hpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
/*
* Copyright (C) 2021 Open Source Robotics Foundation
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
*/

#include <CLI/CLI.hpp>
18 changes: 18 additions & 0 deletions cli/include/external-cli/gz/utils/cli/Config.hpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
/*
* Copyright (C) 2021 Open Source Robotics Foundation
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
*/

#include <CLI/Config.hpp>
18 changes: 18 additions & 0 deletions cli/include/external-cli/gz/utils/cli/ConfigFwd.hpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
/*
* Copyright (C) 2021 Open Source Robotics Foundation
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
*/

#include <CLI/ConfigFwd.hpp>
18 changes: 18 additions & 0 deletions cli/include/external-cli/gz/utils/cli/Error.hpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
/*
* Copyright (C) 2021 Open Source Robotics Foundation
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
*/

#include <CLI/Error.hpp>
18 changes: 18 additions & 0 deletions cli/include/external-cli/gz/utils/cli/Formatter.hpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
/*
* Copyright (C) 2021 Open Source Robotics Foundation
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
*/

#include <CLI/Formatter.hpp>
18 changes: 18 additions & 0 deletions cli/include/external-cli/gz/utils/cli/FormatterFwd.hpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
/*
* Copyright (C) 2021 Open Source Robotics Foundation
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
*/

#include <CLI/FormatterFwd.hpp>
18 changes: 18 additions & 0 deletions cli/include/external-cli/gz/utils/cli/Macros.hpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
/*
* Copyright (C) 2021 Open Source Robotics Foundation
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
*/

#include <CLI/Macros.hpp>
18 changes: 18 additions & 0 deletions cli/include/external-cli/gz/utils/cli/Option.hpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
/*
* Copyright (C) 2021 Open Source Robotics Foundation
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
*/

#include <CLI/Option.hpp>
18 changes: 18 additions & 0 deletions cli/include/external-cli/gz/utils/cli/Split.hpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
/*
* Copyright (C) 2021 Open Source Robotics Foundation
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
*/

#include <CLI/Split.hpp>
18 changes: 18 additions & 0 deletions cli/include/external-cli/gz/utils/cli/StringTools.hpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
/*
* Copyright (C) 2021 Open Source Robotics Foundation
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
*/

#include <CLI/StringTools.hpp>
18 changes: 18 additions & 0 deletions cli/include/external-cli/gz/utils/cli/Timer.hpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
/*
* Copyright (C) 2021 Open Source Robotics Foundation
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
*/

#include <CLI/Timer.hpp>
18 changes: 18 additions & 0 deletions cli/include/external-cli/gz/utils/cli/TypeTools.hpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
/*
* Copyright (C) 2021 Open Source Robotics Foundation
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
*/

#include <CLI/TypeTools.hpp>
18 changes: 18 additions & 0 deletions cli/include/external-cli/gz/utils/cli/Validators.hpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
/*
* Copyright (C) 2021 Open Source Robotics Foundation
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
*/

#include <CLI/Validators.hpp>
18 changes: 18 additions & 0 deletions cli/include/external-cli/gz/utils/cli/Version.hpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
/*
* Copyright (C) 2021 Open Source Robotics Foundation
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
*/

#include <CLI/Version.hpp>
2 changes: 1 addition & 1 deletion cli/include/external-cli/ignition/utils/cli/App.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,4 @@
*
*/

#include <CLI/App.hpp>
#include <external-cli/gz/utils/cli/App.hpp>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the external-cli/ should be removed from the #includes in all these files

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

2 changes: 1 addition & 1 deletion cli/include/external-cli/ignition/utils/cli/CLI.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,4 @@
*
*/

#include <CLI/CLI.hpp>
#include <external-cli/gz/utils/cli/CLI.hpp>
2 changes: 1 addition & 1 deletion cli/include/external-cli/ignition/utils/cli/Config.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,4 @@
*
*/

#include <CLI/Config.hpp>
#include <external-cli/gz/utils/cli/Config.hpp>
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,4 @@
*
*/

#include <CLI/ConfigFwd.hpp>
#include <external-cli/gz/utils/cli/ConfigFwd.hpp>
2 changes: 1 addition & 1 deletion cli/include/external-cli/ignition/utils/cli/Error.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,4 @@
*
*/

#include <CLI/Error.hpp>
#include <external-cli/gz/utils/cli/Error.hpp>
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,4 @@
*
*/

#include <CLI/Formatter.hpp>
#include <external-cli/gz/utils/cli/Formatter.hpp>
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,4 @@
*
*/

#include <CLI/FormatterFwd.hpp>
#include <external-cli/gz/utils/cli/FormatterFwd.hpp>
2 changes: 1 addition & 1 deletion cli/include/external-cli/ignition/utils/cli/Macros.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,4 @@
*
*/

#include <CLI/Macros.hpp>
#include <external-cli/gz/utils/cli/Macros.hpp>
2 changes: 1 addition & 1 deletion cli/include/external-cli/ignition/utils/cli/Option.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,4 @@
*
*/

#include <CLI/Option.hpp>
#include <external-cli/gz/utils/cli/Option.hpp>
2 changes: 1 addition & 1 deletion cli/include/external-cli/ignition/utils/cli/Split.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,4 @@
*
*/

#include <CLI/Split.hpp>
#include <external-cli/gz/utils/cli/Split.hpp>
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,4 @@
*
*/

#include <CLI/StringTools.hpp>
#include <external-cli/gz/utils/cli/StringTools.hpp>
2 changes: 1 addition & 1 deletion cli/include/external-cli/ignition/utils/cli/Timer.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,4 @@
*
*/

#include <CLI/Timer.hpp>
#include <external-cli/gz/utils/cli/Timer.hpp>
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,4 @@
*
*/

#include <CLI/TypeTools.hpp>
#include <external-cli/gz/utils/cli/TypeTools.hpp>
Loading