From c35bd2e9d3d9311bc7fb0f2463869faf1a8a7b50 Mon Sep 17 00:00:00 2001 From: Michael Case Date: Thu, 12 Jul 2018 11:56:18 -0700 Subject: Internal Change. PiperOrigin-RevId: 204338153 --- tensorflow/BUILD | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tensorflow/BUILD') diff --git a/tensorflow/BUILD b/tensorflow/BUILD index 51eea94847..518c2b0489 100644 --- a/tensorflow/BUILD +++ b/tensorflow/BUILD @@ -20,7 +20,7 @@ load( "tf_additional_binary_deps", ) load( - "//tensorflow/tools/api/generator:api_gen.bzl", + "//tensorflow/python/tools/api/generator:api_gen.bzl", "gen_api_init_files", # @unused ) -- cgit v1.2.3 From 8ec87f55008982eb939d963c1d4a4ff7ef9ab3d3 Mon Sep 17 00:00:00 2001 From: Smit Hinsu Date: Thu, 19 Jul 2018 13:06:41 -0700 Subject: Mark tensorflow_lingvo directory as internal to tensorflow PiperOrigin-RevId: 205288716 --- tensorflow/BUILD | 1 + 1 file changed, 1 insertion(+) (limited to 'tensorflow/BUILD') diff --git a/tensorflow/BUILD b/tensorflow/BUILD index 518c2b0489..0b08f2093d 100644 --- a/tensorflow/BUILD +++ b/tensorflow/BUILD @@ -415,6 +415,7 @@ package_group( "//learning/meta_rank/...", "//tensorflow/...", "//tensorflow_fold/llgtm/...", + "//tensorflow_lingvo/...", "//third_party/py/tensor2tensor/...", ], ) -- cgit v1.2.3 From 498fed9be6cc556b08c1d3ffd31565497daaa8c1 Mon Sep 17 00:00:00 2001 From: Gunhan Gulsoy Date: Thu, 19 Jul 2018 13:59:20 -0700 Subject: Automated rollback of commit 8ec87f55008982eb939d963c1d4a4ff7ef9ab3d3 PiperOrigin-RevId: 205297172 --- tensorflow/BUILD | 1 - 1 file changed, 1 deletion(-) (limited to 'tensorflow/BUILD') diff --git a/tensorflow/BUILD b/tensorflow/BUILD index 0b08f2093d..518c2b0489 100644 --- a/tensorflow/BUILD +++ b/tensorflow/BUILD @@ -415,7 +415,6 @@ package_group( "//learning/meta_rank/...", "//tensorflow/...", "//tensorflow_fold/llgtm/...", - "//tensorflow_lingvo/...", "//third_party/py/tensor2tensor/...", ], ) -- cgit v1.2.3 From 41b93403ac8148bd880c749165c40840ddb95b44 Mon Sep 17 00:00:00 2001 From: "A. Unique TensorFlower" Date: Fri, 20 Jul 2018 11:26:39 -0700 Subject: Create a config option to not link LGPL PiperOrigin-RevId: 205427089 --- tensorflow/BUILD | 8 ++++++++ tensorflow/tensorflow.bzl | 8 ++++++++ 2 files changed, 16 insertions(+) (limited to 'tensorflow/BUILD') diff --git a/tensorflow/BUILD b/tensorflow/BUILD index 518c2b0489..388ca3f293 100644 --- a/tensorflow/BUILD +++ b/tensorflow/BUILD @@ -24,6 +24,14 @@ load( "gen_api_init_files", # @unused ) +# Config setting used when building for products +# which requires restricted licenses to be avoided. +config_setting( + name = "no_lgpl_deps", + values = {"define": "__TENSORFLOW_NO_LGPL_DEPS__=1"}, + visibility = ["//visibility:public"], +) + # Config setting for determining if we are building for Android. config_setting( name = "android", diff --git a/tensorflow/tensorflow.bzl b/tensorflow/tensorflow.bzl index 955b53f691..954940642b 100644 --- a/tensorflow/tensorflow.bzl +++ b/tensorflow/tensorflow.bzl @@ -137,6 +137,14 @@ def if_not_mobile(a): "//conditions:default": a, }) +# Config setting selector used when building for products +# which requires restricted licenses to be avoided. +def if_not_lgpl_restricted(a): + _ = (a,) + return select({ + "//conditions:default": [], + }) + def if_not_windows(a): return select({ clean_dep("//tensorflow:windows"): [], -- cgit v1.2.3