[build] Make Protobuf optional in CMake build (#7061)

This commit is contained in:
Tyler Veness
2024-09-12 23:44:19 -07:00
committed by GitHub
parent b9409a4bcf
commit d44b651558
77 changed files with 168 additions and 73 deletions

View File

@@ -208,5 +208,7 @@ class WPILIB_DLLEXPORT Ellipse2d {
} // namespace frc
#ifndef NO_PROTOBUF
#include "frc/geometry/proto/Ellipse2dProto.h"
#endif
#include "frc/geometry/struct/Ellipse2dStruct.h"

View File

@@ -213,6 +213,8 @@ void from_json(const wpi::json& json, Pose2d& pose);
} // namespace frc
#ifndef NO_PROTOBUF
#include "frc/geometry/proto/Pose2dProto.h"
#endif
#include "frc/geometry/struct/Pose2dStruct.h"
#include "frc/geometry/Pose2d.inc"

View File

@@ -215,5 +215,7 @@ void from_json(const wpi::json& json, Pose3d& pose);
} // namespace frc
#ifndef NO_PROTOBUF
#include "frc/geometry/proto/Pose3dProto.h"
#endif
#include "frc/geometry/struct/Pose3dStruct.h"

View File

@@ -191,5 +191,7 @@ void from_json(const wpi::json& json, Quaternion& quaternion);
} // namespace frc
#ifndef NO_PROTOBUF
#include "frc/geometry/proto/QuaternionProto.h"
#endif
#include "frc/geometry/struct/QuaternionStruct.h"

View File

@@ -206,5 +206,7 @@ class WPILIB_DLLEXPORT Rectangle2d {
} // namespace frc
#ifndef NO_PROTOBUF
#include "frc/geometry/proto/Rectangle2dProto.h"
#endif
#include "frc/geometry/struct/Rectangle2dStruct.h"

View File

@@ -169,6 +169,8 @@ void from_json(const wpi::json& json, Rotation2d& rotation);
} // namespace frc
#ifndef NO_PROTOBUF
#include "frc/geometry/proto/Rotation2dProto.h"
#endif
#include "frc/geometry/struct/Rotation2dStruct.h"
#include "frc/geometry/Rotation2d.inc"

View File

@@ -195,5 +195,7 @@ void from_json(const wpi::json& json, Rotation3d& rotation);
} // namespace frc
#ifndef NO_PROTOBUF
#include "frc/geometry/proto/Rotation3dProto.h"
#endif
#include "frc/geometry/struct/Rotation3dStruct.h"

View File

@@ -124,6 +124,8 @@ class WPILIB_DLLEXPORT Transform2d {
};
} // namespace frc
#ifndef NO_PROTOBUF
#include "frc/geometry/proto/Transform2dProto.h"
#endif
#include "frc/geometry/struct/Transform2dStruct.h"
#include "frc/geometry/Transform2d.inc"

View File

@@ -130,5 +130,7 @@ class WPILIB_DLLEXPORT Transform3d {
};
} // namespace frc
#ifndef NO_PROTOBUF
#include "frc/geometry/proto/Transform3dProto.h"
#endif
#include "frc/geometry/struct/Transform3dStruct.h"

View File

@@ -232,6 +232,8 @@ void from_json(const wpi::json& json, Translation2d& state);
} // namespace frc
#ifndef NO_PROTOBUF
#include "frc/geometry/proto/Translation2dProto.h"
#endif
#include "frc/geometry/struct/Translation2dStruct.h"
#include "frc/geometry/Translation2d.inc"

View File

@@ -199,6 +199,8 @@ void from_json(const wpi::json& json, Translation3d& state);
} // namespace frc
#ifndef NO_PROTOBUF
#include "frc/geometry/proto/Translation3dProto.h"
#endif
#include "frc/geometry/struct/Translation3dStruct.h"
#include "frc/geometry/Translation3d.inc"

View File

@@ -58,5 +58,7 @@ struct WPILIB_DLLEXPORT Twist2d {
};
} // namespace frc
#ifndef NO_PROTOBUF
#include "frc/geometry/proto/Twist2dProto.h"
#endif
#include "frc/geometry/struct/Twist2dStruct.h"

View File

@@ -78,5 +78,7 @@ struct WPILIB_DLLEXPORT Twist3d {
};
} // namespace frc
#ifndef NO_PROTOBUF
#include "frc/geometry/proto/Twist3dProto.h"
#endif
#include "frc/geometry/struct/Twist3dStruct.h"