mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-12-13 07:06:11 +00:00
Add ANGLE to Dawn build.
Bug: dawn:447, dawn:580 Change-Id: I77726651ca00d64768bddc0bb476fd920e11851f Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/35081 Commit-Queue: Stephen White <senorblanco@chromium.org> Reviewed-by: Austin Eng <enga@chromium.org> Reviewed-by: Corentin Wallez <cwallez@chromium.org>
This commit is contained in:
committed by
Commit Bot service account
parent
99c3a691c2
commit
77fcdf7eaa
@@ -35,6 +35,9 @@ if (enable_vulkan_validation_layers) {
|
||||
import("//build_overrides/vulkan_validation_layers.gni")
|
||||
}
|
||||
|
||||
# ANGLE is an optional dependency; only use it if the path has been set.
|
||||
use_angle = dawn_use_angle && defined(dawn_angle_dir)
|
||||
|
||||
# Swiftshader is an optional dependency, only use it if the path has been set.
|
||||
use_swiftshader = dawn_use_swiftshader && dawn_swiftshader_dir != ""
|
||||
if (use_swiftshader) {
|
||||
@@ -603,6 +606,13 @@ source_set("dawn_native_sources") {
|
||||
}
|
||||
}
|
||||
|
||||
if (use_angle) {
|
||||
data_deps += [
|
||||
"${dawn_angle_dir}:libEGL",
|
||||
"${dawn_angle_dir}:libGLESv2",
|
||||
]
|
||||
}
|
||||
|
||||
if (dawn_enable_wgsl) {
|
||||
deps += [ "${dawn_tint_dir}:libtint" ]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user