1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
|
# 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"],
defines = select({
#"@org_tensorflow//tensorflow:android": [
":android": [
"S_IREAD=S_IRUSR",
"S_IWRITE=S_IWUSR",
"S_IEXEC=S_IXUSR",
],
"//conditions:default": [],
}),
includes = ["lib/."],
visibility = ["//visibility:public"],
deps = select({
":windows": [":windows_polyfill"],
":windows_msvc": [":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_msvc",
values = {
"cpu": "x64_windows_msvc",
},
)
config_setting(
name = "windows",
values = {
"cpu": "x64_windows",
},
)
config_setting(
name = "android",
values = {"crosstool_top": "//external:android/crosstool"},
)
|