mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-08-03 10:45:36 +00:00
Due to the way GN target discovery works, glfw would get discovered in Fuchsia / Android / ChromeOS builds when it isn't supported causing compilation failures. This changes third_party/BUILD.gn so that glfw targets are only created on supported platforms. It also changes dawn_glfw in BUILD.gn to be more robust to building on all platforms. Bug=dawn:221 BUG=chromium:1002895 Change-Id: I8f40b06f680094406d24e9a6dea44b128e59b854 Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/11160 Reviewed-by: David Turner <digit@google.com> Reviewed-by: Austin Eng <enga@chromium.org> Commit-Queue: Corentin Wallez <cwallez@chromium.org>