From 9d76aa7424b66599f7c9b4fdea74b8732217c0bf Mon Sep 17 00:00:00 2001 From: Ryan Harrison Date: Thu, 31 Mar 2022 19:54:15 +0000 Subject: [PATCH] Add proxies for Tint targets used by Chromium This will ease rolling Dawn into Chromium, once Tint is merged in BUG=dawn:1343 Change-Id: I53fa7b82a001ab3351f5366e8e045090c0fdb49b Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/85380 Auto-Submit: Ryan Harrison Reviewed-by: Ben Clayton Reviewed-by: Austin Eng Commit-Queue: Ryan Harrison --- src/tint/fuzzers/BUILD.gn | 22 ++++++++++++++ src/tint/fuzzers/tint_ast_fuzzer/BUILD.gn | 29 +++++++++++++++++++ .../fuzzers/tint_spirv_tools_fuzzer/BUILD.gn | 22 ++++++++++++++ test/tint/BUILD.gn | 22 ++++++++++++++ 4 files changed, 95 insertions(+) create mode 100644 src/tint/fuzzers/BUILD.gn create mode 100644 src/tint/fuzzers/tint_ast_fuzzer/BUILD.gn create mode 100644 src/tint/fuzzers/tint_spirv_tools_fuzzer/BUILD.gn create mode 100644 test/tint/BUILD.gn diff --git a/src/tint/fuzzers/BUILD.gn b/src/tint/fuzzers/BUILD.gn new file mode 100644 index 0000000000..f2291d706c --- /dev/null +++ b/src/tint/fuzzers/BUILD.gn @@ -0,0 +1,22 @@ +# Copyright 2022 The Dawn Authors +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +import("../../../scripts/dawn_overrides_with_defaults.gni") + +# Target aliases to ease merging Tint->Dawn + +group("fuzzers") { + deps = [ "${dawn_tint_dir}/src/tint/fuzzers:fuzzers" ] + testonly = true +} diff --git a/src/tint/fuzzers/tint_ast_fuzzer/BUILD.gn b/src/tint/fuzzers/tint_ast_fuzzer/BUILD.gn new file mode 100644 index 0000000000..2a312be8f3 --- /dev/null +++ b/src/tint/fuzzers/tint_ast_fuzzer/BUILD.gn @@ -0,0 +1,29 @@ +# Copyright 2022 The Dawn Authors +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +import("../../../../scripts/dawn_overrides_with_defaults.gni") + +# Target aliases to ease merging Tint->Dawn + +group("tint_ast_fuzzer") { + deps = [ "${dawn_tint_dir}/src/tint/fuzzers/tint_ast_fuzzer:tint_ast_fuzzer" ] + testonly = true +} + +group("tint_ast_fuzzer_proto") { + deps = [ + "${dawn_tint_dir}/src/tint/fuzzers/tint_ast_fuzzer:tint_ast_fuzzer_proto", + ] + testonly = true +} diff --git a/src/tint/fuzzers/tint_spirv_tools_fuzzer/BUILD.gn b/src/tint/fuzzers/tint_spirv_tools_fuzzer/BUILD.gn new file mode 100644 index 0000000000..a42c2d5c1d --- /dev/null +++ b/src/tint/fuzzers/tint_spirv_tools_fuzzer/BUILD.gn @@ -0,0 +1,22 @@ +# Copyright 2022 The Dawn Authors +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +import("../../../../scripts/dawn_overrides_with_defaults.gni") + +# Target aliases to ease merging Tint->Dawn + +group("tint_spirv_tools_fuzzer") { + deps = [ "${dawn_tint_dir}/src/tint/fuzzers/tint_spirv_tools_fuzzer:tint_spirv_tools_fuzzer" ] + testonly = true +} diff --git a/test/tint/BUILD.gn b/test/tint/BUILD.gn new file mode 100644 index 0000000000..70b0940a3a --- /dev/null +++ b/test/tint/BUILD.gn @@ -0,0 +1,22 @@ +# Copyright 2022 The Dawn Authors +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +import("../../scripts/dawn_overrides_with_defaults.gni") + +# Target aliases to ease merging Tint->Dawn + +group("tint_unittests") { + deps = [ "${dawn_tint_dir}/test/tint:tint_unittests" ] + testonly = true +}