blob: f256eb384af0ccecd9f2a943fade8e591f805df2 [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)
Philipp Schrader0e19c602018-03-07 21:07:22 -080019load("//debian:packages.bzl", "generate_repositories_for_debs")
20
21generate_repositories_for_debs(python_debs)
Brian Silverman7bda6212018-08-05 11:42:11 -070022
Philipp Schraderaedfc5c2018-03-10 19:32:30 -080023generate_repositories_for_debs(clang_debs)
Philipp Schrader0e19c602018-03-07 21:07:22 -080024
Brian Silverman7bda6212018-08-05 11:42:11 -070025generate_repositories_for_debs(patch_debs)
26
Brian Silverman7297c0c2018-08-05 13:43:00 -070027generate_repositories_for_debs(pandoc_debs)
28
Philipp Schrader9fc87e02018-03-10 20:36:39 -080029new_http_archive(
Brian Silverman7bda6212018-08-05 11:42:11 -070030 name = "python_repo",
31 build_file = "debian/python.BUILD",
32 sha256 = "21214b6386273698b6aa1b64bccf1bc8c5ef4ef44563871bac5cd85383575af5",
33 url = "http://frc971.org/Build-Dependencies/python.tar.gz",
Philipp Schrader9fc87e02018-03-10 20:36:39 -080034)
35
Philipp Schrader9b1790e2018-03-10 20:21:30 -080036new_http_archive(
Brian Silverman7bda6212018-08-05 11:42:11 -070037 name = "clang_3p6_repo",
38 build_file = "tools/cpp/clang_3p6/clang_3p6.BUILD",
39 sha256 = "5ee9e04c55c2c99d0c0f83722102a49e98f485fc274f73111b33a7ac4e34e03e",
40 url = "http://frc971.org/Build-Dependencies/clang_3p6.tar.gz",
Philipp Schrader9b1790e2018-03-10 20:21:30 -080041)
42
Austin Schuh4759ffc2015-10-07 20:39:56 -070043new_local_repository(
Brian Silverman7bda6212018-08-05 11:42:11 -070044 name = "usr_repo",
45 build_file = "debian/usr.BUILD",
46 path = "/usr",
Austin Schuh4759ffc2015-10-07 20:39:56 -070047)
48
Austin Schuh1f9aeb42015-11-12 23:34:49 -080049new_git_repository(
Brian Silverman7bda6212018-08-05 11:42:11 -070050 name = "slycot_repo",
51 build_file = "debian/slycot.BUILD",
52 commit = "5af5f283cb23cbe23c4dfea4d5e56071bdbd6e70",
53 remote = "https://github.com/avventi/Slycot.git",
Austin Schuh1f9aeb42015-11-12 23:34:49 -080054)
55
Austin Schuh55139fe2015-10-14 23:55:24 -070056new_http_archive(
Brian Silverman7bda6212018-08-05 11:42:11 -070057 name = "arm_frc_linux_gnueabi_repo",
58 build_file = "tools/cpp/arm-frc-linux-gnueabi/arm-frc-linux-gnueabi.BUILD",
59 sha256 = "875b23bec5138e09e3d21cc1ff2727ea3ecbec57509c37589514ba50f92979c7",
60 url = "http://frc971.org/Build-Dependencies/roborio-compiler-2018.tar.xz",
Austin Schuh55139fe2015-10-14 23:55:24 -070061)
Austin Schuhe456f152015-11-27 13:44:39 -080062
Brian Silverman0d57fc82016-01-24 21:02:53 -050063# Recompressed version of the one downloaded from Linaro at
64# <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>,
65# with workarounds for <https://github.com/bazelbuild/bazel/issues/574> and the
66# top-level folder stripped off.
67new_http_archive(
Brian Silverman7bda6212018-08-05 11:42:11 -070068 name = "linaro_linux_gcc_4_9_repo",
69 build_file = "compilers/linaro_linux_gcc_4.9.BUILD",
70 sha256 = "25e97bcb0af4fd7cd626d5bb1b303c7d2cb13acf2474e335e3d431d1a53fbb52",
71 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 -050072)
73
Austin Schuhe456f152015-11-27 13:44:39 -080074new_git_repository(
Brian Silverman7bda6212018-08-05 11:42:11 -070075 name = "python_gflags_repo",
76 build_file = "debian/gflags.BUILD",
77 commit = "41c4571864f0db5823e07715317e7388e94faabc",
78 remote = "https://github.com/gflags/python-gflags.git",
Austin Schuhe456f152015-11-27 13:44:39 -080079)
80
81bind(
Brian Silverman7bda6212018-08-05 11:42:11 -070082 name = "python-gflags",
83 actual = "@python_gflags_repo//:gflags",
Austin Schuhe456f152015-11-27 13:44:39 -080084)
85
86new_http_archive(
Brian Silverman7bda6212018-08-05 11:42:11 -070087 name = "python_glog_repo",
88 build_file = "debian/glog.BUILD",
89 sha256 = "953fd80122c48023d1148e6d1bda2763fcab59c8a81682bb298238a5935547b0",
90 strip_prefix = "glog-0.1",
91 url = "https://pypi.python.org/packages/source/g/glog/glog-0.1.tar.gz",
Austin Schuhe456f152015-11-27 13:44:39 -080092)
93
94bind(
Brian Silverman7bda6212018-08-05 11:42:11 -070095 name = "python-glog",
96 actual = "@python_glog_repo//:glog",
Austin Schuhe456f152015-11-27 13:44:39 -080097)
Brian Silvermancee260a2015-12-24 16:27:51 -080098
99new_http_archive(
Brian Silverman7bda6212018-08-05 11:42:11 -0700100 name = "allwpilib_ni_libraries_repo_2018",
101 build_file = "debian/ni-libraries-2018.BUILD",
102 sha256 = "05ef6701c77b83163b443aa956d151028861cc3fa29fdf2b6b77431b4a91bfb9",
103 strip_prefix = "ni-libraries",
104 url = "http://frc971.org/Build-Dependencies/allwpilib_ni-libraries_57e9fb3.tar.gz",
Austin Schuh94f51e92017-10-30 19:25:32 -0700105)
106
107new_http_archive(
Brian Silverman7bda6212018-08-05 11:42:11 -0700108 name = "allwpilib_ni_libraries_repo_2017",
109 build_file = "debian/ni-libraries-2017.BUILD",
110 sha256 = "67c1ad365fb712cc0acb0bf43465b831030523dc6f88daa02626994f644d91eb",
111 strip_prefix = "ni-libraries",
112 url = "http://frc971.org/Build-Dependencies/allwpilib_ni-libraries_e375b4a.tar.gz",
Brian Silvermane48dbc12017-02-04 20:06:29 -0800113)
114
Brian Silverman3fca9d72016-02-20 02:32:51 -0500115# Downloaded from:
116# https://pypi.python.org/packages/source/s/six/six-1.10.0.tar.gz
117new_http_archive(
Brian Silverman7bda6212018-08-05 11:42:11 -0700118 name = "six_repo",
119 build_file = "debian/six.BUILD",
120 sha256 = "105f8d68616f8248e24bf0e9372ef04d3cc10104f1980f54d57b2ce73a5ad56a",
121 strip_prefix = "six-1.10.0",
122 url = "http://frc971.org/Build-Dependencies/six-1.10.0.tar.gz",
Brian Silverman3fca9d72016-02-20 02:32:51 -0500123)
124
125# For protobuf. Don't use these.
126bind(
Brian Silverman7bda6212018-08-05 11:42:11 -0700127 name = "six",
128 actual = "@six_repo//:six",
Brian Silverman3fca9d72016-02-20 02:32:51 -0500129)
Brian Silverman7bda6212018-08-05 11:42:11 -0700130
Brian Silverman3fca9d72016-02-20 02:32:51 -0500131bind(
Brian Silverman7bda6212018-08-05 11:42:11 -0700132 name = "gtest",
133 actual = "//third_party/googletest:googlemock",
Brian Silverman3fca9d72016-02-20 02:32:51 -0500134)
Brian Silverman7bda6212018-08-05 11:42:11 -0700135
Brian Silverman3fca9d72016-02-20 02:32:51 -0500136bind(
Brian Silverman7bda6212018-08-05 11:42:11 -0700137 name = "gtest_main",
138 actual = "//third_party/googletest:googlemock_main",
Brian Silverman3fca9d72016-02-20 02:32:51 -0500139)
140
141new_http_archive(
Brian Silverman7bda6212018-08-05 11:42:11 -0700142 name = "python_import_helpers",
143 build_file = "third_party/python_import_helpers.BUILD",
144 sha256 = "71939a7d75585a57d2e99a33d39f391764d8f930f9a16acf32e00c5d3f432aa0",
145 url = "http://frc971.org/Build-Dependencies/empty.tar.gz",
Brian Silverman3fca9d72016-02-20 02:32:51 -0500146)
Brian Silverman8b638692017-06-26 23:10:26 -0700147
148new_local_repository(
Brian Silverman7bda6212018-08-05 11:42:11 -0700149 name = "libusb",
150 build_file = "debian/libusb.BUILD",
151 path = "/usr",
Brian Silverman8b638692017-06-26 23:10:26 -0700152)
Brian Silverman4aa83042018-01-05 12:47:31 -0800153
154# Created by combining libusb-1.0-0_2%3a1.0.19-1_amd64,
155# libusb-1.0-0-dev_2%3a1.0.19-1, and libudev1_215-17+deb8u7.
156new_http_archive(
Brian Silverman7bda6212018-08-05 11:42:11 -0700157 name = "libusb_1_0",
158 build_file = "debian/libusb-1.0.BUILD",
159 sha256 = "12acb30faacd10e9aa7f3a5e074701e167ce9bbd45694db37d13d55de5398816",
160 url = "http://frc971.org/Build-Dependencies/libusb-1.0-1.0.19.tar.xz",
Brian Silverman4aa83042018-01-05 12:47:31 -0800161)
162
163# Recompressed from libusb-1.0.21.7z.
164http_file(
Brian Silverman7bda6212018-08-05 11:42:11 -0700165 name = "libusb_1_0_windows",
166 sha256 = "fc2ba03992f343aabbaf9eb90559c6e00cdc6a2bd914d7cebea85857d5244015",
167 url = "http://frc971.org/Build-Dependencies/libusb-1.0.21-windows.tar.xz",
Brian Silverman4aa83042018-01-05 12:47:31 -0800168)
Brian Silvermand3ad1652018-02-18 22:16:29 -0500169
170# The data tarball of the same-named Debian package.
171new_http_archive(
172 name = "f2c",
Brian Silverman7bda6212018-08-05 11:42:11 -0700173 build_file = "debian/f2c.BUILD",
Brian Silvermand3ad1652018-02-18 22:16:29 -0500174 sha256 = "2c677437f8217a2e2b23e41b33995d0571644fc1bea46de858f8913a5053e3f4",
175 url = "http://frc971.org/Build-Dependencies/f2c_20100827-1_amd64.xz.tar.xz",
Brian Silvermand3ad1652018-02-18 22:16:29 -0500176)
177
178# Downloaded from http://www.netlib.org/clapack/.
179new_http_archive(
Brian Silverman7bda6212018-08-05 11:42:11 -0700180 name = "clapack",
181 build_file = "debian/clapack.BUILD",
182 sha256 = "6dc4c382164beec8aaed8fd2acc36ad24232c406eda6db462bd4c41d5e455fac",
183 strip_prefix = "CLAPACK-3.2.1/",
184 url = "http://frc971.org/Build-Dependencies/clapack-3.2.1.tgz",
185)
186
187new_http_archive(
188 name = "patch",
189 build_file = "debian/patch.BUILD",
190 sha256 = "b5ce139648a2e04f5585948ddad2fdae24dd4ee7976ac5a22d6ae7bd5674631e",
191 url = "http://frc971.org/Build-Dependencies/patch.tar.gz",
Brian Silvermand3ad1652018-02-18 22:16:29 -0500192)
Brian Silverman7297c0c2018-08-05 13:43:00 -0700193
194new_http_archive(
195 name = "pandoc",
196 build_file = "debian/pandoc.BUILD",
197 sha256 = "9f7a7adb3974a1f14715054c349ff3edc2909e920dbe3438fca437a83845f3c4",
198 url = "http://frc971.org/Build-Dependencies/pandoc.tar.gz",
199)