Use gflags with bazel the way it recommends
Also lets us remove the hand-generated headers which are now out of
date.
Change-Id: I8673300b6c8c4e7a32e68a07d48ac79cb59faa62
diff --git a/y2018/control_loops/python/BUILD b/y2018/control_loops/python/BUILD
index 3982722..d445f8a 100644
--- a/y2018/control_loops/python/BUILD
+++ b/y2018/control_loops/python/BUILD
@@ -96,13 +96,13 @@
)
cc_library(
- name = 'dlqr',
- hdrs = [
- 'dlqr.h',
- ],
+ name = "dlqr",
+ hdrs = [
+ "dlqr.h",
+ ],
deps = [
- '@slycot_repo//:slicot',
- ],
+ "@slycot_repo//:slicot",
+ ],
)
cc_binary(
@@ -110,15 +110,15 @@
srcs = [
"arm_mpc.cc",
],
+ restricted_to = ["//tools:k8"],
deps = [
":arm_bounds",
- ':dlqr',
+ ":dlqr",
"//third_party/ct",
- "//third_party/gflags",
"//third_party/matplotlib-cpp",
"@cgal_repo//:cgal",
+ "@com_github_gflags_gflags//:gflags",
],
- restricted_to = ["//tools:k8"],
)
cc_binary(
@@ -129,8 +129,8 @@
restricted_to = ["//tools:k8"],
deps = [
":arm_bounds",
- "//third_party/gflags",
"//third_party/matplotlib-cpp",
+ "@com_github_gflags_gflags//:gflags",
],
)
@@ -155,8 +155,8 @@
],
restricted_to = ["//tools:k8"],
deps = [
- "//third_party/gflags",
"//third_party/matplotlib-cpp",
+ "@com_github_gflags_gflags//:gflags",
],
)
@@ -210,15 +210,15 @@
)
py_binary(
- name = 'arm_mpc_py',
- srcs = [
- 'arm_mpc.py',
- ],
- main = 'arm_mpc.py',
- deps = [
- '//external:python-gflags',
- '//external:python-glog',
- '//frc971/control_loops/python:controls',
- ],
- restricted_to = ['//tools:k8'],
+ name = "arm_mpc_py",
+ srcs = [
+ "arm_mpc.py",
+ ],
+ main = "arm_mpc.py",
+ restricted_to = ["//tools:k8"],
+ deps = [
+ "//external:python-gflags",
+ "//external:python-glog",
+ "//frc971/control_loops/python:controls",
+ ],
)
diff --git a/y2018/control_loops/superstructure/arm/BUILD b/y2018/control_loops/superstructure/arm/BUILD
index bf30121..e8af2b9 100644
--- a/y2018/control_loops/superstructure/arm/BUILD
+++ b/y2018/control_loops/superstructure/arm/BUILD
@@ -43,7 +43,7 @@
deps = [
"//frc971/control_loops:runge_kutta",
"//third_party/eigen",
- "//third_party/gflags",
+ "@com_github_gflags_gflags//:gflags",
],
)
@@ -78,8 +78,8 @@
":generated_graph",
":trajectory",
"//third_party/eigen",
- "//third_party/gflags",
"//third_party/matplotlib-cpp",
+ "@com_github_gflags_gflags//:gflags",
],
)