[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

@@ -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"

View File

@@ -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"

View File

@@ -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"

View File

@@ -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"

View File

@@ -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"

View File

@@ -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"

View File

@@ -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"

View File

@@ -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"

View File

@@ -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"