icu/tools/unicode/c/genprops/BUILD.bazel
gnrunge f37a5e0090 ICU-21796 Rename bazel build files from BUILD to BUILD.bazel. This can
prevent conflicts when ICU users have their own BUILD files already.
2021-12-16 06:55:09 -08:00

50 lines
1.8 KiB
Text

# © 2021 and later: Unicode, Inc. and others.
# License & terms of use: http://www.unicode.org/copyright.html
# This Bazel build file defines a target representing the binary executable
# `genprops`, which is used for generating headers needed for bootstrapping
# the ICU4C build process in a way that integrates core Unicode properties data.
# Defining a binary executable (done in Bazel using `cc_binary`)
# enables the use of the output file from executing the binary as a part of
# other Bazel targets defined using `genrule`.
load("@rules_cc//cc:defs.bzl", "cc_binary", "cc_library")
package(
default_visibility = ["//visibility:public"],
)
cc_binary(
name = "genprops",
srcs = glob([
"*.cpp",
"*.h", # cannot have hdrs section in cc_binary
]),
deps = [
"//icu4c/source/common:uhash",
"//icu4c/source/common:umutablecptrie",
"//icu4c/source/common:ucptrie",
"//icu4c/source/common:utrie2",
"//icu4c/source/common:utrie2_builder",
"//icu4c/source/common:bytestrie",
"//icu4c/source/common:bytestriebuilder",
"//icu4c/source/common:propsvec",
"//icu4c/source/common:errorcode",
"//icu4c/source/common:ucharstriebuilder",
"//icu4c/source/common:uniset",
"//icu4c/source/common:uvector32",
"//icu4c/source/common:platform",
"//icu4c/source/common:headers",
"//icu4c/source/tools/toolutil:ppucd",
"//icu4c/source/tools/toolutil:unewdata",
"//icu4c/source/tools/toolutil:writesrc",
"//icu4c/source/tools/toolutil:uoptions",
"//icu4c/source/tools/toolutil:uparse",
"//icu4c/source/tools/toolutil:toolutil",
"//icu4c/source/tools/toolutil:denseranges",
],
linkopts = ["-pthread"],
)