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