| # Copyright 2017 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. |
| |
| declare_args() { |
| # Should ANGLE be linked statically? |
| # False by default, enabling currently supported only on Android |
| use_static_angle = false |
| |
| # Should EGL support be compiled? |
| # Can be overriden to test during bring up of EGL support on other platforms. |
| use_egl = is_win || is_android || is_linux || is_chromeos || is_fuchsia || is_mac |
| |
| # Should Dawn support be compiled to back the WebGPU implementation? |
| # Also controls linking Dawn depedencies in such as SPIRV-Tools/SPIRV-Cross. |
| use_dawn = false |
| |
| # Should Dawn test binaries (unittests, end2end_tests, perf_tests) be built? |
| # Independent of use_dawn, which controls whether Dawn is used in Chromium. |
| build_dawn_tests = is_mac || is_win || is_linux || is_chromeos |
| } |
| |
| declare_args() { |
| enable_swiftshader = (is_win || is_linux || is_chromeos || (is_mac && use_egl) || |
| is_chromeos || is_fuchsia) && |
| (target_cpu == "x86" || target_cpu == "x64" || |
| target_cpu == "arm" || target_cpu == "arm64" || |
| target_cpu == "mipsel" || target_cpu == "mips64el") |
| } |