aboutsummaryrefslogtreecommitdiffhomepage
path: root/third_party
diff options
context:
space:
mode:
authorGravatar A. Unique TensorFlower <gardener@tensorflow.org>2018-10-08 10:43:54 -0700
committerGravatar TensorFlower Gardener <gardener@tensorflow.org>2018-10-08 11:04:33 -0700
commit0691d49fb6e15740b8ddf8019fea4edb91bca914 (patch)
treeb481d86d26917d0ee159ed9ac8f377a4d0ff7947 /third_party
parentd1588d72a820423cab36977ca97221aba01be713 (diff)
Convert TensorFlow's nasm dependency to new third party import method.
PiperOrigin-RevId: 216211467
Diffstat (limited to 'third_party')
-rw-r--r--third_party/nasm/BUILD1
-rw-r--r--third_party/nasm/BUILD.bazel (renamed from third_party/nasm.BUILD)12
-rw-r--r--third_party/nasm/BUILD.system (renamed from third_party/systemlibs/nasm.BUILD)0
-rw-r--r--third_party/nasm/workspace.bzl17
4 files changed, 24 insertions, 6 deletions
diff --git a/third_party/nasm/BUILD b/third_party/nasm/BUILD
new file mode 100644
index 0000000000..e3aec1fce9
--- /dev/null
+++ b/third_party/nasm/BUILD
@@ -0,0 +1 @@
+# Needed to make this a package.
diff --git a/third_party/nasm.BUILD b/third_party/nasm/BUILD.bazel
index d746a65e7e..c68d713946 100644
--- a/third_party/nasm.BUILD
+++ b/third_party/nasm/BUILD.bazel
@@ -137,12 +137,6 @@ cc_binary(
":windows": ["config/msvc.h"],
"//conditions:default": [],
}),
- includes = [
- "asm",
- "include",
- "output",
- "x86",
- ],
copts = select({
":windows": [],
"//conditions:default": [
@@ -157,6 +151,12 @@ cc_binary(
"HAVE_SYS_TYPES_H",
],
}),
+ includes = [
+ "asm",
+ "include",
+ "output",
+ "x86",
+ ],
visibility = ["@jpeg//:__pkg__"],
)
diff --git a/third_party/systemlibs/nasm.BUILD b/third_party/nasm/BUILD.system
index 10ef8d8832..10ef8d8832 100644
--- a/third_party/systemlibs/nasm.BUILD
+++ b/third_party/nasm/BUILD.system
diff --git a/third_party/nasm/workspace.bzl b/third_party/nasm/workspace.bzl
new file mode 100644
index 0000000000..6d50f6fcad
--- /dev/null
+++ b/third_party/nasm/workspace.bzl
@@ -0,0 +1,17 @@
+"""loads the nasm library, used by TF."""
+
+load("//third_party:repo.bzl", "third_party_http_archive")
+
+def repo():
+ third_party_http_archive(
+ name = "nasm",
+ urls = [
+ "https://mirror.bazel.build/www.nasm.us/pub/nasm/releasebuilds/2.13.03/nasm-2.13.03.tar.bz2",
+ "http://pkgs.fedoraproject.org/repo/pkgs/nasm/nasm-2.13.03.tar.bz2/sha512/d7a6b4cee8dfd603d8d4c976e5287b5cc542fa0b466ff989b743276a6e28114e64289bf02a7819eca63142a5278aa6eed57773007e5f589e15768e6456a8919d/nasm-2.13.03.tar.bz2",
+ "http://www.nasm.us/pub/nasm/releasebuilds/2.13.03/nasm-2.13.03.tar.bz2",
+ ],
+ sha256 = "63ec86477ad3f0f6292325fd89e1d93aea2e2fd490070863f17d48f7cd387011",
+ strip_prefix = "nasm-2.13.03",
+ build_file = "//third_party/nasm:BUILD.bazel",
+ system_build_file = "//third_party/nasm:BUILD.system",
+ )