blob: cd232850db427941a75c9a4adda22c9aae93aa9d [file] [log] [blame]
Ben Clayton7d81e552023-08-17 12:01:50 +00001# Copyright 2023 The Tint Authors.
2#
3# Licensed under the Apache License, Version 2.0 (the "License");
4# you may not use this file except in compliance with the License.
5# You may obtain a copy of the License at
6#
7# http://www.apache.org/licenses/LICENSE-2.0
8#
9# Unless required by applicable law or agreed to in writing, software
10# distributed under the License is distributed on an "AS IS" BASIS,
11# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12# See the License for the specific language governing permissions and
13# limitations under the License.
14
15################################################################################
Ben Clayton57ded6a2023-08-22 13:22:22 +000016# File generated by 'tools/src/cmd/gen' using the template:
Ben Clayton7d81e552023-08-17 12:01:50 +000017# tools/src/cmd/gen/build/BUILD.gn.tmpl
18#
Ben Clayton57ded6a2023-08-22 13:22:22 +000019# To regenerate run: './tools/run gen'
20#
21# Do not modify this file directly
Ben Clayton7d81e552023-08-17 12:01:50 +000022################################################################################
23
Ben Clayton66630762023-08-18 08:29:51 +000024import("../../../../scripts/tint_overrides_with_defaults.gni")
Ben Clayton7d81e552023-08-17 12:01:50 +000025
26import("${tint_src_dir}/tint.gni")
27
Ben Clayton0781a512023-08-18 08:25:01 +000028if (tint_build_unittests) {
29 import("//testing/test.gni")
30}
31
Ben Clayton7d81e552023-08-17 12:01:50 +000032libtint_source_set("rtti") {
33 sources = [
34 "castable.cc",
35 "castable.h",
36 "switch.h",
37 ]
38 deps = [
39 "${tint_src_dir}/utils/macros",
40 "${tint_src_dir}/utils/math",
41 "${tint_src_dir}/utils/memory",
42 "${tint_src_dir}/utils/traits",
43 ]
44}
Ben Clayton0781a512023-08-18 08:25:01 +000045if (tint_build_unittests) {
46 tint_unittests_source_set("unittests") {
47 testonly = true
48 sources = [
49 "castable_test.cc",
50 "switch_test.cc",
51 ]
52 deps = [
53 "${tint_src_dir}:gmock_and_gtest",
54 "${tint_src_dir}/utils/macros",
55 "${tint_src_dir}/utils/math",
56 "${tint_src_dir}/utils/memory",
57 "${tint_src_dir}/utils/rtti",
58 "${tint_src_dir}/utils/traits",
59 ]
60 }
Ben Clayton7d81e552023-08-17 12:01:50 +000061}