Ai
1 Star 1 Fork 0

tensorflows/tensorflow

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
sqlite.BUILD 1.55 KB
一键复制 编辑 原始数据 按行查看 历史
# Description:
# sqlite3 is a serverless SQL RDBMS.
licenses(["unencumbered"]) # Public Domain
SQLITE_COPTS = [
"-DSQLITE_ENABLE_JSON1",
"-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:macos": [
"-Os",
"-DHAVE_GMTIME_R=1",
"-DHAVE_LOCALTIME_R=1",
"-DHAVE_USLEEP=1",
],
"//conditions:default": [
"-Os",
"-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": [],
"//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"],
)
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/tensorflows/tensorflow.git
git@gitee.com:tensorflows/tensorflow.git
tensorflows
tensorflow
tensorflow
master

搜索帮助