-
Notifications
You must be signed in to change notification settings - Fork 281
/
uuid.BUILD
53 lines (51 loc) · 1.27 KB
/
uuid.BUILD
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
# Description:
# uuid
licenses(["notice"])
cc_library(
name = "uuid",
srcs = [
"include/all-io.h",
"include/c.h",
"include/md5.h",
"include/nls.h",
"include/randutils.h",
"include/sha1.h",
"include/strutils.h",
"lib/md5.c",
"lib/randutils.c",
"lib/sha1.c",
"libuuid/src/clear.c",
"libuuid/src/compare.c",
"libuuid/src/copy.c",
"libuuid/src/gen_uuid.c",
"libuuid/src/isnull.c",
"libuuid/src/pack.c",
"libuuid/src/parse.c",
"libuuid/src/predefined.c",
"libuuid/src/unpack.c",
"libuuid/src/unparse.c",
"libuuid/src/uuid.h",
"libuuid/src/uuidP.h",
"libuuid/src/uuid_time.c",
"libuuid/src/uuidd.h",
],
hdrs = [
"libuuid/src/uuid.h",
],
copts = ["-std=c99"],
defines = select({
"//conditions:default": [
"_XOPEN_SOURCE=700",
"HAVE_NANOSLEEP",
"HAVE_SYS_FILE_H",
"HAVE_MEMCPY",
"HAVE_STRNLEN",
"HAVE_STRNDUP",
"HAVE_STRNCHR",
],
}),
include_prefix = "uuid",
includes = ["include"],
strip_include_prefix = "libuuid/src",
visibility = ["//visibility:public"],
)