• 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 file defines Bazel targets for the ICU4C "stubdata" library header and source files.
5
6load("@rules_cc//cc:defs.bzl", "cc_library")
7
8package(
9    default_visibility = ["//visibility:public"],
10)
11
12# When compiling code in the `common` dir, the constant
13# `U_COMMON_IMPLEMENTATION` needs to be defined. See
14# https://unicode-org.github.io/icu/userguide/howtouseicu#c-with-your-own-build-system .
15
16cc_library(
17    name = "stubdata",
18    srcs = ["stubdata.cpp"],
19    hdrs = ["stubdata.h"],
20    deps = ["//icu4c/source/common:headers"],
21    local_defines = [
22        "U_COMMON_IMPLEMENTATION",
23    ],
24)
25