mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-05-13 19:01:24 +00:00
On macOS we can't rely on having the Vulkan loader installed in the system. So we add the Vulkan loader as an optional dependency of Dawn and use it on macOS when building Dawn in standalone with Vulkan support. Usage of building our own loader might broaden if the loader gains features that are useful on other OSes. For example the ability to pass in the "root ICD" entrypoint to the loader so we can have both Swiftshader and the system driver at the same time. Bug: dawn:388 Change-Id: I7ade4961cce0463c66846ad17aebf95224f1afcc Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/19723 Reviewed-by: Austin Eng <enga@chromium.org> Reviewed-by: Kai Ninomiya <kainino@chromium.org> Commit-Queue: Corentin Wallez <cwallez@chromium.org>
40 lines
1.6 KiB
Plaintext
40 lines
1.6 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.
|
|
|
|
# These are variables that are overridable by projects that include Dawn.
|
|
# The values in this file are the defaults for when we are building from
|
|
# Dawn's repository.
|
|
|
|
# Whether we are building from Dawn's repository.
|
|
# MUST be unset in other projects (will default to false).
|
|
dawn_standalone = true
|
|
|
|
# True if Dawn can access build/, testing/ and other Chrome folders.
|
|
dawn_has_build = true
|
|
|
|
# Defaults for these are set again in dawn_overrides_with_defaults.gni so that
|
|
# users of Dawn don't have to set dirs if they happen to use the same as Dawn.
|
|
|
|
# The paths to Dawn's dependencies
|
|
dawn_jinja2_dir = "//third_party/jinja2"
|
|
dawn_glfw_dir = "//third_party/glfw"
|
|
dawn_glm_dir = "//third_party/glm"
|
|
dawn_googletest_dir = "//third_party/googletest"
|
|
dawn_shaderc_dir = "//third_party/shaderc"
|
|
dawn_spirv_tools_dir = "//third_party/SPIRV-Tools"
|
|
dawn_spirv_cross_dir = "//third_party/spirv-cross"
|
|
dawn_swiftshader_dir = "//third_party/swiftshader"
|
|
dawn_vulkan_loader_dir = "//third_party/vulkan-loader"
|
|
dawn_vulkan_validation_layers_dir = "//third_party/vulkan-validation-layers"
|