forked from tensorflow/tensorflow
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlmdb.BUILD
37 lines (32 loc) · 773 Bytes
/
lmdb.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
# Description:
# LMDB is the Lightning Memory-mapped Database.
licenses(["notice"]) # OpenLDAP Public License
exports_files(["LICENSE"])
cc_library(
name = "lmdb",
srcs = [
"mdb.c",
"midl.c",
],
hdrs = [
"lmdb.h",
"midl.h",
],
copts = [
"-w",
],
linkopts = select({
":windows": ["-DEFAULTLIB:advapi32.lib"], # InitializeSecurityDescriptor, SetSecurityDescriptorDacl
":windows_msvc": ["-DEFAULTLIB:advapi32.lib"],
"//conditions:default": ["-lpthread"],
}),
visibility = ["//visibility:public"],
)
config_setting(
name = "windows",
values = {"cpu": "x64_windows"},
)
config_setting(
name = "windows_msvc",
values = {"cpu": "x64_windows_msvc"},
)