From 63537d518790132eac86659169c256ac1bf247be Mon Sep 17 00:00:00 2001 From: Jeff McGlynn Date: Wed, 23 Jan 2019 16:03:11 -0800 Subject: Update to build with the latest version of bazel * http_archive and git_repository are now skylark rules, update to use them. * new_http_archive has been merged with http_archive, and takes a label for build_file instead of a path. Add an empty third_party/BUILD file so that we can reference the label. * Rename tools/bazel.rc to .bazelrc --- WORKSPACE | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'WORKSPACE') diff --git a/WORKSPACE b/WORKSPACE index 77d6a69..250f9ad 100644 --- a/WORKSPACE +++ b/WORKSPACE @@ -12,17 +12,20 @@ # See the License for the specific language governing permissions and # limitations under the License. +load("@bazel_tools//tools/build_defs/repo:git.bzl", "git_repository") +load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") + git_repository( name = "gtest", remote = "https://github.com/google/googletest.git", commit = "ba96d0b1161f540656efdaed035b3c062b60e006", ) -new_http_archive( +http_archive( name = "honggfuzz", url = "https://github.com/google/honggfuzz/archive/1.6.zip", sha256 = "c331ac5beebe526bced3043ed3012109e439315b7d74d72760b0aa6d08cc05d2", - build_file = "third_party/honggfuzz.BUILD", + build_file = "//third_party:honggfuzz.BUILD", strip_prefix = "honggfuzz-1.6", ) -- cgit v1.2.3