blob: 22cfc8e6f5c08ecb23104e56ce4cbe5a0715f8d0 [file] [log] [blame]
Brian Silverman7bda6212018-08-05 11:42:11 -07001workspace(name = "org_frc971")
Brian Silvermand1c19fb2016-07-07 00:10:57 -07002
Tyler Chatow2584bb12018-10-27 20:48:35 -07003load("@bazel_tools//tools/build_defs/repo:git.bzl", "new_git_repository")
Brian Silverman7bda6212018-08-05 11:42:11 -07004load(
5 "//debian:python.bzl",
6 python_debs = "files",
7)
8load(
9 "//debian:clang.bzl",
10 clang_debs = "files",
11)
12load(
13 "//debian:patch.bzl",
14 patch_debs = "files",
15)
Brian Silverman7297c0c2018-08-05 13:43:00 -070016load(
17 "//debian:pandoc.bzl",
18 pandoc_debs = "files",
19)
Brian Silverman4f6ba442018-08-05 14:34:58 -070020load(
21 "//debian:libusb.bzl",
22 libusb_debs = "files",
23)
Brian Silvermanb80dc9f2018-08-05 14:59:24 -070024load(
25 "//debian:mingw_compiler.bzl",
26 mingw_compiler_debs = "files",
27)
Brian Silverman6470f442018-08-05 12:08:16 -070028load(
29 "//debian:patchelf.bzl",
30 patchelf_debs = "files",
31)
32load(
33 "//debian:matplotlib.bzl",
34 matplotlib_debs = "files",
35)
Brian Silverman50b9ac02018-08-12 13:24:10 -070036load(
37 "//debian:arm_frc_gnueabi_deps.bzl",
38 arm_frc_gnueabi_deps_debs = "files",
39)
Brian Silvermanb0ebf1d2018-10-17 23:36:40 -070040load(
41 "//debian:python_gtk.bzl",
42 python_gtk_debs = "files",
43)
Austin Schuhc9bcd4b2018-10-20 18:39:38 -070044load(
45 "//debian:ruby.bzl",
46 ruby_debs = "files",
47)
Philipp Schrader0e19c602018-03-07 21:07:22 -080048load("//debian:packages.bzl", "generate_repositories_for_debs")
49
50generate_repositories_for_debs(python_debs)
Brian Silverman7bda6212018-08-05 11:42:11 -070051
Philipp Schraderaedfc5c2018-03-10 19:32:30 -080052generate_repositories_for_debs(clang_debs)
Philipp Schrader0e19c602018-03-07 21:07:22 -080053
Brian Silverman7bda6212018-08-05 11:42:11 -070054generate_repositories_for_debs(patch_debs)
55
Brian Silverman7297c0c2018-08-05 13:43:00 -070056generate_repositories_for_debs(pandoc_debs)
57
Brian Silverman4f6ba442018-08-05 14:34:58 -070058generate_repositories_for_debs(libusb_debs)
59
Brian Silvermanb80dc9f2018-08-05 14:59:24 -070060generate_repositories_for_debs(mingw_compiler_debs)
61
Brian Silverman6470f442018-08-05 12:08:16 -070062generate_repositories_for_debs(patchelf_debs)
63
64generate_repositories_for_debs(matplotlib_debs)
65
Brian Silverman50b9ac02018-08-12 13:24:10 -070066generate_repositories_for_debs(arm_frc_gnueabi_deps_debs)
67
Brian Silvermanb0ebf1d2018-10-17 23:36:40 -070068generate_repositories_for_debs(python_gtk_debs)
69
Austin Schuhc9bcd4b2018-10-20 18:39:38 -070070generate_repositories_for_debs(ruby_debs)
71
Philipp Schrader9fc87e02018-03-10 20:36:39 -080072new_http_archive(
Brian Silverman7bda6212018-08-05 11:42:11 -070073 name = "python_repo",
74 build_file = "debian/python.BUILD",
Brian Silverman6470f442018-08-05 12:08:16 -070075 sha256 = "4ff939f90cffd8c72f9992d7420481e361b6016b0ce5c6fa701be0691d4e20fa",
johnp8a384f92019-01-03 13:10:00 -080076 url = "http://www.frc971.org/Build-Dependencies/python-2.tar.gz",
Philipp Schrader9fc87e02018-03-10 20:36:39 -080077)
78
Philipp Schrader9b1790e2018-03-10 20:21:30 -080079new_http_archive(
Brian Silverman7bda6212018-08-05 11:42:11 -070080 name = "clang_3p6_repo",
81 build_file = "tools/cpp/clang_3p6/clang_3p6.BUILD",
82 sha256 = "5ee9e04c55c2c99d0c0f83722102a49e98f485fc274f73111b33a7ac4e34e03e",
johnp8a384f92019-01-03 13:10:00 -080083 url = "http://www.frc971.org/Build-Dependencies/clang_3p6.tar.gz",
Philipp Schrader9b1790e2018-03-10 20:21:30 -080084)
85
Austin Schuh4759ffc2015-10-07 20:39:56 -070086new_local_repository(
Brian Silverman7bda6212018-08-05 11:42:11 -070087 name = "usr_repo",
88 build_file = "debian/usr.BUILD",
89 path = "/usr",
Austin Schuh4759ffc2015-10-07 20:39:56 -070090)
91
Austin Schuh1f9aeb42015-11-12 23:34:49 -080092new_git_repository(
Brian Silverman7bda6212018-08-05 11:42:11 -070093 name = "slycot_repo",
Tyler Chatow2584bb12018-10-27 20:48:35 -070094 build_file = "@//debian:slycot.BUILD",
Brian Silverman7bda6212018-08-05 11:42:11 -070095 commit = "5af5f283cb23cbe23c4dfea4d5e56071bdbd6e70",
96 remote = "https://github.com/avventi/Slycot.git",
Austin Schuh1f9aeb42015-11-12 23:34:49 -080097)
98
Austin Schuh55139fe2015-10-14 23:55:24 -070099new_http_archive(
Austin Schuhc9bcd4b2018-10-20 18:39:38 -0700100 name = "ruby_repo",
101 build_file = "debian/ruby.BUILD",
102 sha256 = "d3e21cca0abcad933de0d4095da35344a60475d1f5828ee99283ed4250ee1320",
johnp8a384f92019-01-03 13:10:00 -0800103 url = "http://www.frc971.org/Build-Dependencies/ruby.tar.gz",
Austin Schuhc9bcd4b2018-10-20 18:39:38 -0700104)
105
106new_http_archive(
Brian Silverman7bda6212018-08-05 11:42:11 -0700107 name = "arm_frc_linux_gnueabi_repo",
108 build_file = "tools/cpp/arm-frc-linux-gnueabi/arm-frc-linux-gnueabi.BUILD",
Austin Schuhf6b94632019-02-02 22:11:27 -0800109 sha256 = "d627c5e437db99780a938392499ef71aecbfb0e9b3fffd53bde7e402a6af4f32",
110 strip_prefix = "frc2019/roborio/",
111 url = "http://www.frc971.org/Build-Dependencies/FRC-2019-Linux-Toolchain-6.3.0-v2019-3.tar.gz",
Austin Schuh55139fe2015-10-14 23:55:24 -0700112)
Austin Schuhe456f152015-11-27 13:44:39 -0800113
Brian Silverman0d57fc82016-01-24 21:02:53 -0500114# Recompressed version of the one downloaded from Linaro at
115# <https://releases.linaro.org/15.05/components/toolchain/binaries/arm-linux-gnueabihf/gcc-linaro-4.9-2015.05-x86_64_arm-linux-gnueabihf.tar.xz>,
116# with workarounds for <https://github.com/bazelbuild/bazel/issues/574> and the
117# top-level folder stripped off.
118new_http_archive(
Brian Silverman7bda6212018-08-05 11:42:11 -0700119 name = "linaro_linux_gcc_4_9_repo",
120 build_file = "compilers/linaro_linux_gcc_4.9.BUILD",
121 sha256 = "25e97bcb0af4fd7cd626d5bb1b303c7d2cb13acf2474e335e3d431d1a53fbb52",
johnp8a384f92019-01-03 13:10:00 -0800122 url = "http://www.frc971.org/Build-Dependencies/gcc-linaro-4.9-2015.05-x86_64_arm-linux-gnueabihf.tar.gz",
Brian Silverman0d57fc82016-01-24 21:02:53 -0500123)
124
Austin Schuhe456f152015-11-27 13:44:39 -0800125new_git_repository(
Brian Silverman7bda6212018-08-05 11:42:11 -0700126 name = "python_gflags_repo",
Tyler Chatow2584bb12018-10-27 20:48:35 -0700127 build_file = "@//debian:gflags.BUILD",
Brian Silverman7bda6212018-08-05 11:42:11 -0700128 commit = "41c4571864f0db5823e07715317e7388e94faabc",
129 remote = "https://github.com/gflags/python-gflags.git",
Austin Schuhe456f152015-11-27 13:44:39 -0800130)
131
132bind(
Brian Silverman7bda6212018-08-05 11:42:11 -0700133 name = "python-gflags",
134 actual = "@python_gflags_repo//:gflags",
Austin Schuhe456f152015-11-27 13:44:39 -0800135)
136
Brian Silverman16a923c2018-10-31 19:40:51 -0700137local_repository(
138 name = "com_github_gflags_gflags",
139 path = "third_party/gflags",
140)
141
Austin Schuhe456f152015-11-27 13:44:39 -0800142new_http_archive(
Brian Silverman7bda6212018-08-05 11:42:11 -0700143 name = "python_glog_repo",
144 build_file = "debian/glog.BUILD",
145 sha256 = "953fd80122c48023d1148e6d1bda2763fcab59c8a81682bb298238a5935547b0",
146 strip_prefix = "glog-0.1",
147 url = "https://pypi.python.org/packages/source/g/glog/glog-0.1.tar.gz",
Austin Schuhe456f152015-11-27 13:44:39 -0800148)
149
150bind(
Brian Silverman7bda6212018-08-05 11:42:11 -0700151 name = "python-glog",
152 actual = "@python_glog_repo//:glog",
Austin Schuhe456f152015-11-27 13:44:39 -0800153)
Brian Silvermancee260a2015-12-24 16:27:51 -0800154
155new_http_archive(
Brian Silverman7bda6212018-08-05 11:42:11 -0700156 name = "allwpilib_ni_libraries_repo_2018",
157 build_file = "debian/ni-libraries-2018.BUILD",
158 sha256 = "05ef6701c77b83163b443aa956d151028861cc3fa29fdf2b6b77431b4a91bfb9",
159 strip_prefix = "ni-libraries",
johnp8a384f92019-01-03 13:10:00 -0800160 url = "http://www.frc971.org/Build-Dependencies/allwpilib_ni-libraries_57e9fb3.tar.gz",
Austin Schuh94f51e92017-10-30 19:25:32 -0700161)
162
Brian Silverman82a12b92019-01-19 21:52:10 -0800163# Generated with:
164# git fetch https://github.com/wpilibsuite/ni-libraries master
165# git archive --output=allwpilib_ni-libraries_4785480.tar.gz --format=tar.gz 4785480
166new_http_archive(
167 name = "allwpilib_ni_libraries_2019",
168 build_file = "debian/ni-libraries-2019.BUILD",
169 sha256 = "2cdcde3391f36877b7533e15d0f36baf696b27c1107b77192a8200e26f13278c",
170 url = "http://www.frc971.org/Build-Dependencies/allwpilib_ni-libraries_4785480.tar.gz",
171)
172
Brian Silverman3fca9d72016-02-20 02:32:51 -0500173# Downloaded from:
174# https://pypi.python.org/packages/source/s/six/six-1.10.0.tar.gz
175new_http_archive(
Brian Silverman7bda6212018-08-05 11:42:11 -0700176 name = "six_repo",
177 build_file = "debian/six.BUILD",
178 sha256 = "105f8d68616f8248e24bf0e9372ef04d3cc10104f1980f54d57b2ce73a5ad56a",
179 strip_prefix = "six-1.10.0",
johnp8a384f92019-01-03 13:10:00 -0800180 url = "http://www.frc971.org/Build-Dependencies/six-1.10.0.tar.gz",
Brian Silverman3fca9d72016-02-20 02:32:51 -0500181)
182
183# For protobuf. Don't use these.
184bind(
Brian Silverman7bda6212018-08-05 11:42:11 -0700185 name = "six",
186 actual = "@six_repo//:six",
Brian Silverman3fca9d72016-02-20 02:32:51 -0500187)
Brian Silverman7bda6212018-08-05 11:42:11 -0700188
Brian Silverman3fca9d72016-02-20 02:32:51 -0500189bind(
Brian Silverman7bda6212018-08-05 11:42:11 -0700190 name = "gtest",
191 actual = "//third_party/googletest:googlemock",
Brian Silverman3fca9d72016-02-20 02:32:51 -0500192)
Brian Silverman7bda6212018-08-05 11:42:11 -0700193
Brian Silverman3fca9d72016-02-20 02:32:51 -0500194bind(
Brian Silverman7bda6212018-08-05 11:42:11 -0700195 name = "gtest_main",
196 actual = "//third_party/googletest:googlemock_main",
Brian Silverman3fca9d72016-02-20 02:32:51 -0500197)
198
Brian Silverman4aa83042018-01-05 12:47:31 -0800199# Recompressed from libusb-1.0.21.7z.
200http_file(
Brian Silverman7bda6212018-08-05 11:42:11 -0700201 name = "libusb_1_0_windows",
202 sha256 = "fc2ba03992f343aabbaf9eb90559c6e00cdc6a2bd914d7cebea85857d5244015",
johnp8a384f92019-01-03 13:10:00 -0800203 url = "http://www.frc971.org/Build-Dependencies/libusb-1.0.21-windows.tar.xz",
Brian Silverman4aa83042018-01-05 12:47:31 -0800204)
Brian Silvermand3ad1652018-02-18 22:16:29 -0500205
206# The data tarball of the same-named Debian package.
207new_http_archive(
208 name = "f2c",
Brian Silverman7bda6212018-08-05 11:42:11 -0700209 build_file = "debian/f2c.BUILD",
Brian Silvermand3ad1652018-02-18 22:16:29 -0500210 sha256 = "2c677437f8217a2e2b23e41b33995d0571644fc1bea46de858f8913a5053e3f4",
johnp8a384f92019-01-03 13:10:00 -0800211 url = "http://www.frc971.org/Build-Dependencies/f2c_20100827-1_amd64.xz.tar.xz",
Brian Silvermand3ad1652018-02-18 22:16:29 -0500212)
213
214# Downloaded from http://www.netlib.org/clapack/.
215new_http_archive(
Brian Silverman7bda6212018-08-05 11:42:11 -0700216 name = "clapack",
217 build_file = "debian/clapack.BUILD",
218 sha256 = "6dc4c382164beec8aaed8fd2acc36ad24232c406eda6db462bd4c41d5e455fac",
219 strip_prefix = "CLAPACK-3.2.1/",
johnp8a384f92019-01-03 13:10:00 -0800220 url = "http://www.frc971.org/Build-Dependencies/clapack-3.2.1.tgz",
Brian Silverman7bda6212018-08-05 11:42:11 -0700221)
222
223new_http_archive(
224 name = "patch",
225 build_file = "debian/patch.BUILD",
226 sha256 = "b5ce139648a2e04f5585948ddad2fdae24dd4ee7976ac5a22d6ae7bd5674631e",
johnp8a384f92019-01-03 13:10:00 -0800227 url = "http://www.frc971.org/Build-Dependencies/patch.tar.gz",
Brian Silvermand3ad1652018-02-18 22:16:29 -0500228)
Brian Silverman7297c0c2018-08-05 13:43:00 -0700229
230new_http_archive(
231 name = "pandoc",
232 build_file = "debian/pandoc.BUILD",
233 sha256 = "9f7a7adb3974a1f14715054c349ff3edc2909e920dbe3438fca437a83845f3c4",
johnp8a384f92019-01-03 13:10:00 -0800234 url = "http://www.frc971.org/Build-Dependencies/pandoc.tar.gz",
Brian Silverman7297c0c2018-08-05 13:43:00 -0700235)
Brian Silverman4f6ba442018-08-05 14:34:58 -0700236
237new_http_archive(
238 name = "libusb",
239 build_file = "debian/libusb.BUILD",
240 sha256 = "3ca5cc2d317226f6646866ff9e8c443db3b0f6c82f828e800240982727531590",
johnp8a384f92019-01-03 13:10:00 -0800241 url = "http://www.frc971.org/Build-Dependencies/libusb.tar.gz",
Brian Silverman4f6ba442018-08-05 14:34:58 -0700242)
Brian Silvermanb80dc9f2018-08-05 14:59:24 -0700243
244new_http_archive(
245 name = "mingw_compiler",
246 build_file = "debian/mingw_compiler.BUILD",
247 sha256 = "45e86a8460f2151a4f0306e7ae7b06761029d2412ee16f63d1e8d2d29354e378",
johnp8a384f92019-01-03 13:10:00 -0800248 url = "http://www.frc971.org/Build-Dependencies/mingw_compiler.tar.gz",
Brian Silvermanb80dc9f2018-08-05 14:59:24 -0700249)
Brian Silverman6470f442018-08-05 12:08:16 -0700250
251new_http_archive(
252 name = "matplotlib",
253 build_file = "debian/matplotlib.BUILD",
Brian Silvermanb0ebf1d2018-10-17 23:36:40 -0700254 sha256 = "dc8e04123a93180bf89727bf6b5a5a0f6d210b6c1c5eaec148f7f8183abbce24",
johnp8a384f92019-01-03 13:10:00 -0800255 url = "http://www.frc971.org/Build-Dependencies/matplotlib-2.tar.gz",
Brian Silverman6470f442018-08-05 12:08:16 -0700256)
257
258new_http_archive(
259 name = "patchelf",
260 build_file = "debian/patchelf.BUILD",
261 sha256 = "bf8b709909d7d9e30815dd228eeded7dc282e3ce3919d0589ccbb56ac8632abc",
johnp8a384f92019-01-03 13:10:00 -0800262 url = "http://www.frc971.org/Build-Dependencies/patchelf.tar.gz",
Brian Silverman6470f442018-08-05 12:08:16 -0700263)
Brian Silverman50b9ac02018-08-12 13:24:10 -0700264
265new_http_archive(
266 name = "arm_frc_gnueabi_deps",
267 build_file = "debian/arm_frc_gnueabi_deps.BUILD",
268 sha256 = "4b26fe45010817dc136488ee1604ade21bd7c264c29f17d864fc6eba9d7442c4",
johnp8a384f92019-01-03 13:10:00 -0800269 url = "http://www.frc971.org/Build-Dependencies/arm_frc_gnueabi_deps.tar.gz",
Brian Silverman50b9ac02018-08-12 13:24:10 -0700270)
Brian Silverman6c8b88b2018-09-03 18:17:02 -0700271
Brian Silvermanb0ebf1d2018-10-17 23:36:40 -0700272new_http_archive(
273 name = "python_gtk",
274 build_file = "debian/python_gtk.BUILD",
275 sha256 = "850f5c1521b94c5c049c44d9107cd8ae9110696fbf054d2cb48bae9620fd4d23",
johnp8a384f92019-01-03 13:10:00 -0800276 url = "http://www.frc971.org/Build-Dependencies/python_gtk.tar.gz",
Brian Silvermanb0ebf1d2018-10-17 23:36:40 -0700277)
278
Brian Silverman6c8b88b2018-09-03 18:17:02 -0700279# Downloaded from
280# https://developer.arm.com/-/media/Files/downloads/gnu-rm/7-2018q2/gcc-arm-none-eabi-7-2018-q2-update-linux.tar.bz2?revision=bc2c96c0-14b5-4bb4-9f18-bceb4050fee7?product=GNU%20Arm%20Embedded%20Toolchain,64-bit,,Linux,7-2018-q2-update
281new_http_archive(
282 name = "gcc_arm_none_eabi",
283 build_file = "compilers/gcc_arm_none_eabi.BUILD",
284 sha256 = "bb17109f0ee697254a5d4ae6e5e01440e3ea8f0277f2e8169bf95d07c7d5fe69",
285 strip_prefix = "gcc-arm-none-eabi-7-2018-q2-update/",
johnp8a384f92019-01-03 13:10:00 -0800286 url = "http://www.frc971.org/Build-Dependencies/gcc-arm-none-eabi-7-2018-q2-update-linux.tar.bz2",
Brian Silverman6c8b88b2018-09-03 18:17:02 -0700287)
Austin Schuhad596222018-01-31 23:34:03 -0800288
289new_http_archive(
290 name = "cgal_repo",
Brian Silvermanb0ebf1d2018-10-17 23:36:40 -0700291 build_file = "debian/cgal.BUILD",
Austin Schuhad596222018-01-31 23:34:03 -0800292 sha256 = "d564dda558570344b4caa66c5bae2cdae9ef68e07829d64f5651b25f2c6a0e9e",
johnp8a384f92019-01-03 13:10:00 -0800293 url = "http://www.frc971.org/Build-Dependencies/cgal-dev-4.5-2.tar.gz",
Austin Schuhad596222018-01-31 23:34:03 -0800294)
Austin Schuhe18baff2018-10-20 17:40:42 -0700295
296# Java9 JDK.
297new_http_archive(
298 name = "openjdk_linux_archive",
299 build_file_content = """
300java_runtime(
301 name = 'jdk',
302 srcs = glob(['**']),
Austin Schuhf6b94632019-02-02 22:11:27 -0800303 visibility = ['//visibility:public'],
Austin Schuhe18baff2018-10-20 17:40:42 -0700304)
305""",
306 sha256 = "f27cb933de4f9e7fe9a703486cf44c84bc8e9f138be0c270c9e5716a32367e87",
307 strip_prefix = "zulu9.0.7.1-jdk9.0.7-linux_x64-allmodules",
308 urls = [
johnp8a384f92019-01-03 13:10:00 -0800309 "http://www.frc971.org/Build-Dependencies/zulu9.0.7.1-jdk9.0.7-linux_x64-allmodules.tar.gz",
Austin Schuhe18baff2018-10-20 17:40:42 -0700310 ],
311)
312
Austin Schuhf9724442018-10-28 20:30:21 -0700313local_repository(
314 name = "com_google_protobuf",
315 path = "third_party/protobuf",
Brian Silverman9c614bc2016-02-15 20:20:02 -0500316)
Austin Schuh10358f22019-01-21 20:25:11 -0800317
318local_repository(
319 name = "com_github_google_glog",
320 path = "third_party/google-glog",
321)
Austin Schuh6defdeb2019-01-21 21:00:30 -0800322
323# External dependency: Google Benchmark; has no Bazel build.
324local_repository(
325 name = "com_github_google_benchmark",
326 path = "third_party/google-benchmark",
Austin Schuhcbc17402019-01-21 21:00:30 -0800327)
Austin Schuh033df092019-01-21 19:46:48 -0800328
329local_repository(
330 name = "com_google_ceres_solver",
331 path = "third_party/ceres",
Austin Schuh70cc9552019-01-21 19:46:48 -0800332)
Austin Schuhf6b94632019-02-02 22:11:27 -0800333
334# Downloaded from http://devsite.ctr-electronics.com/maven/release/com/ctre/phoenix/api-cpp/5.12.1/.
335new_http_archive(
336 name = "ctre_phoenix_api_cpp_headers_2019",
337 build_file_content = """
338cc_library(
339 name = 'api-cpp',
340 visibility = ['//visibility:public'],
341 hdrs = glob(['ctre/phoenix/**/*.h']),
342)
343""",
344 sha256 = "eb625897a16f1894a4854dd60f68f495875f9b0baed826ea1a38f0afdb14712d",
345 urls = [
346 "http://www.frc971.org/Build-Dependencies/api-cpp-5.12.1-headers.zip",
347 ],
348)
349
350# Downloaded from http://devsite.ctr-electronics.com/maven/release/com/ctre/phoenix/api-cpp/5.12.1/.
351new_http_archive(
352 name = "ctre_phoenix_api_cpp_athena_2019",
353 build_file_content = """
354cc_library(
355 name = 'api-cpp',
356 visibility = ['//visibility:public'],
357 srcs = ['linux/athena/static/libCTRE_Phoenix.a'],
358 restricted_to = ['@//tools:roborio'],
359 deps = [
360 '@ctre_phoenix_core_headers_2019//:core',
361 ],
362)
363""",
364 sha256 = "f6afe6d35b8abcef16b09b2e65c59049091c88a0eb471bf65e77bc510de3f571",
365 urls = [
366 "http://www.frc971.org/Build-Dependencies/api-cpp-5.12.1-linuxathenastatic.zip",
367 ],
368)
369
370# Downloaded from http://devsite.ctr-electronics.com/maven/release/com/ctre/phoenix/cci/5.12.1/.
371new_http_archive(
372 name = "ctre_phoenix_cci_headers_2019",
373 build_file_content = """
374cc_library(
375 name = 'cci',
376 visibility = ['//visibility:public'],
377 hdrs = glob(['ctre/phoenix/**/*.h']),
378)
379""",
380 sha256 = "98f30180fc2cdd8119482364b7d47d38ee02b7746aeecd4cf1d2c25cbde7837b",
381 urls = [
382 "http://www.frc971.org/Build-Dependencies/cci-5.12.1-headers.zip",
383 ],
384)
385
386# Downloaded from http://devsite.ctr-electronics.com/maven/release/com/ctre/phoenix/cci/5.12.1/.
387new_http_archive(
388 name = "ctre_phoenix_cci_athena_2019",
389 build_file_content = """
390cc_library(
391 name = 'cci',
392 visibility = ['//visibility:public'],
393 srcs = ['linux/athena/static/libCTRE_PhoenixCCI.a'],
394 restricted_to = ['@//tools:roborio'],
395)
396""",
397 sha256 = "2fdc8dd0c2bcb463cd7a5082f2a378554497861508b4257b0cc4bab6a4a8316f",
398 urls = [
399 "http://www.frc971.org/Build-Dependencies/cci-5.12.1-linuxathenastatic.zip",
400 ],
401)
402
403# Downloaded from http://devsite.ctr-electronics.com/maven/release/com/ctre/phoenix/core/5.12.1/.
404new_http_archive(
405 name = "ctre_phoenix_core_headers_2019",
406 build_file_content = """
407cc_library(
408 name = 'core',
409 visibility = ['//visibility:public'],
410 hdrs = glob(['ctre/phoenix/**/*.h']),
411)
412""",
413 sha256 = "ddd7d740787279359d9773a4096696770411aec22e092c20749a4f5388779edf",
414 urls = [
415 "http://www.frc971.org/Build-Dependencies/core-5.12.1-headers.zip",
416 ],
417)