diff options
author | Jason Zaman <jason@perfinion.com> | 2018-08-15 18:02:06 +0800 |
---|---|---|
committer | Jason Zaman <jason@perfinion.com> | 2018-09-22 10:31:26 +0800 |
commit | 57b2fbb59804497c3860106e70323405cc1871bf (patch) | |
tree | 3095437a37349d40dd0b9ba5d3bc58283bd2f9b9 | |
parent | 36c568f1fdc53376052ab354d56f33e0df4a9319 (diff) |
systemlibs: Unbundle BoringSSL dependency
Signed-off-by: Jason Zaman <jason@perfinion.com>
-rwxr-xr-x | tensorflow/workspace.bzl | 1 | ||||
-rw-r--r-- | third_party/systemlibs/boringssl.BUILD | 21 | ||||
-rw-r--r-- | third_party/systemlibs/syslibs_configure.bzl | 1 |
3 files changed, 23 insertions, 0 deletions
diff --git a/tensorflow/workspace.bzl b/tensorflow/workspace.bzl index a1e7567f4f..ce68a46b96 100755 --- a/tensorflow/workspace.bzl +++ b/tensorflow/workspace.bzl @@ -531,6 +531,7 @@ def tf_workspace(path_prefix = "", tf_repo_name = ""): ], sha256 = "1188e29000013ed6517168600fc35a010d58c5d321846d6a6dfee74e4c788b45", strip_prefix = "boringssl-7f634429a04abc48e2eb041c81c5235816c96514", + system_build_file = clean_dep("//third_party/systemlibs:boringssl.BUILD"), ) tf_http_archive( diff --git a/third_party/systemlibs/boringssl.BUILD b/third_party/systemlibs/boringssl.BUILD new file mode 100644 index 0000000000..bc4c533403 --- /dev/null +++ b/third_party/systemlibs/boringssl.BUILD @@ -0,0 +1,21 @@ +licenses(["notice"]) + +filegroup( + name = "LICENSE", + visibility = ["//visibility:public"], +) + +cc_library( + name = "crypto", + linkopts = ["-lcrypto"], + visibility = ["//visibility:public"], +) + +cc_library( + name = "ssl", + linkopts = ["-lssl"], + visibility = ["//visibility:public"], + deps = [ + ":crypto", + ], +) diff --git a/third_party/systemlibs/syslibs_configure.bzl b/third_party/systemlibs/syslibs_configure.bzl index 41b867e770..b22da7c251 100644 --- a/third_party/systemlibs/syslibs_configure.bzl +++ b/third_party/systemlibs/syslibs_configure.bzl @@ -11,6 +11,7 @@ _TF_SYSTEM_LIBS = "TF_SYSTEM_LIBS" VALID_LIBS = [ "astor_archive", + "boringssl", "com_googlesource_code_re2", "curl", "cython", |