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 | |
Tyler Chatow | 2584bb1 | 2018-10-27 20:48:35 -0700 | [diff] [blame] | 3 | load("@bazel_tools//tools/build_defs/repo:git.bzl", "new_git_repository") |
Austin Schuh | f093fa5 | 2019-06-23 20:47:23 -0700 | [diff] [blame^] | 4 | load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive", "http_file") |
| 5 | |
Brian Silverman | 7bda621 | 2018-08-05 11:42:11 -0700 | [diff] [blame] | 6 | load( |
| 7 | "//debian:python.bzl", |
| 8 | python_debs = "files", |
| 9 | ) |
| 10 | load( |
| 11 | "//debian:clang.bzl", |
| 12 | clang_debs = "files", |
| 13 | ) |
| 14 | load( |
| 15 | "//debian:patch.bzl", |
| 16 | patch_debs = "files", |
| 17 | ) |
Brian Silverman | 7297c0c | 2018-08-05 13:43:00 -0700 | [diff] [blame] | 18 | load( |
| 19 | "//debian:pandoc.bzl", |
| 20 | pandoc_debs = "files", |
| 21 | ) |
Brian Silverman | 4f6ba44 | 2018-08-05 14:34:58 -0700 | [diff] [blame] | 22 | load( |
| 23 | "//debian:libusb.bzl", |
| 24 | libusb_debs = "files", |
| 25 | ) |
Brian Silverman | b80dc9f | 2018-08-05 14:59:24 -0700 | [diff] [blame] | 26 | load( |
| 27 | "//debian:mingw_compiler.bzl", |
| 28 | mingw_compiler_debs = "files", |
| 29 | ) |
Brian Silverman | 6470f44 | 2018-08-05 12:08:16 -0700 | [diff] [blame] | 30 | load( |
| 31 | "//debian:patchelf.bzl", |
| 32 | patchelf_debs = "files", |
| 33 | ) |
| 34 | load( |
| 35 | "//debian:matplotlib.bzl", |
| 36 | matplotlib_debs = "files", |
| 37 | ) |
Brian Silverman | 50b9ac0 | 2018-08-12 13:24:10 -0700 | [diff] [blame] | 38 | load( |
| 39 | "//debian:arm_frc_gnueabi_deps.bzl", |
| 40 | arm_frc_gnueabi_deps_debs = "files", |
| 41 | ) |
Brian Silverman | b0ebf1d | 2018-10-17 23:36:40 -0700 | [diff] [blame] | 42 | load( |
| 43 | "//debian:python_gtk.bzl", |
| 44 | python_gtk_debs = "files", |
| 45 | ) |
Austin Schuh | c9bcd4b | 2018-10-20 18:39:38 -0700 | [diff] [blame] | 46 | load( |
| 47 | "//debian:ruby.bzl", |
| 48 | ruby_debs = "files", |
| 49 | ) |
Philipp Schrader | 0e19c60 | 2018-03-07 21:07:22 -0800 | [diff] [blame] | 50 | load("//debian:packages.bzl", "generate_repositories_for_debs") |
| 51 | |
| 52 | generate_repositories_for_debs(python_debs) |
Brian Silverman | 7bda621 | 2018-08-05 11:42:11 -0700 | [diff] [blame] | 53 | |
Philipp Schrader | aedfc5c | 2018-03-10 19:32:30 -0800 | [diff] [blame] | 54 | generate_repositories_for_debs(clang_debs) |
Philipp Schrader | 0e19c60 | 2018-03-07 21:07:22 -0800 | [diff] [blame] | 55 | |
Brian Silverman | 7bda621 | 2018-08-05 11:42:11 -0700 | [diff] [blame] | 56 | generate_repositories_for_debs(patch_debs) |
| 57 | |
Brian Silverman | 7297c0c | 2018-08-05 13:43:00 -0700 | [diff] [blame] | 58 | generate_repositories_for_debs(pandoc_debs) |
| 59 | |
Brian Silverman | 4f6ba44 | 2018-08-05 14:34:58 -0700 | [diff] [blame] | 60 | generate_repositories_for_debs(libusb_debs) |
| 61 | |
Brian Silverman | b80dc9f | 2018-08-05 14:59:24 -0700 | [diff] [blame] | 62 | generate_repositories_for_debs(mingw_compiler_debs) |
| 63 | |
Brian Silverman | 6470f44 | 2018-08-05 12:08:16 -0700 | [diff] [blame] | 64 | generate_repositories_for_debs(patchelf_debs) |
| 65 | |
| 66 | generate_repositories_for_debs(matplotlib_debs) |
| 67 | |
Brian Silverman | 50b9ac0 | 2018-08-12 13:24:10 -0700 | [diff] [blame] | 68 | generate_repositories_for_debs(arm_frc_gnueabi_deps_debs) |
| 69 | |
Brian Silverman | b0ebf1d | 2018-10-17 23:36:40 -0700 | [diff] [blame] | 70 | generate_repositories_for_debs(python_gtk_debs) |
| 71 | |
Austin Schuh | c9bcd4b | 2018-10-20 18:39:38 -0700 | [diff] [blame] | 72 | generate_repositories_for_debs(ruby_debs) |
| 73 | |
Austin Schuh | f093fa5 | 2019-06-23 20:47:23 -0700 | [diff] [blame^] | 74 | http_archive( |
Brian Silverman | 7bda621 | 2018-08-05 11:42:11 -0700 | [diff] [blame] | 75 | name = "python_repo", |
Austin Schuh | f093fa5 | 2019-06-23 20:47:23 -0700 | [diff] [blame^] | 76 | build_file = "@//debian:python.BUILD", |
Brian Silverman | 6470f44 | 2018-08-05 12:08:16 -0700 | [diff] [blame] | 77 | sha256 = "4ff939f90cffd8c72f9992d7420481e361b6016b0ce5c6fa701be0691d4e20fa", |
johnp | 8a384f9 | 2019-01-03 13:10:00 -0800 | [diff] [blame] | 78 | url = "http://www.frc971.org/Build-Dependencies/python-2.tar.gz", |
Philipp Schrader | 9fc87e0 | 2018-03-10 20:36:39 -0800 | [diff] [blame] | 79 | ) |
| 80 | |
Austin Schuh | f093fa5 | 2019-06-23 20:47:23 -0700 | [diff] [blame^] | 81 | http_archive( |
Brian Silverman | 7bda621 | 2018-08-05 11:42:11 -0700 | [diff] [blame] | 82 | name = "clang_3p6_repo", |
Austin Schuh | f093fa5 | 2019-06-23 20:47:23 -0700 | [diff] [blame^] | 83 | build_file = "@//tools/cpp/clang_3p6:clang_3p6.BUILD", |
Brian Silverman | 7bda621 | 2018-08-05 11:42:11 -0700 | [diff] [blame] | 84 | sha256 = "5ee9e04c55c2c99d0c0f83722102a49e98f485fc274f73111b33a7ac4e34e03e", |
johnp | 8a384f9 | 2019-01-03 13:10:00 -0800 | [diff] [blame] | 85 | url = "http://www.frc971.org/Build-Dependencies/clang_3p6.tar.gz", |
Philipp Schrader | 9b1790e | 2018-03-10 20:21:30 -0800 | [diff] [blame] | 86 | ) |
| 87 | |
Austin Schuh | 4759ffc | 2015-10-07 20:39:56 -0700 | [diff] [blame] | 88 | new_local_repository( |
Brian Silverman | 7bda621 | 2018-08-05 11:42:11 -0700 | [diff] [blame] | 89 | name = "usr_repo", |
Austin Schuh | f093fa5 | 2019-06-23 20:47:23 -0700 | [diff] [blame^] | 90 | build_file = "@//debian:usr.BUILD", |
Brian Silverman | 7bda621 | 2018-08-05 11:42:11 -0700 | [diff] [blame] | 91 | path = "/usr", |
Austin Schuh | 4759ffc | 2015-10-07 20:39:56 -0700 | [diff] [blame] | 92 | ) |
| 93 | |
Austin Schuh | 1f9aeb4 | 2015-11-12 23:34:49 -0800 | [diff] [blame] | 94 | new_git_repository( |
Brian Silverman | 7bda621 | 2018-08-05 11:42:11 -0700 | [diff] [blame] | 95 | name = "slycot_repo", |
Tyler Chatow | 2584bb1 | 2018-10-27 20:48:35 -0700 | [diff] [blame] | 96 | build_file = "@//debian:slycot.BUILD", |
Brian Silverman | 7bda621 | 2018-08-05 11:42:11 -0700 | [diff] [blame] | 97 | commit = "5af5f283cb23cbe23c4dfea4d5e56071bdbd6e70", |
| 98 | remote = "https://github.com/avventi/Slycot.git", |
Austin Schuh | 1f9aeb4 | 2015-11-12 23:34:49 -0800 | [diff] [blame] | 99 | ) |
| 100 | |
Austin Schuh | f093fa5 | 2019-06-23 20:47:23 -0700 | [diff] [blame^] | 101 | http_archive( |
Austin Schuh | c9bcd4b | 2018-10-20 18:39:38 -0700 | [diff] [blame] | 102 | name = "ruby_repo", |
Austin Schuh | f093fa5 | 2019-06-23 20:47:23 -0700 | [diff] [blame^] | 103 | build_file = "@//debian:ruby.BUILD", |
Austin Schuh | c9bcd4b | 2018-10-20 18:39:38 -0700 | [diff] [blame] | 104 | sha256 = "d3e21cca0abcad933de0d4095da35344a60475d1f5828ee99283ed4250ee1320", |
johnp | 8a384f9 | 2019-01-03 13:10:00 -0800 | [diff] [blame] | 105 | url = "http://www.frc971.org/Build-Dependencies/ruby.tar.gz", |
Austin Schuh | c9bcd4b | 2018-10-20 18:39:38 -0700 | [diff] [blame] | 106 | ) |
| 107 | |
Austin Schuh | f093fa5 | 2019-06-23 20:47:23 -0700 | [diff] [blame^] | 108 | http_archive( |
Brian Silverman | 7bda621 | 2018-08-05 11:42:11 -0700 | [diff] [blame] | 109 | name = "arm_frc_linux_gnueabi_repo", |
Austin Schuh | f093fa5 | 2019-06-23 20:47:23 -0700 | [diff] [blame^] | 110 | build_file = "@//tools/cpp/arm-frc-linux-gnueabi:arm-frc-linux-gnueabi.BUILD", |
Austin Schuh | f6b9463 | 2019-02-02 22:11:27 -0800 | [diff] [blame] | 111 | sha256 = "d627c5e437db99780a938392499ef71aecbfb0e9b3fffd53bde7e402a6af4f32", |
| 112 | strip_prefix = "frc2019/roborio/", |
| 113 | url = "http://www.frc971.org/Build-Dependencies/FRC-2019-Linux-Toolchain-6.3.0-v2019-3.tar.gz", |
Austin Schuh | 55139fe | 2015-10-14 23:55:24 -0700 | [diff] [blame] | 114 | ) |
Austin Schuh | e456f15 | 2015-11-27 13:44:39 -0800 | [diff] [blame] | 115 | |
Brian Silverman | 0d57fc8 | 2016-01-24 21:02:53 -0500 | [diff] [blame] | 116 | # Recompressed version of the one downloaded from Linaro at |
| 117 | # <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>, |
| 118 | # with workarounds for <https://github.com/bazelbuild/bazel/issues/574> and the |
| 119 | # top-level folder stripped off. |
Austin Schuh | f093fa5 | 2019-06-23 20:47:23 -0700 | [diff] [blame^] | 120 | http_archive( |
Brian Silverman | 7bda621 | 2018-08-05 11:42:11 -0700 | [diff] [blame] | 121 | name = "linaro_linux_gcc_4_9_repo", |
Austin Schuh | f093fa5 | 2019-06-23 20:47:23 -0700 | [diff] [blame^] | 122 | build_file = "@//:compilers/linaro_linux_gcc_4.9.BUILD", |
Brian Silverman | 7bda621 | 2018-08-05 11:42:11 -0700 | [diff] [blame] | 123 | sha256 = "25e97bcb0af4fd7cd626d5bb1b303c7d2cb13acf2474e335e3d431d1a53fbb52", |
johnp | 8a384f9 | 2019-01-03 13:10:00 -0800 | [diff] [blame] | 124 | url = "http://www.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] | 125 | ) |
| 126 | |
Austin Schuh | e456f15 | 2015-11-27 13:44:39 -0800 | [diff] [blame] | 127 | new_git_repository( |
Brian Silverman | 7bda621 | 2018-08-05 11:42:11 -0700 | [diff] [blame] | 128 | name = "python_gflags_repo", |
Tyler Chatow | 2584bb1 | 2018-10-27 20:48:35 -0700 | [diff] [blame] | 129 | build_file = "@//debian:gflags.BUILD", |
Brian Silverman | 7bda621 | 2018-08-05 11:42:11 -0700 | [diff] [blame] | 130 | commit = "41c4571864f0db5823e07715317e7388e94faabc", |
| 131 | remote = "https://github.com/gflags/python-gflags.git", |
Austin Schuh | e456f15 | 2015-11-27 13:44:39 -0800 | [diff] [blame] | 132 | ) |
| 133 | |
| 134 | bind( |
Brian Silverman | 7bda621 | 2018-08-05 11:42:11 -0700 | [diff] [blame] | 135 | name = "python-gflags", |
| 136 | actual = "@python_gflags_repo//:gflags", |
Austin Schuh | e456f15 | 2015-11-27 13:44:39 -0800 | [diff] [blame] | 137 | ) |
| 138 | |
Brian Silverman | 16a923c | 2018-10-31 19:40:51 -0700 | [diff] [blame] | 139 | local_repository( |
| 140 | name = "com_github_gflags_gflags", |
| 141 | path = "third_party/gflags", |
| 142 | ) |
| 143 | |
Austin Schuh | f093fa5 | 2019-06-23 20:47:23 -0700 | [diff] [blame^] | 144 | http_archive( |
Brian Silverman | 7bda621 | 2018-08-05 11:42:11 -0700 | [diff] [blame] | 145 | name = "python_glog_repo", |
Austin Schuh | f093fa5 | 2019-06-23 20:47:23 -0700 | [diff] [blame^] | 146 | build_file = "@//debian:glog.BUILD", |
Brian Silverman | 7bda621 | 2018-08-05 11:42:11 -0700 | [diff] [blame] | 147 | sha256 = "953fd80122c48023d1148e6d1bda2763fcab59c8a81682bb298238a5935547b0", |
| 148 | strip_prefix = "glog-0.1", |
| 149 | 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] | 150 | ) |
| 151 | |
| 152 | bind( |
Brian Silverman | 7bda621 | 2018-08-05 11:42:11 -0700 | [diff] [blame] | 153 | name = "python-glog", |
| 154 | actual = "@python_glog_repo//:glog", |
Austin Schuh | e456f15 | 2015-11-27 13:44:39 -0800 | [diff] [blame] | 155 | ) |
Brian Silverman | cee260a | 2015-12-24 16:27:51 -0800 | [diff] [blame] | 156 | |
Brian Silverman | 82a12b9 | 2019-01-19 21:52:10 -0800 | [diff] [blame] | 157 | # Generated with: |
| 158 | # git fetch https://github.com/wpilibsuite/ni-libraries master |
| 159 | # git archive --output=allwpilib_ni-libraries_4785480.tar.gz --format=tar.gz 4785480 |
Austin Schuh | f093fa5 | 2019-06-23 20:47:23 -0700 | [diff] [blame^] | 160 | http_archive( |
Brian Silverman | 82a12b9 | 2019-01-19 21:52:10 -0800 | [diff] [blame] | 161 | name = "allwpilib_ni_libraries_2019", |
Austin Schuh | f093fa5 | 2019-06-23 20:47:23 -0700 | [diff] [blame^] | 162 | build_file = "@//debian:ni-libraries-2019.BUILD", |
Brian Silverman | 82a12b9 | 2019-01-19 21:52:10 -0800 | [diff] [blame] | 163 | sha256 = "2cdcde3391f36877b7533e15d0f36baf696b27c1107b77192a8200e26f13278c", |
| 164 | url = "http://www.frc971.org/Build-Dependencies/allwpilib_ni-libraries_4785480.tar.gz", |
| 165 | ) |
| 166 | |
Brian Silverman | 3fca9d7 | 2016-02-20 02:32:51 -0500 | [diff] [blame] | 167 | # Downloaded from: |
| 168 | # https://pypi.python.org/packages/source/s/six/six-1.10.0.tar.gz |
Austin Schuh | f093fa5 | 2019-06-23 20:47:23 -0700 | [diff] [blame^] | 169 | http_archive( |
Brian Silverman | 7bda621 | 2018-08-05 11:42:11 -0700 | [diff] [blame] | 170 | name = "six_repo", |
Austin Schuh | f093fa5 | 2019-06-23 20:47:23 -0700 | [diff] [blame^] | 171 | build_file = "@//debian:six.BUILD", |
Brian Silverman | 7bda621 | 2018-08-05 11:42:11 -0700 | [diff] [blame] | 172 | sha256 = "105f8d68616f8248e24bf0e9372ef04d3cc10104f1980f54d57b2ce73a5ad56a", |
| 173 | strip_prefix = "six-1.10.0", |
johnp | 8a384f9 | 2019-01-03 13:10:00 -0800 | [diff] [blame] | 174 | url = "http://www.frc971.org/Build-Dependencies/six-1.10.0.tar.gz", |
Brian Silverman | 3fca9d7 | 2016-02-20 02:32:51 -0500 | [diff] [blame] | 175 | ) |
| 176 | |
| 177 | # For protobuf. Don't use these. |
| 178 | bind( |
Brian Silverman | 7bda621 | 2018-08-05 11:42:11 -0700 | [diff] [blame] | 179 | name = "six", |
| 180 | actual = "@six_repo//:six", |
Brian Silverman | 3fca9d7 | 2016-02-20 02:32:51 -0500 | [diff] [blame] | 181 | ) |
Brian Silverman | 7bda621 | 2018-08-05 11:42:11 -0700 | [diff] [blame] | 182 | |
Brian Silverman | 3fca9d7 | 2016-02-20 02:32:51 -0500 | [diff] [blame] | 183 | bind( |
Brian Silverman | 7bda621 | 2018-08-05 11:42:11 -0700 | [diff] [blame] | 184 | name = "gtest", |
| 185 | actual = "//third_party/googletest:googlemock", |
Brian Silverman | 3fca9d7 | 2016-02-20 02:32:51 -0500 | [diff] [blame] | 186 | ) |
Brian Silverman | 7bda621 | 2018-08-05 11:42:11 -0700 | [diff] [blame] | 187 | |
Brian Silverman | 3fca9d7 | 2016-02-20 02:32:51 -0500 | [diff] [blame] | 188 | bind( |
Brian Silverman | 7bda621 | 2018-08-05 11:42:11 -0700 | [diff] [blame] | 189 | name = "gtest_main", |
| 190 | actual = "//third_party/googletest:googlemock_main", |
Brian Silverman | 3fca9d7 | 2016-02-20 02:32:51 -0500 | [diff] [blame] | 191 | ) |
| 192 | |
Brian Silverman | 4aa8304 | 2018-01-05 12:47:31 -0800 | [diff] [blame] | 193 | # Recompressed from libusb-1.0.21.7z. |
| 194 | http_file( |
Brian Silverman | 7bda621 | 2018-08-05 11:42:11 -0700 | [diff] [blame] | 195 | name = "libusb_1_0_windows", |
| 196 | sha256 = "fc2ba03992f343aabbaf9eb90559c6e00cdc6a2bd914d7cebea85857d5244015", |
Austin Schuh | f093fa5 | 2019-06-23 20:47:23 -0700 | [diff] [blame^] | 197 | urls = ["http://www.frc971.org/Build-Dependencies/libusb-1.0.21-windows.tar.xz"], |
| 198 | downloaded_file_path = "libusb-1.0.21-windows.tar.xz", |
Brian Silverman | 4aa8304 | 2018-01-05 12:47:31 -0800 | [diff] [blame] | 199 | ) |
Brian Silverman | d3ad165 | 2018-02-18 22:16:29 -0500 | [diff] [blame] | 200 | |
| 201 | # The data tarball of the same-named Debian package. |
Austin Schuh | f093fa5 | 2019-06-23 20:47:23 -0700 | [diff] [blame^] | 202 | http_archive( |
Brian Silverman | d3ad165 | 2018-02-18 22:16:29 -0500 | [diff] [blame] | 203 | name = "f2c", |
Austin Schuh | f093fa5 | 2019-06-23 20:47:23 -0700 | [diff] [blame^] | 204 | build_file = "@//debian:f2c.BUILD", |
Brian Silverman | d3ad165 | 2018-02-18 22:16:29 -0500 | [diff] [blame] | 205 | sha256 = "2c677437f8217a2e2b23e41b33995d0571644fc1bea46de858f8913a5053e3f4", |
johnp | 8a384f9 | 2019-01-03 13:10:00 -0800 | [diff] [blame] | 206 | url = "http://www.frc971.org/Build-Dependencies/f2c_20100827-1_amd64.xz.tar.xz", |
Brian Silverman | d3ad165 | 2018-02-18 22:16:29 -0500 | [diff] [blame] | 207 | ) |
| 208 | |
| 209 | # Downloaded from http://www.netlib.org/clapack/. |
Austin Schuh | f093fa5 | 2019-06-23 20:47:23 -0700 | [diff] [blame^] | 210 | http_archive( |
Brian Silverman | 7bda621 | 2018-08-05 11:42:11 -0700 | [diff] [blame] | 211 | name = "clapack", |
Austin Schuh | f093fa5 | 2019-06-23 20:47:23 -0700 | [diff] [blame^] | 212 | build_file = "@//debian:clapack.BUILD", |
Brian Silverman | 7bda621 | 2018-08-05 11:42:11 -0700 | [diff] [blame] | 213 | sha256 = "6dc4c382164beec8aaed8fd2acc36ad24232c406eda6db462bd4c41d5e455fac", |
| 214 | strip_prefix = "CLAPACK-3.2.1/", |
johnp | 8a384f9 | 2019-01-03 13:10:00 -0800 | [diff] [blame] | 215 | url = "http://www.frc971.org/Build-Dependencies/clapack-3.2.1.tgz", |
Brian Silverman | 7bda621 | 2018-08-05 11:42:11 -0700 | [diff] [blame] | 216 | ) |
| 217 | |
Austin Schuh | f093fa5 | 2019-06-23 20:47:23 -0700 | [diff] [blame^] | 218 | http_archive( |
Brian Silverman | 7bda621 | 2018-08-05 11:42:11 -0700 | [diff] [blame] | 219 | name = "patch", |
Austin Schuh | f093fa5 | 2019-06-23 20:47:23 -0700 | [diff] [blame^] | 220 | build_file = "@//debian:patch.BUILD", |
Brian Silverman | 7bda621 | 2018-08-05 11:42:11 -0700 | [diff] [blame] | 221 | sha256 = "b5ce139648a2e04f5585948ddad2fdae24dd4ee7976ac5a22d6ae7bd5674631e", |
johnp | 8a384f9 | 2019-01-03 13:10:00 -0800 | [diff] [blame] | 222 | url = "http://www.frc971.org/Build-Dependencies/patch.tar.gz", |
Brian Silverman | d3ad165 | 2018-02-18 22:16:29 -0500 | [diff] [blame] | 223 | ) |
Brian Silverman | 7297c0c | 2018-08-05 13:43:00 -0700 | [diff] [blame] | 224 | |
Austin Schuh | f093fa5 | 2019-06-23 20:47:23 -0700 | [diff] [blame^] | 225 | http_archive( |
Brian Silverman | 7297c0c | 2018-08-05 13:43:00 -0700 | [diff] [blame] | 226 | name = "pandoc", |
Austin Schuh | f093fa5 | 2019-06-23 20:47:23 -0700 | [diff] [blame^] | 227 | build_file = "@//debian:pandoc.BUILD", |
Brian Silverman | 7297c0c | 2018-08-05 13:43:00 -0700 | [diff] [blame] | 228 | sha256 = "9f7a7adb3974a1f14715054c349ff3edc2909e920dbe3438fca437a83845f3c4", |
johnp | 8a384f9 | 2019-01-03 13:10:00 -0800 | [diff] [blame] | 229 | url = "http://www.frc971.org/Build-Dependencies/pandoc.tar.gz", |
Brian Silverman | 7297c0c | 2018-08-05 13:43:00 -0700 | [diff] [blame] | 230 | ) |
Brian Silverman | 4f6ba44 | 2018-08-05 14:34:58 -0700 | [diff] [blame] | 231 | |
Austin Schuh | f093fa5 | 2019-06-23 20:47:23 -0700 | [diff] [blame^] | 232 | http_archive( |
Brian Silverman | 4f6ba44 | 2018-08-05 14:34:58 -0700 | [diff] [blame] | 233 | name = "libusb", |
Austin Schuh | f093fa5 | 2019-06-23 20:47:23 -0700 | [diff] [blame^] | 234 | build_file = "@//debian:libusb.BUILD", |
Brian Silverman | 4f6ba44 | 2018-08-05 14:34:58 -0700 | [diff] [blame] | 235 | sha256 = "3ca5cc2d317226f6646866ff9e8c443db3b0f6c82f828e800240982727531590", |
johnp | 8a384f9 | 2019-01-03 13:10:00 -0800 | [diff] [blame] | 236 | url = "http://www.frc971.org/Build-Dependencies/libusb.tar.gz", |
Brian Silverman | 4f6ba44 | 2018-08-05 14:34:58 -0700 | [diff] [blame] | 237 | ) |
Brian Silverman | b80dc9f | 2018-08-05 14:59:24 -0700 | [diff] [blame] | 238 | |
Austin Schuh | f093fa5 | 2019-06-23 20:47:23 -0700 | [diff] [blame^] | 239 | http_archive( |
Brian Silverman | b80dc9f | 2018-08-05 14:59:24 -0700 | [diff] [blame] | 240 | name = "mingw_compiler", |
Austin Schuh | f093fa5 | 2019-06-23 20:47:23 -0700 | [diff] [blame^] | 241 | build_file = "@//debian:mingw_compiler.BUILD", |
Brian Silverman | b80dc9f | 2018-08-05 14:59:24 -0700 | [diff] [blame] | 242 | sha256 = "45e86a8460f2151a4f0306e7ae7b06761029d2412ee16f63d1e8d2d29354e378", |
johnp | 8a384f9 | 2019-01-03 13:10:00 -0800 | [diff] [blame] | 243 | url = "http://www.frc971.org/Build-Dependencies/mingw_compiler.tar.gz", |
Brian Silverman | b80dc9f | 2018-08-05 14:59:24 -0700 | [diff] [blame] | 244 | ) |
Brian Silverman | 6470f44 | 2018-08-05 12:08:16 -0700 | [diff] [blame] | 245 | |
Austin Schuh | f093fa5 | 2019-06-23 20:47:23 -0700 | [diff] [blame^] | 246 | http_archive( |
Brian Silverman | 6470f44 | 2018-08-05 12:08:16 -0700 | [diff] [blame] | 247 | name = "matplotlib", |
Austin Schuh | f093fa5 | 2019-06-23 20:47:23 -0700 | [diff] [blame^] | 248 | build_file = "@//debian:matplotlib.BUILD", |
Brian Silverman | b0ebf1d | 2018-10-17 23:36:40 -0700 | [diff] [blame] | 249 | sha256 = "dc8e04123a93180bf89727bf6b5a5a0f6d210b6c1c5eaec148f7f8183abbce24", |
johnp | 8a384f9 | 2019-01-03 13:10:00 -0800 | [diff] [blame] | 250 | url = "http://www.frc971.org/Build-Dependencies/matplotlib-2.tar.gz", |
Brian Silverman | 6470f44 | 2018-08-05 12:08:16 -0700 | [diff] [blame] | 251 | ) |
| 252 | |
Austin Schuh | f093fa5 | 2019-06-23 20:47:23 -0700 | [diff] [blame^] | 253 | http_archive( |
Brian Silverman | 6470f44 | 2018-08-05 12:08:16 -0700 | [diff] [blame] | 254 | name = "patchelf", |
Austin Schuh | f093fa5 | 2019-06-23 20:47:23 -0700 | [diff] [blame^] | 255 | build_file = "@//debian:patchelf.BUILD", |
Brian Silverman | 6470f44 | 2018-08-05 12:08:16 -0700 | [diff] [blame] | 256 | sha256 = "bf8b709909d7d9e30815dd228eeded7dc282e3ce3919d0589ccbb56ac8632abc", |
johnp | 8a384f9 | 2019-01-03 13:10:00 -0800 | [diff] [blame] | 257 | url = "http://www.frc971.org/Build-Dependencies/patchelf.tar.gz", |
Brian Silverman | 6470f44 | 2018-08-05 12:08:16 -0700 | [diff] [blame] | 258 | ) |
Brian Silverman | 50b9ac0 | 2018-08-12 13:24:10 -0700 | [diff] [blame] | 259 | |
Austin Schuh | f093fa5 | 2019-06-23 20:47:23 -0700 | [diff] [blame^] | 260 | http_archive( |
Brian Silverman | 50b9ac0 | 2018-08-12 13:24:10 -0700 | [diff] [blame] | 261 | name = "arm_frc_gnueabi_deps", |
Austin Schuh | f093fa5 | 2019-06-23 20:47:23 -0700 | [diff] [blame^] | 262 | build_file = "@//debian:arm_frc_gnueabi_deps.BUILD", |
Brian Silverman | 50b9ac0 | 2018-08-12 13:24:10 -0700 | [diff] [blame] | 263 | sha256 = "4b26fe45010817dc136488ee1604ade21bd7c264c29f17d864fc6eba9d7442c4", |
johnp | 8a384f9 | 2019-01-03 13:10:00 -0800 | [diff] [blame] | 264 | url = "http://www.frc971.org/Build-Dependencies/arm_frc_gnueabi_deps.tar.gz", |
Brian Silverman | 50b9ac0 | 2018-08-12 13:24:10 -0700 | [diff] [blame] | 265 | ) |
Brian Silverman | 6c8b88b | 2018-09-03 18:17:02 -0700 | [diff] [blame] | 266 | |
Austin Schuh | f093fa5 | 2019-06-23 20:47:23 -0700 | [diff] [blame^] | 267 | http_archive( |
Brian Silverman | b0ebf1d | 2018-10-17 23:36:40 -0700 | [diff] [blame] | 268 | name = "python_gtk", |
Austin Schuh | f093fa5 | 2019-06-23 20:47:23 -0700 | [diff] [blame^] | 269 | build_file = "@//debian:python_gtk.BUILD", |
Brian Silverman | b0ebf1d | 2018-10-17 23:36:40 -0700 | [diff] [blame] | 270 | sha256 = "850f5c1521b94c5c049c44d9107cd8ae9110696fbf054d2cb48bae9620fd4d23", |
johnp | 8a384f9 | 2019-01-03 13:10:00 -0800 | [diff] [blame] | 271 | url = "http://www.frc971.org/Build-Dependencies/python_gtk.tar.gz", |
Brian Silverman | b0ebf1d | 2018-10-17 23:36:40 -0700 | [diff] [blame] | 272 | ) |
| 273 | |
Brian Silverman | 6c8b88b | 2018-09-03 18:17:02 -0700 | [diff] [blame] | 274 | # Downloaded from |
| 275 | # 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 |
Austin Schuh | f093fa5 | 2019-06-23 20:47:23 -0700 | [diff] [blame^] | 276 | http_archive( |
Brian Silverman | 6c8b88b | 2018-09-03 18:17:02 -0700 | [diff] [blame] | 277 | name = "gcc_arm_none_eabi", |
Austin Schuh | f093fa5 | 2019-06-23 20:47:23 -0700 | [diff] [blame^] | 278 | build_file = "@//:compilers/gcc_arm_none_eabi.BUILD", |
Brian Silverman | 6c8b88b | 2018-09-03 18:17:02 -0700 | [diff] [blame] | 279 | sha256 = "bb17109f0ee697254a5d4ae6e5e01440e3ea8f0277f2e8169bf95d07c7d5fe69", |
| 280 | strip_prefix = "gcc-arm-none-eabi-7-2018-q2-update/", |
johnp | 8a384f9 | 2019-01-03 13:10:00 -0800 | [diff] [blame] | 281 | url = "http://www.frc971.org/Build-Dependencies/gcc-arm-none-eabi-7-2018-q2-update-linux.tar.bz2", |
Brian Silverman | 6c8b88b | 2018-09-03 18:17:02 -0700 | [diff] [blame] | 282 | ) |
Austin Schuh | ad59622 | 2018-01-31 23:34:03 -0800 | [diff] [blame] | 283 | |
Austin Schuh | f093fa5 | 2019-06-23 20:47:23 -0700 | [diff] [blame^] | 284 | http_archive( |
Austin Schuh | ad59622 | 2018-01-31 23:34:03 -0800 | [diff] [blame] | 285 | name = "cgal_repo", |
Austin Schuh | f093fa5 | 2019-06-23 20:47:23 -0700 | [diff] [blame^] | 286 | build_file = "@//debian:cgal.BUILD", |
Austin Schuh | ad59622 | 2018-01-31 23:34:03 -0800 | [diff] [blame] | 287 | sha256 = "d564dda558570344b4caa66c5bae2cdae9ef68e07829d64f5651b25f2c6a0e9e", |
johnp | 8a384f9 | 2019-01-03 13:10:00 -0800 | [diff] [blame] | 288 | url = "http://www.frc971.org/Build-Dependencies/cgal-dev-4.5-2.tar.gz", |
Austin Schuh | ad59622 | 2018-01-31 23:34:03 -0800 | [diff] [blame] | 289 | ) |
Austin Schuh | e18baff | 2018-10-20 17:40:42 -0700 | [diff] [blame] | 290 | |
| 291 | # Java9 JDK. |
Austin Schuh | f093fa5 | 2019-06-23 20:47:23 -0700 | [diff] [blame^] | 292 | http_archive( |
Austin Schuh | e18baff | 2018-10-20 17:40:42 -0700 | [diff] [blame] | 293 | name = "openjdk_linux_archive", |
| 294 | build_file_content = """ |
| 295 | java_runtime( |
| 296 | name = 'jdk', |
| 297 | srcs = glob(['**']), |
Austin Schuh | f6b9463 | 2019-02-02 22:11:27 -0800 | [diff] [blame] | 298 | visibility = ['//visibility:public'], |
Austin Schuh | e18baff | 2018-10-20 17:40:42 -0700 | [diff] [blame] | 299 | ) |
| 300 | """, |
| 301 | sha256 = "f27cb933de4f9e7fe9a703486cf44c84bc8e9f138be0c270c9e5716a32367e87", |
| 302 | strip_prefix = "zulu9.0.7.1-jdk9.0.7-linux_x64-allmodules", |
| 303 | urls = [ |
johnp | 8a384f9 | 2019-01-03 13:10:00 -0800 | [diff] [blame] | 304 | "http://www.frc971.org/Build-Dependencies/zulu9.0.7.1-jdk9.0.7-linux_x64-allmodules.tar.gz", |
Austin Schuh | e18baff | 2018-10-20 17:40:42 -0700 | [diff] [blame] | 305 | ], |
| 306 | ) |
| 307 | |
Austin Schuh | f972444 | 2018-10-28 20:30:21 -0700 | [diff] [blame] | 308 | local_repository( |
| 309 | name = "com_google_protobuf", |
| 310 | path = "third_party/protobuf", |
Brian Silverman | 9c614bc | 2016-02-15 20:20:02 -0500 | [diff] [blame] | 311 | ) |
Austin Schuh | 10358f2 | 2019-01-21 20:25:11 -0800 | [diff] [blame] | 312 | |
| 313 | local_repository( |
| 314 | name = "com_github_google_glog", |
| 315 | path = "third_party/google-glog", |
| 316 | ) |
Austin Schuh | 6defdeb | 2019-01-21 21:00:30 -0800 | [diff] [blame] | 317 | |
| 318 | # External dependency: Google Benchmark; has no Bazel build. |
| 319 | local_repository( |
| 320 | name = "com_github_google_benchmark", |
| 321 | path = "third_party/google-benchmark", |
Austin Schuh | cbc1740 | 2019-01-21 21:00:30 -0800 | [diff] [blame] | 322 | ) |
Austin Schuh | 033df09 | 2019-01-21 19:46:48 -0800 | [diff] [blame] | 323 | |
| 324 | local_repository( |
| 325 | name = "com_google_ceres_solver", |
| 326 | path = "third_party/ceres", |
Austin Schuh | 70cc955 | 2019-01-21 19:46:48 -0800 | [diff] [blame] | 327 | ) |
Austin Schuh | f6b9463 | 2019-02-02 22:11:27 -0800 | [diff] [blame] | 328 | |
Brian Silverman | 9e56387 | 2019-03-02 13:29:58 -0800 | [diff] [blame] | 329 | # Downloaded from http://devsite.ctr-electronics.com/maven/release/com/ctre/phoenix/api-cpp/5.14.1/. |
Austin Schuh | f093fa5 | 2019-06-23 20:47:23 -0700 | [diff] [blame^] | 330 | http_archive( |
Austin Schuh | f6b9463 | 2019-02-02 22:11:27 -0800 | [diff] [blame] | 331 | name = "ctre_phoenix_api_cpp_headers_2019", |
| 332 | build_file_content = """ |
| 333 | cc_library( |
| 334 | name = 'api-cpp', |
| 335 | visibility = ['//visibility:public'], |
| 336 | hdrs = glob(['ctre/phoenix/**/*.h']), |
| 337 | ) |
| 338 | """, |
Brian Silverman | 9e56387 | 2019-03-02 13:29:58 -0800 | [diff] [blame] | 339 | sha256 = "f11f83ea6854229a1c4381d5e6a3917be6a062eb266ad14e4c4c9067ec3cd446", |
Austin Schuh | f6b9463 | 2019-02-02 22:11:27 -0800 | [diff] [blame] | 340 | urls = [ |
Brian Silverman | 9e56387 | 2019-03-02 13:29:58 -0800 | [diff] [blame] | 341 | "http://www.frc971.org/Build-Dependencies/api-cpp-5.14.1-headers.zip", |
Austin Schuh | f6b9463 | 2019-02-02 22:11:27 -0800 | [diff] [blame] | 342 | ], |
| 343 | ) |
| 344 | |
Brian Silverman | 9e56387 | 2019-03-02 13:29:58 -0800 | [diff] [blame] | 345 | # Downloaded from http://devsite.ctr-electronics.com/maven/release/com/ctre/phoenix/api-cpp/5.14.1/. |
Austin Schuh | f093fa5 | 2019-06-23 20:47:23 -0700 | [diff] [blame^] | 346 | http_archive( |
Austin Schuh | f6b9463 | 2019-02-02 22:11:27 -0800 | [diff] [blame] | 347 | name = "ctre_phoenix_api_cpp_athena_2019", |
| 348 | build_file_content = """ |
| 349 | cc_library( |
| 350 | name = 'api-cpp', |
| 351 | visibility = ['//visibility:public'], |
| 352 | srcs = ['linux/athena/static/libCTRE_Phoenix.a'], |
| 353 | restricted_to = ['@//tools:roborio'], |
| 354 | deps = [ |
| 355 | '@ctre_phoenix_core_headers_2019//:core', |
| 356 | ], |
| 357 | ) |
| 358 | """, |
Brian Silverman | 9e56387 | 2019-03-02 13:29:58 -0800 | [diff] [blame] | 359 | sha256 = "0a976b86e887a75f0565fd7069db25e06ff0b76d2eebc294f23d81636b165381", |
Austin Schuh | f6b9463 | 2019-02-02 22:11:27 -0800 | [diff] [blame] | 360 | urls = [ |
Brian Silverman | 9e56387 | 2019-03-02 13:29:58 -0800 | [diff] [blame] | 361 | "http://www.frc971.org/Build-Dependencies/api-cpp-5.14.1-linuxathenastatic.zip", |
Austin Schuh | f6b9463 | 2019-02-02 22:11:27 -0800 | [diff] [blame] | 362 | ], |
| 363 | ) |
| 364 | |
Brian Silverman | 9e56387 | 2019-03-02 13:29:58 -0800 | [diff] [blame] | 365 | # Downloaded from http://devsite.ctr-electronics.com/maven/release/com/ctre/phoenix/cci/5.14.1/. |
Austin Schuh | f093fa5 | 2019-06-23 20:47:23 -0700 | [diff] [blame^] | 366 | http_archive( |
Austin Schuh | f6b9463 | 2019-02-02 22:11:27 -0800 | [diff] [blame] | 367 | name = "ctre_phoenix_cci_headers_2019", |
| 368 | build_file_content = """ |
| 369 | cc_library( |
| 370 | name = 'cci', |
| 371 | visibility = ['//visibility:public'], |
| 372 | hdrs = glob(['ctre/phoenix/**/*.h']), |
| 373 | ) |
| 374 | """, |
Brian Silverman | 9e56387 | 2019-03-02 13:29:58 -0800 | [diff] [blame] | 375 | sha256 = "0ce3d1cc916d9ebfcd19a5622736193cbac4f799205df155480943895ac78e45", |
Austin Schuh | f6b9463 | 2019-02-02 22:11:27 -0800 | [diff] [blame] | 376 | urls = [ |
Brian Silverman | 9e56387 | 2019-03-02 13:29:58 -0800 | [diff] [blame] | 377 | "http://www.frc971.org/Build-Dependencies/cci-5.14.1-headers.zip", |
Austin Schuh | f6b9463 | 2019-02-02 22:11:27 -0800 | [diff] [blame] | 378 | ], |
| 379 | ) |
| 380 | |
Brian Silverman | 9e56387 | 2019-03-02 13:29:58 -0800 | [diff] [blame] | 381 | # Downloaded from http://devsite.ctr-electronics.com/maven/release/com/ctre/phoenix/cci/5.14.1/. |
Austin Schuh | f093fa5 | 2019-06-23 20:47:23 -0700 | [diff] [blame^] | 382 | http_archive( |
Austin Schuh | f6b9463 | 2019-02-02 22:11:27 -0800 | [diff] [blame] | 383 | name = "ctre_phoenix_cci_athena_2019", |
| 384 | build_file_content = """ |
| 385 | cc_library( |
| 386 | name = 'cci', |
| 387 | visibility = ['//visibility:public'], |
| 388 | srcs = ['linux/athena/static/libCTRE_PhoenixCCI.a'], |
| 389 | restricted_to = ['@//tools:roborio'], |
| 390 | ) |
| 391 | """, |
Brian Silverman | 9e56387 | 2019-03-02 13:29:58 -0800 | [diff] [blame] | 392 | sha256 = "00b7e4abb1190924e9b31761951494264beebf4eefb64901000034dafaf2e8bc", |
Austin Schuh | f6b9463 | 2019-02-02 22:11:27 -0800 | [diff] [blame] | 393 | urls = [ |
Brian Silverman | 9e56387 | 2019-03-02 13:29:58 -0800 | [diff] [blame] | 394 | "http://www.frc971.org/Build-Dependencies/cci-5.14.1-linuxathenastatic.zip", |
Austin Schuh | f6b9463 | 2019-02-02 22:11:27 -0800 | [diff] [blame] | 395 | ], |
| 396 | ) |
| 397 | |
Brian Silverman | 9e56387 | 2019-03-02 13:29:58 -0800 | [diff] [blame] | 398 | # Downloaded from http://devsite.ctr-electronics.com/maven/release/com/ctre/phoenix/core/5.14.1/. |
Austin Schuh | f093fa5 | 2019-06-23 20:47:23 -0700 | [diff] [blame^] | 399 | http_archive( |
Austin Schuh | f6b9463 | 2019-02-02 22:11:27 -0800 | [diff] [blame] | 400 | name = "ctre_phoenix_core_headers_2019", |
| 401 | build_file_content = """ |
| 402 | cc_library( |
| 403 | name = 'core', |
| 404 | visibility = ['//visibility:public'], |
| 405 | hdrs = glob(['ctre/phoenix/**/*.h']), |
| 406 | ) |
| 407 | """, |
Brian Silverman | 9e56387 | 2019-03-02 13:29:58 -0800 | [diff] [blame] | 408 | sha256 = "b74bf1bd5428cd6d7f7c3cf293b5bf8c009126eb2271d68ed070756427de5f7a", |
Austin Schuh | f6b9463 | 2019-02-02 22:11:27 -0800 | [diff] [blame] | 409 | urls = [ |
Brian Silverman | 9e56387 | 2019-03-02 13:29:58 -0800 | [diff] [blame] | 410 | "http://www.frc971.org/Build-Dependencies/core-5.14.1-headers.zip", |
Austin Schuh | f6b9463 | 2019-02-02 22:11:27 -0800 | [diff] [blame] | 411 | ], |
| 412 | ) |
Austin Schuh | eed1444 | 2019-03-23 14:42:46 -0700 | [diff] [blame] | 413 | |
| 414 | http_archive( |
| 415 | name = "build_bazel_rules_typescript", |
| 416 | strip_prefix = "rules_typescript-0.21.0", |
| 417 | url = "https://github.com/bazelbuild/rules_typescript/archive/0.21.0.zip", |
| 418 | ) |
| 419 | |
| 420 | # Fetch our Bazel dependencies that aren't distributed on npm |
| 421 | load("@build_bazel_rules_typescript//:package.bzl", "rules_typescript_dependencies") |
| 422 | |
| 423 | rules_typescript_dependencies() |
| 424 | |
| 425 | # Setup TypeScript toolchain |
| 426 | load("@build_bazel_rules_typescript//:defs.bzl", "ts_setup_workspace") |
| 427 | |
| 428 | ts_setup_workspace() |
| 429 | |
| 430 | # Setup the NodeJS toolchain |
| 431 | load("@build_bazel_rules_nodejs//:defs.bzl", "node_repositories", "yarn_install") |
| 432 | |
| 433 | node_repositories() |
| 434 | |
| 435 | # Setup Bazel managed npm dependencies with the `yarn_install` rule. |
| 436 | yarn_install( |
| 437 | name = "npm", |
| 438 | package_json = "//:package.json", |
| 439 | yarn_lock = "//:yarn.lock", |
| 440 | ) |