blob: 4c5bff028b8760aff8945823fc00bfb76375bf86 [file] [log] [blame]
Austin Engcc2516a2023-10-17 20:57:54 +00001# Copyright 2018 The Dawn & Tint Authors
Corentin Wallez21a23852018-07-31 18:50:03 +02002#
Austin Engcc2516a2023-10-17 20:57:54 +00003# Redistribution and use in source and binary forms, with or without
4# modification, are permitted provided that the following conditions are met:
Corentin Wallez21a23852018-07-31 18:50:03 +02005#
Austin Engcc2516a2023-10-17 20:57:54 +00006# 1. Redistributions of source code must retain the above copyright notice, this
7# list of conditions and the following disclaimer.
Corentin Wallez21a23852018-07-31 18:50:03 +02008#
Austin Engcc2516a2023-10-17 20:57:54 +00009# 2. Redistributions in binary form must reproduce the above copyright notice,
10# this list of conditions and the following disclaimer in the documentation
11# and/or other materials provided with the distribution.
12#
13# 3. Neither the name of the copyright holder nor the names of its
14# contributors may be used to endorse or promote products derived from
15# this software without specific prior written permission.
16#
17# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
18# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
19# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
20# DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
21# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
22# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
23# SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
24# CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
25# OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
26# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
Corentin Wallez21a23852018-07-31 18:50:03 +020027
Corentin Wallez649e2fe2018-08-03 15:57:43 +020028# These are variables that are overridable by projects that include Dawn.
29# The values in this file are the defaults for when we are building from
30# Dawn's repository.
31
32# Whether we are building from Dawn's repository.
Corentin Wallez76664ed82018-09-25 21:52:44 +000033# MUST be unset in other projects (will default to false).
Corentin Wallez21a23852018-07-31 18:50:03 +020034dawn_standalone = true
35
Corentin Wallez30ec4fc2020-04-07 19:35:47 +000036# True if Dawn can access build/, testing/ and other Chrome folders.
37dawn_has_build = true
38
Geoff Langd32858a2024-05-10 19:30:23 +000039# True if building within an ANGLE checkout
40build_with_angle = false
41
Corentin Wallez649e2fe2018-08-03 15:57:43 +020042# Defaults for these are set again in dawn_overrides_with_defaults.gni so that
43# users of Dawn don't have to set dirs if they happen to use the same as Dawn.
44
45# The paths to Dawn's dependencies
Brandon Jonesa04663c2021-09-23 20:36:03 +000046dawn_abseil_dir = "//third_party/abseil-cpp"
Stephen White77fcdf72021-01-11 15:52:12 +000047dawn_angle_dir = "//third_party/angle"
Corentin Wallez3bb0bb92018-08-13 17:47:44 +020048dawn_jinja2_dir = "//third_party/jinja2"
Corentin Wallez16092fa2018-10-04 17:17:57 +000049dawn_glfw_dir = "//third_party/glfw"
50dawn_googletest_dir = "//third_party/googletest"
Stephen Whitef1fa60b2021-01-06 17:41:50 +000051dawn_spirv_tools_dir = "//third_party/vulkan-deps/spirv-tools/src"
Corentin Wallez74cebd62019-11-26 18:21:51 +000052dawn_swiftshader_dir = "//third_party/swiftshader"
Stephen Whitef1fa60b2021-01-06 17:41:50 +000053dawn_vulkan_loader_dir = "//third_party/vulkan-deps/vulkan-loader/src"
54dawn_vulkan_validation_layers_dir =
55 "//third_party/vulkan-deps/vulkan-validation-layers/src"
Antonio Maioranob94856d2023-06-22 21:30:50 +000056dawn_dxc_dir = "//third_party/dxc"
57dawn_dxheaders_dir = "//third_party/dxheaders"
Loko Kung7d2b9d92022-06-22 04:19:43 +000058
Arthur Sonzogni1958d8f2023-12-12 15:34:37 +000059# PartitionAlloc is an optional dependency.
60# It does not fully support the MSVC compiler at the moment.
61if (is_clang || !is_win) {
62 dawn_partition_alloc_dir = "//third_party/partition_alloc/"
63}
64
Loko Kung7d2b9d92022-06-22 04:19:43 +000065# Optional path to a one-liner version file. Default is empty path indicating
66# that git should be used to figure out the version.
67dawn_version_file = ""