# Copyright 2023 The Dawn & Tint Authors
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
#
# 1. Redistributions of source code must retain the above copyright notice, this
#    list of conditions and the following disclaimer.
#
# 2. Redistributions in binary form must reproduce the above copyright notice,
#    this list of conditions and the following disclaimer in the documentation
#    and/or other materials provided with the distribution.
#
# 3. Neither the name of the copyright holder nor the names of its
#    contributors may be used to endorse or promote products derived from
#    this software without specific prior written permission.
#
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
# DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
# SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
# CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
# OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

################################################################################
# File generated by 'tools/src/cmd/gen' using the template:
#   tools/src/cmd/gen/build/BUILD.bazel.tmpl
#
# To regenerate run: './tools/run gen'
#
#                       Do not modify this file directly
################################################################################

load("//src/tint:flags.bzl", "COPTS")
load("@bazel_skylib//lib:selects.bzl", "selects")
cc_library(
  name = "text",
  srcs = [
    "base64.cc",
    "color_mode.cc",
    "string.cc",
    "string_stream.cc",
    "styled_text.cc",
    "styled_text_printer.cc",
    "styled_text_printer_ansi.cc",
    "styled_text_theme.cc",
    "unicode.cc",
  ] + select({
    ":_not_tint_build_is_linux__and__not_tint_build_is_mac__and__not_tint_build_is_win_": [
      "styled_text_printer_other.cc",
    ],
    "//conditions:default": [],
  }) + select({
    ":tint_build_is_linux_or_tint_build_is_mac": [
      "styled_text_printer_posix.cc",
    ],
    "//conditions:default": [],
  }) + select({
    ":tint_build_is_win": [
      "styled_text_printer_windows.cc",
    ],
    "//conditions:default": [],
  }),
  hdrs = [
    "base64.h",
    "color_mode.h",
    "string.h",
    "string_stream.h",
    "styled_text.h",
    "styled_text_printer.h",
    "styled_text_theme.h",
    "text_style.h",
    "unicode.h",
  ],
  deps = [
    "//src/tint/utils/containers",
    "//src/tint/utils/ice",
    "//src/tint/utils/macros",
    "//src/tint/utils/math",
    "//src/tint/utils/memory",
    "//src/tint/utils/rtti",
    "//src/tint/utils/system",
    "//src/tint/utils/traits",
    "//src/utils",
  ],
  copts = COPTS,
  visibility = ["//visibility:public"],
)
cc_library(
  name = "test",
  alwayslink = True,
  srcs = [
    "base64_test.cc",
    "string_stream_test.cc",
    "string_test.cc",
    "styled_text_printer_test.cc",
    "text_style_test.cc",
    "unicode_test.cc",
  ],
  deps = [
    "//src/tint/utils/containers",
    "//src/tint/utils/ice",
    "//src/tint/utils/macros",
    "//src/tint/utils/math",
    "//src/tint/utils/memory",
    "//src/tint/utils/rtti",
    "//src/tint/utils/text",
    "//src/tint/utils/traits",
    "@gtest",
    "//src/utils",
  ],
  copts = COPTS,
  visibility = ["//visibility:public"],
)

alias(
  name = "tint_build_is_linux",
  actual = "//src/tint:tint_build_is_linux_true",
)

alias(
  name = "_not_tint_build_is_linux_",
  actual = "//src/tint:tint_build_is_linux_false",
)

alias(
  name = "tint_build_is_mac",
  actual = "//src/tint:tint_build_is_mac_true",
)

alias(
  name = "_not_tint_build_is_mac_",
  actual = "//src/tint:tint_build_is_mac_false",
)

alias(
  name = "tint_build_is_win",
  actual = "//src/tint:tint_build_is_win_true",
)

alias(
  name = "_not_tint_build_is_win_",
  actual = "//src/tint:tint_build_is_win_false",
)

selects.config_setting_group(
    name = "tint_build_is_linux_or_tint_build_is_mac",
    match_any = [
        "tint_build_is_linux",
        "tint_build_is_mac",
    ],
)

selects.config_setting_group(
    name = "_not_tint_build_is_linux__and__not_tint_build_is_mac__and__not_tint_build_is_win_",
    match_all = [
        ":_not_tint_build_is_linux_",
        ":_not_tint_build_is_mac_",
        ":_not_tint_build_is_win_",
    ],
)

