forked from tensorflow/tflite-support
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathicu.BUILD
97 lines (86 loc) · 1.74 KB
/
icu.BUILD
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
"""Builds ICU library."""
package(
default_visibility = ["//visibility:public"],
)
licenses(["notice"]) # Apache 2.0
exports_files([
"icu4c/LICENSE",
"icu4j/main/shared/licenses/LICENSE",
])
cc_library(
name = "headers",
hdrs = glob(["icu4c/source/common/unicode/*.h"]),
includes = [
"icu4c/source/common",
],
deps = [
],
)
cc_library(
name = "common",
hdrs = glob(["icu4c/source/common/unicode/*.h"]),
includes = [
"icu4c/source/common",
],
deps = [
":icuuc",
],
)
alias(
name = "nfkc",
actual = ":common",
)
alias(
name = "nfkc_cf",
actual = ":common",
)
cc_library(
name = "icuuc",
srcs = glob(
[
"icu4c/source/common/*.c",
"icu4c/source/common/*.cpp",
"icu4c/source/stubdata/*.cpp",
],
),
hdrs = glob([
"icu4c/source/common/*.h",
]),
copts = [
"-DU_COMMON_IMPLEMENTATION",
] + select({
":android": [
"-fdata-sections",
"-DU_HAVE_NL_LANGINFO_CODESET=0",
"-Wno-deprecated-declarations",
],
":apple": [
"-Wno-shorten-64-to-32",
"-Wno-unused-variable",
],
":windows": [
"/utf-8",
"/DLOCALE_ALLOW_NEUTRAL_NAMES=0",
],
"//conditions:default": [],
}),
tags = ["requires-rtti"],
visibility = [
"//visibility:private",
],
deps = [
":headers",
],
)
config_setting(
name = "android",
values = {"crosstool_top": "//external:android/crosstool"},
)
config_setting(
name = "apple",
values = {"cpu": "darwin"},
)
config_setting(
name = "windows",
values = {"cpu": "x64_windows"},
)