From 57b2fbb59804497c3860106e70323405cc1871bf Mon Sep 17 00:00:00 2001 From: Jason Zaman Date: Wed, 15 Aug 2018 18:02:06 +0800 Subject: systemlibs: Unbundle BoringSSL dependency Signed-off-by: Jason Zaman --- tensorflow/workspace.bzl | 1 + third_party/systemlibs/boringssl.BUILD | 21 +++++++++++++++++++++ third_party/systemlibs/syslibs_configure.bzl | 1 + 3 files changed, 23 insertions(+) create mode 100644 third_party/systemlibs/boringssl.BUILD 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", -- cgit v1.2.3