1+ load ("@rules_cc//cc:cc_library.bzl" , "cc_library" )
2+ load ("@rules_cc//cc:cc_test.bzl" , "cc_test" )
3+
14cc_library (
25 name = "common" ,
36 srcs = [
7+ "axis_range.cc" ,
48 "bit_input_buffer.cc" ,
59 "bit_input_buffer.h" ,
610 "bit_output_buffer.cc" ,
711 "bit_output_buffer.h" ,
812 "brotli_binary_diff.cc" ,
913 "brotli_binary_patch.cc" ,
14+ "compat_id.cc" ,
15+ "compat_id.h" ,
1016 "file_font_provider.cc" ,
1117 "font_helper.cc" ,
1218 "hb_set_unique_ptr.cc" ,
13- "sparse_bit_set.cc" ,
14- "axis_range.cc" ,
1519 "indexed_data_reader.h" ,
20+ "sparse_bit_set.cc" ,
1621 "woff2.cc" ,
17- "compat_id.h" ,
18- "compat_id.cc" ,
1922 ],
2023 hdrs = [
24+ "axis_range.h" ,
2125 "binary_diff.h" ,
2226 "binary_patch.h" ,
2327 "branch_factor.h" ,
2428 "brotli_binary_diff.h" ,
2529 "brotli_binary_patch.h" ,
30+ "compat_id.h" ,
2631 "file_font_provider.h" ,
2732 "font_data.h" ,
2833 "font_helper.h" ,
2934 "font_helper_macros.h" ,
3035 "font_provider.h" ,
36+ "hasher.h" ,
3137 "hb_set_unique_ptr.h" ,
38+ "int_set.h" ,
3239 "sparse_bit_set.h" ,
33- "axis_range.h" ,
34- "woff2.h" ,
35- "hasher.h" ,
36- "compat_id.h" ,
3740 "try.h" ,
38- "int_set.h" ,
41+ "woff2.h" ,
42+ ],
43+ copts = [
44+ "-DHB_EXPERIMENTAL_API" ,
3945 ],
4046 visibility = [
4147 "//visibility:public" ,
4248 ],
4349 deps = [
4450 "//brotli:shared_brotli_encoder" ,
45- "@brotli//:brotlidec" ,
46- "@brotli//:brotlienc" ,
51+ "@abseil-cpp//absl/container:btree" ,
4752 "@abseil-cpp//absl/container:flat_hash_map" ,
4853 "@abseil-cpp//absl/container:flat_hash_set" ,
49- "@abseil-cpp//absl/container:btree" ,
5054 "@abseil-cpp//absl/log" ,
5155 "@abseil-cpp//absl/status:statusor" ,
5256 "@abseil-cpp//absl/strings" ,
57+ "@brotli//:brotlidec" ,
58+ "@brotli//:brotlienc" ,
5359 "@harfbuzz" ,
5460 "@woff2" ,
5561 ],
56- copts = [
57- "-DHB_EXPERIMENTAL_API" ,
58- ],
5962)
6063
6164cc_library (
@@ -91,18 +94,18 @@ cc_test(
9194 name = "common_test" ,
9295 size = "small" ,
9396 srcs = [
97+ "axis_range_test.cc" ,
9498 "bit_buffer_test.cc" ,
9599 "bit_input_buffer_test.cc" ,
96100 "bit_output_buffer_test.cc" ,
97101 "branch_factor_test.cc" ,
98102 "brotli_patching_test.cc" ,
99- "axis_range_test.cc" ,
100- "indexed_data_reader_test.cc" ,
101103 "file_font_provider_test.cc" ,
102104 "font_helper_test.cc" ,
105+ "indexed_data_reader_test.cc" ,
106+ "int_set_test.cc" ,
103107 "sparse_bit_set_test.cc" ,
104108 "woff2_test.cc" ,
105- "int_set_test.cc" ,
106109 ],
107110 data = [
108111 "//common:testdata" ,
@@ -111,8 +114,8 @@ cc_test(
111114 deps = [
112115 ":common" ,
113116 ":mocks" ,
114- "@googletest//:gtest_main" ,
115117 "@abseil-cpp//absl/container:btree" ,
116118 "@abseil-cpp//absl/hash:hash_test" ,
119+ "@googletest//:gtest_main" ,
117120 ],
118121)
0 commit comments