Ben Clayton | 1b48e6b | 2023-11-22 16:54:51 +0000 | [diff] [blame] | 1 | # Copyright 2023 The Dawn & Tint Authors |
| 2 | # |
| 3 | # Redistribution and use in source and binary forms, with or without |
| 4 | # modification, are permitted provided that the following conditions are met: |
| 5 | # |
| 6 | # 1. Redistributions of source code must retain the above copyright notice, this |
| 7 | # list of conditions and the following disclaimer. |
| 8 | # |
| 9 | # 2. Redistributions in binary form must reproduce the above copyright notice, |
| 10 | # this list of conditions and the following disclaimer in the documentation |
| 11 | # and/or other materials provided with the distribution. |
| 12 | # |
| 13 | # 3. Neither the name of the copyright holder nor the names of its |
| 14 | # contributors may be used to endorse or promote products derived from |
| 15 | # this software without specific prior written permission. |
| 16 | # |
| 17 | # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" |
| 18 | # AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE |
| 19 | # IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE |
| 20 | # DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE |
| 21 | # FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL |
| 22 | # DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR |
| 23 | # SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER |
| 24 | # CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, |
| 25 | # OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
| 26 | # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| 27 | |
| 28 | ################################################################################ |
| 29 | # File generated by 'tools/src/cmd/gen' using the template: |
| 30 | # tools/src/cmd/gen/build/BUILD.gn.tmpl |
| 31 | # |
| 32 | # To regenerate run: './tools/run gen' |
| 33 | # |
| 34 | # Do not modify this file directly |
| 35 | ################################################################################ |
| 36 | |
| 37 | import("../../../../scripts/tint_overrides_with_defaults.gni") |
| 38 | |
| 39 | import("${tint_src_dir}/tint.gni") |
| 40 | |
| 41 | if (tint_build_unittests || tint_build_benchmarks) { |
| 42 | import("//testing/test.gni") |
| 43 | } |
| 44 | |
| 45 | libtint_source_set("bytes") { |
| 46 | sources = [ |
Ben Clayton | ddd4556 | 2024-04-24 10:03:27 +0000 | [diff] [blame] | 47 | "buffer_reader.cc", |
| 48 | "buffer_reader.h", |
Ben Clayton | cbcc0ce | 2024-01-02 22:17:16 +0000 | [diff] [blame] | 49 | "buffer_writer.h", |
Ben Clayton | 1b48e6b | 2023-11-22 16:54:51 +0000 | [diff] [blame] | 50 | "bytes.cc", |
Ben Clayton | 63eb5c8 | 2023-11-22 21:11:19 +0000 | [diff] [blame] | 51 | "decoder.h", |
Ben Clayton | 1b48e6b | 2023-11-22 16:54:51 +0000 | [diff] [blame] | 52 | "endianness.h", |
Ben Clayton | 0a8dc81 | 2023-12-04 20:52:16 +0000 | [diff] [blame] | 53 | "reader.cc", |
Ben Clayton | 1b48e6b | 2023-11-22 16:54:51 +0000 | [diff] [blame] | 54 | "reader.h", |
| 55 | "swap.h", |
Ben Clayton | cbcc0ce | 2024-01-02 22:17:16 +0000 | [diff] [blame] | 56 | "writer.cc", |
| 57 | "writer.h", |
Ben Clayton | 1b48e6b | 2023-11-22 16:54:51 +0000 | [diff] [blame] | 58 | ] |
| 59 | deps = [ |
| 60 | "${tint_src_dir}/utils/containers", |
Ben Clayton | 63eb5c8 | 2023-11-22 21:11:19 +0000 | [diff] [blame] | 61 | "${tint_src_dir}/utils/diagnostic", |
Ben Clayton | 1b48e6b | 2023-11-22 16:54:51 +0000 | [diff] [blame] | 62 | "${tint_src_dir}/utils/ice", |
| 63 | "${tint_src_dir}/utils/macros", |
| 64 | "${tint_src_dir}/utils/math", |
| 65 | "${tint_src_dir}/utils/memory", |
| 66 | "${tint_src_dir}/utils/reflection", |
Ben Clayton | 63eb5c8 | 2023-11-22 21:11:19 +0000 | [diff] [blame] | 67 | "${tint_src_dir}/utils/result", |
Ben Clayton | 1b48e6b | 2023-11-22 16:54:51 +0000 | [diff] [blame] | 68 | "${tint_src_dir}/utils/rtti", |
Ben Clayton | 63eb5c8 | 2023-11-22 21:11:19 +0000 | [diff] [blame] | 69 | "${tint_src_dir}/utils/text", |
Ben Clayton | 1b48e6b | 2023-11-22 16:54:51 +0000 | [diff] [blame] | 70 | "${tint_src_dir}/utils/traits", |
| 71 | ] |
| 72 | } |
| 73 | if (tint_build_unittests) { |
| 74 | tint_unittests_source_set("unittests") { |
| 75 | sources = [ |
Ben Clayton | ddd4556 | 2024-04-24 10:03:27 +0000 | [diff] [blame] | 76 | "buffer_reader_test.cc", |
Ben Clayton | cbcc0ce | 2024-01-02 22:17:16 +0000 | [diff] [blame] | 77 | "buffer_writer_test.cc", |
Ben Clayton | 63eb5c8 | 2023-11-22 21:11:19 +0000 | [diff] [blame] | 78 | "decoder_test.cc", |
Ben Clayton | 1b48e6b | 2023-11-22 16:54:51 +0000 | [diff] [blame] | 79 | "swap_test.cc", |
| 80 | ] |
| 81 | deps = [ |
| 82 | "${tint_src_dir}:gmock_and_gtest", |
| 83 | "${tint_src_dir}/utils/bytes", |
| 84 | "${tint_src_dir}/utils/containers", |
Ben Clayton | 63eb5c8 | 2023-11-22 21:11:19 +0000 | [diff] [blame] | 85 | "${tint_src_dir}/utils/diagnostic", |
Ben Clayton | 1b48e6b | 2023-11-22 16:54:51 +0000 | [diff] [blame] | 86 | "${tint_src_dir}/utils/ice", |
| 87 | "${tint_src_dir}/utils/macros", |
| 88 | "${tint_src_dir}/utils/math", |
| 89 | "${tint_src_dir}/utils/memory", |
| 90 | "${tint_src_dir}/utils/reflection", |
Ben Clayton | 63eb5c8 | 2023-11-22 21:11:19 +0000 | [diff] [blame] | 91 | "${tint_src_dir}/utils/result", |
Ben Clayton | 1b48e6b | 2023-11-22 16:54:51 +0000 | [diff] [blame] | 92 | "${tint_src_dir}/utils/rtti", |
Ben Clayton | 63eb5c8 | 2023-11-22 21:11:19 +0000 | [diff] [blame] | 93 | "${tint_src_dir}/utils/text", |
Ben Clayton | 1b48e6b | 2023-11-22 16:54:51 +0000 | [diff] [blame] | 94 | "${tint_src_dir}/utils/traits", |
| 95 | ] |
| 96 | } |
| 97 | } |