mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-05-13 10:51:35 +00:00
Adds the generated CTS test list to the existing gn/webgpu-cts group so that Chromium tests properly include the generated file. Also updates some existing BUILD.gn file paths to be consistent with Chromium styling: relative paths without the leading ./ for files under the current directory and directories before and separate from individual files. Bug: dawn:1479 Change-Id: Icce70e7fcee874b6b33c21230c8a4429a1f7ab6c Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/98801 Commit-Queue: Austin Eng <enga@chromium.org> Auto-Submit: Brian Sheedy <bsheedy@google.com> Reviewed-by: Austin Eng <enga@chromium.org>
46 lines
1.4 KiB
Plaintext
46 lines
1.4 KiB
Plaintext
# 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.
|
|
|
|
# Note: This file is intentionally not used by any other BUILD.gn in Dawn.
|
|
# Instead, Chromium depends directly on this file to build the WebGPU CTS.
|
|
# Scripts called from this file assume Dawn is checked out inside Chromium.
|
|
|
|
# This needs to be copied to the output directory since the CTS tests also
|
|
# serve resources that are copied into it.
|
|
copy("webgpu_cts_resources") {
|
|
testonly = true
|
|
sources = [
|
|
"test_page.html",
|
|
"test_runner.js",
|
|
]
|
|
outputs = [ "$target_gen_dir/{{source_file_part}}" ]
|
|
}
|
|
|
|
group("webgpu-cts") {
|
|
testonly = true
|
|
data_deps = [
|
|
":webgpu_cts_resources",
|
|
"../third_party/gn/webgpu-cts",
|
|
]
|
|
data = [
|
|
"scripts/",
|
|
"../third_party/webgpu-cts/src/",
|
|
"//third_party/node/",
|
|
|
|
"expectations.txt",
|
|
"../third_party/webgpu-cts/node.tsconfig.json",
|
|
"../third_party/webgpu-cts/tsconfig.json",
|
|
]
|
|
}
|