blob: 42bf4e94a1367247c5c5b3f4bf06d1702b5c210f [file] [log] [blame]
Brian Silvermand1c19fb2016-07-07 00:10:57 -07001workspace(name = 'org_frc971')
2
Philipp Schrader0e19c602018-03-07 21:07:22 -08003load("//debian:python.bzl", python_debs="files")
Philipp Schraderaedfc5c2018-03-10 19:32:30 -08004load("//debian:clang.bzl", clang_debs="files")
Philipp Schrader0e19c602018-03-07 21:07:22 -08005load("//debian:packages.bzl", "generate_repositories_for_debs")
6
7generate_repositories_for_debs(python_debs)
Philipp Schraderaedfc5c2018-03-10 19:32:30 -08008generate_repositories_for_debs(clang_debs)
Philipp Schrader0e19c602018-03-07 21:07:22 -08009
Austin Schuh4759ffc2015-10-07 20:39:56 -070010new_local_repository(
11 name = 'usr_repo',
12 path = '/usr',
Brian Silverman8d548902015-11-04 23:50:11 -050013 build_file = 'debian/usr.BUILD',
Austin Schuh4759ffc2015-10-07 20:39:56 -070014)
15
Austin Schuh1f9aeb42015-11-12 23:34:49 -080016new_git_repository(
17 name = 'slycot_repo',
18 remote = 'https://github.com/avventi/Slycot.git',
19 build_file = 'debian/slycot.BUILD',
20 commit = '5af5f283cb23cbe23c4dfea4d5e56071bdbd6e70',
21)
22
Austin Schuh55139fe2015-10-14 23:55:24 -070023new_http_archive(
Brian Silverman826e1cd2016-01-31 18:26:00 -050024 name = 'arm_frc_linux_gnueabi_repo',
Austin Schuh55139fe2015-10-14 23:55:24 -070025 build_file = 'tools/cpp/arm-frc-linux-gnueabi/arm-frc-linux-gnueabi.BUILD',
Austin Schuh94f51e92017-10-30 19:25:32 -070026 sha256 = '875b23bec5138e09e3d21cc1ff2727ea3ecbec57509c37589514ba50f92979c7',
27 url = 'http://frc971.org/Build-Dependencies/roborio-compiler-2018.tar.xz',
Austin Schuh55139fe2015-10-14 23:55:24 -070028)
Austin Schuhe456f152015-11-27 13:44:39 -080029
Brian Silverman0d57fc82016-01-24 21:02:53 -050030# Recompressed version of the one downloaded from Linaro at
31# <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>,
32# with workarounds for <https://github.com/bazelbuild/bazel/issues/574> and the
33# top-level folder stripped off.
34new_http_archive(
Austin Schuh61660832016-03-04 21:56:39 -080035 name = 'linaro_linux_gcc_4_9_repo',
Brian Silverman0d57fc82016-01-24 21:02:53 -050036 build_file = 'compilers/linaro_linux_gcc_4.9.BUILD',
37 sha256 = '25e97bcb0af4fd7cd626d5bb1b303c7d2cb13acf2474e335e3d431d1a53fbb52',
38 url = 'http://frc971.org/Build-Dependencies/gcc-linaro-4.9-2015.05-x86_64_arm-linux-gnueabihf.tar.gz',
39)
40
Austin Schuhe456f152015-11-27 13:44:39 -080041new_git_repository(
Brian Silverman826e1cd2016-01-31 18:26:00 -050042 name = 'python_gflags_repo',
Austin Schuhe456f152015-11-27 13:44:39 -080043 remote = 'https://github.com/gflags/python-gflags.git',
44 build_file = 'debian/gflags.BUILD',
45 commit = '41c4571864f0db5823e07715317e7388e94faabc',
46)
47
48bind(
49 name = 'python-gflags',
Brian Silverman826e1cd2016-01-31 18:26:00 -050050 actual = '@python_gflags_repo//:gflags',
Austin Schuhe456f152015-11-27 13:44:39 -080051)
52
53new_http_archive(
Brian Silverman826e1cd2016-01-31 18:26:00 -050054 name = 'python_glog_repo',
Austin Schuhe456f152015-11-27 13:44:39 -080055 build_file = 'debian/glog.BUILD',
56 sha256 = '953fd80122c48023d1148e6d1bda2763fcab59c8a81682bb298238a5935547b0',
57 url = 'https://pypi.python.org/packages/source/g/glog/glog-0.1.tar.gz',
58 strip_prefix = 'glog-0.1',
59)
60
61bind(
62 name = 'python-glog',
Brian Silverman826e1cd2016-01-31 18:26:00 -050063 actual = '@python_glog_repo//:glog',
Austin Schuhe456f152015-11-27 13:44:39 -080064)
Brian Silvermancee260a2015-12-24 16:27:51 -080065
66new_http_archive(
Austin Schuh94f51e92017-10-30 19:25:32 -070067 name = 'allwpilib_ni_libraries_repo_2018',
68 build_file = 'debian/ni-libraries-2018.BUILD',
69 sha256 = '05ef6701c77b83163b443aa956d151028861cc3fa29fdf2b6b77431b4a91bfb9',
70 url = 'http://frc971.org/Build-Dependencies/allwpilib_ni-libraries_57e9fb3.tar.gz',
71 strip_prefix = 'ni-libraries',
72)
73
74new_http_archive(
Brian Silvermane48dbc12017-02-04 20:06:29 -080075 name = 'allwpilib_ni_libraries_repo_2017',
76 build_file = 'debian/ni-libraries-2017.BUILD',
77 sha256 = '67c1ad365fb712cc0acb0bf43465b831030523dc6f88daa02626994f644d91eb',
78 url = 'http://frc971.org/Build-Dependencies/allwpilib_ni-libraries_e375b4a.tar.gz',
79 strip_prefix = 'ni-libraries',
80)
81
Brian Silverman3fca9d72016-02-20 02:32:51 -050082# Downloaded from:
83# https://pypi.python.org/packages/source/s/six/six-1.10.0.tar.gz
84new_http_archive(
85 name = 'six_repo',
86 build_file = 'debian/six.BUILD',
87 sha256 = '105f8d68616f8248e24bf0e9372ef04d3cc10104f1980f54d57b2ce73a5ad56a',
88 url = 'http://frc971.org/Build-Dependencies/six-1.10.0.tar.gz',
89 strip_prefix = 'six-1.10.0',
90)
91
92# For protobuf. Don't use these.
93bind(
94 name = 'six',
95 actual = '@six_repo//:six',
96)
97bind(
98 name = 'gtest',
99 actual = '//third_party/googletest:googlemock',
100)
101bind(
102 name = 'gtest_main',
103 actual = '//third_party/googletest:googlemock_main',
104)
105
106new_http_archive(
107 name = 'python_import_helpers',
108 build_file = 'third_party/python_import_helpers.BUILD',
109 url = 'http://frc971.org/Build-Dependencies/empty.tar.gz',
110 sha256 = '71939a7d75585a57d2e99a33d39f391764d8f930f9a16acf32e00c5d3f432aa0',
111)
Brian Silverman8b638692017-06-26 23:10:26 -0700112
113new_local_repository(
114 name = 'libusb',
115 path = '/usr',
116 build_file = 'debian/libusb.BUILD',
117)
Brian Silverman4aa83042018-01-05 12:47:31 -0800118
119# Created by combining libusb-1.0-0_2%3a1.0.19-1_amd64,
120# libusb-1.0-0-dev_2%3a1.0.19-1, and libudev1_215-17+deb8u7.
121new_http_archive(
122 name = 'libusb_1_0',
123 build_file = 'debian/libusb-1.0.BUILD',
124 url = 'http://frc971.org/Build-Dependencies/libusb-1.0-1.0.19.tar.xz',
125 sha256 = '12acb30faacd10e9aa7f3a5e074701e167ce9bbd45694db37d13d55de5398816',
126)
127
128# Recompressed from libusb-1.0.21.7z.
129http_file(
130 name = 'libusb_1_0_windows',
131 url = 'http://frc971.org/Build-Dependencies/libusb-1.0.21-windows.tar.xz',
132 sha256 = 'fc2ba03992f343aabbaf9eb90559c6e00cdc6a2bd914d7cebea85857d5244015',
133)
Brian Silvermand3ad1652018-02-18 22:16:29 -0500134
135# The data tarball of the same-named Debian package.
136new_http_archive(
137 name = "f2c",
138 sha256 = "2c677437f8217a2e2b23e41b33995d0571644fc1bea46de858f8913a5053e3f4",
139 url = "http://frc971.org/Build-Dependencies/f2c_20100827-1_amd64.xz.tar.xz",
140 build_file = "debian/f2c.BUILD",
141)
142
143# Downloaded from http://www.netlib.org/clapack/.
144new_http_archive(
145 name = 'clapack',
146 url = "http://frc971.org/Build-Dependencies/clapack-3.2.1.tgz",
147 build_file = 'debian/clapack.BUILD',
148 sha256 = '6dc4c382164beec8aaed8fd2acc36ad24232c406eda6db462bd4c41d5e455fac',
149 strip_prefix = 'CLAPACK-3.2.1/',
150)