Skip to content

Commit

Permalink
Migrate IGN(ITION)_GUI_XXX macros and variables
Browse files Browse the repository at this point in the history
Signed-off-by: methylDragon <[email protected]>
  • Loading branch information
methylDragon committed May 20, 2022
1 parent d695988 commit a2ba942
Show file tree
Hide file tree
Showing 8 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion .github/ci/after_make.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ set -x
make install

# For ign-tools
export IGN_CONFIG_PATH=/usr/local/share/ignition
export GZ_CONFIG_PATH=/usr/local/share/ignition
export LD_LIBRARY_PATH=/usr/local/lib/:$LD_LIBRARY_PATH

# For rendering / window tests
Expand Down
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ ign_find_package (Qt5
PKGCONFIG "Qt5Core Qt5Quick Qt5QuickControls2 Qt5Widgets"
)

set(IGNITION_GUI_PLUGIN_INSTALL_DIR
set(GZ_GUI_PLUGIN_INSTALL_DIR
${CMAKE_INSTALL_PREFIX}/${IGN_LIB_INSTALL_DIR}/ign-${IGN_DESIGNATION}-${PROJECT_VERSION_MAJOR}/plugins
)

Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,15 +64,15 @@ In the event that the installation is a mix of Debian and from source, command
line tools from `ign-tools` may not work correctly.

A workaround for a single package is to define the environment variable
`IGN_CONFIG_PATH` to point to the location of the Ignition library installation,
`GZ_CONFIG_PATH` to point to the location of the Ignition library installation,
where the YAML file for the package is found, such as
```
export IGN_CONFIG_PATH=/usr/local/share/ignition
export GZ_CONFIG_PATH=/usr/local/share/ignition
```

Multiple paths can be specified using the `:` delimiter. For example,
```
export IGN_CONFIG_PATH=/user/local/share/ignition/:/path/to/some/other/location
export GZ_CONFIG_PATH=/user/local/share/ignition/:/path/to/some/other/location
```

# Folder Structure
Expand Down
4 changes: 2 additions & 2 deletions src/Application.cc
Original file line number Diff line number Diff line change
Expand Up @@ -434,7 +434,7 @@ bool Application::LoadPlugin(const std::string &_filename,
std::string home;
common::env(IGN_HOMEDIR, home);
systemPaths.AddPluginPaths(home + "/.ignition/gui/plugins:" +
IGN_GUI_PLUGIN_INSTALL_DIR);
GZ_GUI_PLUGIN_INSTALL_DIR);

auto pathToLib = systemPaths.FindSharedLibrary(_filename);
if (pathToLib.empty())
Expand Down Expand Up @@ -734,7 +734,7 @@ std::vector<std::pair<std::string, std::vector<std::string>>>
paths.push_back(home + "/.ignition/gui/plugins");

// 4. Install path
paths.push_back(IGN_GUI_PLUGIN_INSTALL_DIR);
paths.push_back(GZ_GUI_PLUGIN_INSTALL_DIR);

// Populate map
std::vector<std::pair<std::string, std::vector<std::string>>> plugins;
Expand Down
2 changes: 1 addition & 1 deletion src/ign.cc
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ void startConsoleLog()
//////////////////////////////////////////////////
extern "C" GZ_GUI_VISIBLE char *ignitionVersion()
{
return strdup(IGNITION_GUI_VERSION_FULL);
return strdup(GZ_GUI_VERSION_FULL);
}

//////////////////////////////////////////////////
Expand Down
2 changes: 1 addition & 1 deletion src/plugins/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ function(gz_gui_add_plugin plugin_name)
COMPILE_FLAGS "/wd4251")
endif()

install (TARGETS ${plugin_name} DESTINATION ${IGNITION_GUI_PLUGIN_INSTALL_DIR})
install (TARGETS ${plugin_name} DESTINATION ${GZ_GUI_PLUGIN_INSTALL_DIR})
endfunction()

# Plugins
Expand Down
2 changes: 1 addition & 1 deletion src/plugins/grid_config/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,4 @@ gz_gui_add_plugin(GridConfig
install (
FILES $<TARGET_FILE:GridConfig>
RENAME ${CMAKE_SHARED_LIBRARY_PREFIX}Grid3D${CMAKE_SHARED_LIBRARY_SUFFIX}
DESTINATION ${IGNITION_GUI_PLUGIN_INSTALL_DIR})
DESTINATION ${GZ_GUI_PLUGIN_INSTALL_DIR})
2 changes: 1 addition & 1 deletion tutorials/03_plugins.md
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,6 @@ Ignition GUI by default.
Ignition GUI will look for display plugins on the following paths, in this
order:

1. All paths set on the `IGN_GUI_DISPLAY_PLUGIN_PATH` environment variable
1. All paths set on the `GZ_GUI_DISPLAY_PLUGIN_PATH` environment variable
2. `~/.ignition/gui/display_plugins`
3. [Display plugins that are installed with Ignition GUI](https://ignitionrobotics.org/api/gui/0.1/namespace gz_1_1gui_1_1display_plugins.html)

0 comments on commit a2ba942

Please sign in to comment.