[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

@@ -4,15 +4,10 @@
#pragma once
#include <google/protobuf/arena.h>
#include <gtest/gtest.h>
#include <wpi/protobuf/Protobuf.h>
#include "controller.pb.h"
#include "kinematics.pb.h"
#include "spline.pb.h"
#include "system.pb.h"
#include "wpimath.pb.h"
template <typename T>
class ProtoTest : public testing::Test {};

View File

@@ -2,9 +2,9 @@
// Open Source Software; you can modify and/or share it under the terms of
// the WPILib BSD license file in the root directory of this project.
#include <google/protobuf/arena.h>
#include <gtest/gtest.h>
#include "controller.pb.h"
#include "frc/controller/ArmFeedforward.h"
using namespace frc;

View File

@@ -2,9 +2,9 @@
// Open Source Software; you can modify and/or share it under the terms of
// the WPILib BSD license file in the root directory of this project.
#include <google/protobuf/arena.h>
#include <gtest/gtest.h>
#include "controller.pb.h"
#include "frc/controller/DifferentialDriveWheelVoltages.h"
using namespace frc;

View File

@@ -2,9 +2,9 @@
// Open Source Software; you can modify and/or share it under the terms of
// the WPILib BSD license file in the root directory of this project.
#include <google/protobuf/arena.h>
#include <gtest/gtest.h>
#include "controller.pb.h"
#include "frc/controller/ElevatorFeedforward.h"
using namespace frc;

View File

@@ -2,10 +2,10 @@
// Open Source Software; you can modify and/or share it under the terms of
// the WPILib BSD license file in the root directory of this project.
#include <google/protobuf/arena.h>
#include <gtest/gtest.h>
#include "frc/geometry/Ellipse2d.h"
#include "geometry2d.pb.h"
using namespace frc;

View File

@@ -2,10 +2,10 @@
// Open Source Software; you can modify and/or share it under the terms of
// the WPILib BSD license file in the root directory of this project.
#include <google/protobuf/arena.h>
#include <gtest/gtest.h>
#include "frc/geometry/Pose2d.h"
#include "geometry2d.pb.h"
using namespace frc;

View File

@@ -2,10 +2,10 @@
// Open Source Software; you can modify and/or share it under the terms of
// the WPILib BSD license file in the root directory of this project.
#include <google/protobuf/arena.h>
#include <gtest/gtest.h>
#include "frc/geometry/Pose3d.h"
#include "geometry3d.pb.h"
using namespace frc;

View File

@@ -2,10 +2,10 @@
// Open Source Software; you can modify and/or share it under the terms of
// the WPILib BSD license file in the root directory of this project.
#include <google/protobuf/arena.h>
#include <gtest/gtest.h>
#include "frc/geometry/Quaternion.h"
#include "geometry3d.pb.h"
using namespace frc;

View File

@@ -2,10 +2,10 @@
// Open Source Software; you can modify and/or share it under the terms of
// the WPILib BSD license file in the root directory of this project.
#include <google/protobuf/arena.h>
#include <gtest/gtest.h>
#include "frc/geometry/Rectangle2d.h"
#include "geometry2d.pb.h"
using namespace frc;

View File

@@ -2,10 +2,10 @@
// Open Source Software; you can modify and/or share it under the terms of
// the WPILib BSD license file in the root directory of this project.
#include <google/protobuf/arena.h>
#include <gtest/gtest.h>
#include "frc/geometry/Rotation2d.h"
#include "geometry2d.pb.h"
using namespace frc;

View File

@@ -2,10 +2,10 @@
// Open Source Software; you can modify and/or share it under the terms of
// the WPILib BSD license file in the root directory of this project.
#include <google/protobuf/arena.h>
#include <gtest/gtest.h>
#include "frc/geometry/Rotation3d.h"
#include "geometry3d.pb.h"
using namespace frc;

View File

@@ -2,10 +2,10 @@
// Open Source Software; you can modify and/or share it under the terms of
// the WPILib BSD license file in the root directory of this project.
#include <google/protobuf/arena.h>
#include <gtest/gtest.h>
#include "frc/geometry/Transform2d.h"
#include "geometry2d.pb.h"
using namespace frc;

View File

@@ -2,10 +2,10 @@
// Open Source Software; you can modify and/or share it under the terms of
// the WPILib BSD license file in the root directory of this project.
#include <google/protobuf/arena.h>
#include <gtest/gtest.h>
#include "frc/geometry/Transform3d.h"
#include "geometry3d.pb.h"
using namespace frc;

View File

@@ -2,10 +2,10 @@
// Open Source Software; you can modify and/or share it under the terms of
// the WPILib BSD license file in the root directory of this project.
#include <google/protobuf/arena.h>
#include <gtest/gtest.h>
#include "frc/geometry/Translation2d.h"
#include "geometry2d.pb.h"
using namespace frc;

View File

@@ -2,10 +2,10 @@
// Open Source Software; you can modify and/or share it under the terms of
// the WPILib BSD license file in the root directory of this project.
#include <google/protobuf/arena.h>
#include <gtest/gtest.h>
#include "frc/geometry/Translation3d.h"
#include "geometry3d.pb.h"
using namespace frc;

View File

@@ -2,10 +2,10 @@
// Open Source Software; you can modify and/or share it under the terms of
// the WPILib BSD license file in the root directory of this project.
#include <google/protobuf/arena.h>
#include <gtest/gtest.h>
#include "frc/geometry/Twist2d.h"
#include "geometry2d.pb.h"
using namespace frc;

View File

@@ -2,10 +2,10 @@
// Open Source Software; you can modify and/or share it under the terms of
// the WPILib BSD license file in the root directory of this project.
#include <google/protobuf/arena.h>
#include <gtest/gtest.h>
#include "frc/geometry/Twist3d.h"
#include "geometry3d.pb.h"
using namespace frc;

View File

@@ -2,10 +2,10 @@
// Open Source Software; you can modify and/or share it under the terms of
// the WPILib BSD license file in the root directory of this project.
#include <google/protobuf/arena.h>
#include <gtest/gtest.h>
#include "frc/kinematics/ChassisSpeeds.h"
#include "kinematics.pb.h"
using namespace frc;

View File

@@ -2,10 +2,10 @@
// Open Source Software; you can modify and/or share it under the terms of
// the WPILib BSD license file in the root directory of this project.
#include <google/protobuf/arena.h>
#include <gtest/gtest.h>
#include "frc/kinematics/DifferentialDriveKinematics.h"
#include "kinematics.pb.h"
using namespace frc;

View File

@@ -2,10 +2,10 @@
// Open Source Software; you can modify and/or share it under the terms of
// the WPILib BSD license file in the root directory of this project.
#include <google/protobuf/arena.h>
#include <gtest/gtest.h>
#include "frc/kinematics/DifferentialDriveWheelSpeeds.h"
#include "kinematics.pb.h"
using namespace frc;

View File

@@ -2,10 +2,10 @@
// Open Source Software; you can modify and/or share it under the terms of
// the WPILib BSD license file in the root directory of this project.
#include <google/protobuf/arena.h>
#include <gtest/gtest.h>
#include "frc/kinematics/MecanumDriveKinematics.h"
#include "kinematics.pb.h"
using namespace frc;

View File

@@ -2,10 +2,10 @@
// Open Source Software; you can modify and/or share it under the terms of
// the WPILib BSD license file in the root directory of this project.
#include <google/protobuf/arena.h>
#include <gtest/gtest.h>
#include "frc/kinematics/MecanumDriveWheelPositions.h"
#include "kinematics.pb.h"
using namespace frc;

View File

@@ -2,10 +2,10 @@
// Open Source Software; you can modify and/or share it under the terms of
// the WPILib BSD license file in the root directory of this project.
#include <google/protobuf/arena.h>
#include <gtest/gtest.h>
#include "frc/kinematics/MecanumDriveWheelSpeeds.h"
#include "kinematics.pb.h"
using namespace frc;

View File

@@ -2,6 +2,7 @@
// Open Source Software; you can modify and/or share it under the terms of
// the WPILib BSD license file in the root directory of this project.
#include <google/protobuf/arena.h>
#include <gtest/gtest.h>
#include "../../ProtoTestBase.h"

View File

@@ -2,10 +2,10 @@
// Open Source Software; you can modify and/or share it under the terms of
// the WPILib BSD license file in the root directory of this project.
#include <google/protobuf/arena.h>
#include <gtest/gtest.h>
#include "frc/kinematics/SwerveModulePosition.h"
#include "kinematics.pb.h"
using namespace frc;

View File

@@ -2,10 +2,10 @@
// Open Source Software; you can modify and/or share it under the terms of
// the WPILib BSD license file in the root directory of this project.
#include <google/protobuf/arena.h>
#include <gtest/gtest.h>
#include "frc/kinematics/SwerveModuleState.h"
#include "kinematics.pb.h"
using namespace frc;

View File

@@ -2,10 +2,10 @@
// Open Source Software; you can modify and/or share it under the terms of
// the WPILib BSD license file in the root directory of this project.
#include <google/protobuf/arena.h>
#include <gtest/gtest.h>
#include "frc/system/plant/DCMotor.h"
#include "plant.pb.h"
using namespace frc;

View File

@@ -2,10 +2,10 @@
// Open Source Software; you can modify and/or share it under the terms of
// the WPILib BSD license file in the root directory of this project.
#include <google/protobuf/arena.h>
#include <gtest/gtest.h>
#include "frc/trajectory/Trajectory.h"
#include "trajectory.pb.h"
using namespace frc;

View File

@@ -2,10 +2,10 @@
// Open Source Software; you can modify and/or share it under the terms of
// the WPILib BSD license file in the root directory of this project.
#include <google/protobuf/arena.h>
#include <gtest/gtest.h>
#include "frc/trajectory/Trajectory.h"
#include "trajectory.pb.h"
using namespace frc;