mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-21 01:01:43 +00:00
[build] Make Protobuf optional in CMake build (#7061)
This commit is contained in:
@@ -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 {};
|
||||
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
@@ -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"
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user