mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-05-13 10:51:35 +00:00
This reverts commit 672d29d14c26e39341d75b8d1dc1a4e7ee4b6f66. Reason for revert: https://bugs.chromium.org/p/chromium/issues/detail?id=913171 Original change's description: > Create new src/tests BUILD.gn file. > > Move all test-related build stuff into its own BUILD.gn file. This > required moving the dawn_generator template into a common file, so it > can be called by both BUILD.gn and src/tests/BUILD.gn. > > [This is a reland of https://dawn-review.googlesource.com/c/dawn/+/2940 > with a fix for mock_dawn.] > > Bug: dawn:61 > Change-Id: Id1e6d0c2b07caa2610cebe206511e972ac18fe8d > Reviewed-on: https://dawn-review.googlesource.com/c/3020 > Reviewed-by: Kai Ninomiya <kainino@chromium.org> > Reviewed-by: Corentin Wallez <cwallez@chromium.org> > Commit-Queue: Stephen White <senorblanco@chromium.org> TBR=cwallez@chromium.org,kainino@chromium.org,senorblanco@chromium.org Change-Id: I54cdc558b128935dc8a8d22ec2b5e879271c35ae No-Presubmit: true No-Tree-Checks: true No-Try: true Bug: dawn:61 Reviewed-on: https://dawn-review.googlesource.com/c/3080 Reviewed-by: Corentin Wallez <cwallez@chromium.org> Commit-Queue: Corentin Wallez <cwallez@chromium.org>
50 lines
1.4 KiB
Plaintext
50 lines
1.4 KiB
Plaintext
# Copyright 2018 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.
|
|
|
|
# This files imports the overrides for Dawn but sets the defaults so that
|
|
# projects including Dawn don't have to set dirs if they happen to use the
|
|
# same.
|
|
# It takes advantage of GN's variable scoping rules to define global variables
|
|
# inside if constructs.
|
|
|
|
import("//build_overrides/dawn.gni")
|
|
|
|
if (!defined(dawn_standalone)) {
|
|
dawn_standalone = false
|
|
}
|
|
|
|
if (!defined(dawn_jinja2_dir)) {
|
|
dawn_jinja2_dir = "//third_party/jinja2"
|
|
}
|
|
|
|
if (!defined(dawn_glfw_dir)) {
|
|
dawn_glfw_dir = "//third_party/glfw"
|
|
}
|
|
|
|
if (!defined(dawn_googletest_dir)) {
|
|
dawn_googletest_dir = "//third_party/googletest"
|
|
}
|
|
|
|
if (!defined(dawn_shaderc_dir)) {
|
|
dawn_shaderc_dir = "//third_party/shaderc"
|
|
}
|
|
|
|
if (!defined(dawn_spirv_cross_dir)) {
|
|
dawn_spirv_cross_dir = "//third_party/spirv-cross"
|
|
}
|
|
|
|
if (!defined(dawn_spirv_tools_dir)) {
|
|
dawn_spirv_tools_dir = "//third_party/SPIRV-Tools"
|
|
}
|