-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathBUILD.libpsi
57 lines (52 loc) · 1.4 KB
/
BUILD.libpsi
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
package(default_visibility = ["//visibility:public",],)
## sparsehash
cc_library(
name = "sparsehash_config",
hdrs = ["sparseconfig.h"],
include_prefix = "sparsehash/internal",
visibility = ["//visibility:public"],
)
## libpsi
cc_library(
name = "libpsi_config",
hdrs = ["config.h"],
include_prefix = "libPSI",
visibility = ["//visibility:public"],
)
cc_library(
name = "libpsi",
srcs = glob([
"libPSI/**/*.cpp",
"libPSI/**/*.h",
#"frontend/**/*.cpp",
],
exclude = [
"libPSI/Tools/RandomShuffle.cpp",
"libPSI/Tools/BalancedIndex.cpp",
"libPSI/Tools/RandomShuffle.h",
"libPSI/Tools/BalancedIndex.h",
],),
hdrs = glob([
"libPSI/**/*.h",
#"frontend/**/*.h",
],
exclude = [
"libPSI/Tools/RandomShuffle.h",
"libPSI/Tools/BalancedIndex.h",
],),
includes = ["libPSI"],
visibility = ["//visibility:public"],
linkopts = ["-pthread -lstdc++"],
copts = ["-I. -std=c++14 -O0 -g -ggdb -rdynamic -maes -msse2 -msse3 -msse4.1 -mpclmul"],
strip_include_prefix = "libPSI",
# Using an empty include_prefix causes Bazel to emit -I instead of -iquote
# options for the include directory, so that #include <gmp.h> works.
include_prefix = "libPSI",
deps = [
":libpsi_config",
"@ladnir_cryptoTools//:libcryptoTools",
"@osu_libote//:libOTe",
"@github_ntl//:libntl",
"@google_sparsehash//:sparsehash",
],
)