blob: 5bd89d23f69bd3162e30eae28be25d1336df97c5 [file] [log] [blame]
Brian Silverman7bda6212018-08-05 11:42:11 -07001workspace(name = "org_frc971")
Brian Silvermand1c19fb2016-07-07 00:10:57 -07002
Brian Silverman7bda6212018-08-05 11:42:11 -07003load(
4 "//debian:python.bzl",
5 python_debs = "files",
6)
7load(
8 "//debian:clang.bzl",
9 clang_debs = "files",
10)
11load(
12 "//debian:patch.bzl",
13 patch_debs = "files",
14)
Brian Silverman7297c0c2018-08-05 13:43:00 -070015load(
16 "//debian:pandoc.bzl",
17 pandoc_debs = "files",
18)
Brian Silverman4f6ba442018-08-05 14:34:58 -070019load(
20 "//debian:libusb.bzl",
21 libusb_debs = "files",
22)
Brian Silvermanb80dc9f2018-08-05 14:59:24 -070023load(
24 "//debian:mingw_compiler.bzl",
25 mingw_compiler_debs = "files",
26)
Brian Silverman6470f442018-08-05 12:08:16 -070027load(
28 "//debian:patchelf.bzl",
29 patchelf_debs = "files",
30)
31load(
32 "//debian:matplotlib.bzl",
33 matplotlib_debs = "files",
34)
Brian Silverman50b9ac02018-08-12 13:24:10 -070035load(
36 "//debian:arm_frc_gnueabi_deps.bzl",
37 arm_frc_gnueabi_deps_debs = "files",
38)
Philipp Schrader0e19c602018-03-07 21:07:22 -080039load("//debian:packages.bzl", "generate_repositories_for_debs")
40
41generate_repositories_for_debs(python_debs)
Brian Silverman7bda6212018-08-05 11:42:11 -070042
Philipp Schraderaedfc5c2018-03-10 19:32:30 -080043generate_repositories_for_debs(clang_debs)
Philipp Schrader0e19c602018-03-07 21:07:22 -080044
Brian Silverman7bda6212018-08-05 11:42:11 -070045generate_repositories_for_debs(patch_debs)
46
Brian Silverman7297c0c2018-08-05 13:43:00 -070047generate_repositories_for_debs(pandoc_debs)
48
Brian Silverman4f6ba442018-08-05 14:34:58 -070049generate_repositories_for_debs(libusb_debs)
50
Brian Silvermanb80dc9f2018-08-05 14:59:24 -070051generate_repositories_for_debs(mingw_compiler_debs)
52
Brian Silverman6470f442018-08-05 12:08:16 -070053generate_repositories_for_debs(patchelf_debs)
54
55generate_repositories_for_debs(matplotlib_debs)
56
Brian Silverman50b9ac02018-08-12 13:24:10 -070057generate_repositories_for_debs(arm_frc_gnueabi_deps_debs)
58
Philipp Schrader9fc87e02018-03-10 20:36:39 -080059new_http_archive(
Brian Silverman7bda6212018-08-05 11:42:11 -070060 name = "python_repo",
61 build_file = "debian/python.BUILD",
Brian Silverman6470f442018-08-05 12:08:16 -070062 sha256 = "4ff939f90cffd8c72f9992d7420481e361b6016b0ce5c6fa701be0691d4e20fa",
63 url = "http://frc971.org/Build-Dependencies/python-2.tar.gz",
Philipp Schrader9fc87e02018-03-10 20:36:39 -080064)
65
Philipp Schrader9b1790e2018-03-10 20:21:30 -080066new_http_archive(
Brian Silverman7bda6212018-08-05 11:42:11 -070067 name = "clang_3p6_repo",
68 build_file = "tools/cpp/clang_3p6/clang_3p6.BUILD",
69 sha256 = "5ee9e04c55c2c99d0c0f83722102a49e98f485fc274f73111b33a7ac4e34e03e",
70 url = "http://frc971.org/Build-Dependencies/clang_3p6.tar.gz",
Philipp Schrader9b1790e2018-03-10 20:21:30 -080071)
72
Austin Schuh4759ffc2015-10-07 20:39:56 -070073new_local_repository(
Brian Silverman7bda6212018-08-05 11:42:11 -070074 name = "usr_repo",
75 build_file = "debian/usr.BUILD",
76 path = "/usr",
Austin Schuh4759ffc2015-10-07 20:39:56 -070077)
78
Austin Schuh1f9aeb42015-11-12 23:34:49 -080079new_git_repository(
Brian Silverman7bda6212018-08-05 11:42:11 -070080 name = "slycot_repo",
81 build_file = "debian/slycot.BUILD",
82 commit = "5af5f283cb23cbe23c4dfea4d5e56071bdbd6e70",
83 remote = "https://github.com/avventi/Slycot.git",
Austin Schuh1f9aeb42015-11-12 23:34:49 -080084)
85
Austin Schuh55139fe2015-10-14 23:55:24 -070086new_http_archive(
Brian Silverman7bda6212018-08-05 11:42:11 -070087 name = "arm_frc_linux_gnueabi_repo",
88 build_file = "tools/cpp/arm-frc-linux-gnueabi/arm-frc-linux-gnueabi.BUILD",
89 sha256 = "875b23bec5138e09e3d21cc1ff2727ea3ecbec57509c37589514ba50f92979c7",
90 url = "http://frc971.org/Build-Dependencies/roborio-compiler-2018.tar.xz",
Austin Schuh55139fe2015-10-14 23:55:24 -070091)
Austin Schuhe456f152015-11-27 13:44:39 -080092
Brian Silverman0d57fc82016-01-24 21:02:53 -050093# Recompressed version of the one downloaded from Linaro at
94# <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>,
95# with workarounds for <https://github.com/bazelbuild/bazel/issues/574> and the
96# top-level folder stripped off.
97new_http_archive(
Brian Silverman7bda6212018-08-05 11:42:11 -070098 name = "linaro_linux_gcc_4_9_repo",
99 build_file = "compilers/linaro_linux_gcc_4.9.BUILD",
100 sha256 = "25e97bcb0af4fd7cd626d5bb1b303c7d2cb13acf2474e335e3d431d1a53fbb52",
101 url = "http://frc971.org/Build-Dependencies/gcc-linaro-4.9-2015.05-x86_64_arm-linux-gnueabihf.tar.gz",
Brian Silverman0d57fc82016-01-24 21:02:53 -0500102)
103
Austin Schuhe456f152015-11-27 13:44:39 -0800104new_git_repository(
Brian Silverman7bda6212018-08-05 11:42:11 -0700105 name = "python_gflags_repo",
106 build_file = "debian/gflags.BUILD",
107 commit = "41c4571864f0db5823e07715317e7388e94faabc",
108 remote = "https://github.com/gflags/python-gflags.git",
Austin Schuhe456f152015-11-27 13:44:39 -0800109)
110
111bind(
Brian Silverman7bda6212018-08-05 11:42:11 -0700112 name = "python-gflags",
113 actual = "@python_gflags_repo//:gflags",
Austin Schuhe456f152015-11-27 13:44:39 -0800114)
115
116new_http_archive(
Brian Silverman7bda6212018-08-05 11:42:11 -0700117 name = "python_glog_repo",
118 build_file = "debian/glog.BUILD",
119 sha256 = "953fd80122c48023d1148e6d1bda2763fcab59c8a81682bb298238a5935547b0",
120 strip_prefix = "glog-0.1",
121 url = "https://pypi.python.org/packages/source/g/glog/glog-0.1.tar.gz",
Austin Schuhe456f152015-11-27 13:44:39 -0800122)
123
124bind(
Brian Silverman7bda6212018-08-05 11:42:11 -0700125 name = "python-glog",
126 actual = "@python_glog_repo//:glog",
Austin Schuhe456f152015-11-27 13:44:39 -0800127)
Brian Silvermancee260a2015-12-24 16:27:51 -0800128
129new_http_archive(
Brian Silverman7bda6212018-08-05 11:42:11 -0700130 name = "allwpilib_ni_libraries_repo_2018",
131 build_file = "debian/ni-libraries-2018.BUILD",
132 sha256 = "05ef6701c77b83163b443aa956d151028861cc3fa29fdf2b6b77431b4a91bfb9",
133 strip_prefix = "ni-libraries",
134 url = "http://frc971.org/Build-Dependencies/allwpilib_ni-libraries_57e9fb3.tar.gz",
Austin Schuh94f51e92017-10-30 19:25:32 -0700135)
136
137new_http_archive(
Brian Silverman7bda6212018-08-05 11:42:11 -0700138 name = "allwpilib_ni_libraries_repo_2017",
139 build_file = "debian/ni-libraries-2017.BUILD",
140 sha256 = "67c1ad365fb712cc0acb0bf43465b831030523dc6f88daa02626994f644d91eb",
141 strip_prefix = "ni-libraries",
142 url = "http://frc971.org/Build-Dependencies/allwpilib_ni-libraries_e375b4a.tar.gz",
Brian Silvermane48dbc12017-02-04 20:06:29 -0800143)
144
Brian Silverman3fca9d72016-02-20 02:32:51 -0500145# Downloaded from:
146# https://pypi.python.org/packages/source/s/six/six-1.10.0.tar.gz
147new_http_archive(
Brian Silverman7bda6212018-08-05 11:42:11 -0700148 name = "six_repo",
149 build_file = "debian/six.BUILD",
150 sha256 = "105f8d68616f8248e24bf0e9372ef04d3cc10104f1980f54d57b2ce73a5ad56a",
151 strip_prefix = "six-1.10.0",
152 url = "http://frc971.org/Build-Dependencies/six-1.10.0.tar.gz",
Brian Silverman3fca9d72016-02-20 02:32:51 -0500153)
154
155# For protobuf. Don't use these.
156bind(
Brian Silverman7bda6212018-08-05 11:42:11 -0700157 name = "six",
158 actual = "@six_repo//:six",
Brian Silverman3fca9d72016-02-20 02:32:51 -0500159)
Brian Silverman7bda6212018-08-05 11:42:11 -0700160
Brian Silverman3fca9d72016-02-20 02:32:51 -0500161bind(
Brian Silverman7bda6212018-08-05 11:42:11 -0700162 name = "gtest",
163 actual = "//third_party/googletest:googlemock",
Brian Silverman3fca9d72016-02-20 02:32:51 -0500164)
Brian Silverman7bda6212018-08-05 11:42:11 -0700165
Brian Silverman3fca9d72016-02-20 02:32:51 -0500166bind(
Brian Silverman7bda6212018-08-05 11:42:11 -0700167 name = "gtest_main",
168 actual = "//third_party/googletest:googlemock_main",
Brian Silverman3fca9d72016-02-20 02:32:51 -0500169)
170
Brian Silverman4aa83042018-01-05 12:47:31 -0800171# Recompressed from libusb-1.0.21.7z.
172http_file(
Brian Silverman7bda6212018-08-05 11:42:11 -0700173 name = "libusb_1_0_windows",
174 sha256 = "fc2ba03992f343aabbaf9eb90559c6e00cdc6a2bd914d7cebea85857d5244015",
175 url = "http://frc971.org/Build-Dependencies/libusb-1.0.21-windows.tar.xz",
Brian Silverman4aa83042018-01-05 12:47:31 -0800176)
Brian Silvermand3ad1652018-02-18 22:16:29 -0500177
178# The data tarball of the same-named Debian package.
179new_http_archive(
180 name = "f2c",
Brian Silverman7bda6212018-08-05 11:42:11 -0700181 build_file = "debian/f2c.BUILD",
Brian Silvermand3ad1652018-02-18 22:16:29 -0500182 sha256 = "2c677437f8217a2e2b23e41b33995d0571644fc1bea46de858f8913a5053e3f4",
183 url = "http://frc971.org/Build-Dependencies/f2c_20100827-1_amd64.xz.tar.xz",
Brian Silvermand3ad1652018-02-18 22:16:29 -0500184)
185
186# Downloaded from http://www.netlib.org/clapack/.
187new_http_archive(
Brian Silverman7bda6212018-08-05 11:42:11 -0700188 name = "clapack",
189 build_file = "debian/clapack.BUILD",
190 sha256 = "6dc4c382164beec8aaed8fd2acc36ad24232c406eda6db462bd4c41d5e455fac",
191 strip_prefix = "CLAPACK-3.2.1/",
192 url = "http://frc971.org/Build-Dependencies/clapack-3.2.1.tgz",
193)
194
195new_http_archive(
196 name = "patch",
197 build_file = "debian/patch.BUILD",
198 sha256 = "b5ce139648a2e04f5585948ddad2fdae24dd4ee7976ac5a22d6ae7bd5674631e",
199 url = "http://frc971.org/Build-Dependencies/patch.tar.gz",
Brian Silvermand3ad1652018-02-18 22:16:29 -0500200)
Brian Silverman7297c0c2018-08-05 13:43:00 -0700201
202new_http_archive(
203 name = "pandoc",
204 build_file = "debian/pandoc.BUILD",
205 sha256 = "9f7a7adb3974a1f14715054c349ff3edc2909e920dbe3438fca437a83845f3c4",
206 url = "http://frc971.org/Build-Dependencies/pandoc.tar.gz",
207)
Brian Silverman4f6ba442018-08-05 14:34:58 -0700208
209new_http_archive(
210 name = "libusb",
211 build_file = "debian/libusb.BUILD",
212 sha256 = "3ca5cc2d317226f6646866ff9e8c443db3b0f6c82f828e800240982727531590",
213 url = "http://frc971.org/Build-Dependencies/libusb.tar.gz",
214)
Brian Silvermanb80dc9f2018-08-05 14:59:24 -0700215
216new_http_archive(
217 name = "mingw_compiler",
218 build_file = "debian/mingw_compiler.BUILD",
219 sha256 = "45e86a8460f2151a4f0306e7ae7b06761029d2412ee16f63d1e8d2d29354e378",
220 url = "http://frc971.org/Build-Dependencies/mingw_compiler.tar.gz",
221)
Brian Silverman6470f442018-08-05 12:08:16 -0700222
223new_http_archive(
224 name = "matplotlib",
225 build_file = "debian/matplotlib.BUILD",
226 sha256 = "4aa1efb22f74859ab5c478ff743f2fd34291fc30635f4b7cf2d67550ed226117",
227 url = "http://frc971.org/Build-Dependencies/matplotlib.tar.gz",
228)
229
230new_http_archive(
231 name = "patchelf",
232 build_file = "debian/patchelf.BUILD",
233 sha256 = "bf8b709909d7d9e30815dd228eeded7dc282e3ce3919d0589ccbb56ac8632abc",
234 url = "http://frc971.org/Build-Dependencies/patchelf.tar.gz",
235)
Brian Silverman50b9ac02018-08-12 13:24:10 -0700236
237new_http_archive(
238 name = "arm_frc_gnueabi_deps",
239 build_file = "debian/arm_frc_gnueabi_deps.BUILD",
240 sha256 = "4b26fe45010817dc136488ee1604ade21bd7c264c29f17d864fc6eba9d7442c4",
241 url = "http://frc971.org/Build-Dependencies/arm_frc_gnueabi_deps.tar.gz",
242)
Brian Silverman6c8b88b2018-09-03 18:17:02 -0700243
244# Downloaded from
245# 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
246new_http_archive(
247 name = "gcc_arm_none_eabi",
248 build_file = "compilers/gcc_arm_none_eabi.BUILD",
249 sha256 = "bb17109f0ee697254a5d4ae6e5e01440e3ea8f0277f2e8169bf95d07c7d5fe69",
250 strip_prefix = "gcc-arm-none-eabi-7-2018-q2-update/",
251 url = "http://frc971.org/Build-Dependencies/gcc-arm-none-eabi-7-2018-q2-update-linux.tar.bz2",
252)
Austin Schuhad596222018-01-31 23:34:03 -0800253
254new_http_archive(
255 name = "cgal_repo",
256 sha256 = "d564dda558570344b4caa66c5bae2cdae9ef68e07829d64f5651b25f2c6a0e9e",
257 url = "http://frc971.org/Build-Dependencies/cgal-dev-4.5-2.tar.gz",
258 build_file = 'debian/cgal.BUILD',
259)