Ben Clayton | 7d81e55 | 2023-08-17 12:01:50 +0000 | [diff] [blame] | 1 | # 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 Clayton | 57ded6a | 2023-08-22 13:22:22 +0000 | [diff] [blame^] | 16 | # File generated by 'tools/src/cmd/gen' using the template: |
Ben Clayton | 7d81e55 | 2023-08-17 12:01:50 +0000 | [diff] [blame] | 17 | # tools/src/cmd/gen/build/BUILD.gn.tmpl |
| 18 | # |
Ben Clayton | 57ded6a | 2023-08-22 13:22:22 +0000 | [diff] [blame^] | 19 | # To regenerate run: './tools/run gen' |
| 20 | # |
| 21 | # Do not modify this file directly |
Ben Clayton | 7d81e55 | 2023-08-17 12:01:50 +0000 | [diff] [blame] | 22 | ################################################################################ |
| 23 | |
Ben Clayton | 6663076 | 2023-08-18 08:29:51 +0000 | [diff] [blame] | 24 | import("../../../../scripts/tint_overrides_with_defaults.gni") |
Ben Clayton | 7d81e55 | 2023-08-17 12:01:50 +0000 | [diff] [blame] | 25 | |
| 26 | import("${tint_src_dir}/tint.gni") |
| 27 | |
Ben Clayton | 0781a51 | 2023-08-18 08:25:01 +0000 | [diff] [blame] | 28 | if (tint_build_unittests) { |
| 29 | import("//testing/test.gni") |
| 30 | } |
| 31 | |
Ben Clayton | 7d81e55 | 2023-08-17 12:01:50 +0000 | [diff] [blame] | 32 | libtint_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 Clayton | 0781a51 | 2023-08-18 08:25:01 +0000 | [diff] [blame] | 45 | if (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 Clayton | 7d81e55 | 2023-08-17 12:01:50 +0000 | [diff] [blame] | 61 | } |