Convert TensorFlow's highwayhash dependency to new third party import method.

PiperOrigin-RevId: 216746022
This commit is contained in:
A. Unique TensorFlower 2018-10-11 12:59:15 -07:00 committed by TensorFlower Gardener
parent 2b279edb86
commit 2f509fe594
4 changed files with 19 additions and 12 deletions

View File

@ -22,6 +22,7 @@ load(
)
load("//third_party/aws:workspace.bzl", aws = "repo")
load("//third_party/flatbuffers:workspace.bzl", flatbuffers = "repo")
load("//third_party/highwayhash:workspace.bzl", highwayhash = "repo")
load("//third_party/icu:workspace.bzl", icu = "repo")
load("//third_party/jpeg:workspace.bzl", jpeg = "repo")
load("//third_party/nasm:workspace.bzl", nasm = "repo")
@ -30,6 +31,7 @@ def initialize_third_party():
""" Load third party repositories. See above load() statements. """
aws()
flatbuffers()
highwayhash()
icu()
jpeg()
nasm()
@ -229,17 +231,6 @@ def tf_workspace(path_prefix = "", tf_repo_name = ""):
],
)
tf_http_archive(
name = "highwayhash",
build_file = clean_dep("//third_party:highwayhash.BUILD"),
sha256 = "9c3e0e87d581feeb0c18d814d98f170ff23e62967a2bd6855847f0b2fe598a37",
strip_prefix = "highwayhash-fd3d9af80465e4383162e4a7c5e2f406e82dd968",
urls = [
"http://mirror.bazel.build/github.com/google/highwayhash/archive/fd3d9af80465e4383162e4a7c5e2f406e82dd968.tar.gz",
"https://github.com/google/highwayhash/archive/fd3d9af80465e4383162e4a7c5e2f406e82dd968.tar.gz",
],
)
tf_http_archive(
name = "png_archive",
build_file = clean_dep("//third_party:png.BUILD"),

1
third_party/highwayhash/BUILD vendored Normal file
View File

@ -0,0 +1 @@
# Dummy BUILD file to make this directory a package.

View File

@ -9,8 +9,8 @@ cc_library(
name = "sip_hash",
srcs = ["highwayhash/sip_hash.cc"],
hdrs = [
"highwayhash/sip_hash.h",
"highwayhash/endianess.h",
"highwayhash/sip_hash.h",
"highwayhash/state_helpers.h",
],
visibility = ["//visibility:public"],

15
third_party/highwayhash/workspace.bzl vendored Normal file
View File

@ -0,0 +1,15 @@
"""loads the highwayhash library, used by TF."""
load("//third_party:repo.bzl", "third_party_http_archive")
def repo():
third_party_http_archive(
name = "highwayhash",
urls = [
"http://mirror.bazel.build/github.com/google/highwayhash/archive/fd3d9af80465e4383162e4a7c5e2f406e82dd968.tar.gz",
"https://github.com/google/highwayhash/archive/fd3d9af80465e4383162e4a7c5e2f406e82dd968.tar.gz",
],
sha256 = "9c3e0e87d581feeb0c18d814d98f170ff23e62967a2bd6855847f0b2fe598a37",
strip_prefix = "highwayhash-fd3d9af80465e4383162e4a7c5e2f406e82dd968",
build_file = "//third_party/highwayhash:BUILD.bazel",
)