Move most foo.BUILD files into third_party
This frees up space on the TensorFlow GitHub home page! Change: 143161497
This commit is contained in:
parent
a1a3b0c6c3
commit
e28db9fced
@ -22,7 +22,7 @@ def tf_workspace(path_prefix = "", tf_repo_name = ""):
|
||||
],
|
||||
sha256 = "7527cda827aff351981ebd910012e16be4d899c28a9ae7f143ae60e7f3f7b83d",
|
||||
strip_prefix = "eigen-eigen-60578b474802",
|
||||
build_file = str(Label("//:eigen.BUILD")),
|
||||
build_file = str(Label("//third_party:eigen.BUILD")),
|
||||
)
|
||||
|
||||
native.new_http_archive(
|
||||
@ -33,12 +33,12 @@ def tf_workspace(path_prefix = "", tf_repo_name = ""):
|
||||
],
|
||||
sha256 = "1dd81077b186300122dc8a8f1872c21fd2bd9b88286ab9f068cc7b62fa7593a7",
|
||||
strip_prefix = "libxsmm-1.6.1",
|
||||
build_file = str(Label("//:libxsmm.BUILD")),
|
||||
build_file = str(Label("//third_party:libxsmm.BUILD")),
|
||||
)
|
||||
|
||||
native.bind(
|
||||
name = "xsmm_avx",
|
||||
actual = "@libxsmm_archive//:xsmm_avx",
|
||||
actual = "@libxsmm_archive//third_party:xsmm_avx",
|
||||
)
|
||||
|
||||
native.http_archive(
|
||||
@ -69,7 +69,7 @@ def tf_workspace(path_prefix = "", tf_repo_name = ""):
|
||||
],
|
||||
sha256 = "4c626d1f306bda2c6804ab955892f803f5245f4dcaecb4979dc08b091256da54",
|
||||
strip_prefix = "farmhash-92e897b282426729f4724d91a637596c7e2fe28f",
|
||||
build_file = str(Label("//:farmhash.BUILD")),
|
||||
build_file = str(Label("//third_party:farmhash.BUILD")),
|
||||
)
|
||||
|
||||
native.bind(
|
||||
@ -117,7 +117,7 @@ def tf_workspace(path_prefix = "", tf_repo_name = ""):
|
||||
],
|
||||
sha256 = "c35bcc6387495ee6e757507a68ba036d38ad05b415c2553b3debe2a57647a692",
|
||||
strip_prefix = "libpng-1.2.53",
|
||||
build_file = str(Label("//:png.BUILD")),
|
||||
build_file = str(Label("//third_party:png.BUILD")),
|
||||
)
|
||||
|
||||
native.new_http_archive(
|
||||
@ -129,7 +129,7 @@ def tf_workspace(path_prefix = "", tf_repo_name = ""):
|
||||
],
|
||||
sha256 = "34a7377ba834397db019e8eb122e551a49c98f49df75ec3fcc92b9a794a4f6d1",
|
||||
strip_prefix = "giflib-5.1.4",
|
||||
build_file = str(Label("//:gif.BUILD")),
|
||||
build_file = str(Label("//third_party:gif.BUILD")),
|
||||
)
|
||||
|
||||
native.new_http_archive(
|
||||
@ -140,7 +140,7 @@ def tf_workspace(path_prefix = "", tf_repo_name = ""):
|
||||
],
|
||||
sha256 = "105f8d68616f8248e24bf0e9372ef04d3cc10104f1980f54d57b2ce73a5ad56a",
|
||||
strip_prefix = "six-1.10.0",
|
||||
build_file = str(Label("//:six.BUILD")),
|
||||
build_file = str(Label("//third_party:six.BUILD")),
|
||||
)
|
||||
|
||||
native.bind(
|
||||
@ -166,7 +166,7 @@ def tf_workspace(path_prefix = "", tf_repo_name = ""):
|
||||
],
|
||||
sha256 = "26fcbb5925b74ad5fc8c26b0495dfc96353f4d553492eb97e85a8a6d2f43095b",
|
||||
strip_prefix = "gmock-1.7.0",
|
||||
build_file = str(Label("//:gmock.BUILD")),
|
||||
build_file = str(Label("//third_party:gmock.BUILD")),
|
||||
)
|
||||
|
||||
native.bind(
|
||||
@ -238,7 +238,7 @@ def tf_workspace(path_prefix = "", tf_repo_name = ""):
|
||||
],
|
||||
sha256 = "a15f352436ab92c521b1ac11e729e155ace38d0856380cf25048c5d1d9ba8e31",
|
||||
strip_prefix = "grpc-d7ff4ff40071d2b486a052183e3e9f9382afb745",
|
||||
build_file = str(Label("//:grpc.BUILD")),
|
||||
build_file = str(Label("//third_party:grpc.BUILD")),
|
||||
)
|
||||
|
||||
# protobuf expects //external:grpc_cpp_plugin to point to grpc's
|
||||
@ -261,7 +261,7 @@ def tf_workspace(path_prefix = "", tf_repo_name = ""):
|
||||
"https://github.com/antirez/linenoise/archive/c894b9e59f02203dbe4e2be657572cf88c4230c3.tar.gz",
|
||||
],
|
||||
strip_prefix = "linenoise-c894b9e59f02203dbe4e2be657572cf88c4230c3",
|
||||
build_file = str(Label("//:linenoise.BUILD")),
|
||||
build_file = str(Label("//third_party:linenoise.BUILD")),
|
||||
)
|
||||
|
||||
# TODO(phawkins): currently, this rule uses an unofficial LLVM mirror.
|
||||
@ -285,7 +285,7 @@ def tf_workspace(path_prefix = "", tf_repo_name = ""):
|
||||
],
|
||||
sha256 = "07d34db40593d257324ec5fb9debc4dc33f29f8fb44e33a2eeb35503e61d0fe2",
|
||||
strip_prefix = "jsoncpp-11086dd6a7eba04289944367ca82cea71299ed70",
|
||||
build_file = str(Label("//:jsoncpp.BUILD")),
|
||||
build_file = str(Label("//third_party:jsoncpp.BUILD")),
|
||||
)
|
||||
|
||||
native.bind(
|
||||
@ -311,7 +311,7 @@ def tf_workspace(path_prefix = "", tf_repo_name = ""):
|
||||
],
|
||||
sha256 = "ab1455c8edff855f4f55b68480991559e51c11e7dab060bbab7cffb12dd3af33",
|
||||
strip_prefix = "nanopb-1251fa1065afc0d62f635e0f63fec8276e14e13c",
|
||||
build_file = str(Label("//:nanopb.BUILD")),
|
||||
build_file = str(Label("//third_party:nanopb.BUILD")),
|
||||
)
|
||||
|
||||
native.bind(
|
||||
@ -327,7 +327,7 @@ def tf_workspace(path_prefix = "", tf_repo_name = ""):
|
||||
],
|
||||
sha256 = "36658cb768a54c1d4dec43c3116c27ed893e88b02ecfcb44f2166f9c0b7f2a0d",
|
||||
strip_prefix = "zlib-1.2.8",
|
||||
build_file = str(Label("//:zlib.BUILD")),
|
||||
build_file = str(Label("//third_party:zlib.BUILD")),
|
||||
)
|
||||
|
||||
native.bind(
|
||||
|
70
third_party/eigen.BUILD
vendored
Normal file
70
third_party/eigen.BUILD
vendored
Normal file
@ -0,0 +1,70 @@
|
||||
# Description:
|
||||
# Eigen is a C++ template library for linear algebra: vectors,
|
||||
# matrices, and related algorithms.
|
||||
|
||||
licenses([
|
||||
# Note: Eigen is an MPL2 library that includes GPL v3 and LGPL v2.1+ code.
|
||||
# We've taken special care to not reference any restricted code.
|
||||
"reciprocal", # MPL2
|
||||
"notice", # Portions BSD
|
||||
])
|
||||
|
||||
exports_files(["COPYING.MPL2"])
|
||||
|
||||
# License-restricted (i.e. not reciprocal or notice) files inside Eigen/...
|
||||
EIGEN_RESTRICTED_FILES = [
|
||||
"Eigen/src/OrderingMethods/Amd.h",
|
||||
"Eigen/src/SparseCholesky/**",
|
||||
]
|
||||
|
||||
# Notable transitive dependencies of restricted files inside Eigen/...
|
||||
EIGEN_RESTRICTED_DEPS = [
|
||||
"Eigen/Eigen",
|
||||
"Eigen/IterativeLinearSolvers",
|
||||
"Eigen/MetisSupport",
|
||||
"Eigen/Sparse",
|
||||
"Eigen/SparseCholesky",
|
||||
"Eigen/SparseLU",
|
||||
]
|
||||
|
||||
# Note: unsupported/Eigen is unsupported and might go away at any time.
|
||||
EIGEN_FILES = [
|
||||
"Eigen/**",
|
||||
"unsupported/Eigen/CXX11/**",
|
||||
"unsupported/Eigen/FFT",
|
||||
"unsupported/Eigen/KroneckerProduct",
|
||||
"unsupported/Eigen/src/FFT/**",
|
||||
"unsupported/Eigen/src/KroneckerProduct/**",
|
||||
"unsupported/Eigen/MatrixFunctions",
|
||||
"unsupported/Eigen/SpecialFunctions",
|
||||
"unsupported/Eigen/src/SpecialFunctions/**",
|
||||
]
|
||||
|
||||
# List of files picked up by glob but actually part of another target.
|
||||
EIGEN_EXCLUDE_FILES = [
|
||||
"Eigen/src/Core/arch/AVX/PacketMathGoogleTest.cc",
|
||||
]
|
||||
|
||||
# Files known to be under MPL2 license.
|
||||
EIGEN_MPL2_HEADER_FILES = glob(
|
||||
EIGEN_FILES,
|
||||
exclude = EIGEN_EXCLUDE_FILES +
|
||||
EIGEN_RESTRICTED_FILES +
|
||||
EIGEN_RESTRICTED_DEPS + [
|
||||
# Guarantees any file missed by excludes above will not compile.
|
||||
"Eigen/src/Core/util/NonMPL2.h",
|
||||
"Eigen/**/CMakeLists.txt",
|
||||
],
|
||||
)
|
||||
|
||||
cc_library(
|
||||
name = "eigen",
|
||||
hdrs = EIGEN_MPL2_HEADER_FILES,
|
||||
defines = [
|
||||
# This define (mostly) guarantees we don't link any problematic
|
||||
# code. We use it, but we do not rely on it, as evidenced above.
|
||||
"EIGEN_MPL2_ONLY",
|
||||
],
|
||||
includes = ["."],
|
||||
visibility = ["//visibility:public"],
|
||||
)
|
23
third_party/farmhash.BUILD
vendored
Normal file
23
third_party/farmhash.BUILD
vendored
Normal file
@ -0,0 +1,23 @@
|
||||
licenses(["notice"]) # MIT
|
||||
|
||||
exports_files(["COPYING"])
|
||||
|
||||
config_setting(
|
||||
name = "windows",
|
||||
values = {
|
||||
"cpu": "x64_windows_msvc",
|
||||
},
|
||||
)
|
||||
|
||||
cc_library(
|
||||
name = "farmhash",
|
||||
srcs = ["src/farmhash.cc"],
|
||||
hdrs = ["src/farmhash.h"],
|
||||
# Disable __builtin_expect support on Windows
|
||||
copts = select({
|
||||
":windows": ["/DFARMHASH_OPTIONAL_BUILTIN_EXPECT"],
|
||||
"//conditions:default": [],
|
||||
}),
|
||||
includes = ["src/."],
|
||||
visibility = ["//visibility:public"],
|
||||
)
|
46
third_party/gif.BUILD
vendored
Normal file
46
third_party/gif.BUILD
vendored
Normal file
@ -0,0 +1,46 @@
|
||||
# Description:
|
||||
# A library for decoding and encoding GIF images
|
||||
|
||||
licenses(["notice"]) # MIT
|
||||
|
||||
exports_files(["COPYING"])
|
||||
|
||||
cc_library(
|
||||
name = "gif",
|
||||
srcs = [
|
||||
"lib/dgif_lib.c",
|
||||
"lib/egif_lib.c",
|
||||
"lib/gif_err.c",
|
||||
"lib/gif_font.c",
|
||||
"lib/gif_hash.c",
|
||||
"lib/gif_hash.h",
|
||||
"lib/gif_lib_private.h",
|
||||
"lib/gifalloc.c",
|
||||
"lib/openbsd-reallocarray.c",
|
||||
"lib/quantize.c",
|
||||
],
|
||||
hdrs = ["lib/gif_lib.h"],
|
||||
includes = ["lib/."],
|
||||
visibility = ["//visibility:public"],
|
||||
deps = select({
|
||||
":windows": [":windows_polyfill"],
|
||||
"//conditions:default": [],
|
||||
}),
|
||||
)
|
||||
|
||||
cc_library(
|
||||
name = "windows_polyfill",
|
||||
hdrs = ["windows/unistd.h"],
|
||||
includes = ["windows"],
|
||||
)
|
||||
|
||||
genrule(
|
||||
name = "windows_unistd_h",
|
||||
outs = ["windows/unistd.h"],
|
||||
cmd = "touch $@",
|
||||
)
|
||||
|
||||
config_setting(
|
||||
name = "windows",
|
||||
values = {"cpu": "x64_windows_msvc"},
|
||||
)
|
36
third_party/gmock.BUILD
vendored
Normal file
36
third_party/gmock.BUILD
vendored
Normal file
@ -0,0 +1,36 @@
|
||||
# Description:
|
||||
# Google C++ Mocking Framework, a library for creating and using C++
|
||||
# mock classes.
|
||||
|
||||
licenses(["notice"]) # 3-clause BSD
|
||||
|
||||
exports_files(["LICENSE"])
|
||||
|
||||
cc_library(
|
||||
name = "gtest",
|
||||
srcs = [
|
||||
"gtest/src/gtest-all.cc",
|
||||
"src/gmock-all.cc",
|
||||
],
|
||||
hdrs = glob([
|
||||
"**/*.h",
|
||||
"gtest/src/*.cc",
|
||||
"src/*.cc",
|
||||
]),
|
||||
includes = [
|
||||
".",
|
||||
"gtest",
|
||||
"gtest/include",
|
||||
"include",
|
||||
],
|
||||
linkopts = ["-pthread"],
|
||||
visibility = ["//visibility:public"],
|
||||
)
|
||||
|
||||
cc_library(
|
||||
name = "gtest_main",
|
||||
srcs = ["src/gmock_main.cc"],
|
||||
linkopts = ["-pthread"],
|
||||
visibility = ["//visibility:public"],
|
||||
deps = [":gtest"],
|
||||
)
|
2478
third_party/grpc.BUILD
vendored
Normal file
2478
third_party/grpc.BUILD
vendored
Normal file
File diff suppressed because it is too large
Load Diff
33
third_party/jsoncpp.BUILD
vendored
Normal file
33
third_party/jsoncpp.BUILD
vendored
Normal file
@ -0,0 +1,33 @@
|
||||
licenses(["unencumbered"]) # Public Domain or MIT
|
||||
|
||||
exports_files(["LICENSE"])
|
||||
|
||||
cc_library(
|
||||
name = "jsoncpp",
|
||||
srcs = [
|
||||
"include/json/assertions.h",
|
||||
"src/lib_json/json_batchallocator.h",
|
||||
"src/lib_json/json_reader.cpp",
|
||||
"src/lib_json/json_tool.h",
|
||||
"src/lib_json/json_value.cpp",
|
||||
"src/lib_json/json_writer.cpp",
|
||||
],
|
||||
hdrs = [
|
||||
"include/json/autolink.h",
|
||||
"include/json/config.h",
|
||||
"include/json/features.h",
|
||||
"include/json/forwards.h",
|
||||
"include/json/json.h",
|
||||
"include/json/reader.h",
|
||||
"include/json/value.h",
|
||||
"include/json/writer.h",
|
||||
],
|
||||
includes = ["include"],
|
||||
visibility = ["//visibility:public"],
|
||||
deps = [":private"],
|
||||
)
|
||||
|
||||
cc_library(
|
||||
name = "private",
|
||||
textual_hdrs = ["src/lib_json/json_valueiterator.inl"],
|
||||
)
|
137
third_party/libxsmm.BUILD
vendored
Normal file
137
third_party/libxsmm.BUILD
vendored
Normal file
@ -0,0 +1,137 @@
|
||||
# Description:
|
||||
# LIBXSMM: Library for small matrix-matrix multiplications targeting Intel Architecture (x86).
|
||||
|
||||
licenses(["notice"]) # BSD 3-clause
|
||||
|
||||
exports_files(["LICENSE"])
|
||||
|
||||
# Arguments to ./scripts/libxsmm_interface.py, see that file for detailed description.
|
||||
# precision: SP & DP
|
||||
# prefetch: 1 (auto)
|
||||
libxsmm_interface_arguments = "0 1"
|
||||
|
||||
# Arguments to ./scripts/libxsmm_config.py, see that file for detailed description.
|
||||
# ilp64: no
|
||||
# big: no
|
||||
# offload: no
|
||||
# alignment [b]
|
||||
# prefetch: 1 (auto)
|
||||
# threshold: fallback to BLAS if n*m*k above this
|
||||
# synchronize: yes
|
||||
# jit: yes
|
||||
# flags
|
||||
# alpha = 1
|
||||
# beta = 1
|
||||
libxsmm_config_arguments = "0 0 0 64 1 0 1 1 0 1 1"
|
||||
|
||||
# Arguments to ./scripts/libxsmm_dispatch.py, see that file for detailed description.
|
||||
# (dummy argument)
|
||||
libxsmm_dispatch_arguments = "0"
|
||||
|
||||
genrule(
|
||||
name = "libxsmm_headers",
|
||||
srcs = [
|
||||
"src/template/libxsmm.h",
|
||||
"src/template/libxsmm_config.h",
|
||||
],
|
||||
outs = [
|
||||
"include/libxsmm.h",
|
||||
"include/libxsmm_config.h",
|
||||
"include/libxsmm_dispatch.h",
|
||||
],
|
||||
cmd = "$(location :libxsmm_interface) $(location src/template/libxsmm.h) " + libxsmm_interface_arguments + " > $(location include/libxsmm.h);" +
|
||||
"$(location :libxsmm_config) $(location src/template/libxsmm_config.h) " + libxsmm_config_arguments + " > $(location include/libxsmm_config.h);" +
|
||||
"$(location :libxsmm_dispatch) " + libxsmm_dispatch_arguments + " > $(location include/libxsmm_dispatch.h)",
|
||||
tools = [
|
||||
":libxsmm_config",
|
||||
":libxsmm_dispatch",
|
||||
":libxsmm_interface",
|
||||
],
|
||||
visibility = [
|
||||
"//tensorflow/core/kernels:__pkg__",
|
||||
"//third_party/eigen3:__pkg__",
|
||||
],
|
||||
)
|
||||
|
||||
cc_library(
|
||||
name = "xsmm_avx",
|
||||
srcs = [
|
||||
"src/libxsmm_main.c",
|
||||
"src/libxsmm_dump.c",
|
||||
"src/libxsmm_malloc.c",
|
||||
"src/libxsmm_gemm.c",
|
||||
"src/libxsmm_gemm_diff.c",
|
||||
"src/libxsmm_hash.c",
|
||||
"src/libxsmm_timer.c",
|
||||
"src/libxsmm_trace.c",
|
||||
"src/libxsmm_trans.c",
|
||||
"src/libxsmm_sync.c",
|
||||
"src/libxsmm_perf.c",
|
||||
"src/libxsmm_spmdm.c",
|
||||
"src/libxsmm_dnn.c",
|
||||
"src/libxsmm_dnn_handle.c",
|
||||
"src/libxsmm_dnn_convolution_forward.c",
|
||||
"src/libxsmm_dnn_convolution_backward.c",
|
||||
"src/libxsmm_dnn_convolution_weight_update.c",
|
||||
"src/libxsmm_cpuid_x86.c",
|
||||
] + glob([
|
||||
"src/generator_*.c",
|
||||
]),
|
||||
hdrs = [
|
||||
"include/libxsmm_cpuid.h",
|
||||
"include/libxsmm_dnn.h",
|
||||
"include/libxsmm_frontend.h",
|
||||
"include/libxsmm_generator.h",
|
||||
"include/libxsmm_intrinsics_x86.h",
|
||||
"include/libxsmm_macros.h",
|
||||
"include/libxsmm_malloc.h",
|
||||
"include/libxsmm_spmdm.h",
|
||||
"include/libxsmm_sync.h",
|
||||
"include/libxsmm_timer.h",
|
||||
"include/libxsmm_typedefs.h",
|
||||
# Generated:
|
||||
"include/libxsmm.h",
|
||||
"include/libxsmm_config.h",
|
||||
"include/libxsmm_dispatch.h",
|
||||
],
|
||||
copts = [
|
||||
"-mavx", # JIT does not work without avx anyway, and this silences some CRC32 warnings.
|
||||
"-Wno-vla", # Libxsmm convolutions heavily use VLA.
|
||||
],
|
||||
defines = [
|
||||
"LIBXSMM_BUILD",
|
||||
"LIBXSMM_CPUID_X86_NOINLINE",
|
||||
"__BLAS=0",
|
||||
],
|
||||
includes = [
|
||||
"include",
|
||||
"src",
|
||||
"src/template",
|
||||
],
|
||||
linkopts = ["-ldl"],
|
||||
visibility = ["//visibility:public"],
|
||||
)
|
||||
|
||||
py_library(
|
||||
name = "libxsmm_scripts",
|
||||
srcs = glob(["scripts/*.py"]),
|
||||
data = ["version.txt"],
|
||||
)
|
||||
|
||||
py_binary(
|
||||
name = "libxsmm_interface",
|
||||
srcs = ["scripts/libxsmm_interface.py"],
|
||||
deps = [":libxsmm_scripts"],
|
||||
)
|
||||
|
||||
py_binary(
|
||||
name = "libxsmm_config",
|
||||
srcs = ["scripts/libxsmm_config.py"],
|
||||
deps = [":libxsmm_scripts"],
|
||||
)
|
||||
|
||||
py_binary(
|
||||
name = "libxsmm_dispatch",
|
||||
srcs = ["scripts/libxsmm_dispatch.py"],
|
||||
deps = [":libxsmm_scripts"],
|
||||
)
|
13
third_party/linenoise.BUILD
vendored
Normal file
13
third_party/linenoise.BUILD
vendored
Normal file
@ -0,0 +1,13 @@
|
||||
licenses(["notice"]) # 2-clause BSD
|
||||
|
||||
exports_files(["LICENSE"])
|
||||
|
||||
package(
|
||||
default_visibility = ["//visibility:public"],
|
||||
)
|
||||
|
||||
cc_library(
|
||||
name = "linenoise",
|
||||
srcs = ["linenoise.c"],
|
||||
hdrs = ["linenoise.h"],
|
||||
)
|
23
third_party/nanopb.BUILD
vendored
Normal file
23
third_party/nanopb.BUILD
vendored
Normal file
@ -0,0 +1,23 @@
|
||||
# Description:
|
||||
# Nanopb, a tiny ANSI C protobuf implementation for use on embedded devices.
|
||||
|
||||
licenses(["notice"]) # zlib license
|
||||
|
||||
exports_files(["LICENSE.txt"])
|
||||
|
||||
cc_library(
|
||||
name = "nanopb",
|
||||
srcs = [
|
||||
"pb_common.c",
|
||||
"pb_decode.c",
|
||||
"pb_encode.c",
|
||||
],
|
||||
hdrs = [
|
||||
"pb.h",
|
||||
"pb_common.h",
|
||||
"pb_decode.h",
|
||||
"pb_encode.h",
|
||||
],
|
||||
includes = ["."],
|
||||
visibility = ["//visibility:public"],
|
||||
)
|
35
third_party/png.BUILD
vendored
Normal file
35
third_party/png.BUILD
vendored
Normal file
@ -0,0 +1,35 @@
|
||||
# Description:
|
||||
# libpng is the official PNG reference library.
|
||||
|
||||
licenses(["notice"]) # BSD/MIT-like license
|
||||
|
||||
exports_files(["LICENSE"])
|
||||
|
||||
cc_library(
|
||||
name = "png",
|
||||
srcs = [
|
||||
"png.c",
|
||||
"pngerror.c",
|
||||
"pngget.c",
|
||||
"pngmem.c",
|
||||
"pngpread.c",
|
||||
"pngread.c",
|
||||
"pngrio.c",
|
||||
"pngrtran.c",
|
||||
"pngrutil.c",
|
||||
"pngset.c",
|
||||
"pngtrans.c",
|
||||
"pngwio.c",
|
||||
"pngwrite.c",
|
||||
"pngwtran.c",
|
||||
"pngwutil.c",
|
||||
],
|
||||
hdrs = [
|
||||
"png.h",
|
||||
"pngconf.h",
|
||||
],
|
||||
includes = ["."],
|
||||
linkopts = ["-lm"],
|
||||
visibility = ["//visibility:public"],
|
||||
deps = ["@zlib_archive//:zlib"],
|
||||
)
|
14
third_party/six.BUILD
vendored
Normal file
14
third_party/six.BUILD
vendored
Normal file
@ -0,0 +1,14 @@
|
||||
# Description:
|
||||
# Six provides simple utilities for wrapping over differences between Python 2
|
||||
# and Python 3.
|
||||
|
||||
licenses(["notice"]) # MIT
|
||||
|
||||
exports_files(["LICENSE"])
|
||||
|
||||
py_library(
|
||||
name = "six",
|
||||
srcs = ["six.py"],
|
||||
srcs_version = "PY2AND3",
|
||||
visibility = ["//visibility:public"],
|
||||
)
|
40
third_party/zlib.BUILD
vendored
Normal file
40
third_party/zlib.BUILD
vendored
Normal file
@ -0,0 +1,40 @@
|
||||
package(default_visibility = ["//visibility:public"])
|
||||
|
||||
licenses(["notice"]) # BSD/MIT-like license (for zlib)
|
||||
|
||||
cc_library(
|
||||
name = "zlib",
|
||||
srcs = [
|
||||
"adler32.c",
|
||||
"compress.c",
|
||||
"crc32.c",
|
||||
"crc32.h",
|
||||
"deflate.c",
|
||||
"deflate.h",
|
||||
"gzclose.c",
|
||||
"gzguts.h",
|
||||
"gzlib.c",
|
||||
"gzread.c",
|
||||
"gzwrite.c",
|
||||
"infback.c",
|
||||
"inffast.c",
|
||||
"inffast.h",
|
||||
"inffixed.h",
|
||||
"inflate.c",
|
||||
"inflate.h",
|
||||
"inftrees.c",
|
||||
"inftrees.h",
|
||||
"trees.c",
|
||||
"trees.h",
|
||||
"uncompr.c",
|
||||
"zconf.h",
|
||||
"zutil.c",
|
||||
"zutil.h",
|
||||
],
|
||||
hdrs = ["zlib.h"],
|
||||
copts = [
|
||||
"-Wno-shift-negative-value",
|
||||
"-Wno-implicit-function-declaration",
|
||||
],
|
||||
includes = ["."],
|
||||
)
|
Loading…
Reference in New Issue
Block a user