Kai Ninomiya 5c780d784c Add WebGPU CTS dep and build files
These build files are not yet used, but intended to be included by a
build file in Chromium. The test expectations file will move here too,
allowing Dawn/Tint changes to adjust test expectations in the same CL.

Bug: chromium:1306640
Change-Id: Id0be5c155ec7c79252e724cd64e54d1ea9f3dbda
Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/83761
Reviewed-by: Austin Eng <enga@chromium.org>
Commit-Queue: Kai Ninomiya <kainino@chromium.org>
2022-03-17 21:43:17 +00:00

18 lines
737 B
Python

#!/usr/bin/env python
# Copyright 2022 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import os
gn_webgpu_cts_dir = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
dawn_third_party_dir = os.path.dirname(os.path.dirname(gn_webgpu_cts_dir))
webgpu_cts_root_dir = os.path.join(dawn_third_party_dir, 'webgpu-cts')
_possible_chromium_third_party_dir = os.path.dirname(
os.path.dirname(dawn_third_party_dir))
_possible_node_dir = os.path.join(_possible_chromium_third_party_dir, 'node')
if os.path.exists(_possible_node_dir):
chromium_third_party_dir = _possible_chromium_third_party_dir
node_dir = _possible_node_dir