diff options
author | A. Unique TensorFlower <gardener@tensorflow.org> | 2018-10-05 12:33:55 -0700 |
---|---|---|
committer | TensorFlower Gardener <gardener@tensorflow.org> | 2018-10-05 12:40:50 -0700 |
commit | 6919ab5787e6384d709adf051dc1ce99236b76bc (patch) | |
tree | 734f23de7bed8ed76ec4fa47ccf694a515cd2187 /third_party | |
parent | c5bd63fd520df4ca2f8159eef212289fb8c3ea6c (diff) |
Convert TensorFlow's jpeg dependency to new third party import method.
PiperOrigin-RevId: 215948571
Diffstat (limited to 'third_party')
-rw-r--r-- | third_party/jpeg/BUILD | 2 | ||||
-rw-r--r-- | third_party/jpeg/BUILD.bazel (renamed from third_party/jpeg/jpeg.BUILD) | 11 | ||||
-rw-r--r-- | third_party/jpeg/BUILD.system (renamed from third_party/systemlibs/jpeg.BUILD) | 0 | ||||
-rw-r--r-- | third_party/jpeg/jpeg_helpers.BUILD.bazel | 1 | ||||
-rw-r--r-- | third_party/jpeg/workspace.bzl | 17 |
5 files changed, 25 insertions, 6 deletions
diff --git a/third_party/jpeg/BUILD b/third_party/jpeg/BUILD index 5b01f6e3e4..e3aec1fce9 100644 --- a/third_party/jpeg/BUILD +++ b/third_party/jpeg/BUILD @@ -1 +1 @@ -licenses(["notice"]) +# Needed to make this a package. diff --git a/third_party/jpeg/jpeg.BUILD b/third_party/jpeg/BUILD.bazel index 1b9b9bf2f5..5243e995a3 100644 --- a/third_party/jpeg/jpeg.BUILD +++ b/third_party/jpeg/BUILD.bazel @@ -162,9 +162,9 @@ cc_library( hdrs = [ "simd/powerpc/jccolext-altivec.c", "simd/powerpc/jcgryext-altivec.c", + "simd/powerpc/jcsample.h", "simd/powerpc/jdcolext-altivec.c", "simd/powerpc/jdmrgext-altivec.c", - "simd/powerpc/jcsample.h", "simd/powerpc/jsimd_altivec.h", ], copts = libjpegturbo_copts, @@ -186,7 +186,6 @@ cc_library( "jsimd.h", "jsimddct.h", "simd/jsimd.h", - "simd/x86_64/jsimd.c", "simd/x86_64/jccolor-avx2.o", "simd/x86_64/jccolor-sse2.o", "simd/x86_64/jcgray-avx2.o", @@ -213,6 +212,7 @@ cc_library( "simd/x86_64/jquantf-sse2.o", "simd/x86_64/jquanti-avx2.o", "simd/x86_64/jquanti-sse2.o", + "simd/x86_64/jsimd.c", "simd/x86_64/jsimdcpu.o", ], copts = libjpegturbo_copts, @@ -322,9 +322,9 @@ cc_library( "jpeglib.h", "jsimd.h", "jsimddct.h", - "simd/jsimd.h", "simd/arm/jsimd.c", "simd/arm/jsimd_neon.S", + "simd/jsimd.h", ], copts = libjpegturbo_copts, nocopts = libjpegturbo_nocopts, @@ -343,9 +343,9 @@ cc_library( "jpeglib.h", "jsimd.h", "jsimddct.h", - "simd/jsimd.h", "simd/arm64/jsimd.c", "simd/arm64/jsimd_neon.S", + "simd/jsimd.h", ], copts = libjpegturbo_copts, nocopts = libjpegturbo_nocopts, @@ -366,7 +366,6 @@ cc_library( "jsimd.h", "jsimddct.h", "simd/jsimd.h", - "simd/x86_64/jsimd.c", "simd/x86_64/jccolor-avx2.obj", "simd/x86_64/jccolor-sse2.obj", "simd/x86_64/jcgray-avx2.obj", @@ -393,6 +392,7 @@ cc_library( "simd/x86_64/jquantf-sse2.obj", "simd/x86_64/jquanti-avx2.obj", "simd/x86_64/jquanti-sse2.obj", + "simd/x86_64/jsimd.c", "simd/x86_64/jsimdcpu.obj", ], copts = libjpegturbo_copts, @@ -603,6 +603,7 @@ JCONFIGINT_WIN_SUBSTITUTIONS = { } JCONFIGINT_NOWIN_SUBSTITUTIONS.update(JCONFIGINT_COMMON_SUBSTITUTIONS) + JCONFIGINT_WIN_SUBSTITUTIONS.update(JCONFIGINT_COMMON_SUBSTITUTIONS) template_rule( diff --git a/third_party/systemlibs/jpeg.BUILD b/third_party/jpeg/BUILD.system index f4f52da9bd..f4f52da9bd 100644 --- a/third_party/systemlibs/jpeg.BUILD +++ b/third_party/jpeg/BUILD.system diff --git a/third_party/jpeg/jpeg_helpers.BUILD.bazel b/third_party/jpeg/jpeg_helpers.BUILD.bazel new file mode 100644 index 0000000000..5b01f6e3e4 --- /dev/null +++ b/third_party/jpeg/jpeg_helpers.BUILD.bazel @@ -0,0 +1 @@ +licenses(["notice"]) diff --git a/third_party/jpeg/workspace.bzl b/third_party/jpeg/workspace.bzl new file mode 100644 index 0000000000..4b517240ec --- /dev/null +++ b/third_party/jpeg/workspace.bzl @@ -0,0 +1,17 @@ +"""loads the jpeg library, used by TF.""" + +load("//third_party:repo.bzl", "third_party_http_archive") + +def repo(): + third_party_http_archive( + name = "jpeg", + urls = [ + "https://mirror.bazel.build/github.com/libjpeg-turbo/libjpeg-turbo/archive/2.0.0.tar.gz", + "https://github.com/libjpeg-turbo/libjpeg-turbo/archive/2.0.0.tar.gz", + ], + sha256 = "f892fff427ab3adffc289363eac26d197ce3ccacefe5f5822377348a8166069b", + strip_prefix = "libjpeg-turbo-2.0.0", + build_file = "//third_party/jpeg:BUILD.bazel", + # build_file = clean_dep("//third_party/jpeg:jpeg.BUILD"), + system_build_file = "//third_party/jpeg:BUILD.system", + ) |