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
|
# Description:
# sqlite3 is a serverless SQL RDBMS.
licenses(["unencumbered"]) # Public Domain
SQLITE_COPTS = [
"-Os",
"-DHAVE_DECL_STRERROR_R=1",
"-DHAVE_STDINT_H=1",
"-DHAVE_INTTYPES_H=1",
"-D_FILE_OFFSET_BITS=64",
"-D_REENTRANT=1",
] + select({
"@org_tensorflow//tensorflow:windows": [
"-DSQLITE_MAX_TRIGGER_DEPTH=100",
],
"@org_tensorflow//tensorflow:windows_msvc": [
"-DSQLITE_MAX_TRIGGER_DEPTH=100",
],
"@org_tensorflow//tensorflow:darwin": [
"-DHAVE_GMTIME_R=1",
"-DHAVE_LOCALTIME_R=1",
"-DHAVE_USLEEP=1",
],
"//conditions:default": [
"-DHAVE_FDATASYNC=1",
"-DHAVE_GMTIME_R=1",
"-DHAVE_LOCALTIME_R=1",
"-DHAVE_POSIX_FALLOCATE=1",
"-DHAVE_USLEEP=1",
],
})
# Production build of SQLite library that's baked into TensorFlow.
cc_library(
name = "org_sqlite",
srcs = ["sqlite3.c"],
hdrs = [
"sqlite3.h",
"sqlite3ext.h",
],
copts = SQLITE_COPTS,
defines = [
# This gets rid of the bloat of deprecated functionality. It
# needs to be listed here instead of copts because it's actually
# referenced in the sqlite3.h file.
"SQLITE_OMIT_DEPRECATED",
],
linkopts = select({
"@org_tensorflow//tensorflow:windows_msvc": [],
"//conditions:default": [
"-ldl",
"-lpthread",
],
}),
visibility = ["//visibility:public"],
)
# This is a Copybara sync helper for Google.
py_library(
name = "python",
srcs_version = "PY2AND3",
visibility = ["//visibility:public"],
)
|