mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-30 02:31:44 +00:00
[build] Make Protobuf optional in CMake build (#7061)
This commit is contained in:
@@ -279,5 +279,7 @@ struct WPILIB_DLLEXPORT ChassisSpeeds {
|
||||
};
|
||||
} // namespace frc
|
||||
|
||||
#ifndef NO_PROTOBUF
|
||||
#include "frc/kinematics/proto/ChassisSpeedsProto.h"
|
||||
#endif
|
||||
#include "frc/kinematics/struct/ChassisSpeedsStruct.h"
|
||||
|
||||
@@ -99,5 +99,7 @@ class WPILIB_DLLEXPORT DifferentialDriveKinematics
|
||||
};
|
||||
} // namespace frc
|
||||
|
||||
#ifndef NO_PROTOBUF
|
||||
#include "frc/kinematics/proto/DifferentialDriveKinematicsProto.h"
|
||||
#endif
|
||||
#include "frc/kinematics/struct/DifferentialDriveKinematicsStruct.h"
|
||||
|
||||
@@ -50,5 +50,7 @@ struct WPILIB_DLLEXPORT DifferentialDriveWheelPositions {
|
||||
};
|
||||
} // namespace frc
|
||||
|
||||
#ifndef NO_PROTOBUF
|
||||
#include "frc/kinematics/proto/DifferentialDriveWheelPositionsProto.h"
|
||||
#endif
|
||||
#include "frc/kinematics/struct/DifferentialDriveWheelPositionsStruct.h"
|
||||
|
||||
@@ -113,5 +113,7 @@ struct WPILIB_DLLEXPORT DifferentialDriveWheelSpeeds {
|
||||
};
|
||||
} // namespace frc
|
||||
|
||||
#ifndef NO_PROTOBUF
|
||||
#include "frc/kinematics/proto/DifferentialDriveWheelSpeedsProto.h"
|
||||
#endif
|
||||
#include "frc/kinematics/struct/DifferentialDriveWheelSpeedsStruct.h"
|
||||
|
||||
@@ -200,5 +200,7 @@ class WPILIB_DLLEXPORT MecanumDriveKinematics
|
||||
|
||||
} // namespace frc
|
||||
|
||||
#ifndef NO_PROTOBUF
|
||||
#include "frc/kinematics/proto/MecanumDriveKinematicsProto.h"
|
||||
#endif
|
||||
#include "frc/kinematics/struct/MecanumDriveKinematicsStruct.h"
|
||||
|
||||
@@ -61,5 +61,7 @@ struct WPILIB_DLLEXPORT MecanumDriveWheelPositions {
|
||||
};
|
||||
} // namespace frc
|
||||
|
||||
#ifndef NO_PROTOBUF
|
||||
#include "frc/kinematics/proto/MecanumDriveWheelPositionsProto.h"
|
||||
#endif
|
||||
#include "frc/kinematics/struct/MecanumDriveWheelPositionsStruct.h"
|
||||
|
||||
@@ -121,5 +121,7 @@ struct WPILIB_DLLEXPORT MecanumDriveWheelSpeeds {
|
||||
};
|
||||
} // namespace frc
|
||||
|
||||
#ifndef NO_PROTOBUF
|
||||
#include "frc/kinematics/proto/MecanumDriveWheelSpeedsProto.h"
|
||||
#endif
|
||||
#include "frc/kinematics/struct/MecanumDriveWheelSpeedsStruct.h"
|
||||
|
||||
@@ -43,5 +43,7 @@ struct WPILIB_DLLEXPORT SwerveModulePosition {
|
||||
};
|
||||
} // namespace frc
|
||||
|
||||
#ifndef NO_PROTOBUF
|
||||
#include "frc/kinematics/proto/SwerveModulePositionProto.h"
|
||||
#endif
|
||||
#include "frc/kinematics/struct/SwerveModulePositionStruct.h"
|
||||
|
||||
@@ -48,5 +48,7 @@ struct WPILIB_DLLEXPORT SwerveModuleState {
|
||||
};
|
||||
} // namespace frc
|
||||
|
||||
#ifndef NO_PROTOBUF
|
||||
#include "frc/kinematics/proto/SwerveModuleStateProto.h"
|
||||
#endif
|
||||
#include "frc/kinematics/struct/SwerveModuleStateStruct.h"
|
||||
|
||||
Reference in New Issue
Block a user