Convert TensorFlow's highwayhash dependency to new third party import method.
PiperOrigin-RevId: 216746022
This commit is contained in:
parent
2b279edb86
commit
2f509fe594
@ -22,6 +22,7 @@ load(
|
|||||||
)
|
)
|
||||||
load("//third_party/aws:workspace.bzl", aws = "repo")
|
load("//third_party/aws:workspace.bzl", aws = "repo")
|
||||||
load("//third_party/flatbuffers:workspace.bzl", flatbuffers = "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/icu:workspace.bzl", icu = "repo")
|
||||||
load("//third_party/jpeg:workspace.bzl", jpeg = "repo")
|
load("//third_party/jpeg:workspace.bzl", jpeg = "repo")
|
||||||
load("//third_party/nasm:workspace.bzl", nasm = "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. """
|
""" Load third party repositories. See above load() statements. """
|
||||||
aws()
|
aws()
|
||||||
flatbuffers()
|
flatbuffers()
|
||||||
|
highwayhash()
|
||||||
icu()
|
icu()
|
||||||
jpeg()
|
jpeg()
|
||||||
nasm()
|
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(
|
tf_http_archive(
|
||||||
name = "png_archive",
|
name = "png_archive",
|
||||||
build_file = clean_dep("//third_party:png.BUILD"),
|
build_file = clean_dep("//third_party:png.BUILD"),
|
||||||
|
1
third_party/highwayhash/BUILD
vendored
Normal file
1
third_party/highwayhash/BUILD
vendored
Normal file
@ -0,0 +1 @@
|
|||||||
|
# Dummy BUILD file to make this directory a package.
|
@ -9,8 +9,8 @@ cc_library(
|
|||||||
name = "sip_hash",
|
name = "sip_hash",
|
||||||
srcs = ["highwayhash/sip_hash.cc"],
|
srcs = ["highwayhash/sip_hash.cc"],
|
||||||
hdrs = [
|
hdrs = [
|
||||||
"highwayhash/sip_hash.h",
|
|
||||||
"highwayhash/endianess.h",
|
"highwayhash/endianess.h",
|
||||||
|
"highwayhash/sip_hash.h",
|
||||||
"highwayhash/state_helpers.h",
|
"highwayhash/state_helpers.h",
|
||||||
],
|
],
|
||||||
visibility = ["//visibility:public"],
|
visibility = ["//visibility:public"],
|
15
third_party/highwayhash/workspace.bzl
vendored
Normal file
15
third_party/highwayhash/workspace.bzl
vendored
Normal 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",
|
||||||
|
)
|
Loading…
Reference in New Issue
Block a user