blob: 1a5bff301a2324c6f4e057fce5d88cd8164c4c75 [file] [log] [blame]
Brian Silvermand1c19fb2016-07-07 00:10:57 -07001workspace(name = 'org_frc971')
2
Austin Schuh4759ffc2015-10-07 20:39:56 -07003new_local_repository(
4 name = 'usr_repo',
5 path = '/usr',
Brian Silverman8d548902015-11-04 23:50:11 -05006 build_file = 'debian/usr.BUILD',
Austin Schuh4759ffc2015-10-07 20:39:56 -07007)
8
Austin Schuh1f9aeb42015-11-12 23:34:49 -08009new_git_repository(
10 name = 'slycot_repo',
11 remote = 'https://github.com/avventi/Slycot.git',
12 build_file = 'debian/slycot.BUILD',
13 commit = '5af5f283cb23cbe23c4dfea4d5e56071bdbd6e70',
14)
15
Austin Schuh55139fe2015-10-14 23:55:24 -070016new_http_archive(
Brian Silverman826e1cd2016-01-31 18:26:00 -050017 name = 'arm_frc_linux_gnueabi_repo',
Austin Schuh55139fe2015-10-14 23:55:24 -070018 build_file = 'tools/cpp/arm-frc-linux-gnueabi/arm-frc-linux-gnueabi.BUILD',
Austin Schuh6a971c62017-02-05 18:59:27 -080019 sha256 = '9e2e58f0a668c22e46486a76df8b9da08f526cd8bf4e579f19b461f70a358bf8',
20 url = 'http://frc971.org/Build-Dependencies/roborio-compiler-2017.tar.xz',
Austin Schuh55139fe2015-10-14 23:55:24 -070021)
Austin Schuhe456f152015-11-27 13:44:39 -080022
Brian Silverman0d57fc82016-01-24 21:02:53 -050023# Recompressed version of the one downloaded from Linaro at
24# <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>,
25# with workarounds for <https://github.com/bazelbuild/bazel/issues/574> and the
26# top-level folder stripped off.
27new_http_archive(
Austin Schuh61660832016-03-04 21:56:39 -080028 name = 'linaro_linux_gcc_4_9_repo',
Brian Silverman0d57fc82016-01-24 21:02:53 -050029 build_file = 'compilers/linaro_linux_gcc_4.9.BUILD',
30 sha256 = '25e97bcb0af4fd7cd626d5bb1b303c7d2cb13acf2474e335e3d431d1a53fbb52',
31 url = 'http://frc971.org/Build-Dependencies/gcc-linaro-4.9-2015.05-x86_64_arm-linux-gnueabihf.tar.gz',
32)
33
Austin Schuhe456f152015-11-27 13:44:39 -080034new_git_repository(
Brian Silverman826e1cd2016-01-31 18:26:00 -050035 name = 'python_gflags_repo',
Austin Schuhe456f152015-11-27 13:44:39 -080036 remote = 'https://github.com/gflags/python-gflags.git',
37 build_file = 'debian/gflags.BUILD',
38 commit = '41c4571864f0db5823e07715317e7388e94faabc',
39)
40
41bind(
42 name = 'python-gflags',
Brian Silverman826e1cd2016-01-31 18:26:00 -050043 actual = '@python_gflags_repo//:gflags',
Austin Schuhe456f152015-11-27 13:44:39 -080044)
45
46new_http_archive(
Brian Silverman826e1cd2016-01-31 18:26:00 -050047 name = 'python_glog_repo',
Austin Schuhe456f152015-11-27 13:44:39 -080048 build_file = 'debian/glog.BUILD',
49 sha256 = '953fd80122c48023d1148e6d1bda2763fcab59c8a81682bb298238a5935547b0',
50 url = 'https://pypi.python.org/packages/source/g/glog/glog-0.1.tar.gz',
51 strip_prefix = 'glog-0.1',
52)
53
54bind(
55 name = 'python-glog',
Brian Silverman826e1cd2016-01-31 18:26:00 -050056 actual = '@python_glog_repo//:glog',
Austin Schuhe456f152015-11-27 13:44:39 -080057)
Brian Silvermancee260a2015-12-24 16:27:51 -080058
59new_http_archive(
Brian Silvermane48dbc12017-02-04 20:06:29 -080060 name = 'allwpilib_ni_libraries_repo_2017',
61 build_file = 'debian/ni-libraries-2017.BUILD',
62 sha256 = '67c1ad365fb712cc0acb0bf43465b831030523dc6f88daa02626994f644d91eb',
63 url = 'http://frc971.org/Build-Dependencies/allwpilib_ni-libraries_e375b4a.tar.gz',
64 strip_prefix = 'ni-libraries',
65)
66
Brian Silverman3fca9d72016-02-20 02:32:51 -050067# Downloaded from:
68# https://pypi.python.org/packages/source/s/six/six-1.10.0.tar.gz
69new_http_archive(
70 name = 'six_repo',
71 build_file = 'debian/six.BUILD',
72 sha256 = '105f8d68616f8248e24bf0e9372ef04d3cc10104f1980f54d57b2ce73a5ad56a',
73 url = 'http://frc971.org/Build-Dependencies/six-1.10.0.tar.gz',
74 strip_prefix = 'six-1.10.0',
75)
76
77# For protobuf. Don't use these.
78bind(
79 name = 'six',
80 actual = '@six_repo//:six',
81)
82bind(
83 name = 'gtest',
84 actual = '//third_party/googletest:googlemock',
85)
86bind(
87 name = 'gtest_main',
88 actual = '//third_party/googletest:googlemock_main',
89)
90
91new_http_archive(
92 name = 'python_import_helpers',
93 build_file = 'third_party/python_import_helpers.BUILD',
94 url = 'http://frc971.org/Build-Dependencies/empty.tar.gz',
95 sha256 = '71939a7d75585a57d2e99a33d39f391764d8f930f9a16acf32e00c5d3f432aa0',
96)
Brian Silverman8b638692017-06-26 23:10:26 -070097
98new_local_repository(
99 name = 'libusb',
100 path = '/usr',
101 build_file = 'debian/libusb.BUILD',
102)
Brian Silverman4aa83042018-01-05 12:47:31 -0800103
104# Created by combining libusb-1.0-0_2%3a1.0.19-1_amd64,
105# libusb-1.0-0-dev_2%3a1.0.19-1, and libudev1_215-17+deb8u7.
106new_http_archive(
107 name = 'libusb_1_0',
108 build_file = 'debian/libusb-1.0.BUILD',
109 url = 'http://frc971.org/Build-Dependencies/libusb-1.0-1.0.19.tar.xz',
110 sha256 = '12acb30faacd10e9aa7f3a5e074701e167ce9bbd45694db37d13d55de5398816',
111)
112
113# Recompressed from libusb-1.0.21.7z.
114http_file(
115 name = 'libusb_1_0_windows',
116 url = 'http://frc971.org/Build-Dependencies/libusb-1.0.21-windows.tar.xz',
117 sha256 = 'fc2ba03992f343aabbaf9eb90559c6e00cdc6a2bd914d7cebea85857d5244015',
118)
Brian Silvermand3ad1652018-02-18 22:16:29 -0500119
120# The data tarball of the same-named Debian package.
121new_http_archive(
122 name = "f2c",
123 sha256 = "2c677437f8217a2e2b23e41b33995d0571644fc1bea46de858f8913a5053e3f4",
124 url = "http://frc971.org/Build-Dependencies/f2c_20100827-1_amd64.xz.tar.xz",
125 build_file = "debian/f2c.BUILD",
126)
127
128# Downloaded from http://www.netlib.org/clapack/.
129new_http_archive(
130 name = 'clapack',
131 url = "http://frc971.org/Build-Dependencies/clapack-3.2.1.tgz",
132 build_file = 'debian/clapack.BUILD',
133 sha256 = '6dc4c382164beec8aaed8fd2acc36ad24232c406eda6db462bd4c41d5e455fac',
134 strip_prefix = 'CLAPACK-3.2.1/',
135)