• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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 a target for the gennorm2 binary that generates
5# headers needed for bootstrapping the ICU4C build process in a way that
6# integrates the normalization data.
7
8load("@rules_cc//cc:defs.bzl", "cc_binary", "cc_library")
9
10package(
11    default_visibility = ["//visibility:public"],
12)
13
14cc_binary(
15    name = "gennorm2",
16    srcs = glob([
17        "*.c",
18        "*.cpp",
19        "*.h",   # cannot have hdrs section in cc_binary
20    ]),
21    deps = [
22        "//icu4c/source/common:uhash",
23        "//icu4c/source/common:umutablecptrie",
24        "//icu4c/source/common:ucptrie",
25        "//icu4c/source/common:errorcode",
26        "//icu4c/source/common:uniset",
27        "//icu4c/source/common:uvector32",
28
29        "//icu4c/source/common:platform",
30        "//icu4c/source/common:headers",
31
32        "//icu4c/source/tools/toolutil:toolutil",
33        "//icu4c/source/tools/toolutil:unewdata",
34        "//icu4c/source/tools/toolutil:writesrc",
35        "//icu4c/source/tools/toolutil:uoptions",
36        "//icu4c/source/tools/toolutil:uparse",
37    ],
38    linkopts = ["-pthread"],
39)
40