aboutsummaryrefslogtreecommitdiffhomepage
path: root/third_party/gif.BUILD
diff options
context:
space:
mode:
Diffstat (limited to 'third_party/gif.BUILD')
-rw-r--r--third_party/gif.BUILD14
1 files changed, 14 insertions, 0 deletions
diff --git a/third_party/gif.BUILD b/third_party/gif.BUILD
index ad6821af3c..27808a9d64 100644
--- a/third_party/gif.BUILD
+++ b/third_party/gif.BUILD
@@ -20,6 +20,15 @@ cc_library(
"lib/quantize.c",
],
hdrs = ["lib/gif_lib.h"],
+ defines = select({
+ #"@%ws%//tensorflow:android": [
+ ":android": [
+ "S_IREAD=S_IRUSR",
+ "S_IWRITE=S_IWUSR",
+ "S_IEXEC=S_IXUSR",
+ ],
+ "//conditions:default": [],
+ }),
includes = ["lib/."],
visibility = ["//visibility:public"],
deps = select({
@@ -54,3 +63,8 @@ config_setting(
"cpu": "x64_windows",
},
)
+
+config_setting(
+ name = "android",
+ values = {"crosstool_top": "//external:android/crosstool"},
+)