Brian Silverman | 7bda621 | 2018-08-05 11:42:11 -0700 | [diff] [blame] | 1 | workspace(name = "org_frc971") |
Brian Silverman | d1c19fb | 2016-07-07 00:10:57 -0700 | [diff] [blame] | 2 | |
Brian Silverman | 7bda621 | 2018-08-05 11:42:11 -0700 | [diff] [blame] | 3 | load( |
| 4 | "//debian:python.bzl", |
| 5 | python_debs = "files", |
| 6 | ) |
| 7 | load( |
| 8 | "//debian:clang.bzl", |
| 9 | clang_debs = "files", |
| 10 | ) |
| 11 | load( |
| 12 | "//debian:patch.bzl", |
| 13 | patch_debs = "files", |
| 14 | ) |
Brian Silverman | 7297c0c | 2018-08-05 13:43:00 -0700 | [diff] [blame] | 15 | load( |
| 16 | "//debian:pandoc.bzl", |
| 17 | pandoc_debs = "files", |
| 18 | ) |
Brian Silverman | 4f6ba44 | 2018-08-05 14:34:58 -0700 | [diff] [blame] | 19 | load( |
| 20 | "//debian:libusb.bzl", |
| 21 | libusb_debs = "files", |
| 22 | ) |
Brian Silverman | b80dc9f | 2018-08-05 14:59:24 -0700 | [diff] [blame] | 23 | load( |
| 24 | "//debian:mingw_compiler.bzl", |
| 25 | mingw_compiler_debs = "files", |
| 26 | ) |
Brian Silverman | 6470f44 | 2018-08-05 12:08:16 -0700 | [diff] [blame^] | 27 | load( |
| 28 | "//debian:patchelf.bzl", |
| 29 | patchelf_debs = "files", |
| 30 | ) |
| 31 | load( |
| 32 | "//debian:matplotlib.bzl", |
| 33 | matplotlib_debs = "files", |
| 34 | ) |
Philipp Schrader | 0e19c60 | 2018-03-07 21:07:22 -0800 | [diff] [blame] | 35 | load("//debian:packages.bzl", "generate_repositories_for_debs") |
| 36 | |
| 37 | generate_repositories_for_debs(python_debs) |
Brian Silverman | 7bda621 | 2018-08-05 11:42:11 -0700 | [diff] [blame] | 38 | |
Philipp Schrader | aedfc5c | 2018-03-10 19:32:30 -0800 | [diff] [blame] | 39 | generate_repositories_for_debs(clang_debs) |
Philipp Schrader | 0e19c60 | 2018-03-07 21:07:22 -0800 | [diff] [blame] | 40 | |
Brian Silverman | 7bda621 | 2018-08-05 11:42:11 -0700 | [diff] [blame] | 41 | generate_repositories_for_debs(patch_debs) |
| 42 | |
Brian Silverman | 7297c0c | 2018-08-05 13:43:00 -0700 | [diff] [blame] | 43 | generate_repositories_for_debs(pandoc_debs) |
| 44 | |
Brian Silverman | 4f6ba44 | 2018-08-05 14:34:58 -0700 | [diff] [blame] | 45 | generate_repositories_for_debs(libusb_debs) |
| 46 | |
Brian Silverman | b80dc9f | 2018-08-05 14:59:24 -0700 | [diff] [blame] | 47 | generate_repositories_for_debs(mingw_compiler_debs) |
| 48 | |
Brian Silverman | 6470f44 | 2018-08-05 12:08:16 -0700 | [diff] [blame^] | 49 | generate_repositories_for_debs(patchelf_debs) |
| 50 | |
| 51 | generate_repositories_for_debs(matplotlib_debs) |
| 52 | |
Philipp Schrader | 9fc87e0 | 2018-03-10 20:36:39 -0800 | [diff] [blame] | 53 | new_http_archive( |
Brian Silverman | 7bda621 | 2018-08-05 11:42:11 -0700 | [diff] [blame] | 54 | name = "python_repo", |
| 55 | build_file = "debian/python.BUILD", |
Brian Silverman | 6470f44 | 2018-08-05 12:08:16 -0700 | [diff] [blame^] | 56 | sha256 = "4ff939f90cffd8c72f9992d7420481e361b6016b0ce5c6fa701be0691d4e20fa", |
| 57 | url = "http://frc971.org/Build-Dependencies/python-2.tar.gz", |
Philipp Schrader | 9fc87e0 | 2018-03-10 20:36:39 -0800 | [diff] [blame] | 58 | ) |
| 59 | |
Philipp Schrader | 9b1790e | 2018-03-10 20:21:30 -0800 | [diff] [blame] | 60 | new_http_archive( |
Brian Silverman | 7bda621 | 2018-08-05 11:42:11 -0700 | [diff] [blame] | 61 | name = "clang_3p6_repo", |
| 62 | build_file = "tools/cpp/clang_3p6/clang_3p6.BUILD", |
| 63 | sha256 = "5ee9e04c55c2c99d0c0f83722102a49e98f485fc274f73111b33a7ac4e34e03e", |
| 64 | url = "http://frc971.org/Build-Dependencies/clang_3p6.tar.gz", |
Philipp Schrader | 9b1790e | 2018-03-10 20:21:30 -0800 | [diff] [blame] | 65 | ) |
| 66 | |
Austin Schuh | 4759ffc | 2015-10-07 20:39:56 -0700 | [diff] [blame] | 67 | new_local_repository( |
Brian Silverman | 7bda621 | 2018-08-05 11:42:11 -0700 | [diff] [blame] | 68 | name = "usr_repo", |
| 69 | build_file = "debian/usr.BUILD", |
| 70 | path = "/usr", |
Austin Schuh | 4759ffc | 2015-10-07 20:39:56 -0700 | [diff] [blame] | 71 | ) |
| 72 | |
Austin Schuh | 1f9aeb4 | 2015-11-12 23:34:49 -0800 | [diff] [blame] | 73 | new_git_repository( |
Brian Silverman | 7bda621 | 2018-08-05 11:42:11 -0700 | [diff] [blame] | 74 | name = "slycot_repo", |
| 75 | build_file = "debian/slycot.BUILD", |
| 76 | commit = "5af5f283cb23cbe23c4dfea4d5e56071bdbd6e70", |
| 77 | remote = "https://github.com/avventi/Slycot.git", |
Austin Schuh | 1f9aeb4 | 2015-11-12 23:34:49 -0800 | [diff] [blame] | 78 | ) |
| 79 | |
Austin Schuh | 55139fe | 2015-10-14 23:55:24 -0700 | [diff] [blame] | 80 | new_http_archive( |
Brian Silverman | 7bda621 | 2018-08-05 11:42:11 -0700 | [diff] [blame] | 81 | name = "arm_frc_linux_gnueabi_repo", |
| 82 | build_file = "tools/cpp/arm-frc-linux-gnueabi/arm-frc-linux-gnueabi.BUILD", |
| 83 | sha256 = "875b23bec5138e09e3d21cc1ff2727ea3ecbec57509c37589514ba50f92979c7", |
| 84 | url = "http://frc971.org/Build-Dependencies/roborio-compiler-2018.tar.xz", |
Austin Schuh | 55139fe | 2015-10-14 23:55:24 -0700 | [diff] [blame] | 85 | ) |
Austin Schuh | e456f15 | 2015-11-27 13:44:39 -0800 | [diff] [blame] | 86 | |
Brian Silverman | 0d57fc8 | 2016-01-24 21:02:53 -0500 | [diff] [blame] | 87 | # Recompressed version of the one downloaded from Linaro at |
| 88 | # <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>, |
| 89 | # with workarounds for <https://github.com/bazelbuild/bazel/issues/574> and the |
| 90 | # top-level folder stripped off. |
| 91 | new_http_archive( |
Brian Silverman | 7bda621 | 2018-08-05 11:42:11 -0700 | [diff] [blame] | 92 | name = "linaro_linux_gcc_4_9_repo", |
| 93 | build_file = "compilers/linaro_linux_gcc_4.9.BUILD", |
| 94 | sha256 = "25e97bcb0af4fd7cd626d5bb1b303c7d2cb13acf2474e335e3d431d1a53fbb52", |
| 95 | url = "http://frc971.org/Build-Dependencies/gcc-linaro-4.9-2015.05-x86_64_arm-linux-gnueabihf.tar.gz", |
Brian Silverman | 0d57fc8 | 2016-01-24 21:02:53 -0500 | [diff] [blame] | 96 | ) |
| 97 | |
Austin Schuh | e456f15 | 2015-11-27 13:44:39 -0800 | [diff] [blame] | 98 | new_git_repository( |
Brian Silverman | 7bda621 | 2018-08-05 11:42:11 -0700 | [diff] [blame] | 99 | name = "python_gflags_repo", |
| 100 | build_file = "debian/gflags.BUILD", |
| 101 | commit = "41c4571864f0db5823e07715317e7388e94faabc", |
| 102 | remote = "https://github.com/gflags/python-gflags.git", |
Austin Schuh | e456f15 | 2015-11-27 13:44:39 -0800 | [diff] [blame] | 103 | ) |
| 104 | |
| 105 | bind( |
Brian Silverman | 7bda621 | 2018-08-05 11:42:11 -0700 | [diff] [blame] | 106 | name = "python-gflags", |
| 107 | actual = "@python_gflags_repo//:gflags", |
Austin Schuh | e456f15 | 2015-11-27 13:44:39 -0800 | [diff] [blame] | 108 | ) |
| 109 | |
| 110 | new_http_archive( |
Brian Silverman | 7bda621 | 2018-08-05 11:42:11 -0700 | [diff] [blame] | 111 | name = "python_glog_repo", |
| 112 | build_file = "debian/glog.BUILD", |
| 113 | sha256 = "953fd80122c48023d1148e6d1bda2763fcab59c8a81682bb298238a5935547b0", |
| 114 | strip_prefix = "glog-0.1", |
| 115 | url = "https://pypi.python.org/packages/source/g/glog/glog-0.1.tar.gz", |
Austin Schuh | e456f15 | 2015-11-27 13:44:39 -0800 | [diff] [blame] | 116 | ) |
| 117 | |
| 118 | bind( |
Brian Silverman | 7bda621 | 2018-08-05 11:42:11 -0700 | [diff] [blame] | 119 | name = "python-glog", |
| 120 | actual = "@python_glog_repo//:glog", |
Austin Schuh | e456f15 | 2015-11-27 13:44:39 -0800 | [diff] [blame] | 121 | ) |
Brian Silverman | cee260a | 2015-12-24 16:27:51 -0800 | [diff] [blame] | 122 | |
| 123 | new_http_archive( |
Brian Silverman | 7bda621 | 2018-08-05 11:42:11 -0700 | [diff] [blame] | 124 | name = "allwpilib_ni_libraries_repo_2018", |
| 125 | build_file = "debian/ni-libraries-2018.BUILD", |
| 126 | sha256 = "05ef6701c77b83163b443aa956d151028861cc3fa29fdf2b6b77431b4a91bfb9", |
| 127 | strip_prefix = "ni-libraries", |
| 128 | url = "http://frc971.org/Build-Dependencies/allwpilib_ni-libraries_57e9fb3.tar.gz", |
Austin Schuh | 94f51e9 | 2017-10-30 19:25:32 -0700 | [diff] [blame] | 129 | ) |
| 130 | |
| 131 | new_http_archive( |
Brian Silverman | 7bda621 | 2018-08-05 11:42:11 -0700 | [diff] [blame] | 132 | name = "allwpilib_ni_libraries_repo_2017", |
| 133 | build_file = "debian/ni-libraries-2017.BUILD", |
| 134 | sha256 = "67c1ad365fb712cc0acb0bf43465b831030523dc6f88daa02626994f644d91eb", |
| 135 | strip_prefix = "ni-libraries", |
| 136 | url = "http://frc971.org/Build-Dependencies/allwpilib_ni-libraries_e375b4a.tar.gz", |
Brian Silverman | e48dbc1 | 2017-02-04 20:06:29 -0800 | [diff] [blame] | 137 | ) |
| 138 | |
Brian Silverman | 3fca9d7 | 2016-02-20 02:32:51 -0500 | [diff] [blame] | 139 | # Downloaded from: |
| 140 | # https://pypi.python.org/packages/source/s/six/six-1.10.0.tar.gz |
| 141 | new_http_archive( |
Brian Silverman | 7bda621 | 2018-08-05 11:42:11 -0700 | [diff] [blame] | 142 | name = "six_repo", |
| 143 | build_file = "debian/six.BUILD", |
| 144 | sha256 = "105f8d68616f8248e24bf0e9372ef04d3cc10104f1980f54d57b2ce73a5ad56a", |
| 145 | strip_prefix = "six-1.10.0", |
| 146 | url = "http://frc971.org/Build-Dependencies/six-1.10.0.tar.gz", |
Brian Silverman | 3fca9d7 | 2016-02-20 02:32:51 -0500 | [diff] [blame] | 147 | ) |
| 148 | |
| 149 | # For protobuf. Don't use these. |
| 150 | bind( |
Brian Silverman | 7bda621 | 2018-08-05 11:42:11 -0700 | [diff] [blame] | 151 | name = "six", |
| 152 | actual = "@six_repo//:six", |
Brian Silverman | 3fca9d7 | 2016-02-20 02:32:51 -0500 | [diff] [blame] | 153 | ) |
Brian Silverman | 7bda621 | 2018-08-05 11:42:11 -0700 | [diff] [blame] | 154 | |
Brian Silverman | 3fca9d7 | 2016-02-20 02:32:51 -0500 | [diff] [blame] | 155 | bind( |
Brian Silverman | 7bda621 | 2018-08-05 11:42:11 -0700 | [diff] [blame] | 156 | name = "gtest", |
| 157 | actual = "//third_party/googletest:googlemock", |
Brian Silverman | 3fca9d7 | 2016-02-20 02:32:51 -0500 | [diff] [blame] | 158 | ) |
Brian Silverman | 7bda621 | 2018-08-05 11:42:11 -0700 | [diff] [blame] | 159 | |
Brian Silverman | 3fca9d7 | 2016-02-20 02:32:51 -0500 | [diff] [blame] | 160 | bind( |
Brian Silverman | 7bda621 | 2018-08-05 11:42:11 -0700 | [diff] [blame] | 161 | name = "gtest_main", |
| 162 | actual = "//third_party/googletest:googlemock_main", |
Brian Silverman | 3fca9d7 | 2016-02-20 02:32:51 -0500 | [diff] [blame] | 163 | ) |
| 164 | |
| 165 | new_http_archive( |
Brian Silverman | 7bda621 | 2018-08-05 11:42:11 -0700 | [diff] [blame] | 166 | name = "python_import_helpers", |
| 167 | build_file = "third_party/python_import_helpers.BUILD", |
| 168 | sha256 = "71939a7d75585a57d2e99a33d39f391764d8f930f9a16acf32e00c5d3f432aa0", |
| 169 | url = "http://frc971.org/Build-Dependencies/empty.tar.gz", |
Brian Silverman | 3fca9d7 | 2016-02-20 02:32:51 -0500 | [diff] [blame] | 170 | ) |
Brian Silverman | 8b63869 | 2017-06-26 23:10:26 -0700 | [diff] [blame] | 171 | |
Brian Silverman | 4aa8304 | 2018-01-05 12:47:31 -0800 | [diff] [blame] | 172 | # Recompressed from libusb-1.0.21.7z. |
| 173 | http_file( |
Brian Silverman | 7bda621 | 2018-08-05 11:42:11 -0700 | [diff] [blame] | 174 | name = "libusb_1_0_windows", |
| 175 | sha256 = "fc2ba03992f343aabbaf9eb90559c6e00cdc6a2bd914d7cebea85857d5244015", |
| 176 | url = "http://frc971.org/Build-Dependencies/libusb-1.0.21-windows.tar.xz", |
Brian Silverman | 4aa8304 | 2018-01-05 12:47:31 -0800 | [diff] [blame] | 177 | ) |
Brian Silverman | d3ad165 | 2018-02-18 22:16:29 -0500 | [diff] [blame] | 178 | |
| 179 | # The data tarball of the same-named Debian package. |
| 180 | new_http_archive( |
| 181 | name = "f2c", |
Brian Silverman | 7bda621 | 2018-08-05 11:42:11 -0700 | [diff] [blame] | 182 | build_file = "debian/f2c.BUILD", |
Brian Silverman | d3ad165 | 2018-02-18 22:16:29 -0500 | [diff] [blame] | 183 | sha256 = "2c677437f8217a2e2b23e41b33995d0571644fc1bea46de858f8913a5053e3f4", |
| 184 | url = "http://frc971.org/Build-Dependencies/f2c_20100827-1_amd64.xz.tar.xz", |
Brian Silverman | d3ad165 | 2018-02-18 22:16:29 -0500 | [diff] [blame] | 185 | ) |
| 186 | |
| 187 | # Downloaded from http://www.netlib.org/clapack/. |
| 188 | new_http_archive( |
Brian Silverman | 7bda621 | 2018-08-05 11:42:11 -0700 | [diff] [blame] | 189 | name = "clapack", |
| 190 | build_file = "debian/clapack.BUILD", |
| 191 | sha256 = "6dc4c382164beec8aaed8fd2acc36ad24232c406eda6db462bd4c41d5e455fac", |
| 192 | strip_prefix = "CLAPACK-3.2.1/", |
| 193 | url = "http://frc971.org/Build-Dependencies/clapack-3.2.1.tgz", |
| 194 | ) |
| 195 | |
| 196 | new_http_archive( |
| 197 | name = "patch", |
| 198 | build_file = "debian/patch.BUILD", |
| 199 | sha256 = "b5ce139648a2e04f5585948ddad2fdae24dd4ee7976ac5a22d6ae7bd5674631e", |
| 200 | url = "http://frc971.org/Build-Dependencies/patch.tar.gz", |
Brian Silverman | d3ad165 | 2018-02-18 22:16:29 -0500 | [diff] [blame] | 201 | ) |
Brian Silverman | 7297c0c | 2018-08-05 13:43:00 -0700 | [diff] [blame] | 202 | |
| 203 | new_http_archive( |
| 204 | name = "pandoc", |
| 205 | build_file = "debian/pandoc.BUILD", |
| 206 | sha256 = "9f7a7adb3974a1f14715054c349ff3edc2909e920dbe3438fca437a83845f3c4", |
| 207 | url = "http://frc971.org/Build-Dependencies/pandoc.tar.gz", |
| 208 | ) |
Brian Silverman | 4f6ba44 | 2018-08-05 14:34:58 -0700 | [diff] [blame] | 209 | |
| 210 | new_http_archive( |
| 211 | name = "libusb", |
| 212 | build_file = "debian/libusb.BUILD", |
| 213 | sha256 = "3ca5cc2d317226f6646866ff9e8c443db3b0f6c82f828e800240982727531590", |
| 214 | url = "http://frc971.org/Build-Dependencies/libusb.tar.gz", |
| 215 | ) |
Brian Silverman | b80dc9f | 2018-08-05 14:59:24 -0700 | [diff] [blame] | 216 | |
| 217 | new_http_archive( |
| 218 | name = "mingw_compiler", |
| 219 | build_file = "debian/mingw_compiler.BUILD", |
| 220 | sha256 = "45e86a8460f2151a4f0306e7ae7b06761029d2412ee16f63d1e8d2d29354e378", |
| 221 | url = "http://frc971.org/Build-Dependencies/mingw_compiler.tar.gz", |
| 222 | ) |
Brian Silverman | 6470f44 | 2018-08-05 12:08:16 -0700 | [diff] [blame^] | 223 | |
| 224 | new_http_archive( |
| 225 | name = "matplotlib", |
| 226 | build_file = "debian/matplotlib.BUILD", |
| 227 | sha256 = "4aa1efb22f74859ab5c478ff743f2fd34291fc30635f4b7cf2d67550ed226117", |
| 228 | url = "http://frc971.org/Build-Dependencies/matplotlib.tar.gz", |
| 229 | ) |
| 230 | |
| 231 | new_http_archive( |
| 232 | name = "patchelf", |
| 233 | build_file = "debian/patchelf.BUILD", |
| 234 | sha256 = "bf8b709909d7d9e30815dd228eeded7dc282e3ce3919d0589ccbb56ac8632abc", |
| 235 | url = "http://frc971.org/Build-Dependencies/patchelf.tar.gz", |
| 236 | ) |