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 | ) |
Philipp Schrader | 0e19c60 | 2018-03-07 21:07:22 -0800 | [diff] [blame] | 15 | load("//debian:packages.bzl", "generate_repositories_for_debs") |
| 16 | |
| 17 | generate_repositories_for_debs(python_debs) |
Brian Silverman | 7bda621 | 2018-08-05 11:42:11 -0700 | [diff] [blame^] | 18 | |
Philipp Schrader | aedfc5c | 2018-03-10 19:32:30 -0800 | [diff] [blame] | 19 | generate_repositories_for_debs(clang_debs) |
Philipp Schrader | 0e19c60 | 2018-03-07 21:07:22 -0800 | [diff] [blame] | 20 | |
Brian Silverman | 7bda621 | 2018-08-05 11:42:11 -0700 | [diff] [blame^] | 21 | generate_repositories_for_debs(patch_debs) |
| 22 | |
Philipp Schrader | 9fc87e0 | 2018-03-10 20:36:39 -0800 | [diff] [blame] | 23 | new_http_archive( |
Brian Silverman | 7bda621 | 2018-08-05 11:42:11 -0700 | [diff] [blame^] | 24 | name = "python_repo", |
| 25 | build_file = "debian/python.BUILD", |
| 26 | sha256 = "21214b6386273698b6aa1b64bccf1bc8c5ef4ef44563871bac5cd85383575af5", |
| 27 | url = "http://frc971.org/Build-Dependencies/python.tar.gz", |
Philipp Schrader | 9fc87e0 | 2018-03-10 20:36:39 -0800 | [diff] [blame] | 28 | ) |
| 29 | |
Philipp Schrader | 9b1790e | 2018-03-10 20:21:30 -0800 | [diff] [blame] | 30 | new_http_archive( |
Brian Silverman | 7bda621 | 2018-08-05 11:42:11 -0700 | [diff] [blame^] | 31 | name = "clang_3p6_repo", |
| 32 | build_file = "tools/cpp/clang_3p6/clang_3p6.BUILD", |
| 33 | sha256 = "5ee9e04c55c2c99d0c0f83722102a49e98f485fc274f73111b33a7ac4e34e03e", |
| 34 | url = "http://frc971.org/Build-Dependencies/clang_3p6.tar.gz", |
Philipp Schrader | 9b1790e | 2018-03-10 20:21:30 -0800 | [diff] [blame] | 35 | ) |
| 36 | |
Austin Schuh | 4759ffc | 2015-10-07 20:39:56 -0700 | [diff] [blame] | 37 | new_local_repository( |
Brian Silverman | 7bda621 | 2018-08-05 11:42:11 -0700 | [diff] [blame^] | 38 | name = "usr_repo", |
| 39 | build_file = "debian/usr.BUILD", |
| 40 | path = "/usr", |
Austin Schuh | 4759ffc | 2015-10-07 20:39:56 -0700 | [diff] [blame] | 41 | ) |
| 42 | |
Austin Schuh | 1f9aeb4 | 2015-11-12 23:34:49 -0800 | [diff] [blame] | 43 | new_git_repository( |
Brian Silverman | 7bda621 | 2018-08-05 11:42:11 -0700 | [diff] [blame^] | 44 | name = "slycot_repo", |
| 45 | build_file = "debian/slycot.BUILD", |
| 46 | commit = "5af5f283cb23cbe23c4dfea4d5e56071bdbd6e70", |
| 47 | remote = "https://github.com/avventi/Slycot.git", |
Austin Schuh | 1f9aeb4 | 2015-11-12 23:34:49 -0800 | [diff] [blame] | 48 | ) |
| 49 | |
Austin Schuh | 55139fe | 2015-10-14 23:55:24 -0700 | [diff] [blame] | 50 | new_http_archive( |
Brian Silverman | 7bda621 | 2018-08-05 11:42:11 -0700 | [diff] [blame^] | 51 | name = "arm_frc_linux_gnueabi_repo", |
| 52 | build_file = "tools/cpp/arm-frc-linux-gnueabi/arm-frc-linux-gnueabi.BUILD", |
| 53 | sha256 = "875b23bec5138e09e3d21cc1ff2727ea3ecbec57509c37589514ba50f92979c7", |
| 54 | url = "http://frc971.org/Build-Dependencies/roborio-compiler-2018.tar.xz", |
Austin Schuh | 55139fe | 2015-10-14 23:55:24 -0700 | [diff] [blame] | 55 | ) |
Austin Schuh | e456f15 | 2015-11-27 13:44:39 -0800 | [diff] [blame] | 56 | |
Brian Silverman | 0d57fc8 | 2016-01-24 21:02:53 -0500 | [diff] [blame] | 57 | # Recompressed version of the one downloaded from Linaro at |
| 58 | # <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>, |
| 59 | # with workarounds for <https://github.com/bazelbuild/bazel/issues/574> and the |
| 60 | # top-level folder stripped off. |
| 61 | new_http_archive( |
Brian Silverman | 7bda621 | 2018-08-05 11:42:11 -0700 | [diff] [blame^] | 62 | name = "linaro_linux_gcc_4_9_repo", |
| 63 | build_file = "compilers/linaro_linux_gcc_4.9.BUILD", |
| 64 | sha256 = "25e97bcb0af4fd7cd626d5bb1b303c7d2cb13acf2474e335e3d431d1a53fbb52", |
| 65 | 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] | 66 | ) |
| 67 | |
Austin Schuh | e456f15 | 2015-11-27 13:44:39 -0800 | [diff] [blame] | 68 | new_git_repository( |
Brian Silverman | 7bda621 | 2018-08-05 11:42:11 -0700 | [diff] [blame^] | 69 | name = "python_gflags_repo", |
| 70 | build_file = "debian/gflags.BUILD", |
| 71 | commit = "41c4571864f0db5823e07715317e7388e94faabc", |
| 72 | remote = "https://github.com/gflags/python-gflags.git", |
Austin Schuh | e456f15 | 2015-11-27 13:44:39 -0800 | [diff] [blame] | 73 | ) |
| 74 | |
| 75 | bind( |
Brian Silverman | 7bda621 | 2018-08-05 11:42:11 -0700 | [diff] [blame^] | 76 | name = "python-gflags", |
| 77 | actual = "@python_gflags_repo//:gflags", |
Austin Schuh | e456f15 | 2015-11-27 13:44:39 -0800 | [diff] [blame] | 78 | ) |
| 79 | |
| 80 | new_http_archive( |
Brian Silverman | 7bda621 | 2018-08-05 11:42:11 -0700 | [diff] [blame^] | 81 | name = "python_glog_repo", |
| 82 | build_file = "debian/glog.BUILD", |
| 83 | sha256 = "953fd80122c48023d1148e6d1bda2763fcab59c8a81682bb298238a5935547b0", |
| 84 | strip_prefix = "glog-0.1", |
| 85 | 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] | 86 | ) |
| 87 | |
| 88 | bind( |
Brian Silverman | 7bda621 | 2018-08-05 11:42:11 -0700 | [diff] [blame^] | 89 | name = "python-glog", |
| 90 | actual = "@python_glog_repo//:glog", |
Austin Schuh | e456f15 | 2015-11-27 13:44:39 -0800 | [diff] [blame] | 91 | ) |
Brian Silverman | cee260a | 2015-12-24 16:27:51 -0800 | [diff] [blame] | 92 | |
| 93 | new_http_archive( |
Brian Silverman | 7bda621 | 2018-08-05 11:42:11 -0700 | [diff] [blame^] | 94 | name = "allwpilib_ni_libraries_repo_2018", |
| 95 | build_file = "debian/ni-libraries-2018.BUILD", |
| 96 | sha256 = "05ef6701c77b83163b443aa956d151028861cc3fa29fdf2b6b77431b4a91bfb9", |
| 97 | strip_prefix = "ni-libraries", |
| 98 | url = "http://frc971.org/Build-Dependencies/allwpilib_ni-libraries_57e9fb3.tar.gz", |
Austin Schuh | 94f51e9 | 2017-10-30 19:25:32 -0700 | [diff] [blame] | 99 | ) |
| 100 | |
| 101 | new_http_archive( |
Brian Silverman | 7bda621 | 2018-08-05 11:42:11 -0700 | [diff] [blame^] | 102 | name = "allwpilib_ni_libraries_repo_2017", |
| 103 | build_file = "debian/ni-libraries-2017.BUILD", |
| 104 | sha256 = "67c1ad365fb712cc0acb0bf43465b831030523dc6f88daa02626994f644d91eb", |
| 105 | strip_prefix = "ni-libraries", |
| 106 | url = "http://frc971.org/Build-Dependencies/allwpilib_ni-libraries_e375b4a.tar.gz", |
Brian Silverman | e48dbc1 | 2017-02-04 20:06:29 -0800 | [diff] [blame] | 107 | ) |
| 108 | |
Brian Silverman | 3fca9d7 | 2016-02-20 02:32:51 -0500 | [diff] [blame] | 109 | # Downloaded from: |
| 110 | # https://pypi.python.org/packages/source/s/six/six-1.10.0.tar.gz |
| 111 | new_http_archive( |
Brian Silverman | 7bda621 | 2018-08-05 11:42:11 -0700 | [diff] [blame^] | 112 | name = "six_repo", |
| 113 | build_file = "debian/six.BUILD", |
| 114 | sha256 = "105f8d68616f8248e24bf0e9372ef04d3cc10104f1980f54d57b2ce73a5ad56a", |
| 115 | strip_prefix = "six-1.10.0", |
| 116 | url = "http://frc971.org/Build-Dependencies/six-1.10.0.tar.gz", |
Brian Silverman | 3fca9d7 | 2016-02-20 02:32:51 -0500 | [diff] [blame] | 117 | ) |
| 118 | |
| 119 | # For protobuf. Don't use these. |
| 120 | bind( |
Brian Silverman | 7bda621 | 2018-08-05 11:42:11 -0700 | [diff] [blame^] | 121 | name = "six", |
| 122 | actual = "@six_repo//:six", |
Brian Silverman | 3fca9d7 | 2016-02-20 02:32:51 -0500 | [diff] [blame] | 123 | ) |
Brian Silverman | 7bda621 | 2018-08-05 11:42:11 -0700 | [diff] [blame^] | 124 | |
Brian Silverman | 3fca9d7 | 2016-02-20 02:32:51 -0500 | [diff] [blame] | 125 | bind( |
Brian Silverman | 7bda621 | 2018-08-05 11:42:11 -0700 | [diff] [blame^] | 126 | name = "gtest", |
| 127 | actual = "//third_party/googletest:googlemock", |
Brian Silverman | 3fca9d7 | 2016-02-20 02:32:51 -0500 | [diff] [blame] | 128 | ) |
Brian Silverman | 7bda621 | 2018-08-05 11:42:11 -0700 | [diff] [blame^] | 129 | |
Brian Silverman | 3fca9d7 | 2016-02-20 02:32:51 -0500 | [diff] [blame] | 130 | bind( |
Brian Silverman | 7bda621 | 2018-08-05 11:42:11 -0700 | [diff] [blame^] | 131 | name = "gtest_main", |
| 132 | actual = "//third_party/googletest:googlemock_main", |
Brian Silverman | 3fca9d7 | 2016-02-20 02:32:51 -0500 | [diff] [blame] | 133 | ) |
| 134 | |
| 135 | new_http_archive( |
Brian Silverman | 7bda621 | 2018-08-05 11:42:11 -0700 | [diff] [blame^] | 136 | name = "python_import_helpers", |
| 137 | build_file = "third_party/python_import_helpers.BUILD", |
| 138 | sha256 = "71939a7d75585a57d2e99a33d39f391764d8f930f9a16acf32e00c5d3f432aa0", |
| 139 | url = "http://frc971.org/Build-Dependencies/empty.tar.gz", |
Brian Silverman | 3fca9d7 | 2016-02-20 02:32:51 -0500 | [diff] [blame] | 140 | ) |
Brian Silverman | 8b63869 | 2017-06-26 23:10:26 -0700 | [diff] [blame] | 141 | |
| 142 | new_local_repository( |
Brian Silverman | 7bda621 | 2018-08-05 11:42:11 -0700 | [diff] [blame^] | 143 | name = "libusb", |
| 144 | build_file = "debian/libusb.BUILD", |
| 145 | path = "/usr", |
Brian Silverman | 8b63869 | 2017-06-26 23:10:26 -0700 | [diff] [blame] | 146 | ) |
Brian Silverman | 4aa8304 | 2018-01-05 12:47:31 -0800 | [diff] [blame] | 147 | |
| 148 | # Created by combining libusb-1.0-0_2%3a1.0.19-1_amd64, |
| 149 | # libusb-1.0-0-dev_2%3a1.0.19-1, and libudev1_215-17+deb8u7. |
| 150 | new_http_archive( |
Brian Silverman | 7bda621 | 2018-08-05 11:42:11 -0700 | [diff] [blame^] | 151 | name = "libusb_1_0", |
| 152 | build_file = "debian/libusb-1.0.BUILD", |
| 153 | sha256 = "12acb30faacd10e9aa7f3a5e074701e167ce9bbd45694db37d13d55de5398816", |
| 154 | url = "http://frc971.org/Build-Dependencies/libusb-1.0-1.0.19.tar.xz", |
Brian Silverman | 4aa8304 | 2018-01-05 12:47:31 -0800 | [diff] [blame] | 155 | ) |
| 156 | |
| 157 | # Recompressed from libusb-1.0.21.7z. |
| 158 | http_file( |
Brian Silverman | 7bda621 | 2018-08-05 11:42:11 -0700 | [diff] [blame^] | 159 | name = "libusb_1_0_windows", |
| 160 | sha256 = "fc2ba03992f343aabbaf9eb90559c6e00cdc6a2bd914d7cebea85857d5244015", |
| 161 | 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] | 162 | ) |
Brian Silverman | d3ad165 | 2018-02-18 22:16:29 -0500 | [diff] [blame] | 163 | |
| 164 | # The data tarball of the same-named Debian package. |
| 165 | new_http_archive( |
| 166 | name = "f2c", |
Brian Silverman | 7bda621 | 2018-08-05 11:42:11 -0700 | [diff] [blame^] | 167 | build_file = "debian/f2c.BUILD", |
Brian Silverman | d3ad165 | 2018-02-18 22:16:29 -0500 | [diff] [blame] | 168 | sha256 = "2c677437f8217a2e2b23e41b33995d0571644fc1bea46de858f8913a5053e3f4", |
| 169 | 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] | 170 | ) |
| 171 | |
| 172 | # Downloaded from http://www.netlib.org/clapack/. |
| 173 | new_http_archive( |
Brian Silverman | 7bda621 | 2018-08-05 11:42:11 -0700 | [diff] [blame^] | 174 | name = "clapack", |
| 175 | build_file = "debian/clapack.BUILD", |
| 176 | sha256 = "6dc4c382164beec8aaed8fd2acc36ad24232c406eda6db462bd4c41d5e455fac", |
| 177 | strip_prefix = "CLAPACK-3.2.1/", |
| 178 | url = "http://frc971.org/Build-Dependencies/clapack-3.2.1.tgz", |
| 179 | ) |
| 180 | |
| 181 | new_http_archive( |
| 182 | name = "patch", |
| 183 | build_file = "debian/patch.BUILD", |
| 184 | sha256 = "b5ce139648a2e04f5585948ddad2fdae24dd4ee7976ac5a22d6ae7bd5674631e", |
| 185 | url = "http://frc971.org/Build-Dependencies/patch.tar.gz", |
Brian Silverman | d3ad165 | 2018-02-18 22:16:29 -0500 | [diff] [blame] | 186 | ) |