blob: 6618381fffaa8d8994c10629c0ce3c1faacee1b0 [file] [log] [blame]
Ben Clayton1b48e6b2023-11-22 16:54:51 +00001# 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
37import("../../../../scripts/tint_overrides_with_defaults.gni")
38
39import("${tint_src_dir}/tint.gni")
40
41if (tint_build_unittests || tint_build_benchmarks) {
42 import("//testing/test.gni")
43}
44
45libtint_source_set("bytes") {
46 sources = [
Ben Claytonddd45562024-04-24 10:03:27 +000047 "buffer_reader.cc",
48 "buffer_reader.h",
Ben Claytoncbcc0ce2024-01-02 22:17:16 +000049 "buffer_writer.h",
Ben Clayton1b48e6b2023-11-22 16:54:51 +000050 "bytes.cc",
Ben Clayton63eb5c82023-11-22 21:11:19 +000051 "decoder.h",
Ben Clayton1b48e6b2023-11-22 16:54:51 +000052 "endianness.h",
Ben Clayton0a8dc812023-12-04 20:52:16 +000053 "reader.cc",
Ben Clayton1b48e6b2023-11-22 16:54:51 +000054 "reader.h",
55 "swap.h",
Ben Claytoncbcc0ce2024-01-02 22:17:16 +000056 "writer.cc",
57 "writer.h",
Ben Clayton1b48e6b2023-11-22 16:54:51 +000058 ]
59 deps = [
60 "${tint_src_dir}/utils/containers",
Ben Clayton63eb5c82023-11-22 21:11:19 +000061 "${tint_src_dir}/utils/diagnostic",
Ben Clayton1b48e6b2023-11-22 16:54:51 +000062 "${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 Clayton63eb5c82023-11-22 21:11:19 +000067 "${tint_src_dir}/utils/result",
Ben Clayton1b48e6b2023-11-22 16:54:51 +000068 "${tint_src_dir}/utils/rtti",
Ben Clayton63eb5c82023-11-22 21:11:19 +000069 "${tint_src_dir}/utils/text",
Ben Clayton1b48e6b2023-11-22 16:54:51 +000070 "${tint_src_dir}/utils/traits",
71 ]
72}
73if (tint_build_unittests) {
74 tint_unittests_source_set("unittests") {
75 sources = [
Ben Claytonddd45562024-04-24 10:03:27 +000076 "buffer_reader_test.cc",
Ben Claytoncbcc0ce2024-01-02 22:17:16 +000077 "buffer_writer_test.cc",
Ben Clayton63eb5c82023-11-22 21:11:19 +000078 "decoder_test.cc",
Ben Clayton1b48e6b2023-11-22 16:54:51 +000079 "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 Clayton63eb5c82023-11-22 21:11:19 +000085 "${tint_src_dir}/utils/diagnostic",
Ben Clayton1b48e6b2023-11-22 16:54:51 +000086 "${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 Clayton63eb5c82023-11-22 21:11:19 +000091 "${tint_src_dir}/utils/result",
Ben Clayton1b48e6b2023-11-22 16:54:51 +000092 "${tint_src_dir}/utils/rtti",
Ben Clayton63eb5c82023-11-22 21:11:19 +000093 "${tint_src_dir}/utils/text",
Ben Clayton1b48e6b2023-11-22 16:54:51 +000094 "${tint_src_dir}/utils/traits",
95 ]
96 }
97}