| 1 |
# © 2021 and later: Unicode, Inc. and others. |
| 2 |
# License & terms of use: http://www.unicode.org/copyright.html |
| 3 |
|
| 4 |
# This Bazel build file defines targets that are dependencies for building |
| 5 |
# the gennorm2 and genprops binaries. |
| 6 |
|
| 7 |
load("@rules_cc//cc:defs.bzl", "cc_binary", "cc_library") |
| 8 |
|
| 9 |
package( |
| 10 |
default_visibility = ["//visibility:public"], |
| 11 |
) |
| 12 |
|
| 13 |
cc_library( |
| 14 |
name = "toolutil", |
| 15 |
includes = ["."], |
| 16 |
hdrs = ["toolutil.h"], |
| 17 |
srcs = ["toolutil.cpp"], |
| 18 |
local_defines = [ |
| 19 |
"U_TOOLUTIL_IMPLEMENTATION", |
| 20 |
], |
| 21 |
deps = ["//icu4c/source/common:platform"], |
| 22 |
) |
| 23 |
|
| 24 |
cc_library( |
| 25 |
name = "unewdata", |
| 26 |
includes = ["."], |
| 27 |
hdrs = ["unewdata.h"], |
| 28 |
srcs = ["unewdata.cpp"], |
| 29 |
local_defines = [ |
| 30 |
"U_TOOLUTIL_IMPLEMENTATION", |
| 31 |
], |
| 32 |
deps = [ |
| 33 |
":filestrm", |
| 34 |
"//icu4c/source/common:platform", |
| 35 |
], |
| 36 |
) |
| 37 |
|
| 38 |
cc_library( |
| 39 |
name = "uoptions", |
| 40 |
includes = ["."], |
| 41 |
hdrs = ["uoptions.h"], |
| 42 |
srcs = ["uoptions.cpp"], |
| 43 |
local_defines = [ |
| 44 |
"U_TOOLUTIL_IMPLEMENTATION", |
| 45 |
], |
| 46 |
deps = ["//icu4c/source/common:platform"], |
| 47 |
) |
| 48 |
|
| 49 |
cc_library( |
| 50 |
name = "writesrc", |
| 51 |
includes = ["."], |
| 52 |
hdrs = ["writesrc.h"], |
| 53 |
srcs = ["writesrc.cpp"], |
| 54 |
local_defines = [ |
| 55 |
"U_TOOLUTIL_IMPLEMENTATION", |
| 56 |
], |
| 57 |
deps = [ |
| 58 |
"//icu4c/source/common:bytestream", |
| 59 |
"//icu4c/source/common:platform", |
| 60 |
"//icu4c/source/common:uniset_core", |
| 61 |
], |
| 62 |
) |
| 63 |
|
| 64 |
cc_library( |
| 65 |
name = "uparse", |
| 66 |
includes = ["."], |
| 67 |
hdrs = ["uparse.h"], |
| 68 |
srcs = ["uparse.cpp"], |
| 69 |
local_defines = [ |
| 70 |
"U_TOOLUTIL_IMPLEMENTATION", |
| 71 |
], |
| 72 |
deps = [ |
| 73 |
":filestrm", |
| 74 |
"//icu4c/source/common:platform", |
| 75 |
], |
| 76 |
) |
| 77 |
|
| 78 |
cc_library( |
| 79 |
name = "filestrm", |
| 80 |
includes = ["."], |
| 81 |
hdrs = ["filestrm.h"], |
| 82 |
srcs = ["filestrm.cpp"], |
| 83 |
local_defines = [ |
| 84 |
"U_TOOLUTIL_IMPLEMENTATION", |
| 85 |
], |
| 86 |
deps = ["//icu4c/source/common:platform"], |
| 87 |
) |
| 88 |
|
| 89 |
cc_library( |
| 90 |
name = "ppucd", |
| 91 |
includes = ["."], |
| 92 |
hdrs = ["ppucd.h"], |
| 93 |
srcs = ["ppucd.cpp"], |
| 94 |
local_defines = [ |
| 95 |
"U_TOOLUTIL_IMPLEMENTATION", |
| 96 |
], |
| 97 |
deps = [ |
| 98 |
":uparse", |
| 99 |
"//icu4c/source/common:platform", |
| 100 |
], |
| 101 |
) |
| 102 |
|
| 103 |
cc_library( |
| 104 |
name = "denseranges", |
| 105 |
includes = ["."], |
| 106 |
hdrs = ["denseranges.h"], |
| 107 |
srcs = ["denseranges.cpp"], |
| 108 |
local_defines = [ |
| 109 |
"U_TOOLUTIL_IMPLEMENTATION", |
| 110 |
], |
| 111 |
deps = ["//icu4c/source/common:platform"], |
| 112 |
) |
| 113 |
|
| 114 |
cc_library( |
| 115 |
name = "collationinfo", |
| 116 |
includes = ["."], |
| 117 |
hdrs = ["collationinfo.h"], |
| 118 |
srcs = ["collationinfo.cpp"], |
| 119 |
local_defines = [ |
| 120 |
"U_TOOLUTIL_IMPLEMENTATION", |
| 121 |
], |
| 122 |
deps = [ |
| 123 |
"//icu4c/source/common:platform", |
| 124 |
"//icu4c/source/i18n:headers", |
| 125 |
], |
| 126 |
) |