Skip to content

Commit

Permalink
Fix visibility macro names when used by a different component (Window…
Browse files Browse the repository at this point in the history
…s) (#564)

Signed-off-by: Jose Luis Rivero <[email protected]>
  • Loading branch information
j-rivero authored and chapulina committed Jul 30, 2021
1 parent a3738d5 commit 7911803
Show file tree
Hide file tree
Showing 27 changed files with 25 additions and 29 deletions.
7 changes: 4 additions & 3 deletions include/ignition/gazebo/gui/Gui.hh
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
#include <ignition/gui/Application.hh>

#include "ignition/gazebo/config.hh"
#include "ignition/gazebo/Export.hh"
#include "ignition/gazebo/gui/Export.hh"

namespace ignition
{
Expand All @@ -41,7 +41,7 @@ namespace gui
/// ign-tools. Set to the name of the application if using ign-tools)
/// \param[in] _guiConfig The GUI configuration file. If nullptr, the default
/// configuration from IGN_HOMEDIR/.ignition/gazebo/gui.config will be used.
IGNITION_GAZEBO_VISIBLE int runGui(int &_argc, char **_argv,
IGNITION_GAZEBO_GUI_VISIBLE int runGui(int &_argc, char **_argv,
const char *_guiConfig);

/// \brief Create a Gazebo GUI application
Expand All @@ -60,7 +60,8 @@ namespace gui
/// IGN_HOMEDIR/.ignition/gazebo/gui.config will be used.
/// \param[in] _loadPluginsFromSdf If true, plugins specified in the world
/// SDFormat file will get loaded.
IGNITION_GAZEBO_VISIBLE std::unique_ptr<ignition::gui::Application> createGui(
IGNITION_GAZEBO_GUI_VISIBLE
std::unique_ptr<ignition::gui::Application> createGui(
int &_argc, char **_argv, const char *_guiConfig,
const char *_defaultGuiConfig = nullptr, bool _loadPluginsFromSdf = true);

Expand Down
4 changes: 2 additions & 2 deletions include/ignition/gazebo/gui/GuiRunner.hh
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
#include <ignition/transport/Node.hh>

#include "ignition/gazebo/EntityComponentManager.hh"
#include "ignition/gazebo/Export.hh"
#include "ignition/gazebo/gui/Export.hh"

namespace ignition
{
Expand All @@ -37,7 +37,7 @@ namespace gazebo
inline namespace IGNITION_GAZEBO_VERSION_NAMESPACE {
/// \brief Responsible for running GUI systems as new states are received from
/// the backend.
class IGNITION_GAZEBO_VISIBLE GuiRunner : public QObject
class IGNITION_GAZEBO_GUI_VISIBLE GuiRunner : public QObject
{
Q_OBJECT

Expand Down
4 changes: 3 additions & 1 deletion include/ignition/gazebo/rendering/MarkerManager.hh
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@
#include <memory>
#include <string>

#include <ignition/gazebo/rendering/Export.hh>

#include "ignition/rendering/RenderTypes.hh"

namespace ignition
Expand All @@ -32,7 +34,7 @@ class MarkerManagerPrivate;

/// \brief Creates, deletes, and maintains marker visuals. Only the
/// Scene class should instantiate and use this class.
class IGNITION_GAZEBO_VISIBLE MarkerManager
class IGNITION_GAZEBO_RENDERING_VISIBLE MarkerManager
{
/// \brief Constructor
public: MarkerManager();
Expand Down
4 changes: 2 additions & 2 deletions include/ignition/gazebo/rendering/RenderUtil.hh
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
#include <sdf/Sensor.hh>

#include <ignition/gazebo/config.hh>
#include <ignition/gazebo/Export.hh>
#include <ignition/gazebo/rendering/Export.hh>
#include <ignition/gazebo/System.hh>

#include "ignition/gazebo/rendering/SceneManager.hh"
Expand All @@ -41,7 +41,7 @@ inline namespace IGNITION_GAZEBO_VERSION_NAMESPACE {
class RenderUtilPrivate;

/// \class RenderUtil RenderUtil.hh ignition/gazebo/gui/plugins/RenderUtil.hh
class IGNITION_GAZEBO_VISIBLE RenderUtil
class IGNITION_GAZEBO_RENDERING_VISIBLE RenderUtil
{
/// \brief Constructor
public: explicit RenderUtil();
Expand Down
4 changes: 2 additions & 2 deletions include/ignition/gazebo/rendering/SceneManager.hh
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@

#include <ignition/gazebo/config.hh>
#include <ignition/gazebo/Entity.hh>
#include <ignition/gazebo/Export.hh>
#include <ignition/gazebo/rendering/Export.hh>

namespace ignition
{
Expand All @@ -48,7 +48,7 @@ inline namespace IGNITION_GAZEBO_VERSION_NAMESPACE {
class SceneManagerPrivate;

/// \brief Scene manager class for loading and managing objects in the scene
class IGNITION_GAZEBO_VISIBLE SceneManager
class IGNITION_GAZEBO_RENDERING_VISIBLE SceneManager
{
/// \brief Constructor
public: SceneManager();
Expand Down
1 change: 0 additions & 1 deletion src/systems/air_pressure/AirPressure.hh
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@

#include <memory>
#include <ignition/gazebo/config.hh>
#include <ignition/gazebo/Export.hh>
#include <ignition/gazebo/System.hh>

namespace ignition
Expand Down
1 change: 0 additions & 1 deletion src/systems/altimeter/Altimeter.hh
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@

#include <memory>
#include <ignition/gazebo/config.hh>
#include <ignition/gazebo/Export.hh>
#include <ignition/gazebo/System.hh>

namespace ignition
Expand Down
1 change: 1 addition & 0 deletions src/systems/breadcrumbs/Breadcrumbs.hh
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
#define IGNITION_GAZEBO_SYSTEMS_BREADCRUMBS_HH_

#include <memory>
#include <optional>
#include <set>
#include <unordered_map>
#include <vector>
Expand Down
1 change: 0 additions & 1 deletion src/systems/camera_video_recorder/CameraVideoRecorder.hh
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@

#include <memory>
#include <ignition/gazebo/config.hh>
#include <ignition/gazebo/Export.hh>
#include <ignition/gazebo/System.hh>

namespace ignition
Expand Down
1 change: 0 additions & 1 deletion src/systems/contact/Contact.hh
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
#define IGNITION_GAZEBO_SYSTEMS_CONTACT_HH_

#include <memory>
#include <ignition/gazebo/Export.hh>
#include <ignition/gazebo/System.hh>

namespace ignition
Expand Down
1 change: 0 additions & 1 deletion src/systems/imu/Imu.hh
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@

#include <memory>
#include <ignition/gazebo/config.hh>
#include <ignition/gazebo/Export.hh>
#include <ignition/gazebo/System.hh>

namespace ignition
Expand Down
1 change: 0 additions & 1 deletion src/systems/log/LogPlayback.hh
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
#include <memory>

#include <ignition/gazebo/config.hh>
#include <ignition/gazebo/Export.hh>
#include <ignition/gazebo/System.hh>

namespace ignition
Expand Down
1 change: 0 additions & 1 deletion src/systems/log/LogRecord.hh
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
#include <memory>

#include <ignition/gazebo/config.hh>
#include <ignition/gazebo/Export.hh>
#include <ignition/gazebo/System.hh>

namespace ignition
Expand Down
1 change: 0 additions & 1 deletion src/systems/log_video_recorder/LogVideoRecorder.hh
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
#include <memory>
#include <vector>
#include <ignition/gazebo/config.hh>
#include <ignition/gazebo/Export.hh>
#include <ignition/gazebo/System.hh>

namespace ignition
Expand Down
1 change: 0 additions & 1 deletion src/systems/logical_camera/LogicalCamera.hh
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@

#include <memory>
#include <ignition/gazebo/config.hh>
#include <ignition/gazebo/Export.hh>
#include <ignition/gazebo/System.hh>

namespace ignition
Expand Down
1 change: 0 additions & 1 deletion src/systems/magnetometer/Magnetometer.hh
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@

#include <memory>
#include <ignition/gazebo/config.hh>
#include <ignition/gazebo/Export.hh>
#include <ignition/gazebo/System.hh>

namespace ignition
Expand Down
1 change: 1 addition & 0 deletions src/systems/multicopter_control/Common.hh
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
#define IGNITION_GAZEBO_SYSTEMS_MULTICOPTERVELOCITYCONTROL_COMMON_HH_

#include <Eigen/Geometry>
#include <optional>
#include <vector>

#include <sdf/sdf.hh>
Expand Down
1 change: 0 additions & 1 deletion src/systems/physics/Physics.hh
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,6 @@
#include <ignition/physics/sdf/ConstructWorld.hh>

#include <ignition/gazebo/config.hh>
#include <ignition/gazebo/Export.hh>
#include <ignition/gazebo/System.hh>

namespace ignition
Expand Down
1 change: 0 additions & 1 deletion src/systems/pose_publisher/PosePublisher.hh
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@

#include <memory>
#include <ignition/gazebo/config.hh>
#include <ignition/gazebo/Export.hh>
#include <ignition/gazebo/System.hh>

namespace ignition
Expand Down
1 change: 0 additions & 1 deletion src/systems/scene_broadcaster/SceneBroadcaster.hh
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
#include <memory>
#include <vector>
#include <ignition/gazebo/config.hh>
#include <ignition/gazebo/Export.hh>
#include <ignition/gazebo/System.hh>

namespace ignition
Expand Down
1 change: 0 additions & 1 deletion src/systems/sensors/Sensors.hh
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@
#include <string>

#include <ignition/gazebo/config.hh>
#include <ignition/gazebo/Export.hh>
#include <ignition/gazebo/System.hh>
#include <sdf/Sensor.hh>

Expand Down
1 change: 0 additions & 1 deletion src/systems/thermal/Thermal.hh
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@

#include <memory>
#include <ignition/gazebo/config.hh>
#include <ignition/gazebo/Export.hh>
#include <ignition/gazebo/System.hh>

namespace ignition
Expand Down
6 changes: 6 additions & 0 deletions src/systems/triggered_publisher/TriggeredPublisher.cc
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@

#include "TriggeredPublisher.hh"

#include <google/protobuf/message.h>
#include <google/protobuf/text_format.h>
#include <google/protobuf/util/message_differencer.h>

Expand All @@ -27,6 +28,11 @@
#include <ignition/common/Util.hh>
#include <ignition/plugin/Register.hh>

// bug https://github.com/protocolbuffers/protobuf/issues/5051
#ifdef _WIN32
#undef GetMessage
#endif

using namespace ignition;
using namespace gazebo;
using namespace systems;
Expand Down
5 changes: 3 additions & 2 deletions src/systems/triggered_publisher/TriggeredPublisher.hh
Original file line number Diff line number Diff line change
Expand Up @@ -153,8 +153,9 @@ namespace systems
/// The current implementation of this system does not support specifying a
/// subfield of a repeated field in the "field" attribute. i.e, if
/// `field="f1.f2"`, `f1` cannot be a repeated field.
class TriggeredPublisher : public System,
public ISystemConfigure
class TriggeredPublisher :
public System,
public ISystemConfigure
{
/// \brief Constructor
public: TriggeredPublisher() = default;
Expand Down
1 change: 0 additions & 1 deletion src/systems/user_commands/UserCommands.hh
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@

#include <memory>
#include <ignition/gazebo/config.hh>
#include <ignition/gazebo/Export.hh>
#include <ignition/gazebo/System.hh>

namespace ignition
Expand Down
1 change: 1 addition & 0 deletions src/systems/velocity_control/VelocityControl.hh
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
#define IGNITION_GAZEBO_SYSTEMS_VELOCITYCONTROL_HH_

#include <memory>
#include <optional>

#include <ignition/gazebo/System.hh>

Expand Down
1 change: 0 additions & 1 deletion src/systems/wind_effects/WindEffects.hh
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@

#include <memory>
#include <ignition/gazebo/config.hh>
#include <ignition/gazebo/Export.hh>
#include <ignition/gazebo/System.hh>

namespace ignition
Expand Down

0 comments on commit 7911803

Please sign in to comment.