-
Notifications
You must be signed in to change notification settings - Fork 14
/
BUILD.bazel
64 lines (56 loc) · 1.3 KB
/
BUILD.bazel
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
# Copyright 2022 Google LLC
#
# Use of this source code is governed by an MIT-style
# license that can be found in the LICENSE file or at
# https://opensource.org/licenses/MIT.
DEFAULT_VISIBILITY = [
"//third_party/protobuf:__subpackages__",
"//:__subpackages__",
"//util/utf8/internal:__subpackages__",
]
package(default_visibility = ["//visibility:public"])
licenses(["notice"])
exports_files([
"LICENSE",
"rules_fuzzing.patch",
])
# TODO(b/252876197) Remove this once callers have been Bazelified.
filegroup(
name = "utf8_range_srcs",
srcs = [
"naive.c",
"range2-neon.c",
"range2-sse.c",
"utf8_range.h",
],
visibility = [
"@com_google_protobuf//:__subpackages__",
"@upb//:__subpackages__",
],
)
cc_library(
name = "utf8_range",
srcs = [
"naive.c",
"range2-neon.c",
"range2-sse.c",
],
hdrs = ["utf8_range.h"],
)
cc_library(
name = "utf8_validity",
srcs = ["utf8_validity.cc"],
hdrs = ["utf8_validity.h"],
deps = [
"@com_google_absl//absl/strings",
],
)
cc_test(
name = "utf8_validity_test",
srcs = ["utf8_validity_test.cc"],
deps = [
":utf8_validity",
"@com_google_absl//absl/strings",
"@com_google_googletest//:gtest_main",
],
)