blob: 46703b942e8e9ef7fd66f2ca9fb663958f6a35cc [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")
4
Brian Silverman7bda6212018-08-05 11:42:11 -07005load(
6 "//debian:python.bzl",
7 python_debs = "files",
8)
9load(
10 "//debian:clang.bzl",
11 clang_debs = "files",
12)
13load(
14 "//debian:patch.bzl",
15 patch_debs = "files",
16)
Brian Silverman7297c0c2018-08-05 13:43:00 -070017load(
18 "//debian:pandoc.bzl",
19 pandoc_debs = "files",
20)
Brian Silverman4f6ba442018-08-05 14:34:58 -070021load(
22 "//debian:libusb.bzl",
23 libusb_debs = "files",
24)
Brian Silvermanb80dc9f2018-08-05 14:59:24 -070025load(
26 "//debian:mingw_compiler.bzl",
27 mingw_compiler_debs = "files",
28)
Brian Silverman6470f442018-08-05 12:08:16 -070029load(
30 "//debian:patchelf.bzl",
31 patchelf_debs = "files",
32)
33load(
34 "//debian:matplotlib.bzl",
35 matplotlib_debs = "files",
36)
Brian Silverman50b9ac02018-08-12 13:24:10 -070037load(
38 "//debian:arm_frc_gnueabi_deps.bzl",
39 arm_frc_gnueabi_deps_debs = "files",
40)
Brian Silvermanb0ebf1d2018-10-17 23:36:40 -070041load(
42 "//debian:python_gtk.bzl",
43 python_gtk_debs = "files",
44)
Austin Schuhc9bcd4b2018-10-20 18:39:38 -070045
46load(
47 "//debian:ruby.bzl",
48 ruby_debs = "files",
49)
Philipp Schrader0e19c602018-03-07 21:07:22 -080050load("//debian:packages.bzl", "generate_repositories_for_debs")
51
52generate_repositories_for_debs(python_debs)
Brian Silverman7bda6212018-08-05 11:42:11 -070053
Philipp Schraderaedfc5c2018-03-10 19:32:30 -080054generate_repositories_for_debs(clang_debs)
Philipp Schrader0e19c602018-03-07 21:07:22 -080055
Brian Silverman7bda6212018-08-05 11:42:11 -070056generate_repositories_for_debs(patch_debs)
57
Brian Silverman7297c0c2018-08-05 13:43:00 -070058generate_repositories_for_debs(pandoc_debs)
59
Brian Silverman4f6ba442018-08-05 14:34:58 -070060generate_repositories_for_debs(libusb_debs)
61
Brian Silvermanb80dc9f2018-08-05 14:59:24 -070062generate_repositories_for_debs(mingw_compiler_debs)
63
Brian Silverman6470f442018-08-05 12:08:16 -070064generate_repositories_for_debs(patchelf_debs)
65
66generate_repositories_for_debs(matplotlib_debs)
67
Brian Silverman50b9ac02018-08-12 13:24:10 -070068generate_repositories_for_debs(arm_frc_gnueabi_deps_debs)
69
Brian Silvermanb0ebf1d2018-10-17 23:36:40 -070070generate_repositories_for_debs(python_gtk_debs)
71
Austin Schuhc9bcd4b2018-10-20 18:39:38 -070072generate_repositories_for_debs(ruby_debs)
73
Philipp Schrader9fc87e02018-03-10 20:36:39 -080074new_http_archive(
Brian Silverman7bda6212018-08-05 11:42:11 -070075 name = "python_repo",
76 build_file = "debian/python.BUILD",
Brian Silverman6470f442018-08-05 12:08:16 -070077 sha256 = "4ff939f90cffd8c72f9992d7420481e361b6016b0ce5c6fa701be0691d4e20fa",
78 url = "http://frc971.org/Build-Dependencies/python-2.tar.gz",
Philipp Schrader9fc87e02018-03-10 20:36:39 -080079)
80
Philipp Schrader9b1790e2018-03-10 20:21:30 -080081new_http_archive(
Brian Silverman7bda6212018-08-05 11:42:11 -070082 name = "clang_3p6_repo",
83 build_file = "tools/cpp/clang_3p6/clang_3p6.BUILD",
84 sha256 = "5ee9e04c55c2c99d0c0f83722102a49e98f485fc274f73111b33a7ac4e34e03e",
85 url = "http://frc971.org/Build-Dependencies/clang_3p6.tar.gz",
Philipp Schrader9b1790e2018-03-10 20:21:30 -080086)
87
Austin Schuh4759ffc2015-10-07 20:39:56 -070088new_local_repository(
Brian Silverman7bda6212018-08-05 11:42:11 -070089 name = "usr_repo",
90 build_file = "debian/usr.BUILD",
91 path = "/usr",
Austin Schuh4759ffc2015-10-07 20:39:56 -070092)
93
Austin Schuh1f9aeb42015-11-12 23:34:49 -080094new_git_repository(
Brian Silverman7bda6212018-08-05 11:42:11 -070095 name = "slycot_repo",
Tyler Chatow2584bb12018-10-27 20:48:35 -070096 build_file = "@//debian:slycot.BUILD",
Brian Silverman7bda6212018-08-05 11:42:11 -070097 commit = "5af5f283cb23cbe23c4dfea4d5e56071bdbd6e70",
98 remote = "https://github.com/avventi/Slycot.git",
Austin Schuh1f9aeb42015-11-12 23:34:49 -080099)
100
Austin Schuh55139fe2015-10-14 23:55:24 -0700101new_http_archive(
Austin Schuhc9bcd4b2018-10-20 18:39:38 -0700102 name = "ruby_repo",
103 build_file = "debian/ruby.BUILD",
104 sha256 = "d3e21cca0abcad933de0d4095da35344a60475d1f5828ee99283ed4250ee1320",
105 url = "http://frc971.org/Build-Dependencies/ruby.tar.gz",
106)
107
108new_http_archive(
Brian Silverman7bda6212018-08-05 11:42:11 -0700109 name = "arm_frc_linux_gnueabi_repo",
110 build_file = "tools/cpp/arm-frc-linux-gnueabi/arm-frc-linux-gnueabi.BUILD",
111 sha256 = "875b23bec5138e09e3d21cc1ff2727ea3ecbec57509c37589514ba50f92979c7",
112 url = "http://frc971.org/Build-Dependencies/roborio-compiler-2018.tar.xz",
Austin Schuh55139fe2015-10-14 23:55:24 -0700113)
Austin Schuhe456f152015-11-27 13:44:39 -0800114
Brian Silverman0d57fc82016-01-24 21:02:53 -0500115# Recompressed version of the one downloaded from Linaro at
116# <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>,
117# with workarounds for <https://github.com/bazelbuild/bazel/issues/574> and the
118# top-level folder stripped off.
119new_http_archive(
Brian Silverman7bda6212018-08-05 11:42:11 -0700120 name = "linaro_linux_gcc_4_9_repo",
121 build_file = "compilers/linaro_linux_gcc_4.9.BUILD",
122 sha256 = "25e97bcb0af4fd7cd626d5bb1b303c7d2cb13acf2474e335e3d431d1a53fbb52",
123 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 -0500124)
125
Austin Schuhe456f152015-11-27 13:44:39 -0800126new_git_repository(
Brian Silverman7bda6212018-08-05 11:42:11 -0700127 name = "python_gflags_repo",
Tyler Chatow2584bb12018-10-27 20:48:35 -0700128 build_file = "@//debian:gflags.BUILD",
Brian Silverman7bda6212018-08-05 11:42:11 -0700129 commit = "41c4571864f0db5823e07715317e7388e94faabc",
130 remote = "https://github.com/gflags/python-gflags.git",
Austin Schuhe456f152015-11-27 13:44:39 -0800131)
132
133bind(
Brian Silverman7bda6212018-08-05 11:42:11 -0700134 name = "python-gflags",
135 actual = "@python_gflags_repo//:gflags",
Austin Schuhe456f152015-11-27 13:44:39 -0800136)
137
138new_http_archive(
Brian Silverman7bda6212018-08-05 11:42:11 -0700139 name = "python_glog_repo",
140 build_file = "debian/glog.BUILD",
141 sha256 = "953fd80122c48023d1148e6d1bda2763fcab59c8a81682bb298238a5935547b0",
142 strip_prefix = "glog-0.1",
143 url = "https://pypi.python.org/packages/source/g/glog/glog-0.1.tar.gz",
Austin Schuhe456f152015-11-27 13:44:39 -0800144)
145
146bind(
Brian Silverman7bda6212018-08-05 11:42:11 -0700147 name = "python-glog",
148 actual = "@python_glog_repo//:glog",
Austin Schuhe456f152015-11-27 13:44:39 -0800149)
Brian Silvermancee260a2015-12-24 16:27:51 -0800150
151new_http_archive(
Brian Silverman7bda6212018-08-05 11:42:11 -0700152 name = "allwpilib_ni_libraries_repo_2018",
153 build_file = "debian/ni-libraries-2018.BUILD",
154 sha256 = "05ef6701c77b83163b443aa956d151028861cc3fa29fdf2b6b77431b4a91bfb9",
155 strip_prefix = "ni-libraries",
156 url = "http://frc971.org/Build-Dependencies/allwpilib_ni-libraries_57e9fb3.tar.gz",
Austin Schuh94f51e92017-10-30 19:25:32 -0700157)
158
159new_http_archive(
Brian Silverman7bda6212018-08-05 11:42:11 -0700160 name = "allwpilib_ni_libraries_repo_2017",
161 build_file = "debian/ni-libraries-2017.BUILD",
162 sha256 = "67c1ad365fb712cc0acb0bf43465b831030523dc6f88daa02626994f644d91eb",
163 strip_prefix = "ni-libraries",
164 url = "http://frc971.org/Build-Dependencies/allwpilib_ni-libraries_e375b4a.tar.gz",
Brian Silvermane48dbc12017-02-04 20:06:29 -0800165)
166
Brian Silverman3fca9d72016-02-20 02:32:51 -0500167# Downloaded from:
168# https://pypi.python.org/packages/source/s/six/six-1.10.0.tar.gz
169new_http_archive(
Brian Silverman7bda6212018-08-05 11:42:11 -0700170 name = "six_repo",
171 build_file = "debian/six.BUILD",
172 sha256 = "105f8d68616f8248e24bf0e9372ef04d3cc10104f1980f54d57b2ce73a5ad56a",
173 strip_prefix = "six-1.10.0",
174 url = "http://frc971.org/Build-Dependencies/six-1.10.0.tar.gz",
Brian Silverman3fca9d72016-02-20 02:32:51 -0500175)
176
177# For protobuf. Don't use these.
178bind(
Brian Silverman7bda6212018-08-05 11:42:11 -0700179 name = "six",
180 actual = "@six_repo//:six",
Brian Silverman3fca9d72016-02-20 02:32:51 -0500181)
Brian Silverman7bda6212018-08-05 11:42:11 -0700182
Brian Silverman3fca9d72016-02-20 02:32:51 -0500183bind(
Brian Silverman7bda6212018-08-05 11:42:11 -0700184 name = "gtest",
185 actual = "//third_party/googletest:googlemock",
Brian Silverman3fca9d72016-02-20 02:32:51 -0500186)
Brian Silverman7bda6212018-08-05 11:42:11 -0700187
Brian Silverman3fca9d72016-02-20 02:32:51 -0500188bind(
Brian Silverman7bda6212018-08-05 11:42:11 -0700189 name = "gtest_main",
190 actual = "//third_party/googletest:googlemock_main",
Brian Silverman3fca9d72016-02-20 02:32:51 -0500191)
192
Brian Silverman4aa83042018-01-05 12:47:31 -0800193# Recompressed from libusb-1.0.21.7z.
194http_file(
Brian Silverman7bda6212018-08-05 11:42:11 -0700195 name = "libusb_1_0_windows",
196 sha256 = "fc2ba03992f343aabbaf9eb90559c6e00cdc6a2bd914d7cebea85857d5244015",
197 url = "http://frc971.org/Build-Dependencies/libusb-1.0.21-windows.tar.xz",
Brian Silverman4aa83042018-01-05 12:47:31 -0800198)
Brian Silvermand3ad1652018-02-18 22:16:29 -0500199
200# The data tarball of the same-named Debian package.
201new_http_archive(
202 name = "f2c",
Brian Silverman7bda6212018-08-05 11:42:11 -0700203 build_file = "debian/f2c.BUILD",
Brian Silvermand3ad1652018-02-18 22:16:29 -0500204 sha256 = "2c677437f8217a2e2b23e41b33995d0571644fc1bea46de858f8913a5053e3f4",
205 url = "http://frc971.org/Build-Dependencies/f2c_20100827-1_amd64.xz.tar.xz",
Brian Silvermand3ad1652018-02-18 22:16:29 -0500206)
207
208# Downloaded from http://www.netlib.org/clapack/.
209new_http_archive(
Brian Silverman7bda6212018-08-05 11:42:11 -0700210 name = "clapack",
211 build_file = "debian/clapack.BUILD",
212 sha256 = "6dc4c382164beec8aaed8fd2acc36ad24232c406eda6db462bd4c41d5e455fac",
213 strip_prefix = "CLAPACK-3.2.1/",
214 url = "http://frc971.org/Build-Dependencies/clapack-3.2.1.tgz",
215)
216
217new_http_archive(
218 name = "patch",
219 build_file = "debian/patch.BUILD",
220 sha256 = "b5ce139648a2e04f5585948ddad2fdae24dd4ee7976ac5a22d6ae7bd5674631e",
221 url = "http://frc971.org/Build-Dependencies/patch.tar.gz",
Brian Silvermand3ad1652018-02-18 22:16:29 -0500222)
Brian Silverman7297c0c2018-08-05 13:43:00 -0700223
224new_http_archive(
225 name = "pandoc",
226 build_file = "debian/pandoc.BUILD",
227 sha256 = "9f7a7adb3974a1f14715054c349ff3edc2909e920dbe3438fca437a83845f3c4",
228 url = "http://frc971.org/Build-Dependencies/pandoc.tar.gz",
229)
Brian Silverman4f6ba442018-08-05 14:34:58 -0700230
231new_http_archive(
232 name = "libusb",
233 build_file = "debian/libusb.BUILD",
234 sha256 = "3ca5cc2d317226f6646866ff9e8c443db3b0f6c82f828e800240982727531590",
235 url = "http://frc971.org/Build-Dependencies/libusb.tar.gz",
236)
Brian Silvermanb80dc9f2018-08-05 14:59:24 -0700237
238new_http_archive(
239 name = "mingw_compiler",
240 build_file = "debian/mingw_compiler.BUILD",
241 sha256 = "45e86a8460f2151a4f0306e7ae7b06761029d2412ee16f63d1e8d2d29354e378",
242 url = "http://frc971.org/Build-Dependencies/mingw_compiler.tar.gz",
243)
Brian Silverman6470f442018-08-05 12:08:16 -0700244
245new_http_archive(
246 name = "matplotlib",
247 build_file = "debian/matplotlib.BUILD",
Brian Silvermanb0ebf1d2018-10-17 23:36:40 -0700248 sha256 = "dc8e04123a93180bf89727bf6b5a5a0f6d210b6c1c5eaec148f7f8183abbce24",
249 url = "http://frc971.org/Build-Dependencies/matplotlib-2.tar.gz",
Brian Silverman6470f442018-08-05 12:08:16 -0700250)
251
252new_http_archive(
253 name = "patchelf",
254 build_file = "debian/patchelf.BUILD",
255 sha256 = "bf8b709909d7d9e30815dd228eeded7dc282e3ce3919d0589ccbb56ac8632abc",
256 url = "http://frc971.org/Build-Dependencies/patchelf.tar.gz",
257)
Brian Silverman50b9ac02018-08-12 13:24:10 -0700258
259new_http_archive(
260 name = "arm_frc_gnueabi_deps",
261 build_file = "debian/arm_frc_gnueabi_deps.BUILD",
262 sha256 = "4b26fe45010817dc136488ee1604ade21bd7c264c29f17d864fc6eba9d7442c4",
263 url = "http://frc971.org/Build-Dependencies/arm_frc_gnueabi_deps.tar.gz",
264)
Brian Silverman6c8b88b2018-09-03 18:17:02 -0700265
Brian Silvermanb0ebf1d2018-10-17 23:36:40 -0700266new_http_archive(
267 name = "python_gtk",
268 build_file = "debian/python_gtk.BUILD",
269 sha256 = "850f5c1521b94c5c049c44d9107cd8ae9110696fbf054d2cb48bae9620fd4d23",
270 url = "http://frc971.org/Build-Dependencies/python_gtk.tar.gz",
271)
272
Brian Silverman6c8b88b2018-09-03 18:17:02 -0700273# Downloaded from
274# 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
275new_http_archive(
276 name = "gcc_arm_none_eabi",
277 build_file = "compilers/gcc_arm_none_eabi.BUILD",
278 sha256 = "bb17109f0ee697254a5d4ae6e5e01440e3ea8f0277f2e8169bf95d07c7d5fe69",
279 strip_prefix = "gcc-arm-none-eabi-7-2018-q2-update/",
280 url = "http://frc971.org/Build-Dependencies/gcc-arm-none-eabi-7-2018-q2-update-linux.tar.bz2",
281)
Austin Schuhad596222018-01-31 23:34:03 -0800282
283new_http_archive(
284 name = "cgal_repo",
Brian Silvermanb0ebf1d2018-10-17 23:36:40 -0700285 build_file = "debian/cgal.BUILD",
Austin Schuhad596222018-01-31 23:34:03 -0800286 sha256 = "d564dda558570344b4caa66c5bae2cdae9ef68e07829d64f5651b25f2c6a0e9e",
287 url = "http://frc971.org/Build-Dependencies/cgal-dev-4.5-2.tar.gz",
Austin Schuhad596222018-01-31 23:34:03 -0800288)
Austin Schuhe18baff2018-10-20 17:40:42 -0700289
290# Java9 JDK.
291new_http_archive(
292 name = "openjdk_linux_archive",
293 build_file_content = """
294java_runtime(
295 name = 'jdk',
296 srcs = glob(['**']),
297 visibility = ['//visibility:public']
298)
299""",
300 sha256 = "f27cb933de4f9e7fe9a703486cf44c84bc8e9f138be0c270c9e5716a32367e87",
301 strip_prefix = "zulu9.0.7.1-jdk9.0.7-linux_x64-allmodules",
302 urls = [
303 "http://frc971.org/Build-Dependencies/zulu9.0.7.1-jdk9.0.7-linux_x64-allmodules.tar.gz",
304 ],
305)
306
Austin Schuhf9724442018-10-28 20:30:21 -0700307local_repository(
308 name = "com_google_protobuf",
309 path = "third_party/protobuf",
Brian Silverman9c614bc2016-02-15 20:20:02 -0500310)