|
a |
|
b/third_party/sdsl_lite.BUILD |
|
|
1 |
# Description: |
|
|
2 |
# (https://github.com/vgteam/sdsl-lite) |
|
|
3 |
# SDSL - Succinct Data Structure Library (vgteam fork) |
|
|
4 |
|
|
|
5 |
package( |
|
|
6 |
default_visibility = ["//visibility:public"], |
|
|
7 |
features = [ |
|
|
8 |
"-layering_check", |
|
|
9 |
"-parse_headers", |
|
|
10 |
], |
|
|
11 |
) |
|
|
12 |
|
|
|
13 |
licenses(["restricted"]) |
|
|
14 |
|
|
|
15 |
exports_files(["COPYING"]) |
|
|
16 |
|
|
|
17 |
include_sdsl_lite = "include" |
|
|
18 |
|
|
|
19 |
includes = [ |
|
|
20 |
include_sdsl_lite, |
|
|
21 |
".", |
|
|
22 |
] |
|
|
23 |
|
|
|
24 |
LIBRARY_COPTS = [ |
|
|
25 |
"-w", # turn off all warnings |
|
|
26 |
] |
|
|
27 |
|
|
|
28 |
SRCS = glob( |
|
|
29 |
["lib/*cpp"], |
|
|
30 |
exclude = [ |
|
|
31 |
"lib/lcp_support_tree.cpp", |
|
|
32 |
"lib/construct_lcp_helper.cpp", |
|
|
33 |
"lib/construct_lcp.cpp", |
|
|
34 |
"lib/louds_tree.cpp", |
|
|
35 |
"lib/bp_support_algorithm.cpp", |
|
|
36 |
"lib/nn_dict_dynamic.cpp", |
|
|
37 |
], |
|
|
38 |
) |
|
|
39 |
|
|
|
40 |
PRIVATE_HDRS = [ |
|
|
41 |
"include/sdsl/simple_sds.hpp", |
|
|
42 |
"include/sdsl/rle_vector.hpp", |
|
|
43 |
"include/sdsl/bits.hpp", |
|
|
44 |
"include/sdsl/bit_vector_il.hpp", |
|
|
45 |
"include/sdsl/bit_vectors.hpp", |
|
|
46 |
"include/sdsl/coder_comma.hpp", |
|
|
47 |
"include/sdsl/coder_elias_delta.hpp", |
|
|
48 |
"include/sdsl/coder_elias_gamma.hpp", |
|
|
49 |
"include/sdsl/coder_fibonacci.hpp", |
|
|
50 |
"include/sdsl/coder.hpp", |
|
|
51 |
"include/sdsl/config.hpp", |
|
|
52 |
"include/sdsl/construct_bwt.hpp", |
|
|
53 |
"include/sdsl/construct_config.hpp", |
|
|
54 |
"include/sdsl/construct.hpp", |
|
|
55 |
"include/sdsl/construct_isa.hpp", |
|
|
56 |
"include/sdsl/construct_lcp_helper.hpp", |
|
|
57 |
"include/sdsl/construct_lcp.hpp", |
|
|
58 |
"include/sdsl/construct_sa.hpp", |
|
|
59 |
"include/sdsl/construct_sa_se.hpp", |
|
|
60 |
"include/sdsl/csa_alphabet_strategy.hpp", |
|
|
61 |
"include/sdsl/csa_bitcompressed.hpp", |
|
|
62 |
"include/sdsl/csa_sada.hpp", |
|
|
63 |
"include/sdsl/csa_sampling_strategy.hpp", |
|
|
64 |
"include/sdsl/csa_wt.hpp", |
|
|
65 |
"include/sdsl/dac_vector.hpp", |
|
|
66 |
"include/sdsl/enc_vector.hpp", |
|
|
67 |
"include/sdsl/fast_cache.hpp", |
|
|
68 |
"include/sdsl/hyb_vector.hpp", |
|
|
69 |
"include/sdsl/int_vector_buffer.hpp", |
|
|
70 |
"include/sdsl/int_vector.hpp", |
|
|
71 |
"include/sdsl/inv_perm_support.hpp", |
|
|
72 |
"include/sdsl/io.hpp", |
|
|
73 |
"include/sdsl/iterators.hpp", |
|
|
74 |
"include/sdsl/memory_management.hpp", |
|
|
75 |
"include/sdsl/qsufsort.hpp", |
|
|
76 |
"include/sdsl/ram_filebuf.hpp", |
|
|
77 |
"include/sdsl/ram_fs.hpp", |
|
|
78 |
"include/sdsl/rank_support.hpp", |
|
|
79 |
"include/sdsl/rank_support_scan.hpp", |
|
|
80 |
"include/sdsl/rank_support_v5.hpp", |
|
|
81 |
"include/sdsl/rank_support_v.hpp", |
|
|
82 |
"include/sdsl/rrr_helper.hpp", |
|
|
83 |
"include/sdsl/rrr_vector_15.hpp", |
|
|
84 |
"include/sdsl/rrr_vector.hpp", |
|
|
85 |
"include/sdsl/sdsl_concepts.hpp", |
|
|
86 |
"include/sdsl/sd_vector.hpp", |
|
|
87 |
"include/sdsl/select_support.hpp", |
|
|
88 |
"include/sdsl/select_support_mcl.hpp", |
|
|
89 |
"include/sdsl/select_support_scan.hpp", |
|
|
90 |
"include/sdsl/sfstream.hpp", |
|
|
91 |
"include/sdsl/structure_tree.hpp", |
|
|
92 |
"include/sdsl/suffix_array_algorithm.hpp", |
|
|
93 |
"include/sdsl/suffix_array_helper.hpp", |
|
|
94 |
"include/sdsl/suffix_arrays.hpp", |
|
|
95 |
"include/sdsl/uint128_t.hpp", |
|
|
96 |
"include/sdsl/uint256_t.hpp", |
|
|
97 |
"include/sdsl/uintx_t.hpp", |
|
|
98 |
"include/sdsl/util.hpp", |
|
|
99 |
"include/sdsl/vectors.hpp", |
|
|
100 |
"include/sdsl/vlc_vector.hpp", |
|
|
101 |
"include/sdsl/wavelet_trees.hpp", |
|
|
102 |
"include/sdsl/wm_int.hpp", |
|
|
103 |
"include/sdsl/wt_algorithm.hpp", |
|
|
104 |
"include/sdsl/wt_ap.hpp", |
|
|
105 |
"include/sdsl/wt_blcd.hpp", |
|
|
106 |
"include/sdsl/wt_gmr.hpp", |
|
|
107 |
"include/sdsl/wt_helper.hpp", |
|
|
108 |
"include/sdsl/wt_huff.hpp", |
|
|
109 |
"include/sdsl/wt_hutu.hpp", |
|
|
110 |
"include/sdsl/wt_int.hpp", |
|
|
111 |
"include/sdsl/wt_pc.hpp", |
|
|
112 |
"include/sdsl/wt_rlmn.hpp", |
|
|
113 |
] |
|
|
114 |
|
|
|
115 |
cc_library( |
|
|
116 |
name = "sdsl_lite", |
|
|
117 |
srcs = PRIVATE_HDRS + SRCS, |
|
|
118 |
hdrs = [ |
|
|
119 |
"include/sdsl/int_vector.hpp", |
|
|
120 |
"include/sdsl/sd_vector.hpp", |
|
|
121 |
"include/sdsl/simple_sds.hpp", |
|
|
122 |
"include/sdsl/suffix_arrays.hpp", |
|
|
123 |
], |
|
|
124 |
copts = LIBRARY_COPTS, |
|
|
125 |
includes = includes, |
|
|
126 |
deps = [ |
|
|
127 |
"@com_google_absl//absl/log", |
|
|
128 |
"@com_google_absl//absl/log:absl_log", |
|
|
129 |
"@libdivsufsort", |
|
|
130 |
"@libdivsufsort//:libdivsufsort64", |
|
|
131 |
# "@zstdlib//:dict-builder-lib", |
|
|
132 |
], |
|
|
133 |
) |
|
|
134 |
|
|
|
135 |
cc_binary( |
|
|
136 |
name = "test_fmindex", |
|
|
137 |
srcs = ["test_fmindex.cc"], |
|
|
138 |
copts = ["-fexceptions"], |
|
|
139 |
deps = [":sdsl_lite"], |
|
|
140 |
) |