flann.BUILD 3.8 KB
Newer Older
Reza Mahjourian's avatar
Reza Mahjourian committed
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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
# Description:
#    FLANN is a library for performing fast approximate nearest neighbor
#    searches in high dimensional spaces. It contains a collection of
#    algorithms we found to work best for nearest neighbor search and a system
#    for automatically choosing the best algorithm and optimum parameters
#    depending on the dataset.

licenses(["notice"])  # BSD

package(
    default_visibility = ["//visibility:public"],
    features = [
        "-layering_check",
        "-parse_headers",
    ],
)

FLANN_COPTS = [
    "-fopenmp",
    "-fexceptions",
    "-Wno-non-virtual-dtor",
    "-Wno-unknown-pragmas",
    "-Wno-conversion",
]

BOOST_TARGETS = [
    "@boost//:algorithm",
    "@boost//:align",
    "@boost//:any",
    "@boost//:archive",
    "@boost//:array",
    "@boost//:asio",
    "@boost//:assert",
    "@boost//:atomic",
    "@boost//:beast",
    "@boost//:bimap",
    "@boost//:bind",
    "@boost//:call_traits",
    "@boost//:callable_traits",
    "@boost//:cerrno",
    "@boost//:checked_delete",
    "@boost//:chrono",
    "@boost//:circular_buffer",
    # "@boost//:compute",
    "@boost//:concept",
    "@boost//:concept_archetype",
    "@boost//:concept_check",
    "@boost//:config",
    "@boost//:container",
    # "@boost//:context",
    "@boost//:conversion",
    "@boost//:core",
    # "@boost//:coroutine",
    "@boost//:cstdint",
    "@boost//:current_function",
    "@boost//:date_time",
    "@boost//:detail",
    "@boost//:dynamic_bitset",
    "@boost//:enable_shared_from_this",
    # "@boost//:endian",
    "@boost//:exception",
    "@boost//:exception_ptr",
    # "@boost//:fiber",
    "@boost//:filesystem",
    "@boost//:foreach",
    "@boost//:format",
    "@boost//:function",
    "@boost//:function_types",
    "@boost//:functional",
    "@boost//:fusion",
    "@boost//:get_pointer",
    "@boost//:heap",
    # "@boost//:icl",
    "@boost//:integer",
    "@boost//:interprocess",
    "@boost//:intrusive",
    "@boost//:intrusive_ptr",
    "@boost//:io",
    "@boost//:iostreams",
    "@boost//:is_placeholder",
    "@boost//:iterator",
    "@boost//:lexical_cast",
    "@boost//:limits",
    "@boost//:math",
    "@boost//:mem_fn",
    "@boost//:move",
    "@boost//:mp11",
    "@boost//:mpl",
    "@boost//:multi_index",
    # "@boost//:multiprecision",
    "@boost//:noncopyable",
    "@boost//:none",
    "@boost//:numeric",
    "@boost//:numeric_conversion",
    "@boost//:numeric_ublas",
    "@boost//:operators",
    "@boost//:optional",
    "@boost//:parameter",
    # "@boost//:pool",
    "@boost//:predef",
    "@boost//:preprocessor",
    "@boost//:process",
    "@boost//:program_options",
    "@boost//:property_tree",
    "@boost//:ptr_container",
    "@boost//:random",
    "@boost//:range",
    "@boost//:ratio",
    # "@boost//:rational",
    "@boost//:ref",
    "@boost//:regex",
    "@boost//:scope_exit",
    "@boost//:scoped_array",
    "@boost//:scoped_ptr",
    "@boost//:serialization",
    "@boost//:shared_array",
    "@boost//:shared_ptr",
    "@boost//:signals2",
    "@boost//:smart_ptr",
    "@boost//:spirit",
    "@boost//:static_assert",
    "@boost//:swap",
    "@boost//:system",
    "@boost//:thread",
    "@boost//:throw_exception",
    "@boost//:timer",
    "@boost//:tokenizer",
    # "@boost//:tribool",
    "@boost//:tuple",
    "@boost//:type",
    "@boost//:type_index",
    "@boost//:type_traits",
    "@boost//:typeof",
    "@boost//:unordered",
    "@boost//:utility",
    "@boost//:uuid",
    "@boost//:variant",
    "@boost//:version",
    "@boost//:visit_each",
]

FLANN_DEPS = BOOST_TARGETS + [
    "@hdf5//:hdf5",
]

cc_library(
    name = "flann",
    srcs = glob([
        "src/**/*.cpp",
    ]),
    hdrs = glob([
        "src/**/*.h",
        "src/**/*.hpp",
    ]),
    copts = FLANN_COPTS,
    includes = [
        "src/cpp",
    ],
    linkopts = ["-lgomp"],
    deps = FLANN_DEPS,
)