# 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 = "resolver",
  srcs = [
    "dependency_graph.cc",
    "incomplete_type.cc",
    "resolve.cc",
    "resolver.cc",
    "sem_helper.cc",
    "uniformity.cc",
    "unresolved_identifier.cc",
    "validator.cc",
  ],
  hdrs = [
    "dependency_graph.h",
    "incomplete_type.h",
    "resolve.h",
    "resolver.h",
    "sem_helper.h",
    "uniformity.h",
    "unresolved_identifier.h",
    "validator.h",
  ],
  deps = [
    "//src/tint/api/common",
    "//src/tint/lang/core",
    "//src/tint/lang/core/constant",
    "//src/tint/lang/core/intrinsic",
    "//src/tint/lang/core/type",
    "//src/tint/lang/wgsl",
    "//src/tint/lang/wgsl/ast",
    "//src/tint/lang/wgsl/common",
    "//src/tint/lang/wgsl/features",
    "//src/tint/lang/wgsl/intrinsic",
    "//src/tint/lang/wgsl/program",
    "//src/tint/lang/wgsl/sem",
    "//src/tint/utils/constants",
    "//src/tint/utils/containers",
    "//src/tint/utils/diagnostic",
    "//src/tint/utils/ice",
    "//src/tint/utils/id",
    "//src/tint/utils/macros",
    "//src/tint/utils/math",
    "//src/tint/utils/memory",
    "//src/tint/utils/reflection",
    "//src/tint/utils/result",
    "//src/tint/utils/rtti",
    "//src/tint/utils/symbol",
    "//src/tint/utils/text",
    "//src/tint/utils/traits",
    "//src/utils",
  ],
  copts = COPTS,
  visibility = ["//visibility:public"],
)
cc_library(
  name = "test",
  alwayslink = True,
  srcs = [
    "address_space_layout_validation_test.cc",
    "address_space_validation_test.cc",
    "alias_analysis_test.cc",
    "array_accessor_test.cc",
    "assignment_validation_test.cc",
    "atomics_test.cc",
    "atomics_validation_test.cc",
    "attribute_validation_test.cc",
    "bitcast_validation_test.cc",
    "builtin_enum_test.cc",
    "builtin_structs_test.cc",
    "builtin_test.cc",
    "builtin_validation_test.cc",
    "builtins_validation_test.cc",
    "call_test.cc",
    "call_validation_test.cc",
    "clip_distances_extension_test.cc",
    "compound_assignment_validation_test.cc",
    "compound_statement_test.cc",
    "const_assert_test.cc",
    "control_block_validation_test.cc",
    "dependency_graph_test.cc",
    "diagnostic_control_test.cc",
    "dual_source_blending_extension_test.cc",
    "entry_point_validation_test.cc",
    "evaluation_stage_test.cc",
    "expression_kind_test.cc",
    "f16_extension_test.cc",
    "framebuffer_fetch_extension_test.cc",
    "function_validation_test.cc",
    "graphite_extension_test.cc",
    "host_shareable_validation_test.cc",
    "increment_decrement_validation_test.cc",
    "inferred_type_test.cc",
    "input_attachments_extension_test.cc",
    "is_host_shareable_test.cc",
    "is_storeable_test.cc",
    "language_features_test.cc",
    "load_test.cc",
    "materialize_test.cc",
    "override_test.cc",
    "pixel_local_extension_test.cc",
    "ptr_ref_test.cc",
    "ptr_ref_validation_test.cc",
    "resolver_behavior_test.cc",
    "resolver_helper_test.cc",
    "resolver_helper_test.h",
    "resolver_test.cc",
    "root_identifier_test.cc",
    "side_effects_test.cc",
    "struct_address_space_use_test.cc",
    "struct_layout_test.cc",
    "struct_pipeline_stage_use_test.cc",
    "subgroups_extension_test.cc",
    "type_validation_test.cc",
    "unresolved_identifier_test.cc",
    "validation_test.cc",
    "validator_is_storeable_test.cc",
    "value_constructor_validation_test.cc",
    "variable_test.cc",
    "variable_validation_test.cc",
  ] + select({
    ":tint_build_wgsl_reader": [
      "uniformity_test.cc",
    ],
    "//conditions:default": [],
  }),
  deps = [
    "//src/tint/api/common",
    "//src/tint/lang/core",
    "//src/tint/lang/core/constant",
    "//src/tint/lang/core/intrinsic",
    "//src/tint/lang/core/ir",
    "//src/tint/lang/core/type",
    "//src/tint/lang/core/type:test",
    "//src/tint/lang/wgsl",
    "//src/tint/lang/wgsl/ast",
    "//src/tint/lang/wgsl/ast:test",
    "//src/tint/lang/wgsl/common",
    "//src/tint/lang/wgsl/features",
    "//src/tint/lang/wgsl/intrinsic",
    "//src/tint/lang/wgsl/program",
    "//src/tint/lang/wgsl/resolver",
    "//src/tint/lang/wgsl/sem",
    "//src/tint/lang/wgsl/sem:test",
    "//src/tint/utils/containers",
    "//src/tint/utils/diagnostic",
    "//src/tint/utils/ice",
    "//src/tint/utils/id",
    "//src/tint/utils/macros",
    "//src/tint/utils/math",
    "//src/tint/utils/memory",
    "//src/tint/utils/reflection",
    "//src/tint/utils/result",
    "//src/tint/utils/rtti",
    "//src/tint/utils/symbol",
    "//src/tint/utils/text",
    "//src/tint/utils/traits",
    "@gtest",
    "//src/utils",
  ] + select({
    ":tint_build_wgsl_reader": [
      "//src/tint/lang/wgsl/reader",
    ],
    "//conditions:default": [],
  }),
  copts = COPTS,
  visibility = ["//visibility:public"],
)

alias(
  name = "tint_build_wgsl_reader",
  actual = "//src/tint:tint_build_wgsl_reader_true",
)

