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 representing the binary executable 5# `genprops`, which is used for generating headers needed for bootstrapping 6# the ICU4C build process in a way that integrates core Unicode properties data. 7 8# Defining a binary executable (done in Bazel using `cc_binary`) 9# enables the use of the output file from executing the binary as a part of 10# other Bazel targets defined using `genrule`. 11 12load("@rules_cc//cc:defs.bzl", "cc_binary", "cc_library") 13 14package( 15 default_visibility = ["//visibility:public"], 16) 17 18cc_binary( 19 name = "genprops", 20 srcs = glob([ 21 "*.cpp", 22 "*.h", # cannot have hdrs section in cc_binary 23 ]), 24 deps = [ 25 "//icu4c/source/common:uhash", 26 "//icu4c/source/common:umutablecptrie", 27 "//icu4c/source/common:ucptrie", 28 "//icu4c/source/common:utrie2", 29 "//icu4c/source/common:utrie2_builder", 30 "//icu4c/source/common:bytestrie", 31 "//icu4c/source/common:bytestriebuilder", 32 "//icu4c/source/common:propsvec", 33 "//icu4c/source/common:errorcode", 34 "//icu4c/source/common:ucharstriebuilder", 35 "//icu4c/source/common:uniset", 36 "//icu4c/source/common:uvector32", 37 38 "//icu4c/source/common:platform", 39 "//icu4c/source/common:headers", 40 41 "//icu4c/source/tools/toolutil:ppucd", 42 "//icu4c/source/tools/toolutil:unewdata", 43 "//icu4c/source/tools/toolutil:writesrc", 44 "//icu4c/source/tools/toolutil:uoptions", 45 "//icu4c/source/tools/toolutil:uparse", 46 "//icu4c/source/tools/toolutil:toolutil", 47 "//icu4c/source/tools/toolutil:denseranges", 48 ], 49 linkopts = ["-pthread"], 50) 51